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 Marius Bakke <mbakke@fastmail.com>
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 calendar)
76 #:use-module (gnu packages docbook)
77 #:use-module (gnu packages documentation)
78 #:use-module (gnu packages fontutils)
79 #:use-module (gnu packages freedesktop)
80 #:use-module (gnu packages fribidi)
81 #:use-module (gnu packages gawk)
82 #:use-module (gnu packages gcc)
83 #:use-module (gnu packages gl)
84 #:use-module (gnu packages glib)
85 #:use-module (gnu packages gperf)
86 #:use-module (gnu packages gtk)
87 #:use-module (gnu packages haskell-check)
88 #:use-module (gnu packages haskell-web)
89 #:use-module (gnu packages haskell-xyz)
90 #:use-module (gnu packages image)
91 #:use-module (gnu packages imagemagick)
92 #:use-module (gnu packages libevent)
93 #:use-module (gnu packages linux)
94 #:use-module (gnu packages lisp-xyz)
95 #:use-module (gnu packages logging)
96 #:use-module (gnu packages lua)
97 #:use-module (gnu packages m4)
98 #:use-module (gnu packages man)
99 #:use-module (gnu packages maths)
100 #:use-module (gnu packages mpd)
101 #:use-module (gnu packages pcre)
102 #:use-module (gnu packages perl)
103 #:use-module (gnu packages pkg-config)
104 #:use-module (gnu packages pretty-print)
105 #:use-module (gnu packages pulseaudio)
106 #:use-module (gnu packages python)
107 #:use-module (gnu packages readline)
108 #:use-module (gnu packages serialization)
109 #:use-module (gnu packages sphinx)
110 #:use-module (gnu packages suckless)
111 #:use-module (gnu packages texinfo)
112 #:use-module (gnu packages textutils)
113 #:use-module (gnu packages video)
114 #:use-module (gnu packages web)
115 #:use-module (gnu packages xdisorg)
116 #:use-module (gnu packages xml)
117 #:use-module (gnu packages xorg))
127 (url "https://github.com/baskerville/bspwm")
129 (file-name (git-file-name name version))
131 (base32 "0qlv7b4c2mmjfd65y100d11x8iqyg5f6lfiws3cgmpjidhdygnxc"))))
132 (build-system gnu-build-system)
135 ("libxinerama" ,libxinerama)
137 ("xcb-util" ,xcb-util)
138 ("xcb-util-keysyms" ,xcb-util-keysyms)
139 ("xcb-util-wm" ,xcb-util-wm)))
142 (modify-phases %standard-phases
143 (delete 'configure)) ; no configure script
144 #:tests? #f ; no check target
147 (string-append "PREFIX=" %output))))
148 (home-page "https://github.com/baskerville/bspwm")
149 (synopsis "Tiling window manager based on binary space partitioning")
150 (description "bspwm is a tiling window manager that represents windows as
151 the leaves of a full binary tree.")
152 (license license:bsd-2)))
154 (define-public herbstluftwm
156 (name "herbstluftwm")
161 (uri (string-append "https://herbstluftwm.org/tarballs/herbstluftwm-"
164 (base32 "1qmb4pjf2f6g0dvcg11cw9njwmxblhqzd70ai8qnlgqw1iz3nkm1"))
165 (file-name (string-append "herbstluftwm-" version ".tar.gz"))))
166 (build-system cmake-build-system)
173 ("xsetroot" ,xsetroot)
176 ("libxinerama" ,libxinerama)
177 ("libxrandr" ,libxrandr)))
179 `(("asciidoc" ,asciidoc)
180 ("pkg-config" ,pkg-config)))
184 (let ((out (assoc-ref %outputs "out")))
186 (string-append "-DCMAKE_INSTALL_SYSCONF_PREFIX=" out "/etc")
187 (string-append "-DBASHCOMPLETIONDIR=" out "/etc/bash_completion.d")))
189 (modify-phases %standard-phases
190 (add-after 'install 'install-xsession
191 (lambda* (#:key outputs #:allow-other-keys)
192 (let* ((out (assoc-ref outputs "out"))
193 (xsessions (string-append out "/share/xsessions")))
195 (call-with-output-file
196 (string-append xsessions "/herbstluftwm.desktop")
201 Comment=Manual tiling window manager~@
202 Exec=~a/bin/herbstluftwm~@
203 Type=XSession~%" out)))
205 (synopsis "Tiling window manager for X11")
206 (description "herbstluftwm is a manual tiling window manager for X11 using
207 Xlib and GLib. Its main features are:
211 The layout is based on splitting frames into subframes which can be split
212 again or can be filled with windows (similar to i3 or musca).
215 Tags (or workspaces or virtual desktops or …) can be added/removed at runtime.
216 Each tag contains an own layout.
219 Exactly one tag is viewed on each monitor. The tags are monitor independent
223 It is configured at runtime via IPC calls from @command{herbstclient}. So the
224 configuration file is just a script which is run on startup (similar to wmii
228 (home-page "https://herbstluftwm.org")
229 (license license:bsd-2)))
231 (define-public i3status
237 (uri (string-append "https://i3wm.org/i3status/i3status-"
241 "0rhlzb96mw64z2jnhwz9nibc7pxg549626lz5642xxk5hpzwk2ff"))))
242 (build-system gnu-build-system)
244 `(;; XXX: Do an "out of source" build to work around
245 ;; <https://github.com/i3/i3status/issues/339>.
247 #:tests? #f)) ; no test suite
249 `(("openlibm" ,openlibm)
250 ("libconfuse" ,libconfuse)
252 ("alsa-lib" ,alsa-lib)
253 ("pulseaudio" ,pulseaudio)
256 ("asciidoc" ,asciidoc)))
258 `(("pkg-config" ,pkg-config)
259 ("docbook-xsl" ,docbook-xsl)
260 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
262 (home-page "https://i3wm.org/i3status/")
263 (synopsis "Status bar for i3bar, dzen2, xmobar or similar programs")
264 (description "i3status is a small program for generating a status bar for
265 i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient
266 by issuing a very small number of system calls, as one generally wants to
267 update such a status line every second. This ensures that even under high
268 load, your status bar is updated correctly. Also, it saves a bit of energy by
269 not hogging your CPU as much as spawning the corresponding amount of shell
271 (license license:bsd-3)))
279 (uri (string-append "https://i3wm.org/downloads/i3-"
283 "03dijnwv2n8ak9jq59fhq0rc80m5wjc9d54fslqaivnnz81pkbjk"))))
284 (build-system gnu-build-system)
287 ;; The build system tries to build in a separate directory, but that
288 ;; seems to be unnecessary.
289 (list "--disable-builddir")
291 ;; The test suite requires the unpackaged Xephyr X server.
294 (modify-phases %standard-phases
295 (add-after 'install 'patch-session-file
296 (lambda* (#:key outputs #:allow-other-keys)
297 (let* ((out (assoc-ref outputs "out"))
298 (i3 (string-append out "/bin/i3"))
299 (i3-with-shmlog (string-append out "/bin/i3-with-shmlog")))
300 (substitute* (string-append out "/share/xsessions/i3.desktop")
301 (("Exec=i3") (string-append "Exec=" i3)))
302 (substitute* (string-append out "/share/xsessions/i3-with-shmlog.desktop")
303 (("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog)))
307 ("xcb-util" ,xcb-util)
308 ("xcb-util-cursor" ,xcb-util-cursor)
309 ("xcb-util-keysyms" ,xcb-util-keysyms)
310 ("xcb-util-wm" ,xcb-util-wm)
311 ("xcb-util-xrm" ,xcb-util-xrm)
312 ("libxkbcommon" ,libxkbcommon)
315 ("asciidoc" ,asciidoc)
317 ("perl-pod-simple" ,perl-pod-simple)
320 ("startup-notification" ,startup-notification)
326 ("pkg-config" ,pkg-config)
327 ;; For building the documentation.
329 ("docbook-xsl" ,docbook-xsl)))
330 (home-page "https://i3wm.org/")
331 (synopsis "Tiling window manager")
332 (description "i3 is a tiling X11 window manager that dynamically manages
333 tiled, stacked, and tabbed window layouts.
335 i3 primarily targets advanced users. Windows are managed manually and organised
336 inside containers, which can be split vertically or horizontally, and optionally
339 i3 uses a plain-text configuration file, and can be extended and controlled from
340 many programming languages.")
341 (license license:bsd-3)))
343 (define-public i3-gaps
344 (package (inherit i3-wm)
350 "https://github.com/Airblader/i3/releases/download/"
351 version "/i3-" version ".tar.bz2"))
354 "1hcakwyz78lgp8mhqv7pw86jlb3m415pfql1q19rkijnhm3fn3ci"))))
355 (home-page "https://github.com/Airblader/i3")
356 (synopsis "Tiling window manager with gaps")
357 (description "i3-gaps is a fork of i3wm, a tiling window manager
358 for X11. It is kept up to date with upstream, adding a few additional
359 features such as gaps between windows.
361 i3 is a tiling X11 window manager that dynamically manages tiled, stacked,
362 and tabbed window layouts.
364 i3 primarily targets advanced users. Windows are managed manually and
365 organised inside containers, which can be split vertically or horizontally,
366 and optionally resized.
368 i3 uses a plain-text configuration file, and can be extended and controlled
369 from many programming languages.")
370 (license license:bsd-3)))
372 (define-public i3lock
378 (uri (string-append "https://i3wm.org/i3lock/i3lock-"
382 "015dn534m7cxjvqdncpvaq9p8b2r4w5hp1yanbdy2abmhbcc7a7j"))))
383 (build-system gnu-build-system)
385 `(("pkg-config" ,pkg-config)))
389 ("linux-pam" ,linux-pam)
391 ("libxkbcommon" ,libxkbcommon)
392 ("xcb-util" ,xcb-util)
393 ("xcb-util-image" ,xcb-util-image)
394 ("xcb-util-xrm" ,xcb-util-xrm)))
395 (home-page "https://i3wm.org/i3lock/")
396 (synopsis "Lightweight screen locker")
398 "i3lock is a simple X11 screen locker developed alongside the i3 project.
399 Despite the name it should work with any X11 window manager.")
400 (license license:bsd-3)))
402 (define-public i3blocks
409 (url "https://github.com/vivien/i3blocks")
413 "0v8mwnm8qzpv6xnqvrk43s4b9iyld4naqzbaxk4ldq1qkhai0wsv"))
414 (file-name (git-file-name name version))))
415 (build-system gnu-build-system)
417 `(("autoconf" ,autoconf)
418 ("automake" ,automake)
419 ("pkg-config" ,pkg-config)))
420 (home-page "https://github.com/vivien/i3blocks")
421 (synopsis "Minimalist scheduler for status bar scripts")
422 (description "i3blocks executes your command lines and generates a
423 status line from their output. The generated line is meant to be displayed by
424 the i3 window manager through its i3bar component, as an alternative to
426 (license license:gpl3+)))
428 (define-public perl-anyevent-i3
430 (name "perl-anyevent-i3")
434 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTPLBG/"
435 "AnyEvent-I3-" version ".tar.gz"))
438 "0qvd9bq16jyy7v3ma82qcnvz9j503bw0mh7h55gkjf7ir62ck0jk"))))
439 (build-system perl-build-system)
441 `(("perl-anyevent" ,perl-anyevent)
442 ("perl-json-xs" ,perl-json-xs)))
443 (home-page "https://metacpan.org/release/AnyEvent-I3")
445 "Communicate with the i3 window manager through perl")
447 "This module connects to the i3 window manager using the UNIX socket
448 based IPC interface it provides (if enabled in the configuration file).
449 You can then subscribe to events or send messages and receive their replies.")
450 ;; Can be used with either license.
451 (license (list license:gpl3+ license:perl-license))))
453 (define-public python-i3-py
455 (name "python-i3-py")
459 ;; The latest release is not tagged in Git nor has an entry in PyPi,
460 ;; but there is still a clear commit for it, and it's been the last one
464 (url "https://github.com/ziberna/i3-py")
465 (commit "27f88a616e9ecc340e7d041d3d00782f8a1964c1")))
468 "1nm719dc2xqlll7vj4c4m7mpjb27lpn3bg3c66gajvnrz2x1nmxs"))
469 (file-name (string-append name "-" version "-checkout"))))
470 (build-system python-build-system)
472 `(#:tests? #f ; no tests yet
473 #:phases (modify-phases %standard-phases
474 (add-after 'install 'install-doc
475 ;; Copy readme file to documentation directory.
476 (lambda* (#:key outputs #:allow-other-keys)
477 (let ((doc (string-append (assoc-ref outputs "out")
478 "/share/doc/" ,name)))
479 (install-file "README.md" doc)
480 ;; Avoid unspecified return value.
484 (home-page "https://github.com/ziberna/i3-py")
485 (synopsis "Python interface to the i3 window manager")
486 (description "This package allows you to interact from a Python program
487 with the i3 window manager via its IPC socket. It can send commands and other
488 kinds of messages to i3, select the affected containers, filter results and
489 subscribe to events.")
490 (license license:gpl3+)))
492 (define-public python2-i3-py
493 (package-with-python2 python-i3-py))
495 (define-public quickswitch-i3
496 (let ((commit "ed692b1e8f43b95bd907ced26238ce8ccb2ed28f")
497 (revision "1")) ; Guix package revision
499 (name "quickswitch-i3")
500 (version (string-append "2.2-" revision "."
501 (string-take commit 7)))
504 ;; The latest commit is a few years old and just a couple commits
505 ;; after the last tagged release, so we use that latest commit
506 ;; instead of the release.
509 (url "https://github.com/proxypoke/quickswitch-for-i3")
513 "0447077sama80jcdg5p64zjsvafmz5rbdrirhm1adcdjhkh6iqc5"))
514 (patches (search-patches "quickswitch-fix-dmenu-check.patch"))
515 (file-name (string-append name "-" version "-checkout"))))
516 (build-system python-build-system)
518 `(#:tests? #f ; no tests yet
519 #:phases (modify-phases %standard-phases
520 (add-after 'install 'install-doc
521 ;; Copy readme file to documentation directory.
522 (lambda* (#:key outputs #:allow-other-keys)
523 (let ((doc (string-append (assoc-ref outputs "out")
524 "/share/doc/" ,name)))
525 (install-file "README.rst" doc)
526 ;; Avoid unspecified return value.
529 `(("python-i3-py" ,python-i3-py)
531 (home-page "https://github.com/proxypoke/quickswitch-for-i3")
532 (synopsis "Quickly change to and locate windows in the i3 window manager")
534 "This utility for the i3 window manager allows you to quickly switch to
535 and locate windows on all your workspaces, using an interactive dmenu
537 (license license:wtfpl2))))
539 (define-public i3lock-color
541 (name "i3lock-color")
547 (url "https://github.com/PandorasFox/i3lock-color")
549 (file-name (git-file-name name version))
551 (base32 "08fhnchf187b73h52xgzb86g6byzxz085zs9galsvl687g5zxk34"))))
552 (build-system gnu-build-system)
554 `(#:tests? #f)) ; no tests included
558 ("libjpeg" ,libjpeg-turbo)
560 ("libxkbcommon" ,libxkbcommon)
561 ("linux-pam" ,linux-pam)
562 ("xcb-util" ,xcb-util)
563 ("xcb-util-image" ,xcb-util-image)
564 ("xcb-util-xrm" ,xcb-util-xrm)))
566 `(("autoconf" ,autoconf)
567 ("automake" ,automake)
568 ("pkg-config" ,pkg-config)))
569 (home-page "https://github.com/PandorasFox/i3lock-color")
570 (synopsis "Screen locker with color configuration support")
572 "i3lock-color is a simpler X11 screen locker derived from i3lock.
576 @item forking process, the locked screen is preserved when you suspend to RAM;
577 @item specify background color or image to be displayed in the lock screen;
578 @item many additional color options.
580 (license license:bsd-3)))
582 (define-public i3lock-fancy
584 (name "i3lock-fancy")
590 (url "https://github.com/meskarune/i3lock-fancy")
592 (file-name (git-file-name name version))
594 (base32 "11g2kkim33ra38d1m897sq1ifajw17iyw9mr7sg1q8i2ibl4lfsi"))))
595 (build-system gnu-build-system)
597 `(#:tests? #f ; no tests included
599 (modify-phases %standard-phases
601 (lambda* (#:key inputs outputs #:allow-other-keys)
602 (let* ((out (assoc-ref outputs "out"))
603 (icons (string-append out "/share/i3lock-fancy/icons/"))
604 (wmctrl (string-append (assoc-ref inputs "wmctrl")
606 (mconvert (string-append (assoc-ref inputs "imagemagick")
608 (mimport (string-append (assoc-ref inputs "imagemagick")
610 (awk (string-append (assoc-ref inputs "gawk")
614 (("$(which wmctrl)") wmctrl)
615 (("convert") mconvert)
616 (("shot=\\(import") (string-append "shot=\(" mimport))
617 (("awk -F") (string-append awk " -F"))
619 (("\\$scriptpath/icons/") icons))
623 (lambda* (#:key inputs outputs #:allow-other-keys)
624 (let* ((out (assoc-ref outputs "out"))
625 (bin (string-append out "/bin"))
626 (icons (string-append out "/share/i3lock-fancy/icons/")))
628 (install-file "lock" bin)
629 (rename-file (string-append bin "/lock")
630 (string-append bin "/i3lock-fancy"))
631 (copy-recursively "icons" icons)
634 `(("imagemagick" ,imagemagick)
637 (home-page "https://github.com/meskarune/i3lock-fancy")
638 (synopsis "Screen locker with screenshot function")
640 "@code{i3lock-fancy} is a Bash script that takes a screenshot of
641 the desktop, blurs the background and adds a lock icon and text.
642 It requires @code{i3lock-color} or @code{i3lock} and can optionally
643 be passed any screenshot util like @code{scrot}.
644 This screen locker can be used with any window manager or
645 desktop environment.")
646 (license license:expat)))
648 (define-public xmonad
652 (synopsis "Tiling window manager")
655 (uri (string-append "mirror://hackage/package/xmonad/"
656 "xmonad-" version ".tar.gz"))
659 "0a7rh21k9y6g8fwkggxdxjns2grvvsd5hi2ls4klmqz5xvk4hyaa"))
660 (patches (search-patches "xmonad-dynamic-linking.patch"))))
661 (build-system haskell-build-system)
663 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
664 ("ghc-quickcheck" ,ghc-quickcheck)
665 ("ghc-semigroups" ,ghc-semigroups)
666 ("ghc-setlocale" ,ghc-setlocale)
667 ("ghc-utf8-string" ,ghc-utf8-string)
668 ("ghc-x11" ,ghc-x11)))
671 (modify-phases %standard-phases
673 'install 'install-xsession
675 (let* ((xsessions (string-append %output "/share/xsessions")))
677 (call-with-output-file
678 (string-append xsessions "/xmonad.desktop")
685 Type=Application~%" ,name ,synopsis %output)))))))))
686 (home-page "https://xmonad.org")
688 "Xmonad is a tiling window manager for X. Windows are arranged
689 automatically to tile the screen without gaps or overlap, maximising screen
690 use. All features of the window manager are accessible from the keyboard: a
691 mouse is strictly optional. Xmonad is written and extensible in Haskell.
692 Custom layout algorithms, and other extensions, may be written by the user in
693 config files. Layouts are applied dynamically, and different layouts may be
694 used on each workspace. Xinerama is fully supported, allowing windows to be
695 tiled on several screens.")
696 (license license:bsd-3)))
698 (define-public xmobar
704 (uri (string-append "mirror://hackage/package/xmobar/"
705 "xmobar-" version ".tar.gz"))
708 "0x09xbz7y9ay0046j1xpr9jjk5jqivqi06vm3q6mhcrgc4y922rx"))))
709 (build-system haskell-build-system)
711 `(("ghc-hspec" ,ghc-hspec)
712 ("hspec-discover" ,hspec-discover)))
714 `(("ghc-alsa-core" ,ghc-alsa-core)
715 ("ghc-alsa-mixer" ,ghc-alsa-mixer)
716 ("ghc-dbus" ,ghc-dbus)
717 ("ghc-hinotify" ,ghc-hinotify)
718 ("ghc-http" ,ghc-http)
719 ("ghc-http-conduit" ,ghc-http-conduit)
720 ("ghc-http-types" ,ghc-http-types)
721 ("ghc-iwlib" ,ghc-iwlib)
722 ("ghc-libmpd" ,ghc-libmpd)
723 ("ghc-old-locale" ,ghc-old-locale)
724 ("ghc-parsec-numbers" ,ghc-parsec-numbers)
725 ("ghc-regex-compat" ,ghc-regex-compat)
726 ("ghc-temporary" ,ghc-temporary)
727 ("ghc-timezone-olson" ,ghc-timezone-olson)
729 ("ghc-x11-xft" ,ghc-x11-xft)
732 `(#:configure-flags (list "--flags=all_extensions")
734 (modify-phases %standard-phases
735 (add-before 'build 'patch-test-shebang
736 (lambda* (#:key inputs #:allow-other-keys)
737 (substitute* "test/Xmobar/Plugins/Monitors/AlsaSpec.hs"
738 (("/bin/bash") (which "bash")))
740 (home-page "https://xmobar.org")
741 (synopsis "Minimalistic text based status bar")
743 "@code{xmobar} is a lightweight, text-based, status bar written in
744 Haskell. It was originally designed to be used together with Xmonad, but it
745 is also usable with any other window manager. While xmobar is written in
746 Haskell, no knowledge of the language is required to install and use it.")
747 (license license:bsd-3)))
749 (define-public yeganesh
757 (uri (string-append "http://dmwit.com/yeganesh/yeganesh-" version ".tar.gz"))
759 (base32 "04djfyjab3c5y9z9x8zd0xcx0jyy35zq7cl9ddr4ppf6k5ky6iky"))))
760 (build-system haskell-build-system)
762 `(("ghc-strict" ,ghc-strict)
763 ("ghc-xdg-basedir" ,ghc-xdg-basedir)))
764 (home-page "http://dmwit.com/yeganesh/")
765 (synopsis "Small wrapper around dmenu")
766 (description "@code{yeganesh} is a small wrapper around demnu. Like
767 dmenu, it accepts input on stdin and writes the chosen result on stdout.
768 Unlike dmenu, it mangles the input before it presents its choices. In
769 particular, it displays commonly-chosen options before uncommon ones.")
770 (license license:bsd-3)))
772 (define-public ghc-xmonad-contrib
774 (name "ghc-xmonad-contrib")
779 (uri (string-append "mirror://hackage/package/xmonad-contrib/"
780 "xmonad-contrib-" version ".tar.gz"))
782 (base32 "1pddgkvnbww28wykncc7j0yb0lv15bk7xnnhdcbrwkxzw66w6wmd"))))
783 (build-system haskell-build-system)
785 `(("ghc-old-time" ,ghc-old-time)
786 ("ghc-random" ,ghc-random)
787 ("ghc-utf8-string" ,ghc-utf8-string)
788 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
789 ("ghc-semigroups" ,ghc-semigroups)
791 ("ghc-x11-xft" ,ghc-x11-xft)
793 (home-page "https://xmonad.org")
794 (synopsis "Third party extensions for xmonad")
796 "Third party tiling algorithms, configurations, and scripts to Xmonad, a
797 tiling window manager for X.")
798 (license license:bsd-3)))
800 (define-public evilwm
807 (uri (string-append "http://www.6809.org.uk/evilwm/evilwm-"
811 "0ak0yajzk3v4dg5wmaghv6acf7v02a4iw8qxmq5yw5ard8lrqn3r"))
812 (patches (search-patches "evilwm-lost-focus-bug.patch"))))
813 (build-system gnu-build-system)
817 ("libxrandr" ,libxrandr)))
819 `(#:modules ((srfi srfi-26)
821 (guix build gnu-build-system))
822 #:make-flags (let ((inputs (map (cut assoc-ref %build-inputs <>)
823 '("libx11" "libxext" "libxrandr")))
824 (join (lambda (proc strs)
825 (string-join (map proc strs) " ")))
826 (dash-I (cut string-append "-I" <> "/include"))
827 (dash-L (cut string-append "-L" <> "/lib")))
828 `("desktopfilesdir=$(prefix)/share/xsessions"
829 ,(string-append "prefix=" (assoc-ref %outputs "out"))
830 ,(string-append "CPPFLAGS=" (join dash-I inputs))
831 ,(string-append "LDFLAGS=" (join dash-L inputs))))
832 #:tests? #f ;no tests
833 #:phases (modify-phases %standard-phases
834 (delete 'configure)))) ;no configure script
835 (home-page "http://www.6809.org.uk/evilwm/")
836 (synopsis "Minimalist window manager for the X Window System")
838 "evilwm is a minimalist window manager based on aewm, extended to feature
839 many keyboard controls with repositioning and maximize toggles, solid window
840 drags, snap-to-border support, and virtual desktops.")
841 (license (license:x11-style "file:///README"))))
843 (define-public fluxbox
847 (synopsis "Small and fast window manager")
850 (uri (string-append "mirror://sourceforge/fluxbox/fluxbox/"
851 version "/fluxbox-" version ".tar.xz"))
854 "1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w"))))
855 (build-system gnu-build-system)
857 `(#:make-flags '("CPPFLAGS=-U__TIME__") ;ugly, but for reproducibility
859 (modify-phases %standard-phases
860 (add-after 'install 'install-vim-files
861 (lambda* (#:key outputs #:allow-other-keys)
862 (let* ((out (assoc-ref outputs "out"))
863 (syntax (string-append out "/share/vim/vimfiles/syntax")))
864 (copy-recursively "3rd/vim/vim/syntax" syntax)
866 (add-after 'install 'install-xsession
867 (lambda* (#:key outputs #:allow-other-keys)
868 (let* ((out (assoc-ref outputs "out"))
869 (xsessions (string-append out "/share/xsessions")))
871 (call-with-output-file
872 (string-append xsessions "/fluxbox.desktop")
878 Exec=~a/bin/startfluxbox~@
879 Type=Application~%" ,name ,synopsis out)))
882 `(("pkg-config" ,pkg-config)))
884 `(("freetype" ,freetype)
890 ("libxinerama" ,libxinerama)
892 ("libxrandr" ,libxrandr)
893 ("libxrender" ,libxrender)))
894 (description "Fluxbox is a window manager. It is light on resources
895 and easy to handle yet full of features to make an easy and fast desktop
897 (home-page "http://fluxbox.org/")
898 (license license:expat)))
900 (define-public awesome
908 "https://github.com/awesomeWM/awesome-releases/raw/master/"
909 "awesome-" version ".tar.xz"))
911 (base32 "0lqpw401mkkmp9wgbvrmm45bqq2j9357l4irwdqv6l1305pls9kq"))
912 (modules '((guix build utils)
916 ;; Remove non-reproducible timestamp and use the date of
917 ;; the source file instead.
918 (substitute* "common/version.c"
919 (("__DATE__ \" \" __TIME__")
922 (make-time time-utc 0 (stat:mtime (stat "awesome.c"))))
926 (search-patches "awesome-reproducible-png.patch"))))
927 (build-system cmake-build-system)
929 `(("asciidoc" ,asciidoc)
930 ("docbook-xsl" ,docbook-xsl)
933 ("imagemagick" ,imagemagick)
934 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
935 ("lua-ldoc" ,lua-ldoc)
936 ("pkg-config" ,pkg-config)
941 ("gdk-pixbuf" ,gdk-pixbuf)
943 ("gobject-introspection" ,gobject-introspection)
947 ("libxcursor" ,libxcursor)
948 ("libxdg-basedir" ,libxdg-basedir)
949 ("libxkbcommon" ,libxkbcommon)
953 ("startup-notification" ,startup-notification)
954 ("xcb-util" ,xcb-util)
955 ("xcb-util-cursor" ,xcb-util-cursor)
956 ("xcb-util-image" ,xcb-util-image)
957 ("xcb-util-keysyms" ,xcb-util-keysyms)
958 ("xcb-util-renderutil" ,xcb-util-renderutil)
959 ("xcb-util-xrm" ,xcb-util-xrm)
960 ("xcb-util-wm" ,xcb-util-wm)))
962 `(#:modules ((guix build cmake-build-system)
965 ;; Let compression happen in our 'compress-documentation' phase
966 ;; so that '--no-name' is used, which removes timestamps from
969 '("-DCOMPRESS_MANPAGES=off")
970 ;; Building awesome in its source directory is no longer
974 (modify-phases %standard-phases
975 (add-before 'configure 'set-paths
976 (lambda* (#:key inputs #:allow-other-keys)
977 (substitute* "lib/awful/completion.lua"
980 ;; The build process needs to load Cairo dynamically.
981 (let* ((cairo (string-append (assoc-ref inputs "cairo") "/lib"))
982 (lua-version ,(version-major+minor (package-version lua)))
984 (filter (match-lambda
985 ((label . _) (string-prefix? "lua-" label)))
992 dir "/share/lua/" lua-version "/?.lua;"
993 dir "/share/lua/" lua-version "/?/?.lua")))
1001 dir "/lib/lua/" lua-version "/?.so;"
1002 dir "/lib/lua/" lua-version "/?/?.so")))
1005 (setenv "LD_LIBRARY_PATH" cairo)
1006 (setenv "LUA_PATH" (string-append "?.lua;" lua-path))
1007 (setenv "LUA_CPATH" lua-cpath)
1011 ;; There aren't any tests, so just make sure the binary
1012 ;; gets built and can be run successfully.
1013 (invoke "../build/awesome" "-v")))
1014 (add-after 'install 'patch-session-file
1015 (lambda* (#:key outputs #:allow-other-keys)
1016 (let* ((out (assoc-ref outputs "out"))
1017 (awesome (string-append out "/bin/awesome")))
1018 (substitute* (string-append out "/share/xsessions/awesome.desktop")
1019 (("Exec=awesome") (string-append "Exec=" awesome)))
1021 (add-after 'install 'wrap
1022 (lambda* (#:key inputs outputs #:allow-other-keys)
1023 (let* ((awesome (assoc-ref outputs "out"))
1024 (cairo (string-append (assoc-ref inputs "cairo") "/lib"))
1025 (lua-version ,(version-major+minor (package-version lua)))
1026 (lua-lgi (assoc-ref inputs "lua-lgi")))
1027 (wrap-program (string-append awesome "/bin/awesome")
1028 `("LUA_PATH" ";" suffix
1029 (,(format #f "~a/share/lua/~a/?.lua" lua-lgi lua-version)))
1030 `("LUA_CPATH" ";" suffix
1031 (,(format #f "~a/lib/lua/~a/?.so" lua-lgi lua-version)))
1032 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))
1033 `("LD_LIBRARY_PATH" suffix (,cairo)))
1035 (home-page "https://awesomewm.org/")
1036 (synopsis "Highly configurable window manager")
1038 "Awesome has been designed as a framework window manager. It is fast, small,
1039 dynamic and extensible using the Lua programming language.")
1040 (license license:gpl2+)))
1042 (define-public menumaker
1049 (uri (string-append "mirror://sourceforge/menumaker/"
1050 "menumaker-" version ".tar.gz"))
1052 (base32 "034v5204bsgkzzk6zfa5ia63q95gln47f7hwf96yvad5hrhmd8z3"))))
1053 (build-system gnu-build-system)
1055 `(("python" ,python)))
1056 (synopsis "Heuristics-driven menu generator")
1058 "MenuMaker is a menu generation utility for a number of X window
1059 managers and desktop environments. It is capable of finding lots of
1060 installed programs and generating a root menu consistent across all
1061 supported window managers, so one will get (almost) the same menu in
1062 all of them. Currently supported window managers include:
1074 (home-page "http://menumaker.sourceforge.net/")
1075 (license license:bsd-2)))
1077 (define-public keybinder
1084 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1085 "/releases/download/v" version "/keybinder-"
1087 (file-name (string-append name "-" version ".tar.gz"))
1090 "0h52hj3ay8mfhwvmfxbxlfyq74hifdk8wxgxp7fr4iy6189hg7w7"))))
1091 (build-system gnu-build-system)
1093 `(("python-2" ,python-2)
1094 ("gtk+-2" ,gtk+-2)))
1096 `(("python2-pygtk" ,python2-pygtk)
1097 ("gtk-doc" ,gtk-doc)
1098 ("pkg-config" ,pkg-config)))
1099 (synopsis "Library for registering global keyboard shortcuts")
1101 "Keybinder is a library for registering global keyboard shortcuts.
1102 Keybinder works with GTK-based applications using the X Window System.")
1103 (home-page "https://github.com/kupferlauncher/keybinder")
1104 (license license:gpl2+)))
1106 (define-public keybinder-3.0
1108 (name "keybinder-3.0")
1113 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1114 "/releases/download/" name "-v" version "/" name "-"
1116 (file-name (string-append name "-" version ".tar.gz"))
1119 "0830ihwnalw59pp1xzrp37dn58n8vwb8zasnm4a1h81v3x7dxqz6"))))
1120 (build-system gnu-build-system)
1123 ("gobject-introspection" ,gobject-introspection)))
1125 `(("gtk-doc" ,gtk-doc)
1126 ("pkg-config" ,pkg-config)))
1127 (synopsis "Library for registering global keyboard shortcuts, Gtk3 version")
1129 "Keybinder is a library for registering global keyboard shortcuts.
1130 Keybinder works with GTK-based applications using the X Window System.")
1131 (home-page "https://github.com/kupferlauncher/keybinder")
1132 (license license:x11)))
1134 (define-public spectrwm
1142 (url "https://github.com/conformal/spectrwm")
1144 (string-append "SPECTRWM_"
1145 (string-join (string-split version #\.) "_")))))
1146 (file-name (git-file-name name version))
1148 (base32 "1dfqy5f0s1nv6rqkz9lj006vypmp4rwxd5vczfk3ndzqgnh19kw6"))))
1149 (build-system gnu-build-system)
1151 `(#:make-flags (let ((pkg-config (lambda (flag)
1153 "$(shell pkg-config " flag " "
1154 "xft fontconfig x11 libpng)"))))
1157 (string-append "PREFIX=" %output)
1158 (string-append "INCS=-I. " (pkg-config "--cflags"))
1159 (string-append "LIBS=" (pkg-config "--libs") " -lm")))
1160 #:tests? #f ;no test suite
1162 (modify-phases %standard-phases
1163 (add-before 'build 'change-dir
1165 (chdir "linux") #t))
1166 (add-after 'change-dir 'patch-makefile
1168 (substitute* "Makefile"
1170 (delete 'configure)))) ;no 'configure' exists
1172 `(("freetype" ,freetype)
1173 ("fontconfig" ,fontconfig)
1175 ("libxcursor" ,libxcursor)
1176 ("libxrandr" ,libxrandr)
1177 ("libxtst" ,libxtst)
1179 ("xcb-util" ,xcb-util)
1180 ("xcb-util-wm" ,xcb-util-wm)
1181 ("xcb-util-keysyms" ,xcb-util-keysyms)))
1184 ("pkg-config" ,pkg-config)))
1185 (synopsis "Minimalistic automatic tiling window manager")
1187 "Spectrwm is a small dynamic tiling and reparenting window manager for X11.
1188 It is inspired by Xmonad and dwm. Its major features include:
1191 @item Navigation anywhere on all screens with either the keyboard or mouse
1192 @item Customizable status bar
1193 @item Restartable without losing state
1194 @item Quick launch menu
1195 @item Many screen layouts possible with a few simple key strokes
1196 @item Move/resize floating windows
1197 @item Extended Window Manager Hints (@dfn{EWMH}) support
1198 @item Configurable tiling
1199 @item Adjustable tile gap allows for a true one pixel border
1200 @item Customizable colors and border width
1202 (home-page "https://github.com/conformal/spectrwm")
1203 (license license:isc)))
1212 (uri (string-append "https://leahneukirchen.org/releases/cwm-"
1216 "0p350pbfn92m21jiq4i324sdskxhs71p435g0mgz7cmzprnhhg92"))))
1217 (build-system gnu-build-system)
1219 `(#:make-flags (list "CC=gcc"
1220 (string-append "PREFIX=" %output))
1223 (modify-phases %standard-phases
1225 (add-after 'build 'install-xsession
1226 (lambda* (#:key outputs #:allow-other-keys)
1227 ;; Add a .desktop file to xsessions.
1228 (let* ((output (assoc-ref outputs "out"))
1229 (xsessions (string-append output "/share/xsessions")))
1231 (with-output-to-file
1232 (string-append xsessions "/cwm.desktop")
1237 Comment=OpenBSD Calm Window Manager fork~@
1239 TryExec=~@*~a/bin/cwm~@
1245 `(("libxft" ,libxft)
1246 ("libxrandr" ,libxrandr)
1247 ("libxinerama" ,libxinerama)))
1249 `(("pkg-config" ,pkg-config)
1251 (home-page "https://github.com/leahneukirchen/cwm")
1252 (synopsis "OpenBSD fork of the calmwm window manager")
1253 (description "Cwm is a stacking window manager for X11. It is an OpenBSD
1254 project derived from the original Calm Window Manager.")
1255 (license license:isc)))
1257 (define-public nitrogen
1263 (uri (string-append "http://github.com/l3ib/nitrogen/"
1264 "releases/download/" version "/"
1265 name "-" version ".tar.gz"))
1268 "0zc3fl1mbhq0iyndy4ysmy8vv5c7xwf54rbgamzfhfvsgdq160pl"))))
1269 (build-system gnu-build-system)
1274 ("glibmm" ,glibmm)))
1276 `(("pkg-config" ,pkg-config)))
1277 (home-page "http://projects.l3ib.org/nitrogen/")
1278 (synopsis "Background browser and setter for X windows")
1280 "This package is a background browser and setter for X windows. It's
1284 @item Multihead and Xinerama aware
1285 @item Recall mode to used via startup script
1286 @item Uses freedesktop.org standard for thumbnails
1287 @item Can set GNOME background
1288 @item Command lie set modes for script use
1289 @item Inotify monitoring of browse directory
1290 @item Lazy loading of thumbnails - conserves memory
1291 @item \"Automatic\" set mode - determines best mode to set an image based on
1293 @item Display preview images in a tiled icon layout
1295 (license license:gpl2+)))
1297 (define-public polybar
1304 (uri (string-append "https://github.com/polybar/polybar/releases/"
1305 "download/" version "/polybar-" version ".tar"))
1307 (base32 "0bw22qvbcdvyd0qv3ax48r34rnclbbb6dyb8h8zljq1r3lf15vfl"))))
1308 (build-system cmake-build-system)
1310 ;; Test is disabled because it requires downloading googletest from the
1314 `(("alsa-lib" ,alsa-lib)
1317 ("jsoncpp" ,jsoncpp)
1318 ("libmpdclient" ,libmpdclient)
1321 ("pulseaudio" ,pulseaudio)
1322 ("xcb-proto" ,xcb-proto)
1323 ("xcb-util" ,xcb-util)
1324 ("xcb-util-cursor" ,xcb-util-cursor)
1325 ("xcb-util-image" ,xcb-util-image)
1326 ("xcb-util-wm" ,xcb-util-wm)
1327 ("xcb-util-xrm" ,xcb-util-xrm)))
1329 `(("pkg-config" ,pkg-config)
1330 ("python-sphinx" ,python-sphinx) ; for the manual
1331 ;; XXX: "python" input must be located after "python-2", or the package
1332 ;; fails to build with "missing required python module: xcbgen".
1333 ("python-2" ,python-2) ; lib/xpp depends on python 2
1334 ("python" ,python))) ; xcb-proto depends on python 3
1335 (home-page "https://polybar.github.io/")
1336 (synopsis "Fast and easy-to-use status bar")
1337 (description "Polybar aims to help users build beautiful and highly
1338 customizable status bars for their desktop environment. It has built-in
1339 functionality to display information about the most commonly used services.")
1340 (license license:expat)))
1342 (define-public wlroots
1350 (url "https://github.com/swaywm/wlroots")
1352 (file-name (git-file-name name version))
1354 (base32 "0j2lh9vc92zhn44rjbia5aw3y1rpgfng1x1h17lcvj5m4i6vj0pc"))))
1355 (build-system meson-build-system)
1357 `(#:configure-flags '("-Dlogind-provider=elogind")
1359 (modify-phases %standard-phases
1360 (add-before 'configure 'hardcode-paths
1361 (lambda* (#:key inputs #:allow-other-keys)
1362 (substitute* "xwayland/xwayland.c"
1363 (("Xwayland") (string-append (assoc-ref inputs
1364 "xorg-server-xwayland")
1367 (inputs `(("elogind" ,elogind)
1369 ("libinput" ,libinput)
1370 ("libxkbcommon" ,libxkbcommon)
1373 ("wayland" ,wayland)
1374 ("xorg-server-xwayland" ,xorg-server-xwayland)))
1375 (native-inputs `(("ffmpeg" ,ffmpeg)
1378 ("pkg-config" ,pkg-config)
1379 ("wayland-protocols" ,wayland-protocols)))
1380 (home-page "https://github.com/swaywm/wlroots")
1381 (synopsis "Pluggable, composable, unopinionated modules for building a
1382 Wayland compositor")
1383 (description "wlroots is a set of pluggable, composable, unopinionated
1384 modules for building a Wayland compositor.")
1385 (license license:expat))) ; MIT license
1390 ;; XXX When updating, check whether grim-revert-output-rotation.patch can
1391 ;; be dropped from the grim package.
1397 (url "https://github.com/swaywm/sway")
1399 (file-name (git-file-name name version))
1401 (base32 "11qf89y3q92g696a6f4d23qb44gqixg6qxq740vwv2jw59ms34ja"))))
1402 (build-system meson-build-system)
1405 (modify-phases %standard-phases
1406 (add-before 'configure 'hardcode-paths
1407 (lambda* (#:key inputs #:allow-other-keys)
1408 ;; Hardcode path to swaybg.
1409 (substitute* "sway/config.c"
1410 (("strdup..swaybg..")
1411 (string-append "strdup(\"" (assoc-ref inputs "swaybg")
1413 ;; Hardcode path to scdoc.
1414 (substitute* "meson.build"
1415 (("scdoc.get_pkgconfig_variable..scdoc..")
1416 (string-append "'" (assoc-ref inputs "scdoc")
1419 (inputs `(("cairo" ,cairo)
1420 ("elogind" ,elogind)
1421 ("gdk-pixbuf" ,gdk-pixbuf)
1423 ("libevdev" ,libevdev)
1424 ("libinput" ,libinput)
1425 ("libxkbcommon" ,libxkbcommon)
1428 ("wayland" ,wayland)
1429 ("wlroots" ,wlroots)))
1430 (native-inputs `(("libcap" ,libcap)
1431 ("linux-pam" ,linux-pam)
1433 ("pkg-config" ,pkg-config)
1435 ("wayland-protocols" ,wayland-protocols)))
1436 (home-page "https://github.com/swaywm/sway")
1437 (synopsis "Wayland compositor compatible with i3")
1438 (description "Sway is a i3-compatible Wayland compositor.")
1439 (license license:expat))) ; MIT license
1441 (define-public swayidle
1449 (url "https://github.com/swaywm/swayidle")
1451 (file-name (git-file-name name version))
1453 (base32 "05qi96j58xqxjiighay1d39rfanxcpn6vlynj23mb5dymxvlaq9n"))))
1454 (build-system meson-build-system)
1456 `(#:configure-flags '("-Dlogind-provider=elogind")))
1457 (inputs `(("elogind" ,elogind)
1458 ("wayland" ,wayland)))
1459 (native-inputs `(("pkg-config" ,pkg-config)
1461 ("wayland-protocols" ,wayland-protocols)))
1462 (home-page "https://github.com/swaywm/sway")
1463 (synopsis "Idle management daemon for Wayland compositors")
1464 (description "Swayidle is a idle management daemon for Wayland compositors.")
1465 (license license:expat))) ; MIT license
1467 (define-public swaylock
1475 (url "https://github.com/swaywm/swaylock")
1477 (file-name (git-file-name name version))
1479 (base32 "1ii9ql1mxkk2z69dv6bg1x22nl3a46iww764wqjiv78x08xpk982"))))
1480 (build-system meson-build-system)
1481 (inputs `(("cairo" ,cairo)
1482 ("gdk-pixbuf" ,gdk-pixbuf)
1483 ("libxkbcommon" ,libxkbcommon)
1484 ;("linux-pam" ,linux-pam) ; FIXME: Doesn't work.
1485 ("wayland" ,wayland)))
1486 (native-inputs `(("pango" ,pango)
1487 ("pkg-config" ,pkg-config)
1489 ("wayland-protocols" ,wayland-protocols)))
1490 (home-page "https://github.com/swaywm/sway")
1491 (synopsis "Screen locking utility for Wayland compositors")
1492 (description "Swaylock is a screen locking utility for Wayland compositors.")
1493 (license license:expat))) ; MIT license
1495 (define-public swaybg
1503 (url "https://github.com/swaywm/swaybg")
1505 (file-name (git-file-name name version))
1507 (base32 "1lmqz5bmig90gq2m7lwf02d2g7z4hzf8fhqz78c8vk92c6p4xwbc"))))
1508 (build-system meson-build-system)
1509 (inputs `(("cairo" ,cairo)
1510 ("gdk-pixbuf" ,gdk-pixbuf)
1511 ("wayland" ,wayland)))
1512 (native-inputs `(("pkg-config" ,pkg-config)
1514 ("wayland-protocols" ,wayland-protocols)))
1515 (home-page "https://github.com/swaywm/sway")
1516 (synopsis "Screen wallpaper utility for Wayland compositors")
1517 (description "Swaybg is a wallpaper utility for Wayland compositors.")
1518 (license license:expat))) ; MIT license
1520 (define-public waybar
1528 (url "https://github.com/Alexays/Waybar")
1530 (file-name (git-file-name name version))
1532 (base32 "038vnma7y7z81caywp45yr364bc1aq8d01j5vycyiyfv33nm76fy"))))
1533 (build-system meson-build-system)
1534 (inputs `(("date" ,date)
1536 ("gtk-layer-shell" ,gtk-layer-shell)
1538 ("jsoncpp" ,jsoncpp)
1539 ("libdbusmenu" ,libdbusmenu)
1540 ("libinput" ,libinput)
1541 ("libmpdclent" ,libmpdclient)
1543 ("pulseaudio" ,pulseaudio)
1545 ("wayland" ,wayland)))
1547 `(("gcc" ,gcc-8) ; for #include <filesystem>
1548 ("glib:bin" ,glib "bin")
1549 ("pkg-config" ,pkg-config)
1551 ("wayland-protocols" ,wayland-protocols)))
1552 (home-page "https://github.com/Alexays/Waybar")
1553 (synopsis "Wayland bar for Sway and Wlroots based compositors")
1554 (description "Waybar is a highly customisable Wayland bar for Sway and
1555 Wlroots based compositors.")
1556 (license license:expat))) ; MIT license
1566 (url "https://github.com/emersion/mako")
1567 (commit (string-append "v" version))))
1568 (file-name (git-file-name name version))
1570 (base32 "11ymiq6cr2ma0iva1mqybn3j6k73bsc6lv6pcbdq7hkhd4f9b7j9"))))
1571 (build-system meson-build-system)
1572 (inputs `(("cairo" ,cairo)
1573 ("elogind" ,elogind)
1574 ("gdk-pixbuf" ,gdk-pixbuf)
1576 ("wayland" ,wayland)))
1577 (native-inputs `(("pkg-config" ,pkg-config)
1579 ("wayland-protocols" ,wayland-protocols)))
1580 (home-page "https://wayland.emersion.fr/mako")
1581 (synopsis "Lightweight Wayland notification daemon")
1582 (description "Mako is a lightweight notification daemon for Wayland
1583 compositors that support the layer-shell protocol.")
1584 (license license:expat))) ; MIT license
1586 (define-public stumpwm
1594 (url "https://github.com/stumpwm/stumpwm")
1596 (file-name (git-file-name "stumpwm" version))
1598 (base32 "1ha8803ll7472kqxsy2xz0v5d4sv8apmc9z631d67m31q0z1m9rz"))))
1599 (build-system asdf-build-system/sbcl)
1600 (native-inputs `(("fiasco" ,sbcl-fiasco)
1601 ("texinfo" ,texinfo)
1603 ;; To build the manual.
1604 ("autoconf" ,autoconf)
1605 ("automake" ,automake)))
1606 (inputs `(("cl-ppcre" ,sbcl-cl-ppcre)
1608 ("alexandria" ,sbcl-alexandria)))
1609 (outputs '("out" "lib"))
1611 '(#:asd-systems '("stumpwm")
1613 (modify-phases %standard-phases
1614 (add-after 'create-asdf-configuration 'build-program
1615 (lambda* (#:key outputs #:allow-other-keys)
1617 (string-append (assoc-ref outputs "out") "/bin/stumpwm")
1619 #:entry-program '((stumpwm:stumpwm) 0))))
1620 (add-after 'build-program 'create-desktop-file
1621 (lambda* (#:key outputs #:allow-other-keys)
1622 (let* ((out (assoc-ref outputs "out"))
1623 (xsessions (string-append out "/share/xsessions")))
1625 (call-with-output-file
1626 (string-append xsessions "/stumpwm.desktop")
1631 Comment=The Stump Window Manager~@
1632 Exec=~a/bin/stumpwm~@
1633 TryExec=~@*~a/bin/stumpwm~@
1638 (add-after 'install 'install-manual
1639 (lambda* (#:key (make-flags '()) outputs #:allow-other-keys)
1640 (let* ((out (assoc-ref outputs "out"))
1641 (info (string-append out "/share/info")))
1642 (invoke "./autogen.sh")
1643 (invoke "sh" "./configure" "SHELL=sh")
1644 (apply invoke "make" "stumpwm.info" make-flags)
1645 (install-file "stumpwm.info" info)
1647 (synopsis "Window manager written in Common Lisp")
1648 (description "Stumpwm is a window manager written entirely in Common Lisp.
1649 It attempts to be highly customizable while relying entirely on the keyboard
1650 for input. These design decisions reflect the growing popularity of
1651 productive, customizable lisp based systems.")
1652 (home-page "https://github.com/stumpwm/stumpwm")
1653 (license license:gpl2+)
1654 (properties `((cl-source-variant . ,(delay cl-stumpwm))))))
1656 (define-public sbcl-stumpwm
1657 (deprecated-package "sbcl-stumpwm" stumpwm))
1659 (define-public cl-stumpwm
1661 (inherit (sbcl-package->cl-source-package stumpwm))
1662 (name "cl-stumpwm")))
1664 (define-public stumpwm+slynk
1667 (name "stumpwm-with-slynk")
1670 `(("stumpwm" ,stumpwm "lib")
1671 ("slynk" ,sbcl-slynk)))
1673 (substitute-keyword-arguments (package-arguments stumpwm)
1675 `(modify-phases ,phases
1676 (replace 'build-program
1677 (lambda* (#:key inputs outputs #:allow-other-keys)
1678 (let* ((out (assoc-ref outputs "out"))
1679 (program (string-append out "/bin/stumpwm")))
1680 (build-program program outputs
1681 #:entry-program '((stumpwm:stumpwm) 0)
1682 #:dependencies '("stumpwm" "slynk")
1683 #:dependency-prefixes
1684 (map (lambda (input) (assoc-ref inputs input))
1685 '("stumpwm" "slynk")))
1687 (delete 'copy-source)
1690 (delete 'cleanup)))))))
1692 (define stumpwm-contrib
1693 (let ((commit "920f8fc1488f7953f205e1dda4c2ecbbbda56d63")
1696 (name "stumpwm-contrib")
1697 (version (git-version "0.0.1" revision commit)) ;no upstream release
1702 (url "https://github.com/stumpwm/stumpwm-contrib")
1704 (file-name (git-file-name name version))
1706 (base32 "0giac390bq95ag41xkxqp8jjrhfx1wpgglz7jg5rkm0wjhcwmyml"))))
1707 (build-system asdf-build-system/sbcl)
1709 `(("stumpwm" ,stumpwm "lib")))
1710 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1711 (synopsis "StumpWM interactive shell")
1712 (description "This package provides a StumpWM interactive shell.")
1713 (license (list license:gpl2+ license:gpl3+ license:bsd-2)))))
1715 (define-public stumpish
1717 (inherit stumpwm-contrib)
1723 (build-system trivial-build-system)
1725 '(#:modules ((guix build utils))
1728 (use-modules (guix build utils))
1729 (copy-recursively (assoc-ref %build-inputs "source") ".")
1730 (chdir "util/stumpish")
1731 (substitute* "stumpish"
1732 (("rlwrap") (string-append (assoc-ref %build-inputs "rlwrap")
1734 (("xprop") (string-append (assoc-ref %build-inputs "xprop")
1736 (("/bin/sh") (string-append (assoc-ref %build-inputs "bash")
1738 (install-file "stumpish" (string-append %output "/bin")))))
1739 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1740 (synopsis "StumpWM interactive shell")
1741 (description "This package provides a StumpWM interactive shell.")
1742 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1744 (define-public sbcl-stumpwm+slynk
1745 (deprecated-package "sbcl-stumpwm-with-slynk" stumpwm+slynk))
1747 (define-public sbcl-stumpwm-ttf-fonts
1749 (inherit stumpwm-contrib)
1750 (name "sbcl-stumpwm-ttf-fonts")
1752 `(("stumpwm" ,stumpwm "lib")
1753 ("clx-truetype" ,sbcl-clx-truetype)))
1755 '(#:asd-systems '("ttf-fonts")
1758 (modify-phases %standard-phases
1759 (add-after 'unpack 'chdir
1760 (lambda _ (chdir "util/ttf-fonts") #t)))))
1761 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1762 (synopsis "Implementation of TTF font rendering for Lisp")
1763 (description "This package provides a Lisp implementation of TTF font
1765 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1767 (define-public sbcl-stumpwm-pass
1769 (inherit stumpwm-contrib)
1770 (name "sbcl-stumpwm-pass")
1772 '(#:asd-systems '("pass")
1775 (modify-phases %standard-phases
1776 (add-after 'unpack 'chdir
1777 (lambda _ (chdir "util/pass") #t)))))
1778 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1779 (synopsis "Integrate @code{pass} with StumpWM")
1780 (description "This package provides an interface which integrates
1781 password-store into StumpWM.")
1782 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1784 (define-public sbcl-stumpwm-globalwindows
1786 (inherit stumpwm-contrib)
1787 (name "sbcl-stumpwm-globalwindows")
1789 '(#:asd-systems '("globalwindows")
1792 (modify-phases %standard-phases
1793 (add-after 'unpack 'chdir
1794 (lambda _ (chdir "util/globalwindows") #t)))))
1795 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1796 (synopsis "Manipulate all windows in the current X session")
1797 (description "This package provides a StumpWM module to manipulate all
1798 windows in the current X session.")
1799 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1801 (define-public sbcl-stumpwm-swm-gaps
1803 (inherit stumpwm-contrib)
1804 (name "sbcl-stumpwm-swm-gaps")
1806 '(#:asd-systems '("swm-gaps")
1809 (modify-phases %standard-phases
1810 (add-after 'unpack 'chdir
1811 (lambda _ (chdir "util/swm-gaps") #t)))))
1812 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1813 (synopsis "Gaps between windows for StumpWM")
1814 (description "This package provides a StumpWM module which adds gaps
1816 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1818 (define-public sbcl-stumpwm-net
1820 (inherit stumpwm-contrib)
1821 (name "sbcl-stumpwm-net")
1823 '(#:asd-systems '("net")
1826 (modify-phases %standard-phases
1827 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/net") #t)))))
1829 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/net")
1830 (synopsis "Modeline support for network connectivity")
1831 (description "Modeline support for network connectivity.")
1833 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1834 (license license:gpl3+)))
1836 (define-public sbcl-stumpwm-wifi
1838 (inherit stumpwm-contrib)
1839 (name "sbcl-stumpwm-wifi")
1841 '(#:asd-systems '("wifi")
1844 (modify-phases %standard-phases
1845 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/wifi") #t)))))
1847 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/wifi")
1848 (synopsis "Modeline support for wifi connectivity")
1849 (description "Modeline support for wifi connectivity.")
1851 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1852 (license license:gpl3+)))
1854 (define-public sbcl-stumpwm-stumptray
1856 (inherit stumpwm-contrib)
1857 (name "sbcl-stumpwm-stumptray")
1859 '(#:asd-systems '("stumptray")
1862 (modify-phases %standard-phases
1863 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/stumptray") #t)))))
1865 `(("stumpwm" ,stumpwm "lib")
1866 ("xembed" ,sbcl-clx-xembed)
1867 ("alexandria" ,sbcl-alexandria)))
1869 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/stumptray")
1870 (synopsis "Modeline support for stumptray connectivity")
1871 (description "Modeline support for stumptray connectivity.")
1873 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1874 (license license:gpl3+)))
1876 (define-public sbcl-stumpwm-kbd-layouts
1878 (inherit stumpwm-contrib)
1879 (name "sbcl-stumpwm-kbd-layouts")
1881 '(#:asd-systems '("kbd-layouts")
1884 (modify-phases %standard-phases
1885 (add-after 'unpack 'chdir (lambda _ (chdir "util/kbd-layouts") #t)))))
1887 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/kbd-layouts")
1888 (synopsis "Keyboard layout switcher for StumpWM")
1889 (description "Keyboard layout switcher for StumpWM")
1890 (license license:gpl3+)))
1892 (define-public lemonbar
1893 (let ((commit "35183ab81d2128dbb7b6d8e119cc57846bcefdb4")
1897 (version (git-version "1.3" revision commit))
1901 (url "https://github.com/LemonBoy/bar")
1903 (file-name (git-file-name name version))
1906 "1wwqbph392iwz8skaqxb0xpklb1l6yganqz80g4x1fhrnz7idmlh"))))
1907 (build-system gnu-build-system)
1909 `(#:tests? #f ; no test suite
1911 (list ,(string-append "CC=" (cc-for-target))
1912 (string-append "PREFIX=" %output))
1914 (modify-phases %standard-phases
1915 (delete 'configure))))
1917 `(("libxcb" ,libxcb)))
1920 (home-page "https://github.com/LemonBoy/bar")
1921 (synopsis "Featherweight status bar")
1923 "@code{lemonbar} (formerly known as @code{bar}) is a lightweight
1924 bar entirely based on XCB. Provides full UTF-8 support, basic
1925 formatting, RandR and Xinerama support and EWMH compliance without
1926 wasting your precious memory.")
1927 (license license:x11))))
1929 (define-public xclickroot
1930 (let ((commit "309fd17174dba4149b5ea66654c6fd02cfcf7c9a")
1934 (version (git-version "0.0.1" revision commit)) ;no upstream release
1938 (url "https://github.com/phillbush/xclickroot")
1940 (file-name (git-file-name name version))
1943 "0fjqkg3wnyks0my1vrzhxfjicsfy8xwnijaazmpz6mhilcqkpvnd"))))
1944 (build-system gnu-build-system)
1946 `(("libx11" ,libx11)))
1948 `(#:tests? #f ;no test suite
1950 (list ,(string-append "CC=" (cc-for-target))
1951 (string-append "PREFIX=" %output))
1953 (modify-phases %standard-phases
1954 (delete 'configure))))
1955 (home-page "https://github.com/phillbush/xclickroot")
1956 (synopsis "Run a command when a mouse button is pressed on the root window")
1957 (description "@code{xclickroot} runs a command every time a given mouse
1958 button is pressed on the root window.")
1959 (license license:public-domain))))
1961 (define-public xmenu
1968 (url "https://github.com/phillbush/xmenu")
1969 (commit (string-append "v" version))))
1970 (file-name (git-file-name name version))
1973 "1sw9l87fh03jp03a2v7rhgpyx29yg2x9blzfzp40jwad2whs7m7n"))))
1974 (build-system gnu-build-system)
1976 `(("libx11" ,libx11)
1978 ("freetype" ,freetype)
1979 ("imlib2" ,imlib2)))
1981 `(#:tests? #f ;no test suite
1983 (list (string-append "CC=" ,(cc-for-target))
1984 (string-append "PREFIX=" %output)
1985 (string-append "CFLAGS="
1986 "-I" (assoc-ref %build-inputs "freetype")
1987 "/include/freetype2"))
1989 (modify-phases %standard-phases
1990 (delete 'configure))))
1991 (home-page "https://github.com/phillbush/xmenu")
1992 (synopsis "Menu utility for X")
1993 (description "@code{xmenu} receives a menu specification in stdin, shows
1994 a menu for the user to select one of the options, and outputs the option
1995 selected to stdout. It can be controlled both via mouse and via keyboard.")
1996 (license license:public-domain)))
1998 (define-public idesk
2006 "mirror://sourceforge/idesk/idesk/idesk-" version
2007 "/idesk-" version ".tar.bz2"))
2010 "1lxk2yvgysxwl514zc82lwr1dwc8cd62slgr5lzdhjbdrxfymdyl"))
2011 (modules '((guix build utils)
2014 '(let* ((file "src/DesktopConfig.cpp")
2015 (template (string-append file ".XXXXXX"))
2016 (out (mkstemp! template))
2018 (mode (stat:mode st)))
2019 (call-with-ascii-input-file file
2021 (format out "~{~a~%~}" '("#include <unistd.h>"
2022 "#include <sys/stat.h>"
2023 "#include <sys/types.h>"))
2026 (chmod template mode)
2027 (rename-file template file)
2029 (build-system gnu-build-system)
2031 `(("libx11" ,libx11)
2035 ("freetype" ,freetype)
2039 `(("pkg-config" ,pkg-config)))
2041 `(#:tests? #f)) ;no test suite
2042 (home-page "https://sourceforge.net/projects/idesk/")
2043 (synopsis "Add icons on X desktop and set background image for wallpaper")
2044 (description "Idesk is program that draws desktop icons. Each icon will
2045 execute a shell command on a configurable action. The icons can be moved on
2046 the desktop by dragging them, and the icons will remember their positions on
2048 (license license:bsd-3)))
2050 (define-public xnotify
2057 (url "https://github.com/phillbush/xnotify")
2058 (commit (string-append "v" version))))
2059 (file-name (git-file-name name version))
2062 "0ris7jhi7hgw7nxkwkn3zk7n3y4nvnnm6dbz0qs0g2srp2k67v7v"))))
2063 (build-system gnu-build-system)
2065 `(("libx11" ,libx11)
2067 ("libxinerama" ,libxinerama)
2068 ("imlib2" ,imlib2)))
2071 (list (string-append "CC=" ,(cc-for-target))
2072 (string-append "PREFIX=" %output)
2073 (string-append "CFLAGS="
2074 "-I" (assoc-ref %build-inputs "freetype")
2075 "/include/freetype2"))
2076 #:tests? #f ;no test suite
2078 (modify-phases %standard-phases
2079 (delete 'configure))))
2080 (home-page "https://github.com/phillbush/xnotify")
2081 (synopsis "Displays a notification on the screen")
2082 (description "XNotify receives a notification specification in stdin and
2083 shows a notification for the user on the screen.")
2084 (license license:expat)))