1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
3 ;;; Copyright © 2015 Siniša Biđin <sinisa@bidin.eu>
4 ;;; Copyright © 2015, 2016 Eric Bavier <bavier@member.fsf.org>
5 ;;; Copyright © 2015 xd1le <elisp.vim@gmail.com>
6 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
7 ;;; Copyright © 2016 Danny Milosavljevic <dannym@scratchpost.org>
8 ;;; Copyright © 2016, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016 Al McElrath <hello@yrns.org>
10 ;;; Copyright © 2016 Carlo Zancanaro <carlo@zancanaro.id.au>
11 ;;; Copyright © 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
12 ;;; Copyright © 2016, 2017, 2018, 2020 Nikita <nikita@n0.is>
13 ;;; Copyright © 2016 doncatnip <gnopap@gmail.com>
14 ;;; Copyright © 2016 Ivan Vilata i Balaguer <ivan@selidor.net>
15 ;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com>
16 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <marius@gnu.org>
17 ;;; Copyright © 2017, 2020 Oleg Pykhalov <go.wigust@gmail.com>
18 ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
19 ;;; Copyright © 2018 Pierre-Antoine Rouby <contact@parouby.fr>
20 ;;; Copyright © 2018, 2019 Meiyo Peng <meiyo@riseup.net>
21 ;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
22 ;;; Copyright © 2019 Timothy Sample <samplet@ngyro.com>
23 ;;; Copyright © 2019 Gábor Boskovits <boskovits@gmail.com>
24 ;;; Copyright © 2019 Kyle Andrews <kyle.c.andrews@gmail.com>
25 ;;; Copyright © 2019 Ingo Ruhnke <grumbel@gmail.com>
26 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
27 ;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
28 ;;; Copyright © 2018, 2019 Pierre Langlois <pierre.langlois@gmx.com>
29 ;;; Copyright © 2016, 2017 Andy Patterson <ajpatter@uwaterloo.ca>
30 ;;; Copyright © 2019 Evan Straw <evan.straw99@gmail.com>
31 ;;; Copyright © 2019 Brett Gilio <brettg@gnu.org>
32 ;;; Copyright © 2019 Noodles! <nnoodle@chiru.no>
33 ;;; Copyright © 2019, 2020 Alexandru-Sergiu Marton <brown121407@member.fsf.org>
34 ;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
35 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
36 ;;; Copyright © 2020 Boris A. Dekshteyn <harlequin78@gmail.com>
37 ;;; Copyright © 2020 Marcin Karpezo <sirmacik@wioo.waw.pl>
38 ;;; Copyright © 2020 EuAndreh <eu@euandre.org>
39 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
41 ;;; This file is part of GNU Guix.
43 ;;; GNU Guix is free software; you can redistribute it and/or modify it
44 ;;; under the terms of the GNU General Public License as published by
45 ;;; the Free Software Foundation; either version 3 of the License, or (at
46 ;;; your option) any later version.
48 ;;; GNU Guix is distributed in the hope that it will be useful, but
49 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
50 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
51 ;;; GNU General Public License for more details.
53 ;;; You should have received a copy of the GNU General Public License
54 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
56 (define-module (gnu packages wm)
57 #:use-module ((guix licenses) #:prefix license:)
58 #:use-module (guix packages)
59 #:use-module (guix download)
60 #:use-module (guix git-download)
61 #:use-module (guix build-system asdf)
62 #:use-module (guix build-system cmake)
63 #:use-module (guix build-system gnu)
64 #:use-module (guix build-system haskell)
65 #:use-module (guix build-system meson)
66 #:use-module (guix build-system perl)
67 #:use-module (guix build-system python)
68 #:use-module (guix build-system trivial)
69 #:use-module (guix utils)
70 #:use-module (gnu packages)
71 #:use-module (gnu packages bash)
72 #:use-module (gnu packages autotools)
73 #:use-module (gnu packages base)
74 #:use-module (gnu packages bison)
75 #:use-module (gnu packages build-tools) ;for meson-0.55
76 #:use-module (gnu packages calendar)
77 #:use-module (gnu packages docbook)
78 #:use-module (gnu packages documentation)
79 #:use-module (gnu packages fontutils)
80 #:use-module (gnu packages freedesktop)
81 #:use-module (gnu packages fribidi)
82 #:use-module (gnu packages gawk)
83 #:use-module (gnu packages gcc)
84 #:use-module (gnu packages gl)
85 #:use-module (gnu packages glib)
86 #:use-module (gnu packages gperf)
87 #:use-module (gnu packages gtk)
88 #:use-module (gnu packages haskell-check)
89 #:use-module (gnu packages haskell-web)
90 #:use-module (gnu packages haskell-xyz)
91 #:use-module (gnu packages image)
92 #:use-module (gnu packages imagemagick)
93 #:use-module (gnu packages libevent)
94 #:use-module (gnu packages linux)
95 #:use-module (gnu packages lisp-xyz)
96 #:use-module (gnu packages logging)
97 #:use-module (gnu packages lua)
98 #:use-module (gnu packages m4)
99 #:use-module (gnu packages man)
100 #:use-module (gnu packages maths)
101 #:use-module (gnu packages mpd)
102 #:use-module (gnu packages pcre)
103 #:use-module (gnu packages perl)
104 #:use-module (gnu packages pkg-config)
105 #:use-module (gnu packages pretty-print)
106 #:use-module (gnu packages pulseaudio)
107 #:use-module (gnu packages python)
108 #:use-module (gnu packages readline)
109 #:use-module (gnu packages serialization)
110 #:use-module (gnu packages sphinx)
111 #:use-module (gnu packages suckless)
112 #:use-module (gnu packages texinfo)
113 #:use-module (gnu packages textutils)
114 #:use-module (gnu packages video)
115 #:use-module (gnu packages web)
116 #:use-module (gnu packages xdisorg)
117 #:use-module (gnu packages xml)
118 #:use-module (gnu packages xorg))
128 (url "https://github.com/baskerville/bspwm")
130 (file-name (git-file-name name version))
132 (base32 "0qlv7b4c2mmjfd65y100d11x8iqyg5f6lfiws3cgmpjidhdygnxc"))))
133 (build-system gnu-build-system)
136 ("libxinerama" ,libxinerama)
138 ("xcb-util" ,xcb-util)
139 ("xcb-util-keysyms" ,xcb-util-keysyms)
140 ("xcb-util-wm" ,xcb-util-wm)))
143 (modify-phases %standard-phases
144 (delete 'configure)) ; no configure script
145 #:tests? #f ; no check target
148 (string-append "PREFIX=" %output))))
149 (home-page "https://github.com/baskerville/bspwm")
150 (synopsis "Tiling window manager based on binary space partitioning")
151 (description "bspwm is a tiling window manager that represents windows as
152 the leaves of a full binary tree.")
153 (license license:bsd-2)))
155 (define-public herbstluftwm
157 (name "herbstluftwm")
162 (uri (string-append "https://herbstluftwm.org/tarballs/herbstluftwm-"
165 (base32 "1qmb4pjf2f6g0dvcg11cw9njwmxblhqzd70ai8qnlgqw1iz3nkm1"))
166 (file-name (string-append "herbstluftwm-" version ".tar.gz"))))
167 (build-system cmake-build-system)
174 ("xsetroot" ,xsetroot)
177 ("libxinerama" ,libxinerama)
178 ("libxrandr" ,libxrandr)))
180 `(("asciidoc" ,asciidoc)
181 ("pkg-config" ,pkg-config)))
185 (let ((out (assoc-ref %outputs "out")))
187 (string-append "-DCMAKE_INSTALL_SYSCONF_PREFIX=" out "/etc")
188 (string-append "-DBASHCOMPLETIONDIR=" out "/etc/bash_completion.d")))
190 (modify-phases %standard-phases
191 (add-after 'install 'install-xsession
192 (lambda* (#:key outputs #:allow-other-keys)
193 (let* ((out (assoc-ref outputs "out"))
194 (xsessions (string-append out "/share/xsessions")))
196 (call-with-output-file
197 (string-append xsessions "/herbstluftwm.desktop")
202 Comment=Manual tiling window manager~@
203 Exec=~a/bin/herbstluftwm~@
204 Type=XSession~%" out)))
206 (synopsis "Tiling window manager for X11")
207 (description "herbstluftwm is a manual tiling window manager for X11 using
208 Xlib and GLib. Its main features are:
212 The layout is based on splitting frames into subframes which can be split
213 again or can be filled with windows (similar to i3 or musca).
216 Tags (or workspaces or virtual desktops or …) can be added/removed at runtime.
217 Each tag contains an own layout.
220 Exactly one tag is viewed on each monitor. The tags are monitor independent
224 It is configured at runtime via IPC calls from @command{herbstclient}. So the
225 configuration file is just a script which is run on startup (similar to wmii
229 (home-page "https://herbstluftwm.org")
230 (license license:bsd-2)))
232 (define-public i3status
238 (uri (string-append "https://i3wm.org/i3status/i3status-"
242 "0rhlzb96mw64z2jnhwz9nibc7pxg549626lz5642xxk5hpzwk2ff"))))
243 (build-system gnu-build-system)
245 `(;; XXX: Do an "out of source" build to work around
246 ;; <https://github.com/i3/i3status/issues/339>.
248 #:tests? #f)) ; no test suite
250 `(("openlibm" ,openlibm)
251 ("libconfuse" ,libconfuse)
253 ("alsa-lib" ,alsa-lib)
254 ("pulseaudio" ,pulseaudio)
257 ("asciidoc" ,asciidoc)))
259 `(("pkg-config" ,pkg-config)
260 ("docbook-xsl" ,docbook-xsl)
261 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
263 (home-page "https://i3wm.org/i3status/")
264 (synopsis "Status bar for i3bar, dzen2, xmobar or similar programs")
265 (description "i3status is a small program for generating a status bar for
266 i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient
267 by issuing a very small number of system calls, as one generally wants to
268 update such a status line every second. This ensures that even under high
269 load, your status bar is updated correctly. Also, it saves a bit of energy by
270 not hogging your CPU as much as spawning the corresponding amount of shell
272 (license license:bsd-3)))
280 (uri (string-append "https://i3wm.org/downloads/i3-"
284 "03dijnwv2n8ak9jq59fhq0rc80m5wjc9d54fslqaivnnz81pkbjk"))))
285 (build-system gnu-build-system)
288 ;; The build system tries to build in a separate directory, but that
289 ;; seems to be unnecessary.
290 (list "--disable-builddir")
292 ;; The test suite requires the unpackaged Xephyr X server.
295 (modify-phases %standard-phases
296 (add-after 'install 'patch-session-file
297 (lambda* (#:key outputs #:allow-other-keys)
298 (let* ((out (assoc-ref outputs "out"))
299 (i3 (string-append out "/bin/i3"))
300 (i3-with-shmlog (string-append out "/bin/i3-with-shmlog")))
301 (substitute* (string-append out "/share/xsessions/i3.desktop")
302 (("Exec=i3") (string-append "Exec=" i3)))
303 (substitute* (string-append out "/share/xsessions/i3-with-shmlog.desktop")
304 (("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog)))
308 ("xcb-util" ,xcb-util)
309 ("xcb-util-cursor" ,xcb-util-cursor)
310 ("xcb-util-keysyms" ,xcb-util-keysyms)
311 ("xcb-util-wm" ,xcb-util-wm)
312 ("xcb-util-xrm" ,xcb-util-xrm)
313 ("libxkbcommon" ,libxkbcommon)
316 ("asciidoc" ,asciidoc)
318 ("perl-pod-simple" ,perl-pod-simple)
321 ("startup-notification" ,startup-notification)
327 ("pkg-config" ,pkg-config)
328 ;; For building the documentation.
330 ("docbook-xsl" ,docbook-xsl)))
331 (home-page "https://i3wm.org/")
332 (synopsis "Tiling window manager")
333 (description "i3 is a tiling X11 window manager that dynamically manages
334 tiled, stacked, and tabbed window layouts.
336 i3 primarily targets advanced users. Windows are managed manually and organised
337 inside containers, which can be split vertically or horizontally, and optionally
340 i3 uses a plain-text configuration file, and can be extended and controlled from
341 many programming languages.")
342 (license license:bsd-3)))
344 (define-public i3-gaps
345 (package (inherit i3-wm)
351 "https://github.com/Airblader/i3/releases/download/"
352 version "/i3-" version ".tar.bz2"))
355 "1hcakwyz78lgp8mhqv7pw86jlb3m415pfql1q19rkijnhm3fn3ci"))))
356 (home-page "https://github.com/Airblader/i3")
357 (synopsis "Tiling window manager with gaps")
358 (description "i3-gaps is a fork of i3wm, a tiling window manager
359 for X11. It is kept up to date with upstream, adding a few additional
360 features such as gaps between windows.
362 i3 is a tiling X11 window manager that dynamically manages tiled, stacked,
363 and tabbed window layouts.
365 i3 primarily targets advanced users. Windows are managed manually and
366 organised inside containers, which can be split vertically or horizontally,
367 and optionally resized.
369 i3 uses a plain-text configuration file, and can be extended and controlled
370 from many programming languages.")
371 (license license:bsd-3)))
373 (define-public i3lock
379 (uri (string-append "https://i3wm.org/i3lock/i3lock-"
383 "015dn534m7cxjvqdncpvaq9p8b2r4w5hp1yanbdy2abmhbcc7a7j"))))
384 (build-system gnu-build-system)
386 `(("pkg-config" ,pkg-config)))
390 ("linux-pam" ,linux-pam)
392 ("libxkbcommon" ,libxkbcommon)
393 ("xcb-util" ,xcb-util)
394 ("xcb-util-image" ,xcb-util-image)
395 ("xcb-util-xrm" ,xcb-util-xrm)))
396 (home-page "https://i3wm.org/i3lock/")
397 (synopsis "Lightweight screen locker")
399 "i3lock is a simple X11 screen locker developed alongside the i3 project.
400 Despite the name it should work with any X11 window manager.")
401 (license license:bsd-3)))
403 (define-public i3blocks
410 (url "https://github.com/vivien/i3blocks")
414 "0v8mwnm8qzpv6xnqvrk43s4b9iyld4naqzbaxk4ldq1qkhai0wsv"))
415 (file-name (git-file-name name version))))
416 (build-system gnu-build-system)
418 `(("autoconf" ,autoconf)
419 ("automake" ,automake)
420 ("pkg-config" ,pkg-config)))
421 (home-page "https://github.com/vivien/i3blocks")
422 (synopsis "Minimalist scheduler for status bar scripts")
423 (description "i3blocks executes your command lines and generates a
424 status line from their output. The generated line is meant to be displayed by
425 the i3 window manager through its i3bar component, as an alternative to
427 (license license:gpl3+)))
429 (define-public perl-anyevent-i3
431 (name "perl-anyevent-i3")
435 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTPLBG/"
436 "AnyEvent-I3-" version ".tar.gz"))
439 "0qvd9bq16jyy7v3ma82qcnvz9j503bw0mh7h55gkjf7ir62ck0jk"))))
440 (build-system perl-build-system)
442 `(("perl-anyevent" ,perl-anyevent)
443 ("perl-json-xs" ,perl-json-xs)))
444 (home-page "https://metacpan.org/release/AnyEvent-I3")
446 "Communicate with the i3 window manager through perl")
448 "This module connects to the i3 window manager using the UNIX socket
449 based IPC interface it provides (if enabled in the configuration file).
450 You can then subscribe to events or send messages and receive their replies.")
451 ;; Can be used with either license.
452 (license (list license:gpl3+ license:perl-license))))
454 (define-public python-i3-py
456 (name "python-i3-py")
460 ;; The latest release is not tagged in Git nor has an entry in PyPi,
461 ;; but there is still a clear commit for it, and it's been the last one
465 (url "https://github.com/ziberna/i3-py")
466 (commit "27f88a616e9ecc340e7d041d3d00782f8a1964c1")))
469 "1nm719dc2xqlll7vj4c4m7mpjb27lpn3bg3c66gajvnrz2x1nmxs"))
470 (file-name (string-append name "-" version "-checkout"))))
471 (build-system python-build-system)
473 `(#:tests? #f ; no tests yet
474 #:phases (modify-phases %standard-phases
475 (add-after 'install 'install-doc
476 ;; Copy readme file to documentation directory.
477 (lambda* (#:key outputs #:allow-other-keys)
478 (let ((doc (string-append (assoc-ref outputs "out")
479 "/share/doc/" ,name)))
480 (install-file "README.md" doc)
481 ;; Avoid unspecified return value.
485 (home-page "https://github.com/ziberna/i3-py")
486 (synopsis "Python interface to the i3 window manager")
487 (description "This package allows you to interact from a Python program
488 with the i3 window manager via its IPC socket. It can send commands and other
489 kinds of messages to i3, select the affected containers, filter results and
490 subscribe to events.")
491 (license license:gpl3+)))
493 (define-public python2-i3-py
494 (package-with-python2 python-i3-py))
496 (define-public quickswitch-i3
497 (let ((commit "ed692b1e8f43b95bd907ced26238ce8ccb2ed28f")
498 (revision "1")) ; Guix package revision
500 (name "quickswitch-i3")
501 (version (string-append "2.2-" revision "."
502 (string-take commit 7)))
505 ;; The latest commit is a few years old and just a couple commits
506 ;; after the last tagged release, so we use that latest commit
507 ;; instead of the release.
510 (url "https://github.com/proxypoke/quickswitch-for-i3")
514 "0447077sama80jcdg5p64zjsvafmz5rbdrirhm1adcdjhkh6iqc5"))
515 (patches (search-patches "quickswitch-fix-dmenu-check.patch"))
516 (file-name (string-append name "-" version "-checkout"))))
517 (build-system python-build-system)
519 `(#:tests? #f ; no tests yet
520 #:phases (modify-phases %standard-phases
521 (add-after 'install 'install-doc
522 ;; Copy readme file to documentation directory.
523 (lambda* (#:key outputs #:allow-other-keys)
524 (let ((doc (string-append (assoc-ref outputs "out")
525 "/share/doc/" ,name)))
526 (install-file "README.rst" doc)
527 ;; Avoid unspecified return value.
530 `(("python-i3-py" ,python-i3-py)
532 (home-page "https://github.com/proxypoke/quickswitch-for-i3")
533 (synopsis "Quickly change to and locate windows in the i3 window manager")
535 "This utility for the i3 window manager allows you to quickly switch to
536 and locate windows on all your workspaces, using an interactive dmenu
538 (license license:wtfpl2))))
540 (define-public i3lock-color
542 (name "i3lock-color")
548 (url "https://github.com/PandorasFox/i3lock-color")
550 (file-name (git-file-name name version))
552 (base32 "08fhnchf187b73h52xgzb86g6byzxz085zs9galsvl687g5zxk34"))))
553 (build-system gnu-build-system)
555 `(#:tests? #f)) ; no tests included
559 ("libjpeg" ,libjpeg-turbo)
561 ("libxkbcommon" ,libxkbcommon)
562 ("linux-pam" ,linux-pam)
563 ("xcb-util" ,xcb-util)
564 ("xcb-util-image" ,xcb-util-image)
565 ("xcb-util-xrm" ,xcb-util-xrm)))
567 `(("autoconf" ,autoconf)
568 ("automake" ,automake)
569 ("pkg-config" ,pkg-config)))
570 (home-page "https://github.com/PandorasFox/i3lock-color")
571 (synopsis "Screen locker with color configuration support")
573 "i3lock-color is a simpler X11 screen locker derived from i3lock.
577 @item forking process, the locked screen is preserved when you suspend to RAM;
578 @item specify background color or image to be displayed in the lock screen;
579 @item many additional color options.
581 (license license:bsd-3)))
583 (define-public i3lock-fancy
585 (name "i3lock-fancy")
591 (url "https://github.com/meskarune/i3lock-fancy")
593 (file-name (git-file-name name version))
595 (base32 "11g2kkim33ra38d1m897sq1ifajw17iyw9mr7sg1q8i2ibl4lfsi"))))
596 (build-system gnu-build-system)
598 `(#:tests? #f ; no tests included
600 (modify-phases %standard-phases
602 (lambda* (#:key inputs outputs #:allow-other-keys)
603 (let* ((out (assoc-ref outputs "out"))
604 (icons (string-append out "/share/i3lock-fancy/icons/"))
605 (wmctrl (string-append (assoc-ref inputs "wmctrl")
607 (mconvert (string-append (assoc-ref inputs "imagemagick")
609 (mimport (string-append (assoc-ref inputs "imagemagick")
611 (awk (string-append (assoc-ref inputs "gawk")
615 (("\\$\\(command -V wmctrl\\)") wmctrl)
616 (("convert") mconvert)
617 (("shot=\\(import") (string-append "shot=\(" mimport))
618 (("awk -F") (string-append awk " -F"))
620 (("\\$scriptpath/icons/") icons))
624 (lambda* (#:key inputs outputs #:allow-other-keys)
625 (let* ((out (assoc-ref outputs "out"))
626 (bin (string-append out "/bin"))
627 (icons (string-append out "/share/i3lock-fancy/icons/")))
629 (install-file "lock" bin)
630 (rename-file (string-append bin "/lock")
631 (string-append bin "/i3lock-fancy"))
632 (copy-recursively "icons" icons)
635 `(("imagemagick" ,imagemagick)
638 (home-page "https://github.com/meskarune/i3lock-fancy")
639 (synopsis "Screen locker with screenshot function")
641 "@code{i3lock-fancy} is a Bash script that takes a screenshot of
642 the desktop, blurs the background and adds a lock icon and text.
643 It requires @code{i3lock-color} or @code{i3lock} and can optionally
644 be passed any screenshot util like @code{scrot}.
645 This screen locker can be used with any window manager or
646 desktop environment.")
647 (license license:expat)))
649 (define-public xmonad
653 (synopsis "Tiling window manager")
656 (uri (string-append "mirror://hackage/package/xmonad/"
657 "xmonad-" version ".tar.gz"))
660 "0a7rh21k9y6g8fwkggxdxjns2grvvsd5hi2ls4klmqz5xvk4hyaa"))
661 (patches (search-patches "xmonad-dynamic-linking.patch"))))
662 (build-system haskell-build-system)
664 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
665 ("ghc-quickcheck" ,ghc-quickcheck)
666 ("ghc-semigroups" ,ghc-semigroups)
667 ("ghc-setlocale" ,ghc-setlocale)
668 ("ghc-utf8-string" ,ghc-utf8-string)
669 ("ghc-x11" ,ghc-x11)))
672 (modify-phases %standard-phases
674 'install 'install-xsession
676 (let* ((xsessions (string-append %output "/share/xsessions")))
678 (call-with-output-file
679 (string-append xsessions "/xmonad.desktop")
686 Type=Application~%" ,name ,synopsis %output)))))))))
687 (home-page "https://xmonad.org")
689 "Xmonad is a tiling window manager for X. Windows are arranged
690 automatically to tile the screen without gaps or overlap, maximising screen
691 use. All features of the window manager are accessible from the keyboard: a
692 mouse is strictly optional. Xmonad is written and extensible in Haskell.
693 Custom layout algorithms, and other extensions, may be written by the user in
694 config files. Layouts are applied dynamically, and different layouts may be
695 used on each workspace. Xinerama is fully supported, allowing windows to be
696 tiled on several screens.")
697 (license license:bsd-3)))
699 (define-public xmobar
705 (uri (string-append "mirror://hackage/package/xmobar/"
706 "xmobar-" version ".tar.gz"))
709 "0x09xbz7y9ay0046j1xpr9jjk5jqivqi06vm3q6mhcrgc4y922rx"))))
710 (build-system haskell-build-system)
712 `(("ghc-hspec" ,ghc-hspec)
713 ("hspec-discover" ,hspec-discover)))
715 `(("ghc-alsa-core" ,ghc-alsa-core)
716 ("ghc-alsa-mixer" ,ghc-alsa-mixer)
717 ("ghc-dbus" ,ghc-dbus)
718 ("ghc-hinotify" ,ghc-hinotify)
719 ("ghc-http" ,ghc-http)
720 ("ghc-http-conduit" ,ghc-http-conduit)
721 ("ghc-http-types" ,ghc-http-types)
722 ("ghc-iwlib" ,ghc-iwlib)
723 ("ghc-libmpd" ,ghc-libmpd)
724 ("ghc-old-locale" ,ghc-old-locale)
725 ("ghc-parsec-numbers" ,ghc-parsec-numbers)
726 ("ghc-regex-compat" ,ghc-regex-compat)
727 ("ghc-temporary" ,ghc-temporary)
728 ("ghc-timezone-olson" ,ghc-timezone-olson)
730 ("ghc-x11-xft" ,ghc-x11-xft)
733 `(#:configure-flags (list "--flags=all_extensions")
735 (modify-phases %standard-phases
736 (add-before 'build 'patch-test-shebang
737 (lambda* (#:key inputs #:allow-other-keys)
738 (substitute* "test/Xmobar/Plugins/Monitors/AlsaSpec.hs"
739 (("/bin/bash") (which "bash")))
741 (home-page "https://xmobar.org")
742 (synopsis "Minimalistic text based status bar")
744 "@code{xmobar} is a lightweight, text-based, status bar written in
745 Haskell. It was originally designed to be used together with Xmonad, but it
746 is also usable with any other window manager. While xmobar is written in
747 Haskell, no knowledge of the language is required to install and use it.")
748 (license license:bsd-3)))
750 (define-public yeganesh
758 (uri (string-append "http://dmwit.com/yeganesh/yeganesh-" version ".tar.gz"))
760 (base32 "04djfyjab3c5y9z9x8zd0xcx0jyy35zq7cl9ddr4ppf6k5ky6iky"))))
761 (build-system haskell-build-system)
763 `(("ghc-strict" ,ghc-strict)
764 ("ghc-xdg-basedir" ,ghc-xdg-basedir)))
765 (home-page "http://dmwit.com/yeganesh/")
766 (synopsis "Small wrapper around dmenu")
767 (description "@code{yeganesh} is a small wrapper around demnu. Like
768 dmenu, it accepts input on stdin and writes the chosen result on stdout.
769 Unlike dmenu, it mangles the input before it presents its choices. In
770 particular, it displays commonly-chosen options before uncommon ones.")
771 (license license:bsd-3)))
773 (define-public ghc-xmonad-contrib
775 (name "ghc-xmonad-contrib")
780 (uri (string-append "mirror://hackage/package/xmonad-contrib/"
781 "xmonad-contrib-" version ".tar.gz"))
783 (base32 "1pddgkvnbww28wykncc7j0yb0lv15bk7xnnhdcbrwkxzw66w6wmd"))))
784 (build-system haskell-build-system)
786 `(("ghc-old-time" ,ghc-old-time)
787 ("ghc-random" ,ghc-random)
788 ("ghc-utf8-string" ,ghc-utf8-string)
789 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
790 ("ghc-semigroups" ,ghc-semigroups)
792 ("ghc-x11-xft" ,ghc-x11-xft)
794 (home-page "https://xmonad.org")
795 (synopsis "Third party extensions for xmonad")
797 "Third party tiling algorithms, configurations, and scripts to Xmonad, a
798 tiling window manager for X.")
799 (license license:bsd-3)))
801 (define-public evilwm
808 (uri (string-append "http://www.6809.org.uk/evilwm/evilwm-"
812 "0ak0yajzk3v4dg5wmaghv6acf7v02a4iw8qxmq5yw5ard8lrqn3r"))
813 (patches (search-patches "evilwm-lost-focus-bug.patch"))))
814 (build-system gnu-build-system)
818 ("libxrandr" ,libxrandr)))
820 `(#:modules ((srfi srfi-26)
822 (guix build gnu-build-system))
823 #:make-flags (let ((inputs (map (cut assoc-ref %build-inputs <>)
824 '("libx11" "libxext" "libxrandr")))
825 (join (lambda (proc strs)
826 (string-join (map proc strs) " ")))
827 (dash-I (cut string-append "-I" <> "/include"))
828 (dash-L (cut string-append "-L" <> "/lib")))
829 `("desktopfilesdir=$(prefix)/share/xsessions"
830 ,(string-append "prefix=" (assoc-ref %outputs "out"))
831 ,(string-append "CPPFLAGS=" (join dash-I inputs))
832 ,(string-append "LDFLAGS=" (join dash-L inputs))))
833 #:tests? #f ;no tests
834 #:phases (modify-phases %standard-phases
835 (delete 'configure)))) ;no configure script
836 (home-page "http://www.6809.org.uk/evilwm/")
837 (synopsis "Minimalist window manager for the X Window System")
839 "evilwm is a minimalist window manager based on aewm, extended to feature
840 many keyboard controls with repositioning and maximize toggles, solid window
841 drags, snap-to-border support, and virtual desktops.")
842 (license (license:x11-style "file:///README"))))
844 (define-public fluxbox
848 (synopsis "Small and fast window manager")
851 (uri (string-append "mirror://sourceforge/fluxbox/fluxbox/"
852 version "/fluxbox-" version ".tar.xz"))
855 "1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w"))))
856 (build-system gnu-build-system)
858 `(#:make-flags '("CPPFLAGS=-U__TIME__") ;ugly, but for reproducibility
860 (modify-phases %standard-phases
861 (add-after 'install 'install-vim-files
862 (lambda* (#:key outputs #:allow-other-keys)
863 (let* ((out (assoc-ref outputs "out"))
864 (syntax (string-append out "/share/vim/vimfiles/syntax")))
865 (copy-recursively "3rd/vim/vim/syntax" syntax)
867 (add-after 'install 'install-xsession
868 (lambda* (#:key outputs #:allow-other-keys)
869 (let* ((out (assoc-ref outputs "out"))
870 (xsessions (string-append out "/share/xsessions")))
872 (call-with-output-file
873 (string-append xsessions "/fluxbox.desktop")
879 Exec=~a/bin/startfluxbox~@
880 Type=Application~%" ,name ,synopsis out)))
883 `(("pkg-config" ,pkg-config)))
885 `(("freetype" ,freetype)
891 ("libxinerama" ,libxinerama)
893 ("libxrandr" ,libxrandr)
894 ("libxrender" ,libxrender)))
895 (description "Fluxbox is a window manager. It is light on resources
896 and easy to handle yet full of features to make an easy and fast desktop
898 (home-page "http://fluxbox.org/")
899 (license license:expat)))
901 (define-public awesome
909 "https://github.com/awesomeWM/awesome-releases/raw/master/"
910 "awesome-" version ".tar.xz"))
912 (base32 "0lqpw401mkkmp9wgbvrmm45bqq2j9357l4irwdqv6l1305pls9kq"))
913 (modules '((guix build utils)
917 ;; Remove non-reproducible timestamp and use the date of
918 ;; the source file instead.
919 (substitute* "common/version.c"
920 (("__DATE__ \" \" __TIME__")
923 (make-time time-utc 0 (stat:mtime (stat "awesome.c"))))
927 (search-patches "awesome-reproducible-png.patch"))))
928 (build-system cmake-build-system)
930 `(("asciidoc" ,asciidoc)
931 ("docbook-xsl" ,docbook-xsl)
934 ("imagemagick" ,imagemagick)
935 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
936 ("lua-ldoc" ,lua-ldoc)
937 ("pkg-config" ,pkg-config)
942 ("gdk-pixbuf" ,gdk-pixbuf)
944 ("gobject-introspection" ,gobject-introspection)
948 ("libxcursor" ,libxcursor)
949 ("libxdg-basedir" ,libxdg-basedir)
950 ("libxkbcommon" ,libxkbcommon)
954 ("startup-notification" ,startup-notification)
955 ("xcb-util" ,xcb-util)
956 ("xcb-util-cursor" ,xcb-util-cursor)
957 ("xcb-util-image" ,xcb-util-image)
958 ("xcb-util-keysyms" ,xcb-util-keysyms)
959 ("xcb-util-renderutil" ,xcb-util-renderutil)
960 ("xcb-util-xrm" ,xcb-util-xrm)
961 ("xcb-util-wm" ,xcb-util-wm)))
963 `(#:modules ((guix build cmake-build-system)
966 ;; Let compression happen in our 'compress-documentation' phase
967 ;; so that '--no-name' is used, which removes timestamps from
970 '("-DCOMPRESS_MANPAGES=off")
971 ;; Building awesome in its source directory is no longer
975 (modify-phases %standard-phases
976 (add-before 'configure 'set-paths
977 (lambda* (#:key inputs #:allow-other-keys)
978 (substitute* "lib/awful/completion.lua"
981 ;; The build process needs to load Cairo dynamically.
982 (let* ((cairo (string-append (assoc-ref inputs "cairo") "/lib"))
983 (lua-version ,(version-major+minor (package-version lua)))
985 (filter (match-lambda
986 ((label . _) (string-prefix? "lua-" label)))
993 dir "/share/lua/" lua-version "/?.lua;"
994 dir "/share/lua/" lua-version "/?/?.lua")))
1002 dir "/lib/lua/" lua-version "/?.so;"
1003 dir "/lib/lua/" lua-version "/?/?.so")))
1006 (setenv "LD_LIBRARY_PATH" cairo)
1007 (setenv "LUA_PATH" (string-append "?.lua;" lua-path))
1008 (setenv "LUA_CPATH" lua-cpath)
1012 ;; There aren't any tests, so just make sure the binary
1013 ;; gets built and can be run successfully.
1014 (invoke "../build/awesome" "-v")))
1015 (add-after 'install 'patch-session-file
1016 (lambda* (#:key outputs #:allow-other-keys)
1017 (let* ((out (assoc-ref outputs "out"))
1018 (awesome (string-append out "/bin/awesome")))
1019 (substitute* (string-append out "/share/xsessions/awesome.desktop")
1020 (("Exec=awesome") (string-append "Exec=" awesome)))
1022 (add-after 'install 'wrap
1023 (lambda* (#:key inputs outputs #:allow-other-keys)
1024 (let* ((awesome (assoc-ref outputs "out"))
1025 (cairo (string-append (assoc-ref inputs "cairo") "/lib"))
1026 (lua-version ,(version-major+minor (package-version lua)))
1027 (lua-lgi (assoc-ref inputs "lua-lgi")))
1028 (wrap-program (string-append awesome "/bin/awesome")
1029 `("LUA_PATH" ";" suffix
1030 (,(format #f "~a/share/lua/~a/?.lua" lua-lgi lua-version)))
1031 `("LUA_CPATH" ";" suffix
1032 (,(format #f "~a/lib/lua/~a/?.so" lua-lgi lua-version)))
1033 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))
1034 `("LD_LIBRARY_PATH" suffix (,cairo)))
1036 (home-page "https://awesomewm.org/")
1037 (synopsis "Highly configurable window manager")
1039 "Awesome has been designed as a framework window manager. It is fast, small,
1040 dynamic and extensible using the Lua programming language.")
1041 (license license:gpl2+)))
1043 (define-public menumaker
1050 (uri (string-append "mirror://sourceforge/menumaker/"
1051 "menumaker-" version ".tar.gz"))
1053 (base32 "034v5204bsgkzzk6zfa5ia63q95gln47f7hwf96yvad5hrhmd8z3"))))
1054 (build-system gnu-build-system)
1056 `(("python" ,python)))
1057 (synopsis "Heuristics-driven menu generator")
1059 "MenuMaker is a menu generation utility for a number of X window
1060 managers and desktop environments. It is capable of finding lots of
1061 installed programs and generating a root menu consistent across all
1062 supported window managers, so one will get (almost) the same menu in
1063 all of them. Currently supported window managers include:
1075 (home-page "http://menumaker.sourceforge.net/")
1076 (license license:bsd-2)))
1078 (define-public keybinder
1085 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1086 "/releases/download/v" version "/keybinder-"
1088 (file-name (string-append name "-" version ".tar.gz"))
1091 "0h52hj3ay8mfhwvmfxbxlfyq74hifdk8wxgxp7fr4iy6189hg7w7"))))
1092 (build-system gnu-build-system)
1094 `(("python-2" ,python-2)
1095 ("gtk+-2" ,gtk+-2)))
1097 `(("python2-pygtk" ,python2-pygtk)
1098 ("gtk-doc" ,gtk-doc)
1099 ("pkg-config" ,pkg-config)))
1100 (synopsis "Library for registering global keyboard shortcuts")
1102 "Keybinder is a library for registering global keyboard shortcuts.
1103 Keybinder works with GTK-based applications using the X Window System.")
1104 (home-page "https://github.com/kupferlauncher/keybinder")
1105 (license license:gpl2+)))
1107 (define-public keybinder-3.0
1109 (name "keybinder-3.0")
1114 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1115 "/releases/download/" name "-v" version "/" name "-"
1117 (file-name (string-append name "-" version ".tar.gz"))
1120 "0830ihwnalw59pp1xzrp37dn58n8vwb8zasnm4a1h81v3x7dxqz6"))))
1121 (build-system gnu-build-system)
1124 ("gobject-introspection" ,gobject-introspection)))
1126 `(("gtk-doc" ,gtk-doc)
1127 ("pkg-config" ,pkg-config)))
1128 (synopsis "Library for registering global keyboard shortcuts, Gtk3 version")
1130 "Keybinder is a library for registering global keyboard shortcuts.
1131 Keybinder works with GTK-based applications using the X Window System.")
1132 (home-page "https://github.com/kupferlauncher/keybinder")
1133 (license license:x11)))
1135 (define-public spectrwm
1143 (url "https://github.com/conformal/spectrwm")
1145 (string-append "SPECTRWM_"
1146 (string-join (string-split version #\.) "_")))))
1147 (file-name (git-file-name name version))
1149 (base32 "1dfqy5f0s1nv6rqkz9lj006vypmp4rwxd5vczfk3ndzqgnh19kw6"))))
1150 (build-system gnu-build-system)
1152 `(#:make-flags (let ((pkg-config (lambda (flag)
1154 "$(shell pkg-config " flag " "
1155 "xft fontconfig x11 libpng)"))))
1158 (string-append "PREFIX=" %output)
1159 (string-append "INCS=-I. " (pkg-config "--cflags"))
1160 (string-append "LIBS=" (pkg-config "--libs") " -lm")))
1161 #:tests? #f ;no test suite
1163 (modify-phases %standard-phases
1164 (add-before 'build 'change-dir
1166 (chdir "linux") #t))
1167 (add-after 'change-dir 'patch-makefile
1169 (substitute* "Makefile"
1171 (delete 'configure)))) ;no 'configure' exists
1173 `(("freetype" ,freetype)
1174 ("fontconfig" ,fontconfig)
1176 ("libxcursor" ,libxcursor)
1177 ("libxrandr" ,libxrandr)
1178 ("libxtst" ,libxtst)
1180 ("xcb-util" ,xcb-util)
1181 ("xcb-util-wm" ,xcb-util-wm)
1182 ("xcb-util-keysyms" ,xcb-util-keysyms)))
1185 ("pkg-config" ,pkg-config)))
1186 (synopsis "Minimalistic automatic tiling window manager")
1188 "Spectrwm is a small dynamic tiling and reparenting window manager for X11.
1189 It is inspired by Xmonad and dwm. Its major features include:
1192 @item Navigation anywhere on all screens with either the keyboard or mouse
1193 @item Customizable status bar
1194 @item Restartable without losing state
1195 @item Quick launch menu
1196 @item Many screen layouts possible with a few simple key strokes
1197 @item Move/resize floating windows
1198 @item Extended Window Manager Hints (@dfn{EWMH}) support
1199 @item Configurable tiling
1200 @item Adjustable tile gap allows for a true one pixel border
1201 @item Customizable colors and border width
1203 (home-page "https://github.com/conformal/spectrwm")
1204 (license license:isc)))
1213 (uri (string-append "https://leahneukirchen.org/releases/cwm-"
1217 "0p350pbfn92m21jiq4i324sdskxhs71p435g0mgz7cmzprnhhg92"))))
1218 (build-system gnu-build-system)
1220 `(#:make-flags (list "CC=gcc"
1221 (string-append "PREFIX=" %output))
1224 (modify-phases %standard-phases
1226 (add-after 'build 'install-xsession
1227 (lambda* (#:key outputs #:allow-other-keys)
1228 ;; Add a .desktop file to xsessions.
1229 (let* ((output (assoc-ref outputs "out"))
1230 (xsessions (string-append output "/share/xsessions")))
1232 (with-output-to-file
1233 (string-append xsessions "/cwm.desktop")
1238 Comment=OpenBSD Calm Window Manager fork~@
1240 TryExec=~@*~a/bin/cwm~@
1246 `(("libxft" ,libxft)
1247 ("libxrandr" ,libxrandr)
1248 ("libxinerama" ,libxinerama)))
1250 `(("pkg-config" ,pkg-config)
1252 (home-page "https://github.com/leahneukirchen/cwm")
1253 (synopsis "OpenBSD fork of the calmwm window manager")
1254 (description "Cwm is a stacking window manager for X11. It is an OpenBSD
1255 project derived from the original Calm Window Manager.")
1256 (license license:isc)))
1258 (define-public nitrogen
1264 (uri (string-append "http://github.com/l3ib/nitrogen/"
1265 "releases/download/" version "/"
1266 name "-" version ".tar.gz"))
1269 "0zc3fl1mbhq0iyndy4ysmy8vv5c7xwf54rbgamzfhfvsgdq160pl"))))
1270 (build-system gnu-build-system)
1275 ("glibmm" ,glibmm)))
1277 `(("pkg-config" ,pkg-config)))
1278 (home-page "http://projects.l3ib.org/nitrogen/")
1279 (synopsis "Background browser and setter for X windows")
1281 "This package is a background browser and setter for X windows. It's
1285 @item Multihead and Xinerama aware
1286 @item Recall mode to used via startup script
1287 @item Uses freedesktop.org standard for thumbnails
1288 @item Can set GNOME background
1289 @item Command lie set modes for script use
1290 @item Inotify monitoring of browse directory
1291 @item Lazy loading of thumbnails - conserves memory
1292 @item \"Automatic\" set mode - determines best mode to set an image based on
1294 @item Display preview images in a tiled icon layout
1296 (license license:gpl2+)))
1298 (define-public polybar
1305 (uri (string-append "https://github.com/polybar/polybar/releases/"
1306 "download/" version "/polybar-" version ".tar"))
1308 (base32 "0bw22qvbcdvyd0qv3ax48r34rnclbbb6dyb8h8zljq1r3lf15vfl"))))
1309 (build-system cmake-build-system)
1311 ;; Test is disabled because it requires downloading googletest from the
1315 `(("alsa-lib" ,alsa-lib)
1318 ("jsoncpp" ,jsoncpp)
1319 ("libmpdclient" ,libmpdclient)
1322 ("pulseaudio" ,pulseaudio)
1323 ("xcb-proto" ,xcb-proto)
1324 ("xcb-util" ,xcb-util)
1325 ("xcb-util-cursor" ,xcb-util-cursor)
1326 ("xcb-util-image" ,xcb-util-image)
1327 ("xcb-util-wm" ,xcb-util-wm)
1328 ("xcb-util-xrm" ,xcb-util-xrm)))
1330 `(("pkg-config" ,pkg-config)
1331 ("python-sphinx" ,python-sphinx) ; for the manual
1332 ;; XXX: "python" input must be located after "python-2", or the package
1333 ;; fails to build with "missing required python module: xcbgen".
1334 ("python-2" ,python-2) ; lib/xpp depends on python 2
1335 ("python" ,python))) ; xcb-proto depends on python 3
1336 (home-page "https://polybar.github.io/")
1337 (synopsis "Fast and easy-to-use status bar")
1338 (description "Polybar aims to help users build beautiful and highly
1339 customizable status bars for their desktop environment. It has built-in
1340 functionality to display information about the most commonly used services.")
1341 (license license:expat)))
1343 (define-public wlroots
1351 (url "https://github.com/swaywm/wlroots")
1353 (file-name (git-file-name name version))
1355 (base32 "01j38lmgs2c6fq68v8b75pkilia2wsgzgp46ivfbi9hhx47kgcfn"))))
1356 (build-system meson-build-system)
1358 `(#:configure-flags '("-Dlogind-provider=elogind")
1361 (modify-phases %standard-phases
1362 (add-before 'configure 'hardcode-paths
1363 (lambda* (#:key inputs #:allow-other-keys)
1364 (substitute* "xwayland/server.c"
1365 (("Xwayland") (string-append (assoc-ref inputs
1366 "xorg-server-xwayland")
1370 `(;; As required by wlroots.pc.
1371 ("elogind" ,elogind)
1373 ("libinput" ,libinput)
1374 ("libxkbcommon" ,libxkbcommon)
1377 ("wayland" ,wayland)
1378 ("xcb-util-errors" ,xcb-util-errors)
1379 ("xcb-util-wm" ,xcb-util-wm)
1380 ("xorg-server-xwayland" ,xorg-server-xwayland)))
1382 `(("pkg-config" ,pkg-config)
1383 ("wayland-protocols" ,wayland-protocols)))
1384 (home-page "https://github.com/swaywm/wlroots")
1385 (synopsis "Pluggable, composable, unopinionated modules for building a
1386 Wayland compositor")
1387 (description "wlroots is a set of pluggable, composable, unopinionated
1388 modules for building a Wayland compositor.")
1389 (license license:expat))) ; MIT license
1399 (url "https://github.com/swaywm/sway")
1401 (file-name (git-file-name name version))
1403 (base32 "1xsa3h8zhf29p0mi90baxpr76jkd9pd1gr97ky8cnjbcs4isj9j0"))))
1404 (build-system meson-build-system)
1407 (modify-phases %standard-phases
1408 (add-before 'configure 'hardcode-paths
1409 (lambda* (#:key inputs #:allow-other-keys)
1410 ;; Hardcode path to swaybg.
1411 (substitute* "sway/config.c"
1412 (("strdup..swaybg..")
1413 (string-append "strdup(\"" (assoc-ref inputs "swaybg")
1415 ;; Hardcode path to scdoc.
1416 (substitute* "meson.build"
1417 (("scdoc.get_pkgconfig_variable..scdoc..")
1418 (string-append "'" (assoc-ref inputs "scdoc")
1421 (inputs `(("cairo" ,cairo)
1422 ("elogind" ,elogind)
1423 ("gdk-pixbuf" ,gdk-pixbuf)
1425 ("libevdev" ,libevdev)
1426 ("libinput" ,libinput)
1427 ("libxkbcommon" ,libxkbcommon)
1430 ("wayland" ,wayland)
1431 ("wlroots" ,wlroots)))
1433 `(("linux-pam" ,linux-pam)
1435 ("pkg-config" ,pkg-config)
1437 ("wayland-protocols" ,wayland-protocols)))
1438 (home-page "https://github.com/swaywm/sway")
1439 (synopsis "Wayland compositor compatible with i3")
1440 (description "Sway is a i3-compatible Wayland compositor.")
1441 (license license:expat)))
1443 (define-public swayidle
1451 (url "https://github.com/swaywm/swayidle")
1453 (file-name (git-file-name name version))
1455 (base32 "1nd3v8r9549lykdwh4krldfl59lzaspmmai5k1icy7dvi6kkr18r"))))
1456 (build-system meson-build-system)
1458 `(#:configure-flags '("-Dlogind-provider=elogind")))
1459 (inputs `(("elogind" ,elogind)
1460 ("wayland" ,wayland)))
1461 (native-inputs `(("pkg-config" ,pkg-config)
1463 ("wayland-protocols" ,wayland-protocols)))
1464 (home-page "https://github.com/swaywm/sway")
1465 (synopsis "Idle management daemon for Wayland compositors")
1466 (description "Swayidle is a idle management daemon for Wayland compositors.")
1467 (license license:expat))) ; MIT license
1469 (define-public swaylock
1477 (url "https://github.com/swaywm/swaylock")
1479 (file-name (git-file-name name version))
1481 (base32 "0r95p4w11dwm5ra614vddz83r8j7z6gd120z2vcchy7m9b0f15kf"))))
1482 (build-system meson-build-system)
1483 (inputs `(("cairo" ,cairo)
1484 ("gdk-pixbuf" ,gdk-pixbuf)
1485 ("libxkbcommon" ,libxkbcommon)
1486 ;("linux-pam" ,linux-pam) ; FIXME: Doesn't work.
1487 ("wayland" ,wayland)))
1488 (native-inputs `(("pango" ,pango)
1489 ("pkg-config" ,pkg-config)
1491 ("wayland-protocols" ,wayland-protocols)))
1492 (home-page "https://github.com/swaywm/sway")
1493 (synopsis "Screen locking utility for Wayland compositors")
1494 (description "Swaylock is a screen locking utility for Wayland compositors.")
1495 (license license:expat))) ; MIT license
1497 (define-public swaybg
1505 (url "https://github.com/swaywm/swaybg")
1507 (file-name (git-file-name name version))
1509 (base32 "1lmqz5bmig90gq2m7lwf02d2g7z4hzf8fhqz78c8vk92c6p4xwbc"))))
1510 (build-system meson-build-system)
1511 (inputs `(("cairo" ,cairo)
1512 ("gdk-pixbuf" ,gdk-pixbuf)
1513 ("wayland" ,wayland)))
1514 (native-inputs `(("pkg-config" ,pkg-config)
1516 ("wayland-protocols" ,wayland-protocols)))
1517 (home-page "https://github.com/swaywm/sway")
1518 (synopsis "Screen wallpaper utility for Wayland compositors")
1519 (description "Swaybg is a wallpaper utility for Wayland compositors.")
1520 (license license:expat))) ; MIT license
1522 (define-public waybar
1530 (url "https://github.com/Alexays/Waybar")
1532 (file-name (git-file-name name version))
1534 (base32 "038vnma7y7z81caywp45yr364bc1aq8d01j5vycyiyfv33nm76fy"))))
1535 (build-system meson-build-system)
1536 (inputs `(("date" ,date)
1538 ("gtk-layer-shell" ,gtk-layer-shell)
1540 ("jsoncpp" ,jsoncpp)
1541 ("libdbusmenu" ,libdbusmenu)
1542 ("libinput" ,libinput)
1543 ("libmpdclent" ,libmpdclient)
1545 ("pulseaudio" ,pulseaudio)
1547 ("wayland" ,wayland)))
1549 `(("gcc" ,gcc-8) ; for #include <filesystem>
1550 ("glib:bin" ,glib "bin")
1551 ("pkg-config" ,pkg-config)
1553 ("wayland-protocols" ,wayland-protocols)))
1554 (home-page "https://github.com/Alexays/Waybar")
1555 (synopsis "Wayland bar for Sway and Wlroots based compositors")
1556 (description "Waybar is a highly customisable Wayland bar for Sway and
1557 Wlroots based compositors.")
1558 (license license:expat))) ; MIT license
1568 (url "https://github.com/emersion/mako")
1569 (commit (string-append "v" version))))
1570 (file-name (git-file-name name version))
1572 (base32 "0hwvibpnrximb628w9dsfjpi30b5jy7nfkm4d94z5vhp78p43vxh"))))
1573 (build-system meson-build-system)
1574 (inputs `(("cairo" ,cairo)
1575 ("elogind" ,elogind)
1576 ("gdk-pixbuf" ,gdk-pixbuf)
1578 ("wayland" ,wayland)))
1579 (native-inputs `(("pkg-config" ,pkg-config)
1581 ("wayland-protocols" ,wayland-protocols)))
1582 (home-page "https://wayland.emersion.fr/mako")
1583 (synopsis "Lightweight Wayland notification daemon")
1584 (description "Mako is a lightweight notification daemon for Wayland
1585 compositors that support the layer-shell protocol.")
1586 (license license:expat))) ; MIT license
1588 (define-public stumpwm
1596 (url "https://github.com/stumpwm/stumpwm")
1598 (file-name (git-file-name "stumpwm" version))
1600 (base32 "1ha8803ll7472kqxsy2xz0v5d4sv8apmc9z631d67m31q0z1m9rz"))))
1601 (build-system asdf-build-system/sbcl)
1602 (native-inputs `(("fiasco" ,sbcl-fiasco)
1603 ("texinfo" ,texinfo)
1605 ;; To build the manual.
1606 ("autoconf" ,autoconf)
1607 ("automake" ,automake)))
1608 (inputs `(("cl-ppcre" ,sbcl-cl-ppcre)
1610 ("alexandria" ,sbcl-alexandria)))
1611 (outputs '("out" "lib"))
1613 '(#:asd-systems '("stumpwm")
1615 (modify-phases %standard-phases
1616 (add-after 'create-asdf-configuration 'build-program
1617 (lambda* (#:key outputs #:allow-other-keys)
1619 (string-append (assoc-ref outputs "out") "/bin/stumpwm")
1621 #:entry-program '((stumpwm:stumpwm) 0))))
1622 (add-after 'build-program 'create-desktop-file
1623 (lambda* (#:key outputs #:allow-other-keys)
1624 (let* ((out (assoc-ref outputs "out"))
1625 (xsessions (string-append out "/share/xsessions")))
1627 (call-with-output-file
1628 (string-append xsessions "/stumpwm.desktop")
1633 Comment=The Stump Window Manager~@
1634 Exec=~a/bin/stumpwm~@
1635 TryExec=~@*~a/bin/stumpwm~@
1640 (add-after 'install 'install-manual
1641 (lambda* (#:key (make-flags '()) outputs #:allow-other-keys)
1642 (let* ((out (assoc-ref outputs "out"))
1643 (info (string-append out "/share/info")))
1644 (invoke "./autogen.sh")
1645 (invoke "sh" "./configure" "SHELL=sh")
1646 (apply invoke "make" "stumpwm.info" make-flags)
1647 (install-file "stumpwm.info" info)
1649 (synopsis "Window manager written in Common Lisp")
1650 (description "Stumpwm is a window manager written entirely in Common Lisp.
1651 It attempts to be highly customizable while relying entirely on the keyboard
1652 for input. These design decisions reflect the growing popularity of
1653 productive, customizable lisp based systems.")
1654 (home-page "https://github.com/stumpwm/stumpwm")
1655 (license license:gpl2+)
1656 (properties `((cl-source-variant . ,(delay cl-stumpwm))))))
1658 (define-public sbcl-stumpwm
1659 (deprecated-package "sbcl-stumpwm" stumpwm))
1661 (define-public cl-stumpwm
1663 (inherit (sbcl-package->cl-source-package stumpwm))
1664 (name "cl-stumpwm")))
1666 (define-public stumpwm+slynk
1669 (name "stumpwm-with-slynk")
1672 `(("stumpwm" ,stumpwm "lib")
1673 ("slynk" ,sbcl-slynk)))
1675 (substitute-keyword-arguments (package-arguments stumpwm)
1677 `(modify-phases ,phases
1678 (replace 'build-program
1679 (lambda* (#:key inputs outputs #:allow-other-keys)
1680 (let* ((out (assoc-ref outputs "out"))
1681 (program (string-append out "/bin/stumpwm")))
1682 (build-program program outputs
1683 #:entry-program '((stumpwm:stumpwm) 0)
1684 #:dependencies '("stumpwm" "slynk")
1685 #:dependency-prefixes
1686 (map (lambda (input) (assoc-ref inputs input))
1687 '("stumpwm" "slynk")))
1689 (delete 'copy-source)
1692 (delete 'cleanup)))))))
1694 (define stumpwm-contrib
1695 (let ((commit "920f8fc1488f7953f205e1dda4c2ecbbbda56d63")
1698 (name "stumpwm-contrib")
1699 (version (git-version "0.0.1" revision commit)) ;no upstream release
1704 (url "https://github.com/stumpwm/stumpwm-contrib")
1706 (file-name (git-file-name name version))
1708 (base32 "0giac390bq95ag41xkxqp8jjrhfx1wpgglz7jg5rkm0wjhcwmyml"))))
1709 (build-system asdf-build-system/sbcl)
1711 `(("stumpwm" ,stumpwm "lib")))
1712 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1713 (synopsis "StumpWM interactive shell")
1714 (description "This package provides a StumpWM interactive shell.")
1715 (license (list license:gpl2+ license:gpl3+ license:bsd-2)))))
1717 (define-public stumpish
1719 (inherit stumpwm-contrib)
1725 (build-system trivial-build-system)
1727 '(#:modules ((guix build utils))
1730 (use-modules (guix build utils))
1731 (copy-recursively (assoc-ref %build-inputs "source") ".")
1732 (chdir "util/stumpish")
1733 (substitute* "stumpish"
1734 (("rlwrap") (string-append (assoc-ref %build-inputs "rlwrap")
1736 (("xprop") (string-append (assoc-ref %build-inputs "xprop")
1738 (("/bin/sh") (string-append (assoc-ref %build-inputs "bash")
1740 (install-file "stumpish" (string-append %output "/bin")))))
1741 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1742 (synopsis "StumpWM interactive shell")
1743 (description "This package provides a StumpWM interactive shell.")
1744 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1746 (define-public sbcl-stumpwm+slynk
1747 (deprecated-package "sbcl-stumpwm-with-slynk" stumpwm+slynk))
1749 (define-public sbcl-stumpwm-ttf-fonts
1751 (inherit stumpwm-contrib)
1752 (name "sbcl-stumpwm-ttf-fonts")
1754 `(("stumpwm" ,stumpwm "lib")
1755 ("clx-truetype" ,sbcl-clx-truetype)))
1757 '(#:asd-systems '("ttf-fonts")
1760 (modify-phases %standard-phases
1761 (add-after 'unpack 'chdir
1762 (lambda _ (chdir "util/ttf-fonts") #t)))))
1763 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1764 (synopsis "Implementation of TTF font rendering for Lisp")
1765 (description "This package provides a Lisp implementation of TTF font
1767 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1769 (define-public sbcl-stumpwm-pass
1771 (inherit stumpwm-contrib)
1772 (name "sbcl-stumpwm-pass")
1774 '(#:asd-systems '("pass")
1777 (modify-phases %standard-phases
1778 (add-after 'unpack 'chdir
1779 (lambda _ (chdir "util/pass") #t)))))
1780 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1781 (synopsis "Integrate @code{pass} with StumpWM")
1782 (description "This package provides an interface which integrates
1783 password-store into StumpWM.")
1784 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1786 (define-public sbcl-stumpwm-globalwindows
1788 (inherit stumpwm-contrib)
1789 (name "sbcl-stumpwm-globalwindows")
1791 '(#:asd-systems '("globalwindows")
1794 (modify-phases %standard-phases
1795 (add-after 'unpack 'chdir
1796 (lambda _ (chdir "util/globalwindows") #t)))))
1797 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1798 (synopsis "Manipulate all windows in the current X session")
1799 (description "This package provides a StumpWM module to manipulate all
1800 windows in the current X session.")
1801 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1803 (define-public sbcl-stumpwm-swm-gaps
1805 (inherit stumpwm-contrib)
1806 (name "sbcl-stumpwm-swm-gaps")
1808 '(#:asd-systems '("swm-gaps")
1811 (modify-phases %standard-phases
1812 (add-after 'unpack 'chdir
1813 (lambda _ (chdir "util/swm-gaps") #t)))))
1814 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1815 (synopsis "Gaps between windows for StumpWM")
1816 (description "This package provides a StumpWM module which adds gaps
1818 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1820 (define-public sbcl-stumpwm-net
1822 (inherit stumpwm-contrib)
1823 (name "sbcl-stumpwm-net")
1825 '(#:asd-systems '("net")
1828 (modify-phases %standard-phases
1829 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/net") #t)))))
1831 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/net")
1832 (synopsis "Modeline support for network connectivity")
1833 (description "Modeline support for network connectivity.")
1835 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1836 (license license:gpl3+)))
1838 (define-public sbcl-stumpwm-wifi
1840 (inherit stumpwm-contrib)
1841 (name "sbcl-stumpwm-wifi")
1843 '(#:asd-systems '("wifi")
1846 (modify-phases %standard-phases
1847 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/wifi") #t)))))
1849 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/wifi")
1850 (synopsis "Modeline support for wifi connectivity")
1851 (description "Modeline support for wifi connectivity.")
1853 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1854 (license license:gpl3+)))
1856 (define-public sbcl-stumpwm-stumptray
1858 (inherit stumpwm-contrib)
1859 (name "sbcl-stumpwm-stumptray")
1861 '(#:asd-systems '("stumptray")
1864 (modify-phases %standard-phases
1865 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/stumptray") #t)))))
1867 `(("stumpwm" ,stumpwm "lib")
1868 ("xembed" ,sbcl-clx-xembed)
1869 ("alexandria" ,sbcl-alexandria)))
1871 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/stumptray")
1872 (synopsis "Modeline support for stumptray connectivity")
1873 (description "Modeline support for stumptray connectivity.")
1875 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1876 (license license:gpl3+)))
1878 (define-public sbcl-stumpwm-kbd-layouts
1880 (inherit stumpwm-contrib)
1881 (name "sbcl-stumpwm-kbd-layouts")
1883 '(#:asd-systems '("kbd-layouts")
1886 (modify-phases %standard-phases
1887 (add-after 'unpack 'chdir (lambda _ (chdir "util/kbd-layouts") #t)))))
1889 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/kbd-layouts")
1890 (synopsis "Keyboard layout switcher for StumpWM")
1891 (description "Keyboard layout switcher for StumpWM")
1892 (license license:gpl3+)))
1894 (define-public lemonbar
1895 (let ((commit "35183ab81d2128dbb7b6d8e119cc57846bcefdb4")
1899 (version (git-version "1.3" revision commit))
1903 (url "https://github.com/LemonBoy/bar")
1905 (file-name (git-file-name name version))
1908 "1wwqbph392iwz8skaqxb0xpklb1l6yganqz80g4x1fhrnz7idmlh"))))
1909 (build-system gnu-build-system)
1911 `(#:tests? #f ; no test suite
1913 (list ,(string-append "CC=" (cc-for-target))
1914 (string-append "PREFIX=" %output))
1916 (modify-phases %standard-phases
1917 (delete 'configure))))
1919 `(("libxcb" ,libxcb)))
1922 (home-page "https://github.com/LemonBoy/bar")
1923 (synopsis "Featherweight status bar")
1925 "@code{lemonbar} (formerly known as @code{bar}) is a lightweight
1926 bar entirely based on XCB. Provides full UTF-8 support, basic
1927 formatting, RandR and Xinerama support and EWMH compliance without
1928 wasting your precious memory.")
1929 (license license:x11))))
1931 (define-public xclickroot
1932 (let ((commit "309fd17174dba4149b5ea66654c6fd02cfcf7c9a")
1936 (version (git-version "0.0.1" revision commit)) ;no upstream release
1940 (url "https://github.com/phillbush/xclickroot")
1942 (file-name (git-file-name name version))
1945 "0fjqkg3wnyks0my1vrzhxfjicsfy8xwnijaazmpz6mhilcqkpvnd"))))
1946 (build-system gnu-build-system)
1948 `(("libx11" ,libx11)))
1950 `(#:tests? #f ;no test suite
1952 (list ,(string-append "CC=" (cc-for-target))
1953 (string-append "PREFIX=" %output))
1955 (modify-phases %standard-phases
1956 (delete 'configure))))
1957 (home-page "https://github.com/phillbush/xclickroot")
1958 (synopsis "Run a command when a mouse button is pressed on the root window")
1959 (description "@code{xclickroot} runs a command every time a given mouse
1960 button is pressed on the root window.")
1961 (license license:public-domain))))
1963 (define-public xmenu
1970 (url "https://github.com/phillbush/xmenu")
1971 (commit (string-append "v" version))))
1972 (file-name (git-file-name name version))
1975 "1sw9l87fh03jp03a2v7rhgpyx29yg2x9blzfzp40jwad2whs7m7n"))))
1976 (build-system gnu-build-system)
1978 `(("libx11" ,libx11)
1980 ("freetype" ,freetype)
1981 ("imlib2" ,imlib2)))
1983 `(#:tests? #f ;no test suite
1985 (list (string-append "CC=" ,(cc-for-target))
1986 (string-append "PREFIX=" %output)
1987 (string-append "CFLAGS="
1988 "-I" (assoc-ref %build-inputs "freetype")
1989 "/include/freetype2"))
1991 (modify-phases %standard-phases
1992 (delete 'configure))))
1993 (home-page "https://github.com/phillbush/xmenu")
1994 (synopsis "Menu utility for X")
1995 (description "@code{xmenu} receives a menu specification in stdin, shows
1996 a menu for the user to select one of the options, and outputs the option
1997 selected to stdout. It can be controlled both via mouse and via keyboard.")
1998 (license license:public-domain)))
2000 (define-public idesk
2008 "mirror://sourceforge/idesk/idesk/idesk-" version
2009 "/idesk-" version ".tar.bz2"))
2012 "1lxk2yvgysxwl514zc82lwr1dwc8cd62slgr5lzdhjbdrxfymdyl"))
2013 (modules '((guix build utils)
2016 '(let* ((file "src/DesktopConfig.cpp")
2017 (template (string-append file ".XXXXXX"))
2018 (out (mkstemp! template))
2020 (mode (stat:mode st)))
2021 (call-with-ascii-input-file file
2023 (format out "~{~a~%~}" '("#include <unistd.h>"
2024 "#include <sys/stat.h>"
2025 "#include <sys/types.h>"))
2028 (chmod template mode)
2029 (rename-file template file)
2031 (build-system gnu-build-system)
2033 `(("libx11" ,libx11)
2037 ("freetype" ,freetype)
2041 `(("pkg-config" ,pkg-config)))
2043 `(#:tests? #f)) ;no test suite
2044 (home-page "https://sourceforge.net/projects/idesk/")
2045 (synopsis "Add icons on X desktop and set background image for wallpaper")
2046 (description "Idesk is program that draws desktop icons. Each icon will
2047 execute a shell command on a configurable action. The icons can be moved on
2048 the desktop by dragging them, and the icons will remember their positions on
2050 (license license:bsd-3)))
2052 (define-public xnotify
2059 (url "https://github.com/phillbush/xnotify")
2060 (commit (string-append "v" version))))
2061 (file-name (git-file-name name version))
2064 "0ris7jhi7hgw7nxkwkn3zk7n3y4nvnnm6dbz0qs0g2srp2k67v7v"))))
2065 (build-system gnu-build-system)
2067 `(("libx11" ,libx11)
2069 ("libxinerama" ,libxinerama)
2070 ("imlib2" ,imlib2)))
2073 (list (string-append "CC=" ,(cc-for-target))
2074 (string-append "PREFIX=" %output)
2075 (string-append "CFLAGS="
2076 "-I" (assoc-ref %build-inputs "freetype")
2077 "/include/freetype2"))
2078 #:tests? #f ;no test suite
2080 (modify-phases %standard-phases
2081 (delete 'configure))))
2082 (home-page "https://github.com/phillbush/xnotify")
2083 (synopsis "Displays a notification on the screen")
2084 (description "XNotify receives a notification specification in stdin and
2085 shows a notification for the user on the screen.")
2086 (license license:expat)))