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–2021 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>
40 ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
41 ;;; Copyright © 2020 B. Wilson <elaexuotee@wilsonb.com>
42 ;; Copyright © 2020 Niklas Eklund <niklas.eklund@posteo.net>
43 ;;; Copyright © 2020 Robert Smith <robertsmith@posteo.net>
44 ;;; Copyright © 2021 Zheng Junjie <873216071@qq.com>
46 ;;; This file is part of GNU Guix.
48 ;;; GNU Guix is free software; you can redistribute it and/or modify it
49 ;;; under the terms of the GNU General Public License as published by
50 ;;; the Free Software Foundation; either version 3 of the License, or (at
51 ;;; your option) any later version.
53 ;;; GNU Guix is distributed in the hope that it will be useful, but
54 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
55 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56 ;;; GNU General Public License for more details.
58 ;;; You should have received a copy of the GNU General Public License
59 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
61 (define-module (gnu packages wm)
62 #:use-module ((guix licenses) #:prefix license:)
63 #:use-module (guix packages)
64 #:use-module (guix download)
65 #:use-module (guix git-download)
66 #:use-module (guix build-system asdf)
67 #:use-module (guix build-system cmake)
68 #:use-module (guix build-system gnu)
69 #:use-module (guix build-system haskell)
70 #:use-module (guix build-system meson)
71 #:use-module (guix build-system perl)
72 #:use-module (guix build-system python)
73 #:use-module (guix build-system trivial)
74 #:use-module (guix utils)
75 #:use-module (gnu packages)
76 #:use-module (gnu packages bash)
77 #:use-module (gnu packages autotools)
78 #:use-module (gnu packages base)
79 #:use-module (gnu packages bison)
80 #:use-module (gnu packages build-tools) ;for meson-0.55
81 #:use-module (gnu packages calendar)
82 #:use-module (gnu packages docbook)
83 #:use-module (gnu packages documentation)
84 #:use-module (gnu packages fontutils)
85 #:use-module (gnu packages freedesktop)
86 #:use-module (gnu packages fribidi)
87 #:use-module (gnu packages gawk)
88 #:use-module (gnu packages gcc)
89 #:use-module (gnu packages gl)
90 #:use-module (gnu packages glib)
91 #:use-module (gnu packages gperf)
92 #:use-module (gnu packages gtk)
93 #:use-module (gnu packages haskell-check)
94 #:use-module (gnu packages haskell-web)
95 #:use-module (gnu packages haskell-xyz)
96 #:use-module (gnu packages image)
97 #:use-module (gnu packages imagemagick)
98 #:use-module (gnu packages libevent)
99 #:use-module (gnu packages linux)
100 #:use-module (gnu packages lisp-xyz)
101 #:use-module (gnu packages logging)
102 #:use-module (gnu packages lua)
103 #:use-module (gnu packages m4)
104 #:use-module (gnu packages man)
105 #:use-module (gnu packages maths)
106 #:use-module (gnu packages mpd)
107 #:use-module (gnu packages pcre)
108 #:use-module (gnu packages perl)
109 #:use-module (gnu packages pkg-config)
110 #:use-module (gnu packages pretty-print)
111 #:use-module (gnu packages pulseaudio)
112 #:use-module (gnu packages python)
113 #:use-module (gnu packages readline)
114 #:use-module (gnu packages serialization)
115 #:use-module (gnu packages sphinx)
116 #:use-module (gnu packages suckless)
117 #:use-module (gnu packages texinfo)
118 #:use-module (gnu packages textutils)
119 #:use-module (gnu packages video)
120 #:use-module (gnu packages web)
121 #:use-module (gnu packages xdisorg)
122 #:use-module (gnu packages xml)
123 #:use-module (gnu packages xorg))
133 (url "https://github.com/baskerville/bspwm")
135 (file-name (git-file-name name version))
137 (base32 "0qlv7b4c2mmjfd65y100d11x8iqyg5f6lfiws3cgmpjidhdygnxc"))))
138 (build-system gnu-build-system)
141 ("libxinerama" ,libxinerama)
143 ("xcb-util" ,xcb-util)
144 ("xcb-util-keysyms" ,xcb-util-keysyms)
145 ("xcb-util-wm" ,xcb-util-wm)))
148 (modify-phases %standard-phases
149 (delete 'configure)) ; no configure script
150 #:tests? #f ; no check target
153 (string-append "PREFIX=" %output))))
154 (home-page "https://github.com/baskerville/bspwm")
155 (synopsis "Tiling window manager based on binary space partitioning")
156 (description "bspwm is a tiling window manager that represents windows as
157 the leaves of a full binary tree.")
158 (license license:bsd-2)))
160 (define-public herbstluftwm
162 (name "herbstluftwm")
167 (uri (string-append "https://herbstluftwm.org/tarballs/herbstluftwm-"
170 (base32 "1qmb4pjf2f6g0dvcg11cw9njwmxblhqzd70ai8qnlgqw1iz3nkm1"))
171 (file-name (string-append "herbstluftwm-" version ".tar.gz"))))
172 (build-system cmake-build-system)
179 ("xsetroot" ,xsetroot)
182 ("libxinerama" ,libxinerama)
183 ("libxrandr" ,libxrandr)))
185 `(("asciidoc" ,asciidoc)
186 ("pkg-config" ,pkg-config)))
190 (let ((out (assoc-ref %outputs "out")))
192 (string-append "-DCMAKE_INSTALL_SYSCONF_PREFIX=" out "/etc")
193 (string-append "-DBASHCOMPLETIONDIR=" out "/etc/bash_completion.d")))
195 (modify-phases %standard-phases
196 (add-after 'install 'install-xsession
197 (lambda* (#:key outputs #:allow-other-keys)
198 (let* ((out (assoc-ref outputs "out"))
199 (xsessions (string-append out "/share/xsessions")))
201 (call-with-output-file
202 (string-append xsessions "/herbstluftwm.desktop")
207 Comment=Manual tiling window manager~@
208 Exec=~a/bin/herbstluftwm~@
209 Type=XSession~%" out)))
211 (synopsis "Tiling window manager for X11")
212 (description "herbstluftwm is a manual tiling window manager for X11 using
213 Xlib and GLib. Its main features are:
217 The layout is based on splitting frames into subframes which can be split
218 again or can be filled with windows (similar to i3 or musca).
221 Tags (or workspaces or virtual desktops or …) can be added/removed at runtime.
222 Each tag contains an own layout.
225 Exactly one tag is viewed on each monitor. The tags are monitor independent
229 It is configured at runtime via IPC calls from @command{herbstclient}. So the
230 configuration file is just a script which is run on startup (similar to wmii
234 (home-page "https://herbstluftwm.org")
235 (license license:bsd-2)))
237 (define-public i3status
243 (uri (string-append "https://i3wm.org/i3status/i3status-"
247 "0rhlzb96mw64z2jnhwz9nibc7pxg549626lz5642xxk5hpzwk2ff"))))
248 (build-system gnu-build-system)
250 `(;; XXX: Do an "out of source" build to work around
251 ;; <https://github.com/i3/i3status/issues/339>.
253 #:tests? #f)) ; no test suite
255 `(("openlibm" ,openlibm)
256 ("libconfuse" ,libconfuse)
258 ("alsa-lib" ,alsa-lib)
259 ("pulseaudio" ,pulseaudio)
262 ("asciidoc" ,asciidoc)))
264 `(("pkg-config" ,pkg-config)
265 ("docbook-xsl" ,docbook-xsl)
266 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
268 (home-page "https://i3wm.org/i3status/")
269 (synopsis "Status bar for i3bar, dzen2, xmobar or similar programs")
270 (description "i3status is a small program for generating a status bar for
271 i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient
272 by issuing a very small number of system calls, as one generally wants to
273 update such a status line every second. This ensures that even under high
274 load, your status bar is updated correctly. Also, it saves a bit of energy by
275 not hogging your CPU as much as spawning the corresponding amount of shell
277 (license license:bsd-3)))
285 (uri (string-append "https://i3wm.org/downloads/i3-"
289 "03dijnwv2n8ak9jq59fhq0rc80m5wjc9d54fslqaivnnz81pkbjk"))))
290 (build-system gnu-build-system)
293 ;; The build system tries to build in a separate directory, but that
294 ;; seems to be unnecessary.
295 (list "--disable-builddir")
297 ;; The test suite requires the unpackaged Xephyr X server.
300 (modify-phases %standard-phases
301 (add-after 'install 'patch-session-file
302 (lambda* (#:key outputs #:allow-other-keys)
303 (let* ((out (assoc-ref outputs "out"))
304 (i3 (string-append out "/bin/i3"))
305 (i3-with-shmlog (string-append out "/bin/i3-with-shmlog")))
306 (substitute* (string-append out "/share/xsessions/i3.desktop")
307 (("Exec=i3") (string-append "Exec=" i3)))
308 (substitute* (string-append out "/share/xsessions/i3-with-shmlog.desktop")
309 (("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog)))
313 ("xcb-util" ,xcb-util)
314 ("xcb-util-cursor" ,xcb-util-cursor)
315 ("xcb-util-keysyms" ,xcb-util-keysyms)
316 ("xcb-util-wm" ,xcb-util-wm)
317 ("xcb-util-xrm" ,xcb-util-xrm)
318 ("libxkbcommon" ,libxkbcommon)
321 ("asciidoc" ,asciidoc)
323 ("perl-pod-simple" ,perl-pod-simple)
326 ("startup-notification" ,startup-notification)
332 ("pkg-config" ,pkg-config)
333 ;; For building the documentation.
335 ("docbook-xsl" ,docbook-xsl)))
336 (home-page "https://i3wm.org/")
337 (synopsis "Tiling window manager")
338 (description "i3 is a tiling X11 window manager that dynamically manages
339 tiled, stacked, and tabbed window layouts.
341 i3 primarily targets advanced users. Windows are managed manually and organised
342 inside containers, which can be split vertically or horizontally, and optionally
345 i3 uses a plain-text configuration file, and can be extended and controlled from
346 many programming languages.")
347 (license license:bsd-3)))
349 (define-public i3-gaps
350 (package (inherit i3-wm)
356 "https://github.com/Airblader/i3/releases/download/"
357 version "/i3-" version ".tar.bz2"))
360 "1hcakwyz78lgp8mhqv7pw86jlb3m415pfql1q19rkijnhm3fn3ci"))))
361 (home-page "https://github.com/Airblader/i3")
362 (synopsis "Tiling window manager with gaps")
363 (description "i3-gaps is a fork of i3wm, a tiling window manager
364 for X11. It is kept up to date with upstream, adding a few additional
365 features such as gaps between windows.
367 i3 is a tiling X11 window manager that dynamically manages tiled, stacked,
368 and tabbed window layouts.
370 i3 primarily targets advanced users. Windows are managed manually and
371 organised inside containers, which can be split vertically or horizontally,
372 and optionally resized.
374 i3 uses a plain-text configuration file, and can be extended and controlled
375 from many programming languages.")
376 (license license:bsd-3)))
378 (define-public i3lock
384 (uri (string-append "https://i3wm.org/i3lock/i3lock-"
388 "015dn534m7cxjvqdncpvaq9p8b2r4w5hp1yanbdy2abmhbcc7a7j"))))
389 (build-system gnu-build-system)
391 `(("pkg-config" ,pkg-config)))
395 ("linux-pam" ,linux-pam)
397 ("libxkbcommon" ,libxkbcommon)
398 ("xcb-util" ,xcb-util)
399 ("xcb-util-image" ,xcb-util-image)
400 ("xcb-util-xrm" ,xcb-util-xrm)))
401 (home-page "https://i3wm.org/i3lock/")
402 (synopsis "Lightweight screen locker")
404 "i3lock is a simple X11 screen locker developed alongside the i3 project.
405 Despite the name it should work with any X11 window manager.")
406 (license license:bsd-3)))
408 (define-public i3blocks
415 (url "https://github.com/vivien/i3blocks")
419 "0v8mwnm8qzpv6xnqvrk43s4b9iyld4naqzbaxk4ldq1qkhai0wsv"))
420 (file-name (git-file-name name version))))
421 (build-system gnu-build-system)
423 `(("autoconf" ,autoconf)
424 ("automake" ,automake)
425 ("pkg-config" ,pkg-config)))
426 (home-page "https://github.com/vivien/i3blocks")
427 (synopsis "Minimalist scheduler for status bar scripts")
428 (description "i3blocks executes your command lines and generates a
429 status line from their output. The generated line is meant to be displayed by
430 the i3 window manager through its i3bar component, as an alternative to
432 (license license:gpl3+)))
434 (define-public perl-anyevent-i3
436 (name "perl-anyevent-i3")
440 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTPLBG/"
441 "AnyEvent-I3-" version ".tar.gz"))
444 "0qvd9bq16jyy7v3ma82qcnvz9j503bw0mh7h55gkjf7ir62ck0jk"))))
445 (build-system perl-build-system)
447 `(("perl-anyevent" ,perl-anyevent)
448 ("perl-json-xs" ,perl-json-xs)))
449 (home-page "https://metacpan.org/release/AnyEvent-I3")
451 "Communicate with the i3 window manager through perl")
453 "This module connects to the i3 window manager using the UNIX socket
454 based IPC interface it provides (if enabled in the configuration file).
455 You can then subscribe to events or send messages and receive their replies.")
456 ;; Can be used with either license.
457 (license (list license:gpl3+ license:perl-license))))
459 (define-public python-i3-py
461 (name "python-i3-py")
465 ;; The latest release is not tagged in Git nor has an entry in PyPi,
466 ;; but there is still a clear commit for it, and it's been the last one
470 (url "https://github.com/ziberna/i3-py")
471 (commit "27f88a616e9ecc340e7d041d3d00782f8a1964c1")))
474 "1nm719dc2xqlll7vj4c4m7mpjb27lpn3bg3c66gajvnrz2x1nmxs"))
475 (file-name (string-append name "-" version "-checkout"))))
476 (build-system python-build-system)
478 `(#:tests? #f ; no tests yet
479 #:phases (modify-phases %standard-phases
480 (add-after 'install 'install-doc
481 ;; Copy readme file to documentation directory.
482 (lambda* (#:key outputs #:allow-other-keys)
483 (let ((doc (string-append (assoc-ref outputs "out")
484 "/share/doc/" ,name)))
485 (install-file "README.md" doc)
486 ;; Avoid unspecified return value.
490 (home-page "https://github.com/ziberna/i3-py")
491 (synopsis "Python interface to the i3 window manager")
492 (description "This package allows you to interact from a Python program
493 with the i3 window manager via its IPC socket. It can send commands and other
494 kinds of messages to i3, select the affected containers, filter results and
495 subscribe to events.")
496 (license license:gpl3+)))
498 (define-public python2-i3-py
499 (package-with-python2 python-i3-py))
501 (define-public quickswitch-i3
502 (let ((commit "ed692b1e8f43b95bd907ced26238ce8ccb2ed28f")
503 (revision "1")) ; Guix package revision
505 (name "quickswitch-i3")
506 (version (string-append "2.2-" revision "."
507 (string-take commit 7)))
510 ;; The latest commit is a few years old and just a couple commits
511 ;; after the last tagged release, so we use that latest commit
512 ;; instead of the release.
515 (url "https://github.com/proxypoke/quickswitch-for-i3")
519 "0447077sama80jcdg5p64zjsvafmz5rbdrirhm1adcdjhkh6iqc5"))
520 (patches (search-patches "quickswitch-fix-dmenu-check.patch"))
521 (file-name (string-append name "-" version "-checkout"))))
522 (build-system python-build-system)
524 `(#:tests? #f ; no tests yet
525 #:phases (modify-phases %standard-phases
526 (add-after 'install 'install-doc
527 ;; Copy readme file to documentation directory.
528 (lambda* (#:key outputs #:allow-other-keys)
529 (let ((doc (string-append (assoc-ref outputs "out")
530 "/share/doc/" ,name)))
531 (install-file "README.rst" doc)
532 ;; Avoid unspecified return value.
535 `(("python-i3-py" ,python-i3-py)
537 (home-page "https://github.com/proxypoke/quickswitch-for-i3")
538 (synopsis "Quickly change to and locate windows in the i3 window manager")
540 "This utility for the i3 window manager allows you to quickly switch to
541 and locate windows on all your workspaces, using an interactive dmenu
543 (license license:wtfpl2))))
545 (define-public i3lock-color
547 (name "i3lock-color")
553 (url "https://github.com/PandorasFox/i3lock-color")
555 (file-name (git-file-name name version))
557 (base32 "08fhnchf187b73h52xgzb86g6byzxz085zs9galsvl687g5zxk34"))))
558 (build-system gnu-build-system)
560 `(#:tests? #f)) ; no tests included
564 ("libjpeg" ,libjpeg-turbo)
566 ("libxkbcommon" ,libxkbcommon)
567 ("linux-pam" ,linux-pam)
568 ("xcb-util" ,xcb-util)
569 ("xcb-util-image" ,xcb-util-image)
570 ("xcb-util-xrm" ,xcb-util-xrm)))
572 `(("autoconf" ,autoconf)
573 ("automake" ,automake)
574 ("pkg-config" ,pkg-config)))
575 (home-page "https://github.com/PandorasFox/i3lock-color")
576 (synopsis "Screen locker with color configuration support")
578 "i3lock-color is a simpler X11 screen locker derived from i3lock.
582 @item forking process, the locked screen is preserved when you suspend to RAM;
583 @item specify background color or image to be displayed in the lock screen;
584 @item many additional color options.
586 (license license:bsd-3)))
588 (define-public i3lock-fancy
590 (name "i3lock-fancy")
596 (url "https://github.com/meskarune/i3lock-fancy")
598 (file-name (git-file-name name version))
600 (base32 "11g2kkim33ra38d1m897sq1ifajw17iyw9mr7sg1q8i2ibl4lfsi"))))
601 (build-system gnu-build-system)
603 `(#:tests? #f ; no tests included
605 (modify-phases %standard-phases
607 (lambda* (#:key inputs outputs #:allow-other-keys)
608 (let* ((out (assoc-ref outputs "out"))
609 (icons (string-append out "/share/i3lock-fancy/icons/"))
610 (wmctrl (string-append (assoc-ref inputs "wmctrl")
612 (mconvert (string-append (assoc-ref inputs "imagemagick")
614 (mimport (string-append (assoc-ref inputs "imagemagick")
616 (awk (string-append (assoc-ref inputs "gawk")
620 (("\\$\\(command -V wmctrl\\)") wmctrl)
621 (("convert") mconvert)
622 (("shot=\\(import") (string-append "shot=\(" mimport))
623 (("awk -F") (string-append awk " -F"))
625 (("\\$scriptpath/icons/") icons))
629 (lambda* (#:key inputs outputs #:allow-other-keys)
630 (let* ((out (assoc-ref outputs "out"))
631 (bin (string-append out "/bin"))
632 (icons (string-append out "/share/i3lock-fancy/icons/")))
634 (install-file "lock" bin)
635 (rename-file (string-append bin "/lock")
636 (string-append bin "/i3lock-fancy"))
637 (copy-recursively "icons" icons)
640 `(("imagemagick" ,imagemagick)
643 (home-page "https://github.com/meskarune/i3lock-fancy")
644 (synopsis "Screen locker with screenshot function")
646 "@code{i3lock-fancy} is a Bash script that takes a screenshot of
647 the desktop, blurs the background and adds a lock icon and text.
648 It requires @code{i3lock-color} or @code{i3lock} and can optionally
649 be passed any screenshot util like @code{scrot}.
650 This screen locker can be used with any window manager or
651 desktop environment.")
652 (license license:expat)))
654 (define-public xmonad
658 (synopsis "Tiling window manager")
661 (uri (string-append "mirror://hackage/package/xmonad/"
662 "xmonad-" version ".tar.gz"))
665 "0a7rh21k9y6g8fwkggxdxjns2grvvsd5hi2ls4klmqz5xvk4hyaa"))
666 (patches (search-patches "xmonad-dynamic-linking.patch"))))
667 (build-system haskell-build-system)
669 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
670 ("ghc-quickcheck" ,ghc-quickcheck)
671 ("ghc-semigroups" ,ghc-semigroups)
672 ("ghc-setlocale" ,ghc-setlocale)
673 ("ghc-utf8-string" ,ghc-utf8-string)
674 ("ghc-x11" ,ghc-x11)))
677 (modify-phases %standard-phases
679 'install 'install-xsession
681 (let* ((xsessions (string-append %output "/share/xsessions")))
683 (call-with-output-file
684 (string-append xsessions "/xmonad.desktop")
691 Type=Application~%" ,name ,synopsis %output)))))))))
692 (home-page "https://xmonad.org")
694 "Xmonad is a tiling window manager for X. Windows are arranged
695 automatically to tile the screen without gaps or overlap, maximising screen
696 use. All features of the window manager are accessible from the keyboard: a
697 mouse is strictly optional. Xmonad is written and extensible in Haskell.
698 Custom layout algorithms, and other extensions, may be written by the user in
699 config files. Layouts are applied dynamically, and different layouts may be
700 used on each workspace. Xinerama is fully supported, allowing windows to be
701 tiled on several screens.")
702 (license license:bsd-3)))
704 (define-public xmobar
710 (uri (string-append "mirror://hackage/package/xmobar/"
711 "xmobar-" version ".tar.gz"))
714 "0x09xbz7y9ay0046j1xpr9jjk5jqivqi06vm3q6mhcrgc4y922rx"))))
715 (build-system haskell-build-system)
717 `(("ghc-hspec" ,ghc-hspec)
718 ("hspec-discover" ,hspec-discover)))
720 `(("ghc-alsa-core" ,ghc-alsa-core)
721 ("ghc-alsa-mixer" ,ghc-alsa-mixer)
722 ("ghc-dbus" ,ghc-dbus)
723 ("ghc-hinotify" ,ghc-hinotify)
724 ("ghc-http" ,ghc-http)
725 ("ghc-http-conduit" ,ghc-http-conduit)
726 ("ghc-http-types" ,ghc-http-types)
727 ("ghc-iwlib" ,ghc-iwlib)
728 ("ghc-libmpd" ,ghc-libmpd)
729 ("ghc-old-locale" ,ghc-old-locale)
730 ("ghc-parsec-numbers" ,ghc-parsec-numbers)
731 ("ghc-regex-compat" ,ghc-regex-compat)
732 ("ghc-temporary" ,ghc-temporary)
733 ("ghc-timezone-olson" ,ghc-timezone-olson)
735 ("ghc-x11-xft" ,ghc-x11-xft)
738 `(#:configure-flags (list "--flags=all_extensions")
740 (modify-phases %standard-phases
741 (add-before 'build 'patch-test-shebang
742 (lambda* (#:key inputs #:allow-other-keys)
743 (substitute* "test/Xmobar/Plugins/Monitors/AlsaSpec.hs"
744 (("/bin/bash") (which "bash")))
746 (home-page "https://xmobar.org")
747 (synopsis "Minimalistic text based status bar")
749 "@code{xmobar} is a lightweight, text-based, status bar written in
750 Haskell. It was originally designed to be used together with Xmonad, but it
751 is also usable with any other window manager. While xmobar is written in
752 Haskell, no knowledge of the language is required to install and use it.")
753 (license license:bsd-3)))
755 (define-public yeganesh
763 (uri (string-append "http://dmwit.com/yeganesh/yeganesh-" version ".tar.gz"))
765 (base32 "04djfyjab3c5y9z9x8zd0xcx0jyy35zq7cl9ddr4ppf6k5ky6iky"))))
766 (build-system haskell-build-system)
768 `(("ghc-strict" ,ghc-strict)
769 ("ghc-xdg-basedir" ,ghc-xdg-basedir)))
770 (home-page "http://dmwit.com/yeganesh/")
771 (synopsis "Small wrapper around dmenu")
772 (description "@code{yeganesh} is a small wrapper around demnu. Like
773 dmenu, it accepts input on stdin and writes the chosen result on stdout.
774 Unlike dmenu, it mangles the input before it presents its choices. In
775 particular, it displays commonly-chosen options before uncommon ones.")
776 (license license:bsd-3)))
778 (define-public ghc-xmonad-contrib
780 (name "ghc-xmonad-contrib")
785 (uri (string-append "mirror://hackage/package/xmonad-contrib/"
786 "xmonad-contrib-" version ".tar.gz"))
788 (base32 "1pddgkvnbww28wykncc7j0yb0lv15bk7xnnhdcbrwkxzw66w6wmd"))))
789 (build-system haskell-build-system)
791 `(("ghc-old-time" ,ghc-old-time)
792 ("ghc-random" ,ghc-random)
793 ("ghc-utf8-string" ,ghc-utf8-string)
794 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
795 ("ghc-semigroups" ,ghc-semigroups)
797 ("ghc-x11-xft" ,ghc-x11-xft)
799 (home-page "https://xmonad.org")
800 (synopsis "Third party extensions for xmonad")
802 "Third party tiling algorithms, configurations, and scripts to Xmonad, a
803 tiling window manager for X.")
804 (license license:bsd-3)))
806 (define-public evilwm
813 (uri (string-append "http://www.6809.org.uk/evilwm/evilwm-"
817 "0ak0yajzk3v4dg5wmaghv6acf7v02a4iw8qxmq5yw5ard8lrqn3r"))
818 (patches (search-patches "evilwm-lost-focus-bug.patch"))))
819 (build-system gnu-build-system)
823 ("libxrandr" ,libxrandr)))
825 `(#:modules ((srfi srfi-26)
827 (guix build gnu-build-system))
828 #:make-flags (let ((inputs (map (cut assoc-ref %build-inputs <>)
829 '("libx11" "libxext" "libxrandr")))
830 (join (lambda (proc strs)
831 (string-join (map proc strs) " ")))
832 (dash-I (cut string-append "-I" <> "/include"))
833 (dash-L (cut string-append "-L" <> "/lib")))
834 `("desktopfilesdir=$(prefix)/share/xsessions"
835 ,(string-append "prefix=" (assoc-ref %outputs "out"))
836 ,(string-append "CPPFLAGS=" (join dash-I inputs))
837 ,(string-append "LDFLAGS=" (join dash-L inputs))))
838 #:tests? #f ;no tests
839 #:phases (modify-phases %standard-phases
840 (delete 'configure)))) ;no configure script
841 (home-page "http://www.6809.org.uk/evilwm/")
842 (synopsis "Minimalist window manager for the X Window System")
844 "evilwm is a minimalist window manager based on aewm, extended to feature
845 many keyboard controls with repositioning and maximize toggles, solid window
846 drags, snap-to-border support, and virtual desktops.")
847 (license (license:x11-style "file:///README"))))
849 (define-public fluxbox
853 (synopsis "Small and fast window manager")
856 (uri (string-append "mirror://sourceforge/fluxbox/fluxbox/"
857 version "/fluxbox-" version ".tar.xz"))
860 "1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w"))))
861 (build-system gnu-build-system)
863 `(#:make-flags '("CPPFLAGS=-U__TIME__") ;ugly, but for reproducibility
865 (modify-phases %standard-phases
866 (add-after 'install 'install-vim-files
867 (lambda* (#:key outputs #:allow-other-keys)
868 (let* ((out (assoc-ref outputs "out"))
869 (syntax (string-append out "/share/vim/vimfiles/syntax")))
870 (copy-recursively "3rd/vim/vim/syntax" syntax)
872 (add-after 'install 'install-xsession
873 (lambda* (#:key outputs #:allow-other-keys)
874 (let* ((out (assoc-ref outputs "out"))
875 (xsessions (string-append out "/share/xsessions")))
877 (call-with-output-file
878 (string-append xsessions "/fluxbox.desktop")
884 Exec=~a/bin/startfluxbox~@
885 Type=Application~%" ,name ,synopsis out)))
888 `(("pkg-config" ,pkg-config)))
890 `(("freetype" ,freetype)
896 ("libxinerama" ,libxinerama)
898 ("libxrandr" ,libxrandr)
899 ("libxrender" ,libxrender)))
900 (description "Fluxbox is a window manager. It is light on resources
901 and easy to handle yet full of features to make an easy and fast desktop
903 (home-page "http://fluxbox.org/")
904 (license license:expat)))
906 (define-public awesome
914 "https://github.com/awesomeWM/awesome-releases/raw/master/"
915 "awesome-" version ".tar.xz"))
917 (base32 "0lqpw401mkkmp9wgbvrmm45bqq2j9357l4irwdqv6l1305pls9kq"))
918 (modules '((guix build utils)
922 ;; Remove non-reproducible timestamp and use the date of
923 ;; the source file instead.
924 (substitute* "common/version.c"
925 (("__DATE__ \" \" __TIME__")
928 (make-time time-utc 0 (stat:mtime (stat "awesome.c"))))
932 (search-patches "awesome-reproducible-png.patch"))))
933 (build-system cmake-build-system)
935 `(("asciidoc" ,asciidoc)
936 ("docbook-xsl" ,docbook-xsl)
939 ("imagemagick" ,imagemagick)
940 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
941 ("lua-ldoc" ,lua-ldoc)
942 ("pkg-config" ,pkg-config)
947 ("gdk-pixbuf" ,gdk-pixbuf)
949 ("gobject-introspection" ,gobject-introspection)
953 ("libxcursor" ,libxcursor)
954 ("libxdg-basedir" ,libxdg-basedir)
955 ("libxkbcommon" ,libxkbcommon)
959 ("startup-notification" ,startup-notification)
960 ("xcb-util" ,xcb-util)
961 ("xcb-util-cursor" ,xcb-util-cursor)
962 ("xcb-util-image" ,xcb-util-image)
963 ("xcb-util-keysyms" ,xcb-util-keysyms)
964 ("xcb-util-renderutil" ,xcb-util-renderutil)
965 ("xcb-util-xrm" ,xcb-util-xrm)
966 ("xcb-util-wm" ,xcb-util-wm)))
968 `(#:modules ((guix build cmake-build-system)
971 ;; Let compression happen in our 'compress-documentation' phase
972 ;; so that '--no-name' is used, which removes timestamps from
975 '("-DCOMPRESS_MANPAGES=off")
976 ;; Building awesome in its source directory is no longer
980 (modify-phases %standard-phases
981 (add-before 'configure 'set-paths
982 (lambda* (#:key inputs #:allow-other-keys)
983 (substitute* "lib/awful/completion.lua"
986 ;; The build process needs to load Cairo dynamically.
987 (let* ((cairo (string-append (assoc-ref inputs "cairo") "/lib"))
988 (lua-version ,(version-major+minor (package-version lua)))
990 (filter (match-lambda
991 ((label . _) (string-prefix? "lua-" label)))
998 dir "/share/lua/" lua-version "/?.lua;"
999 dir "/share/lua/" lua-version "/?/?.lua")))
1007 dir "/lib/lua/" lua-version "/?.so;"
1008 dir "/lib/lua/" lua-version "/?/?.so")))
1011 (setenv "LD_LIBRARY_PATH" cairo)
1012 (setenv "LUA_PATH" (string-append "?.lua;" lua-path))
1013 (setenv "LUA_CPATH" lua-cpath)
1017 ;; There aren't any tests, so just make sure the binary
1018 ;; gets built and can be run successfully.
1019 (invoke "../build/awesome" "-v")))
1020 (add-after 'install 'patch-session-file
1021 (lambda* (#:key outputs #:allow-other-keys)
1022 (let* ((out (assoc-ref outputs "out"))
1023 (awesome (string-append out "/bin/awesome")))
1024 (substitute* (string-append out "/share/xsessions/awesome.desktop")
1025 (("Exec=awesome") (string-append "Exec=" awesome)))
1027 (add-after 'install 'wrap
1028 (lambda* (#:key inputs outputs #:allow-other-keys)
1029 (let* ((awesome (assoc-ref outputs "out"))
1030 (cairo (string-append (assoc-ref inputs "cairo") "/lib"))
1031 (lua-version ,(version-major+minor (package-version lua)))
1032 (lua-lgi (assoc-ref inputs "lua-lgi")))
1033 (wrap-program (string-append awesome "/bin/awesome")
1034 `("LUA_PATH" ";" suffix
1035 (,(format #f "~a/share/lua/~a/?.lua" lua-lgi lua-version)))
1036 `("LUA_CPATH" ";" suffix
1037 (,(format #f "~a/lib/lua/~a/?.so" lua-lgi lua-version)))
1038 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))
1039 `("LD_LIBRARY_PATH" suffix (,cairo)))
1041 (home-page "https://awesomewm.org/")
1042 (synopsis "Highly configurable window manager")
1044 "Awesome has been designed as a framework window manager. It is fast, small,
1045 dynamic and extensible using the Lua programming language.")
1046 (license license:gpl2+)))
1048 (define-public menumaker
1055 (uri (string-append "mirror://sourceforge/menumaker/"
1056 "menumaker-" version ".tar.gz"))
1058 (base32 "034v5204bsgkzzk6zfa5ia63q95gln47f7hwf96yvad5hrhmd8z3"))))
1059 (build-system gnu-build-system)
1061 `(("python" ,python)))
1062 (synopsis "Heuristics-driven menu generator")
1064 "MenuMaker is a menu generation utility for a number of X window
1065 managers and desktop environments. It is capable of finding lots of
1066 installed programs and generating a root menu consistent across all
1067 supported window managers, so one will get (almost) the same menu in
1068 all of them. Currently supported window managers include:
1080 (home-page "http://menumaker.sourceforge.net/")
1081 (license license:bsd-2)))
1083 (define-public keybinder
1090 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1091 "/releases/download/v" version "/keybinder-"
1093 (file-name (string-append name "-" version ".tar.gz"))
1096 "0h52hj3ay8mfhwvmfxbxlfyq74hifdk8wxgxp7fr4iy6189hg7w7"))))
1097 (build-system gnu-build-system)
1099 `(("python-2" ,python-2)
1100 ("gtk+-2" ,gtk+-2)))
1102 `(("python2-pygtk" ,python2-pygtk)
1103 ("gtk-doc" ,gtk-doc)
1104 ("pkg-config" ,pkg-config)))
1105 (synopsis "Library for registering global keyboard shortcuts")
1107 "Keybinder is a library for registering global keyboard shortcuts.
1108 Keybinder works with GTK-based applications using the X Window System.")
1109 (home-page "https://github.com/kupferlauncher/keybinder")
1110 (license license:gpl2+)))
1112 (define-public keybinder-3.0
1114 (name "keybinder-3.0")
1119 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1120 "/releases/download/" name "-v" version "/" name "-"
1122 (file-name (string-append name "-" version ".tar.gz"))
1125 "0830ihwnalw59pp1xzrp37dn58n8vwb8zasnm4a1h81v3x7dxqz6"))))
1126 (build-system gnu-build-system)
1129 ("gobject-introspection" ,gobject-introspection)))
1131 `(("gtk-doc" ,gtk-doc)
1132 ("pkg-config" ,pkg-config)))
1133 (synopsis "Library for registering global keyboard shortcuts, Gtk3 version")
1135 "Keybinder is a library for registering global keyboard shortcuts.
1136 Keybinder works with GTK-based applications using the X Window System.")
1137 (home-page "https://github.com/kupferlauncher/keybinder")
1138 (license license:x11)))
1140 (define-public spectrwm
1148 (url "https://github.com/conformal/spectrwm")
1150 (string-append "SPECTRWM_"
1151 (string-join (string-split version #\.) "_")))))
1152 (file-name (git-file-name name version))
1154 (base32 "1dfqy5f0s1nv6rqkz9lj006vypmp4rwxd5vczfk3ndzqgnh19kw6"))))
1155 (build-system gnu-build-system)
1157 `(#:make-flags (let ((pkg-config (lambda (flag)
1159 "$(shell pkg-config " flag " "
1160 "xft fontconfig x11 libpng)"))))
1163 (string-append "PREFIX=" %output)
1164 (string-append "INCS=-I. " (pkg-config "--cflags"))
1165 (string-append "LIBS=" (pkg-config "--libs") " -lm")))
1166 #:tests? #f ;no test suite
1168 (modify-phases %standard-phases
1169 (add-before 'build 'change-dir
1171 (chdir "linux") #t))
1172 (add-after 'change-dir 'patch-makefile
1174 (substitute* "Makefile"
1176 (delete 'configure)))) ;no 'configure' exists
1178 `(("freetype" ,freetype)
1179 ("fontconfig" ,fontconfig)
1181 ("libxcursor" ,libxcursor)
1182 ("libxrandr" ,libxrandr)
1183 ("libxtst" ,libxtst)
1185 ("xcb-util" ,xcb-util)
1186 ("xcb-util-wm" ,xcb-util-wm)
1187 ("xcb-util-keysyms" ,xcb-util-keysyms)))
1190 ("pkg-config" ,pkg-config)))
1191 (synopsis "Minimalistic automatic tiling window manager")
1193 "Spectrwm is a small dynamic tiling and reparenting window manager for X11.
1194 It is inspired by Xmonad and dwm. Its major features include:
1197 @item Navigation anywhere on all screens with either the keyboard or mouse
1198 @item Customizable status bar
1199 @item Restartable without losing state
1200 @item Quick launch menu
1201 @item Many screen layouts possible with a few simple key strokes
1202 @item Move/resize floating windows
1203 @item Extended Window Manager Hints (@dfn{EWMH}) support
1204 @item Configurable tiling
1205 @item Adjustable tile gap allows for a true one pixel border
1206 @item Customizable colors and border width
1208 (home-page "https://github.com/conformal/spectrwm")
1209 (license license:isc)))
1218 (uri (string-append "https://leahneukirchen.org/releases/cwm-"
1221 (base32 "022zld29qawd8gl700g4m24qa89il3aks397zkhh66wvzssdblzx"))))
1222 (build-system gnu-build-system)
1224 `(#:make-flags (list (string-append "CC=" ,(cc-for-target))
1225 (string-append "PREFIX=" %output))
1228 (modify-phases %standard-phases
1230 (add-after 'build 'install-xsession
1231 (lambda* (#:key outputs #:allow-other-keys)
1232 ;; Add a .desktop file to xsessions.
1233 (let* ((output (assoc-ref outputs "out"))
1234 (xsessions (string-append output "/share/xsessions")))
1236 (with-output-to-file
1237 (string-append xsessions "/cwm.desktop")
1242 Comment=OpenBSD Calm Window Manager fork~@
1244 TryExec=~@*~a/bin/cwm~@
1250 `(("libxft" ,libxft)
1251 ("libxrandr" ,libxrandr)
1252 ("libxinerama" ,libxinerama)))
1254 `(("pkg-config" ,pkg-config)
1256 (home-page "https://github.com/leahneukirchen/cwm")
1257 (synopsis "OpenBSD fork of the calmwm window manager")
1258 (description "Cwm is a stacking window manager for X11. It is an OpenBSD
1259 project derived from the original Calm Window Manager.")
1260 (license license:isc)))
1269 (url "https://github.com/djpohly/dwl")
1270 (commit (string-append "v" version))))
1271 (file-name (git-file-name name version))
1274 "18g2sx8cv54zl5iw5m9lzngrp6ra2pyp7c68qps2ava3brw9m0j2"))))
1275 (build-system gnu-build-system)
1277 `(#:tests? #f ; no tests
1280 (string-append "CC=" ,(cc-for-target))
1281 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1283 (modify-phases %standard-phases
1284 (delete 'configure) ; no configure
1285 (replace 'install ; no install target
1286 (lambda* (#:key outputs #:allow-other-keys)
1287 (let* ((out (assoc-ref outputs "out"))
1288 (bin (string-append out "/bin")))
1289 (install-file "dwl" bin)))))))
1291 `(("pkg-config" ,pkg-config)))
1293 `(("wlroots" ,wlroots)))
1294 (home-page "https://github.com/djpohly/dwl")
1295 (synopsis "Dynamic window manager for Wayland")
1297 "@command{dwm} is a compact, hackable compositor for Wayland based on
1298 wlroots. It is intended to fill the same space in the Wayland world that dwm
1299 does in X11, primarily in terms of philosophy, and secondarily in terms of
1300 functionality. Like dwm, dwl is easy to understand and hack on, due to a
1301 limited size and a few external dependencies. It is configurable via
1303 ;; LICENSE LICENSE.dwm LICENSE.tinywl
1304 (license (list license:gpl3+ license:expat license:cc0))))
1306 (define-public nitrogen
1312 (uri (string-append "http://github.com/l3ib/nitrogen/"
1313 "releases/download/" version "/"
1314 name "-" version ".tar.gz"))
1317 "0zc3fl1mbhq0iyndy4ysmy8vv5c7xwf54rbgamzfhfvsgdq160pl"))))
1318 (build-system gnu-build-system)
1323 ("glibmm" ,glibmm)))
1325 `(("pkg-config" ,pkg-config)))
1326 (home-page "http://projects.l3ib.org/nitrogen/")
1327 (synopsis "Background browser and setter for X windows")
1329 "This package is a background browser and setter for X windows. It's
1333 @item Multihead and Xinerama aware
1334 @item Recall mode to used via startup script
1335 @item Uses freedesktop.org standard for thumbnails
1336 @item Can set GNOME background
1337 @item Command lie set modes for script use
1338 @item Inotify monitoring of browse directory
1339 @item Lazy loading of thumbnails - conserves memory
1340 @item \"Automatic\" set mode - determines best mode to set an image based on
1342 @item Display preview images in a tiled icon layout
1344 (license license:gpl2+)))
1346 (define-public polybar
1353 (uri (string-append "https://github.com/polybar/polybar/releases/"
1354 "download/" version "/polybar-" version ".tar.gz"))
1356 (base32 "0awwjp3l0y9yhmrl914710ipawp2xr43jxrvmnanahlznblg8fhk"))))
1357 (build-system cmake-build-system)
1359 ;; Test is disabled because it requires downloading googletest from the
1363 `(("alsa-lib" ,alsa-lib)
1366 ("jsoncpp" ,jsoncpp)
1367 ("libmpdclient" ,libmpdclient)
1370 ("pulseaudio" ,pulseaudio)
1371 ("xcb-proto" ,xcb-proto)
1372 ("xcb-util" ,xcb-util)
1373 ("xcb-util-cursor" ,xcb-util-cursor)
1374 ("xcb-util-image" ,xcb-util-image)
1375 ("xcb-util-wm" ,xcb-util-wm)
1376 ("xcb-util-xrm" ,xcb-util-xrm)))
1378 `(("pkg-config" ,pkg-config)
1379 ("python-sphinx" ,python-sphinx) ; for the manual
1380 ;; XXX: "python" input must be located after "python-2", or the package
1381 ;; fails to build with "missing required python module: xcbgen".
1382 ("python-2" ,python-2) ; lib/xpp depends on python 2
1383 ("python" ,python))) ; xcb-proto depends on python 3
1384 (home-page "https://polybar.github.io/")
1385 (synopsis "Fast and easy-to-use status bar")
1386 (description "Polybar aims to help users build beautiful and highly
1387 customizable status bars for their desktop environment. It has built-in
1388 functionality to display information about the most commonly used services.")
1389 (license license:expat)))
1391 (define-public wlroots
1399 (url "https://github.com/swaywm/wlroots")
1401 (file-name (git-file-name name version))
1403 (base32 "01j38lmgs2c6fq68v8b75pkilia2wsgzgp46ivfbi9hhx47kgcfn"))))
1404 (build-system meson-build-system)
1406 `(#:configure-flags '("-Dlogind-provider=elogind")
1409 (modify-phases %standard-phases
1410 (add-before 'configure 'hardcode-paths
1411 (lambda* (#:key inputs #:allow-other-keys)
1412 (substitute* "xwayland/server.c"
1413 (("Xwayland") (string-append (assoc-ref inputs
1414 "xorg-server-xwayland")
1418 `(;; As required by wlroots.pc.
1419 ("elogind" ,elogind)
1421 ("libinput" ,libinput)
1422 ("libxkbcommon" ,libxkbcommon)
1425 ("wayland" ,wayland)
1426 ("wayland-protocols" ,wayland-protocols)
1427 ("xcb-util-errors" ,xcb-util-errors)
1428 ("xcb-util-wm" ,xcb-util-wm)
1429 ("xorg-server-xwayland" ,xorg-server-xwayland)))
1431 `(("pkg-config" ,pkg-config)))
1432 (home-page "https://github.com/swaywm/wlroots")
1433 (synopsis "Pluggable, composable, unopinionated modules for building a
1434 Wayland compositor")
1435 (description "wlroots is a set of pluggable, composable, unopinionated
1436 modules for building a Wayland compositor.")
1437 (license license:expat))) ; MIT license
1447 (url "https://github.com/swaywm/sway")
1449 (file-name (git-file-name name version))
1451 (base32 "1xsa3h8zhf29p0mi90baxpr76jkd9pd1gr97ky8cnjbcs4isj9j0"))))
1452 (build-system meson-build-system)
1455 (modify-phases %standard-phases
1456 (add-before 'configure 'hardcode-paths
1457 (lambda* (#:key inputs #:allow-other-keys)
1458 ;; Hardcode path to swaybg.
1459 (substitute* "sway/config.c"
1460 (("strdup..swaybg..")
1461 (string-append "strdup(\"" (assoc-ref inputs "swaybg")
1463 ;; Hardcode path to scdoc.
1464 (substitute* "meson.build"
1465 (("scdoc.get_pkgconfig_variable..scdoc..")
1466 (string-append "'" (assoc-ref inputs "scdoc")
1469 (inputs `(("cairo" ,cairo)
1470 ("elogind" ,elogind)
1471 ("gdk-pixbuf" ,gdk-pixbuf)
1473 ("libevdev" ,libevdev)
1474 ("libinput" ,libinput)
1475 ("libxkbcommon" ,libxkbcommon)
1478 ("wayland" ,wayland)
1479 ("wlroots" ,wlroots)))
1481 `(("linux-pam" ,linux-pam)
1483 ("pkg-config" ,pkg-config)
1485 ("wayland-protocols" ,wayland-protocols)))
1486 (home-page "https://github.com/swaywm/sway")
1487 (synopsis "Wayland compositor compatible with i3")
1488 (description "Sway is a i3-compatible Wayland compositor.")
1489 (license license:expat)))
1491 (define-public swayidle
1499 (url "https://github.com/swaywm/swayidle")
1501 (file-name (git-file-name name version))
1503 (base32 "1nd3v8r9549lykdwh4krldfl59lzaspmmai5k1icy7dvi6kkr18r"))))
1504 (build-system meson-build-system)
1506 `(#:configure-flags '("-Dlogind-provider=elogind")))
1507 (inputs `(("elogind" ,elogind)
1508 ("wayland" ,wayland)))
1509 (native-inputs `(("pkg-config" ,pkg-config)
1511 ("wayland-protocols" ,wayland-protocols)))
1512 (home-page "https://github.com/swaywm/sway")
1513 (synopsis "Idle management daemon for Wayland compositors")
1514 (description "Swayidle is a idle management daemon for Wayland compositors.")
1515 (license license:expat))) ; MIT license
1517 (define-public swaylock
1525 (url "https://github.com/swaywm/swaylock")
1527 (file-name (git-file-name name version))
1529 (base32 "0r95p4w11dwm5ra614vddz83r8j7z6gd120z2vcchy7m9b0f15kf"))))
1530 (build-system meson-build-system)
1531 (inputs `(("cairo" ,cairo)
1532 ("gdk-pixbuf" ,gdk-pixbuf)
1533 ("libxkbcommon" ,libxkbcommon)
1534 ;("linux-pam" ,linux-pam) ; FIXME: Doesn't work.
1535 ("wayland" ,wayland)))
1536 (native-inputs `(("pango" ,pango)
1537 ("pkg-config" ,pkg-config)
1539 ("wayland-protocols" ,wayland-protocols)))
1540 (home-page "https://github.com/swaywm/sway")
1541 (synopsis "Screen locking utility for Wayland compositors")
1542 (description "Swaylock is a screen locking utility for Wayland compositors.")
1543 (license license:expat))) ; MIT license
1545 (define-public swaybg
1553 (url "https://github.com/swaywm/swaybg")
1555 (file-name (git-file-name name version))
1557 (base32 "1lmqz5bmig90gq2m7lwf02d2g7z4hzf8fhqz78c8vk92c6p4xwbc"))))
1558 (build-system meson-build-system)
1559 (inputs `(("cairo" ,cairo)
1560 ("gdk-pixbuf" ,gdk-pixbuf)
1561 ("wayland" ,wayland)))
1562 (native-inputs `(("pkg-config" ,pkg-config)
1564 ("wayland-protocols" ,wayland-protocols)))
1565 (home-page "https://github.com/swaywm/sway")
1566 (synopsis "Screen wallpaper utility for Wayland compositors")
1567 (description "Swaybg is a wallpaper utility for Wayland compositors.")
1568 (license license:expat))) ; MIT license
1570 (define-public waybar
1578 (url "https://github.com/Alexays/Waybar")
1580 (file-name (git-file-name name version))
1582 (base32 "038vnma7y7z81caywp45yr364bc1aq8d01j5vycyiyfv33nm76fy"))))
1583 (build-system meson-build-system)
1584 (inputs `(("date" ,date)
1586 ("gtk-layer-shell" ,gtk-layer-shell)
1588 ("jsoncpp" ,jsoncpp)
1589 ("libdbusmenu" ,libdbusmenu)
1590 ("libinput" ,libinput)
1591 ("libmpdclent" ,libmpdclient)
1593 ("pulseaudio" ,pulseaudio)
1594 ("spdlog" ,spdlog-1.7)
1595 ("wayland" ,wayland)))
1597 `(("gcc" ,gcc-8) ; for #include <filesystem>
1598 ("glib:bin" ,glib "bin")
1599 ("pkg-config" ,pkg-config)
1601 ("wayland-protocols" ,wayland-protocols)))
1602 (home-page "https://github.com/Alexays/Waybar")
1603 (synopsis "Wayland bar for Sway and Wlroots based compositors")
1604 (description "Waybar is a highly customisable Wayland bar for Sway and
1605 Wlroots based compositors.")
1606 (license license:expat))) ; MIT license
1608 (define-public wlr-randr
1616 (url "https://github.com/emersion/wlr-randr")
1617 (commit (string-append "v" version))))
1618 (file-name (git-file-name name version))
1620 (base32 "10c8zzp78s5bw34vvjhilipa28bsdx3jbyhnxgp8f8kawh3cvgsc"))))
1621 (build-system meson-build-system)
1622 (inputs `(("wayland" ,wayland)))
1623 (native-inputs `(("pkg-config" ,pkg-config)))
1624 (home-page "https://github.com/emersion/wlr-randr")
1625 (synopsis "Utility to manage Wayland compositor outputs")
1626 (description "wlr-randr is a utility to manage outputs of a Wayland compositor.")
1627 (license license:expat))) ; MIT license
1637 (url "https://github.com/emersion/mako")
1638 (commit (string-append "v" version))))
1639 (file-name (git-file-name name version))
1641 (base32 "0hwvibpnrximb628w9dsfjpi30b5jy7nfkm4d94z5vhp78p43vxh"))))
1642 (build-system meson-build-system)
1643 (inputs `(("cairo" ,cairo)
1644 ("elogind" ,elogind)
1645 ("gdk-pixbuf" ,gdk-pixbuf)
1647 ("wayland" ,wayland)))
1648 (native-inputs `(("pkg-config" ,pkg-config)
1650 ("wayland-protocols" ,wayland-protocols)))
1651 (home-page "https://wayland.emersion.fr/mako")
1652 (synopsis "Lightweight Wayland notification daemon")
1653 (description "Mako is a lightweight notification daemon for Wayland
1654 compositors that support the layer-shell protocol.")
1655 (license license:expat))) ; MIT license
1657 (define-public kanshi
1665 (url "https://github.com/emersion/kanshi")
1666 (commit (string-append "v" version))))
1667 (file-name (git-file-name name version))
1669 (base32 "0nbpgm8qnn7ljsg9vgs35kl8l4rrk542vdcbx8wrn9r909ld3x92"))))
1670 (build-system meson-build-system)
1671 (inputs `(("wayland" ,wayland)))
1672 (native-inputs `(("pkg-config" ,pkg-config)
1674 (home-page "https://wayland.emersion.fr/kanshi")
1675 (synopsis "Hotswappable output profiles for Wayland")
1676 (description "Kanshi allows you to define output profiles that are
1677 automatically enabled and disabled on hotplug. Kanshi can be used with
1678 Wayland compositors supporting the wlr-output-management protocol.")
1679 (license license:expat))) ; MIT license
1681 (define-public stumpwm
1689 (url "https://github.com/stumpwm/stumpwm")
1691 (file-name (git-file-name "stumpwm" version))
1693 (base32 "1ghs6ihvmb3bz4q4ys1d3h6rdi96xyiw7l2ip7jh54c25049aymf"))))
1694 (build-system asdf-build-system/sbcl)
1695 (native-inputs `(("fiasco" ,sbcl-fiasco)
1696 ("texinfo" ,texinfo)
1698 ;; To build the manual.
1699 ("autoconf" ,autoconf)
1700 ("automake" ,automake)))
1701 (inputs `(("cl-ppcre" ,sbcl-cl-ppcre)
1703 ("alexandria" ,sbcl-alexandria)))
1704 (outputs '("out" "lib"))
1706 '(#:asd-systems '("stumpwm")
1708 (modify-phases %standard-phases
1709 (add-after 'create-asdf-configuration 'build-program
1710 (lambda* (#:key outputs #:allow-other-keys)
1712 (string-append (assoc-ref outputs "out") "/bin/stumpwm")
1714 #:entry-program '((stumpwm:stumpwm) 0))))
1715 (add-after 'build-program 'create-desktop-file
1716 (lambda* (#:key outputs #:allow-other-keys)
1717 (let* ((out (assoc-ref outputs "out"))
1718 (xsessions (string-append out "/share/xsessions")))
1720 (call-with-output-file
1721 (string-append xsessions "/stumpwm.desktop")
1726 Comment=The Stump Window Manager~@
1727 Exec=~a/bin/stumpwm~@
1728 TryExec=~@*~a/bin/stumpwm~@
1733 (add-after 'install 'install-manual
1734 (lambda* (#:key (make-flags '()) outputs #:allow-other-keys)
1735 (let* ((out (assoc-ref outputs "out"))
1736 (info (string-append out "/share/info")))
1737 (invoke "./autogen.sh")
1738 (invoke "sh" "./configure" "SHELL=sh")
1739 (apply invoke "make" "stumpwm.info" make-flags)
1740 (install-file "stumpwm.info" info)
1742 (synopsis "Window manager written in Common Lisp")
1743 (description "Stumpwm is a window manager written entirely in Common Lisp.
1744 It attempts to be highly customizable while relying entirely on the keyboard
1745 for input. These design decisions reflect the growing popularity of
1746 productive, customizable lisp based systems.")
1747 (home-page "https://github.com/stumpwm/stumpwm")
1748 (license license:gpl2+)
1749 (properties `((cl-source-variant . ,(delay cl-stumpwm))))))
1751 (define-public sbcl-stumpwm
1752 (deprecated-package "sbcl-stumpwm" stumpwm))
1754 (define-public cl-stumpwm
1756 (inherit (sbcl-package->cl-source-package stumpwm))
1757 (name "cl-stumpwm")))
1759 (define-public stumpwm+slynk
1762 (name "stumpwm-with-slynk")
1765 `(("stumpwm" ,stumpwm "lib")
1766 ("slynk" ,sbcl-slynk)))
1768 (substitute-keyword-arguments (package-arguments stumpwm)
1770 `(modify-phases ,phases
1771 (replace 'build-program
1772 (lambda* (#:key inputs outputs #:allow-other-keys)
1773 (let* ((out (assoc-ref outputs "out"))
1774 (program (string-append out "/bin/stumpwm")))
1775 (setenv "HOME" "/tmp")
1776 (build-program program outputs
1777 #:entry-program '((stumpwm:stumpwm) 0)
1778 #:dependencies '("stumpwm" "slynk")
1779 #:dependency-prefixes
1780 (map (lambda (input) (assoc-ref inputs input))
1781 '("stumpwm" "slynk")))
1783 (delete 'copy-source)
1786 (delete 'cleanup)))))))
1788 (define stumpwm-contrib
1789 (let ((commit "920f8fc1488f7953f205e1dda4c2ecbbbda56d63")
1792 (name "stumpwm-contrib")
1793 (version (git-version "0.0.1" revision commit)) ;no upstream release
1798 (url "https://github.com/stumpwm/stumpwm-contrib")
1800 (file-name (git-file-name name version))
1802 (base32 "0giac390bq95ag41xkxqp8jjrhfx1wpgglz7jg5rkm0wjhcwmyml"))))
1803 (build-system asdf-build-system/sbcl)
1805 `(("stumpwm" ,stumpwm "lib")))
1806 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1807 (synopsis "StumpWM interactive shell")
1808 (description "This package provides a StumpWM interactive shell.")
1809 (license (list license:gpl2+ license:gpl3+ license:bsd-2)))))
1811 (define-public stumpish
1813 (inherit stumpwm-contrib)
1819 (build-system trivial-build-system)
1821 '(#:modules ((guix build utils))
1824 (use-modules (guix build utils))
1825 (copy-recursively (assoc-ref %build-inputs "source") ".")
1826 (chdir "util/stumpish")
1827 (substitute* "stumpish"
1828 (("rlwrap") (string-append (assoc-ref %build-inputs "rlwrap")
1830 (("xprop") (string-append (assoc-ref %build-inputs "xprop")
1832 (("/bin/sh") (string-append (assoc-ref %build-inputs "bash")
1834 (install-file "stumpish" (string-append %output "/bin")))))
1835 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1836 (synopsis "StumpWM interactive shell")
1837 (description "This package provides a StumpWM interactive shell.")
1838 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1840 (define-public sbcl-stumpwm+slynk
1841 (deprecated-package "sbcl-stumpwm-with-slynk" stumpwm+slynk))
1843 (define-public sbcl-stumpwm-ttf-fonts
1845 (inherit stumpwm-contrib)
1846 (name "sbcl-stumpwm-ttf-fonts")
1848 `(("stumpwm" ,stumpwm "lib")
1849 ("clx-truetype" ,sbcl-clx-truetype)))
1851 '(#:asd-systems '("ttf-fonts")
1854 (modify-phases %standard-phases
1855 (add-after 'unpack 'chdir
1856 (lambda _ (chdir "util/ttf-fonts") #t)))))
1857 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1858 (synopsis "Implementation of TTF font rendering for Lisp")
1859 (description "This package provides a Lisp implementation of TTF font
1861 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1863 (define-public sbcl-stumpwm-pass
1865 (inherit stumpwm-contrib)
1866 (name "sbcl-stumpwm-pass")
1868 '(#:asd-systems '("pass")
1871 (modify-phases %standard-phases
1872 (add-after 'unpack 'chdir
1873 (lambda _ (chdir "util/pass") #t)))))
1874 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1875 (synopsis "Integrate @code{pass} with StumpWM")
1876 (description "This package provides an interface which integrates
1877 password-store into StumpWM.")
1878 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1880 (define-public sbcl-stumpwm-globalwindows
1882 (inherit stumpwm-contrib)
1883 (name "sbcl-stumpwm-globalwindows")
1885 '(#:asd-systems '("globalwindows")
1888 (modify-phases %standard-phases
1889 (add-after 'unpack 'chdir
1890 (lambda _ (chdir "util/globalwindows") #t)))))
1891 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1892 (synopsis "Manipulate all windows in the current X session")
1893 (description "This package provides a StumpWM module to manipulate all
1894 windows in the current X session.")
1895 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1897 (define-public sbcl-stumpwm-swm-gaps
1899 (inherit stumpwm-contrib)
1900 (name "sbcl-stumpwm-swm-gaps")
1902 '(#:asd-systems '("swm-gaps")
1905 (modify-phases %standard-phases
1906 (add-after 'unpack 'chdir
1907 (lambda _ (chdir "util/swm-gaps") #t)))))
1908 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1909 (synopsis "Gaps between windows for StumpWM")
1910 (description "This package provides a StumpWM module which adds gaps
1912 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1914 (define-public sbcl-stumpwm-net
1916 (inherit stumpwm-contrib)
1917 (name "sbcl-stumpwm-net")
1919 '(#:asd-systems '("net")
1922 (modify-phases %standard-phases
1923 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/net") #t)))))
1925 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/net")
1926 (synopsis "Modeline support for network connectivity")
1927 (description "Modeline support for network connectivity.")
1929 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1930 (license license:gpl3+)))
1932 (define-public sbcl-stumpwm-wifi
1934 (inherit stumpwm-contrib)
1935 (name "sbcl-stumpwm-wifi")
1937 '(#:asd-systems '("wifi")
1940 (modify-phases %standard-phases
1941 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/wifi") #t)))))
1943 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/wifi")
1944 (synopsis "Modeline support for wifi connectivity")
1945 (description "Modeline support for wifi connectivity.")
1947 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1948 (license license:gpl3+)))
1950 (define-public sbcl-stumpwm-stumptray
1952 (inherit stumpwm-contrib)
1953 (name "sbcl-stumpwm-stumptray")
1955 '(#:asd-systems '("stumptray")
1958 (modify-phases %standard-phases
1959 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/stumptray") #t)))))
1961 `(("stumpwm" ,stumpwm "lib")
1962 ("xembed" ,sbcl-clx-xembed)
1963 ("alexandria" ,sbcl-alexandria)))
1965 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/stumptray")
1966 (synopsis "Modeline support for stumptray connectivity")
1967 (description "Modeline support for stumptray connectivity.")
1969 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1970 (license license:gpl3+)))
1972 (define-public sbcl-stumpwm-kbd-layouts
1974 (inherit stumpwm-contrib)
1975 (name "sbcl-stumpwm-kbd-layouts")
1977 '(#:asd-systems '("kbd-layouts")
1980 (modify-phases %standard-phases
1981 (add-after 'unpack 'chdir (lambda _ (chdir "util/kbd-layouts") #t)))))
1983 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/kbd-layouts")
1984 (synopsis "Keyboard layout switcher for StumpWM")
1985 (description "Keyboard layout switcher for StumpWM")
1986 (license license:gpl3+)))
1988 (define-public sbcl-stumpwm-numpad-layouts
1990 (inherit stumpwm-contrib)
1991 (name "sbcl-stumpwm-numpad-layouts")
1993 '(#:asd-systems '("numpad-layouts")
1996 (modify-phases %standard-phases
1997 (add-after 'unpack 'chdir
1999 (chdir "util/numpad-layouts"))))))
2001 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/numpad-layouts")
2002 (synopsis "Keyboard numpad layouts for StumpWM")
2003 (description "This is a module for handling different keyboards numpad
2004 layouts in StumpWM.")
2005 (license license:gpl3+)))
2007 (define-public sbcl-stumpwm-cpu
2009 (inherit stumpwm-contrib)
2010 (name "sbcl-stumpwm-cpu")
2012 '(#:asd-systems '("cpu")
2015 (modify-phases %standard-phases
2016 (add-after 'unpack 'chdir
2018 (chdir "modeline/cpu"))))))
2020 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/cpu")
2021 (synopsis "Modeline support for CPU info")
2022 (description "Modeline support for CPU info.")
2023 (license license:gpl3+)))
2025 (define-public sbcl-stumpwm-mem
2027 (inherit stumpwm-contrib)
2028 (name "sbcl-stumpwm-mem")
2030 '(#:asd-systems '("mem")
2033 (modify-phases %standard-phases
2034 (add-after 'unpack 'chdir
2036 (chdir "modeline/mem"))))))
2038 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/mem")
2039 (synopsis "Modeline support for memory info")
2040 (description "Modeline support for memory info.")
2041 (license license:gpl3+)))
2043 (define-public sbcl-stumpwm-winner-mode
2045 (inherit stumpwm-contrib)
2046 (name "sbcl-stumpwm-winner-mode")
2048 '(#:asd-systems '("winner-mode")
2051 (modify-phases %standard-phases
2052 (add-after 'unpack 'chdir
2054 (chdir "util/winner-mode"))))))
2056 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/winner-mode")
2057 (synopsis "Emacs' winner-mode for StumpWM")
2058 (description "This module provides a winner-mode for StumpWM similar to the
2060 (license license:gpl3+)))
2062 (define-public sbcl-stumpwm-screenshot
2064 (inherit stumpwm-contrib)
2065 (name "sbcl-stumpwm-screenshot")
2067 `(("stumpwm" ,stumpwm "lib")
2068 ("zpng" ,sbcl-zpng)))
2070 '(#:asd-systems '("screenshot")
2073 (modify-phases %standard-phases
2074 (add-after 'unpack 'chdir
2076 (chdir "util/screenshot")))
2077 (add-after 'chdir 'fix-build
2079 (substitute* "screenshot.asd"
2081 "#:stumpwm #:zpng")))))))
2083 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/screenshot")
2084 (synopsis "Screenshots for StumpWM")
2085 (description "This StumpWM module can take screenshots and store them as
2087 (license license:gpl3+)))
2089 (define-public lemonbar
2090 (let ((commit "35183ab81d2128dbb7b6d8e119cc57846bcefdb4")
2094 (version (git-version "1.3" revision commit))
2098 (url "https://github.com/LemonBoy/bar")
2100 (file-name (git-file-name name version))
2103 "1wwqbph392iwz8skaqxb0xpklb1l6yganqz80g4x1fhrnz7idmlh"))))
2104 (build-system gnu-build-system)
2106 `(#:tests? #f ; no test suite
2108 (list ,(string-append "CC=" (cc-for-target))
2109 (string-append "PREFIX=" %output))
2111 (modify-phases %standard-phases
2112 (delete 'configure))))
2114 `(("libxcb" ,libxcb)))
2117 (home-page "https://github.com/LemonBoy/bar")
2118 (synopsis "Featherweight status bar")
2120 "@code{lemonbar} (formerly known as @code{bar}) is a lightweight
2121 bar entirely based on XCB. Provides full UTF-8 support, basic
2122 formatting, RandR and Xinerama support and EWMH compliance without
2123 wasting your precious memory.")
2124 (license license:x11))))
2126 (define-public lemonbar-xft
2127 ;; Upstream v2.0 tag is several years behind HEAD
2128 (let ((commit "481e12363e2a0fe0ddd2176a8e003392be90ed02"))
2131 (name "lemonbar-xft")
2132 (version (string-append "2.0." (string-take commit 7)))
2136 (url "https://github.com/drscream/lemonbar-xft")
2138 (file-name (git-file-name name version))
2141 "0588g37h18lv50h7w8vfbwhvc3iajh7sdr53848spaif99nh3mh4"))))
2143 `(("freetype" ,freetype)
2146 ,@(package-inputs lemonbar)))
2148 (substitute-keyword-arguments (package-arguments lemonbar)
2149 ((#:make-flags make-flags)
2152 (list (string-append
2155 (list (string-append
2156 "-I" (assoc-ref %build-inputs "freetype")
2157 "/include/freetype2")
2160 (format #f "'~s'" ,version))))))))))
2161 (home-page "https://github.com/drscream/lemonbar-xft")
2164 (package-synopsis lemonbar)
2165 " with fontconfig support"))
2168 (package-description lemonbar)
2169 "This is a fork of the @code{lemonbar} package that adds fontconfig
2170 support, for easier unicode usage.")))))
2172 (define-public xclickroot
2179 (url "https://github.com/phillbush/xclickroot")
2180 (commit (string-append "v" version))))
2181 (file-name (git-file-name name version))
2184 "1nd5qz0qz5j7gx2jsbcp234giwaa0xmg42vrcjrcf587q9ivakfl"))))
2185 (build-system gnu-build-system)
2187 `(("libx11" ,libx11)))
2189 `(#:tests? #f ;no test suite
2191 (list ,(string-append "CC=" (cc-for-target))
2192 (string-append "PREFIX=" %output))
2194 (modify-phases %standard-phases
2195 (delete 'configure))))
2196 (home-page "https://github.com/phillbush/xclickroot")
2197 (synopsis "Run a command when a mouse button is pressed on the root window")
2198 (description "@code{xclickroot} runs a command every time a given mouse
2199 button is pressed on the root window.")
2200 (license license:public-domain)))
2202 (define-public xmenu
2209 (url "https://github.com/phillbush/xmenu")
2210 (commit (string-append "v" version))))
2211 (file-name (git-file-name name version))
2214 "1s70zvsaqnsjqs298vw3py0vcvia68xlks1wcz37pb88bwligz1x"))))
2215 (build-system gnu-build-system)
2217 `(("libx11" ,libx11)
2218 ("libxinerama" ,libxinerama)
2220 ("freetype" ,freetype)
2221 ("imlib2" ,imlib2)))
2223 `(#:tests? #f ;no test suite
2225 (list (string-append "CC=" ,(cc-for-target))
2226 (string-append "PREFIX=" %output)
2227 (string-append "CFLAGS="
2228 "-I" (assoc-ref %build-inputs "freetype")
2229 "/include/freetype2"))
2231 (modify-phases %standard-phases
2232 (delete 'configure))))
2233 (home-page "https://github.com/phillbush/xmenu")
2234 (synopsis "Menu utility for X")
2235 (description "@code{xmenu} receives a menu specification in stdin, shows
2236 a menu for the user to select one of the options, and outputs the option
2237 selected to stdout. It can be controlled both via mouse and via keyboard.")
2238 (license license:public-domain)))
2240 (define-public idesk
2248 "mirror://sourceforge/idesk/idesk/idesk-" version
2249 "/idesk-" version ".tar.bz2"))
2252 "1lxk2yvgysxwl514zc82lwr1dwc8cd62slgr5lzdhjbdrxfymdyl"))
2253 (modules '((guix build utils)
2256 '(let* ((file "src/DesktopConfig.cpp")
2257 (template (string-append file ".XXXXXX"))
2258 (out (mkstemp! template))
2260 (mode (stat:mode st)))
2261 (call-with-ascii-input-file file
2263 (format out "~{~a~%~}" '("#include <unistd.h>"
2264 "#include <sys/stat.h>"
2265 "#include <sys/types.h>"))
2268 (chmod template mode)
2269 (rename-file template file)
2271 (build-system gnu-build-system)
2273 `(("libx11" ,libx11)
2277 ("freetype" ,freetype)
2281 `(("pkg-config" ,pkg-config)))
2283 `(#:tests? #f)) ;no test suite
2284 (home-page "https://sourceforge.net/projects/idesk/")
2285 (synopsis "Add icons on X desktop and set background image for wallpaper")
2286 (description "Idesk is program that draws desktop icons. Each icon will
2287 execute a shell command on a configurable action. The icons can be moved on
2288 the desktop by dragging them, and the icons will remember their positions on
2290 (license license:bsd-3)))
2292 (define-public xnotify
2299 (url "https://github.com/phillbush/xnotify")
2301 (file-name (git-file-name name version))
2304 "09s29m8z4x3mc3wja2587ik3f6zg16b40adr3nllnpyy1mqnprq5"))))
2305 (build-system gnu-build-system)
2307 `(("libx11" ,libx11)
2309 ("libxinerama" ,libxinerama)
2310 ("imlib2" ,imlib2)))
2313 (list (string-append "CC=" ,(cc-for-target))
2314 (string-append "PREFIX=" %output)
2315 (string-append "CFLAGS="
2316 "-I" (assoc-ref %build-inputs "freetype")
2317 "/include/freetype2"))
2318 #:tests? #f ;no test suite
2320 (modify-phases %standard-phases
2321 (delete 'configure))))
2322 (home-page "https://github.com/phillbush/xnotify")
2323 (synopsis "Displays a notification on the screen")
2324 (description "XNotify receives a notification specification in stdin and
2325 shows a notification for the user on the screen.")
2326 (license license:expat)))
2328 (define-public cagebreak
2335 (url "https://github.com/project-repo/cagebreak")
2337 (file-name (git-file-name name version))
2340 "0mnxs1m7jrqdl0asx39nxfzvkp7d4jqpdchi63w2yd1igpj2frb2"))))
2341 (build-system meson-build-system)
2342 (arguments '(#:configure-flags '("-Dxwayland=true")))
2344 `(("pandoc" ,pandoc)
2345 ("pkg-config" ,pkg-config)))
2348 ("wlroots" ,wlroots)))
2349 (home-page "https://github.com/project-repo/cagebreak")
2350 (synopsis "Tiling wayland compositor inspired by ratpoison")
2352 "@command{cagebreak} is a slim, keyboard-controlled, tiling compositor
2353 for wayland conceptually based on the X11 window manager
2354 @command{ratpoison}.")
2355 (license license:expat)))