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>
45 ;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.com>
47 ;;; This file is part of GNU Guix.
49 ;;; GNU Guix is free software; you can redistribute it and/or modify it
50 ;;; under the terms of the GNU General Public License as published by
51 ;;; the Free Software Foundation; either version 3 of the License, or (at
52 ;;; your option) any later version.
54 ;;; GNU Guix is distributed in the hope that it will be useful, but
55 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
56 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
57 ;;; GNU General Public License for more details.
59 ;;; You should have received a copy of the GNU General Public License
60 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
62 (define-module (gnu packages wm)
63 #:use-module ((guix licenses) #:prefix license:)
64 #:use-module (guix packages)
65 #:use-module (guix download)
66 #:use-module (guix git-download)
67 #:use-module (guix build-system asdf)
68 #:use-module (guix build-system cmake)
69 #:use-module (guix build-system gnu)
70 #:use-module (guix build-system haskell)
71 #:use-module (guix build-system meson)
72 #:use-module (guix build-system perl)
73 #:use-module (guix build-system python)
74 #:use-module (guix build-system trivial)
75 #:use-module (guix utils)
76 #:use-module (gnu packages)
77 #:use-module (gnu packages bash)
78 #:use-module (gnu packages autotools)
79 #:use-module (gnu packages base)
80 #:use-module (gnu packages bison)
81 #:use-module (gnu packages build-tools) ;for meson-0.55
82 #:use-module (gnu packages calendar)
83 #:use-module (gnu packages docbook)
84 #:use-module (gnu packages documentation)
85 #:use-module (gnu packages fontutils)
86 #:use-module (gnu packages freedesktop)
87 #:use-module (gnu packages fribidi)
88 #:use-module (gnu packages gawk)
89 #:use-module (gnu packages gcc)
90 #:use-module (gnu packages gl)
91 #:use-module (gnu packages glib)
92 #:use-module (gnu packages gperf)
93 #:use-module (gnu packages gtk)
94 #:use-module (gnu packages haskell-check)
95 #:use-module (gnu packages haskell-web)
96 #:use-module (gnu packages haskell-xyz)
97 #:use-module (gnu packages image)
98 #:use-module (gnu packages imagemagick)
99 #:use-module (gnu packages libevent)
100 #:use-module (gnu packages linux)
101 #:use-module (gnu packages lisp-xyz)
102 #:use-module (gnu packages logging)
103 #:use-module (gnu packages lua)
104 #:use-module (gnu packages m4)
105 #:use-module (gnu packages man)
106 #:use-module (gnu packages maths)
107 #:use-module (gnu packages mpd)
108 #:use-module (gnu packages pcre)
109 #:use-module (gnu packages perl)
110 #:use-module (gnu packages pkg-config)
111 #:use-module (gnu packages pretty-print)
112 #:use-module (gnu packages pulseaudio)
113 #:use-module (gnu packages python)
114 #:use-module (gnu packages readline)
115 #:use-module (gnu packages serialization)
116 #:use-module (gnu packages sphinx)
117 #:use-module (gnu packages suckless)
118 #:use-module (gnu packages texinfo)
119 #:use-module (gnu packages textutils)
120 #:use-module (gnu packages video)
121 #:use-module (gnu packages web)
122 #:use-module (gnu packages xdisorg)
123 #:use-module (gnu packages xml)
124 #:use-module (gnu packages xorg))
134 (url "https://github.com/baskerville/bspwm")
136 (file-name (git-file-name name version))
138 (base32 "0qlv7b4c2mmjfd65y100d11x8iqyg5f6lfiws3cgmpjidhdygnxc"))))
139 (build-system gnu-build-system)
142 ("libxinerama" ,libxinerama)
144 ("xcb-util" ,xcb-util)
145 ("xcb-util-keysyms" ,xcb-util-keysyms)
146 ("xcb-util-wm" ,xcb-util-wm)))
149 (modify-phases %standard-phases
150 (delete 'configure)) ; no configure script
151 #:tests? #f ; no check target
154 (string-append "PREFIX=" %output))))
155 (home-page "https://github.com/baskerville/bspwm")
156 (synopsis "Tiling window manager based on binary space partitioning")
157 (description "bspwm is a tiling window manager that represents windows as
158 the leaves of a full binary tree.")
159 (license license:bsd-2)))
161 (define-public herbstluftwm
163 (name "herbstluftwm")
168 (uri (string-append "https://herbstluftwm.org/tarballs/herbstluftwm-"
171 (base32 "0avfhr68f6fjnafjdcyxcx7dkg38f2nadmhpj971qyqzfq2f6i38"))
172 (file-name (string-append "herbstluftwm-" version ".tar.gz"))))
173 (build-system cmake-build-system)
180 ("xsetroot" ,xsetroot)
183 ("libxinerama" ,libxinerama)
184 ("libxrandr" ,libxrandr)
187 `(("asciidoc" ,asciidoc)
188 ("pkg-config" ,pkg-config)
193 (let ((out (assoc-ref %outputs "out")))
195 (string-append "-DCMAKE_INSTALL_SYSCONF_PREFIX=" out "/etc")
196 (string-append "-DBASHCOMPLETIONDIR=" out "/etc/bash_completion.d")))
198 (modify-phases %standard-phases
199 (add-after 'install 'install-xsession
200 (lambda* (#:key outputs #:allow-other-keys)
201 (let* ((out (assoc-ref outputs "out"))
202 (xsessions (string-append out "/share/xsessions")))
204 (call-with-output-file
205 (string-append xsessions "/herbstluftwm.desktop")
210 Comment=Manual tiling window manager~@
211 Exec=~a/bin/herbstluftwm~@
212 Type=XSession~%" out)))
214 (synopsis "Tiling window manager for X11")
215 (description "herbstluftwm is a manual tiling window manager for X11 using
216 Xlib and GLib. Its main features are:
220 The layout is based on splitting frames into subframes which can be split
221 again or can be filled with windows (similar to i3 or musca).
224 Tags (or workspaces or virtual desktops or …) can be added/removed at runtime.
225 Each tag contains an own layout.
228 Exactly one tag is viewed on each monitor. The tags are monitor independent
232 It is configured at runtime via IPC calls from @command{herbstclient}. So the
233 configuration file is just a script which is run on startup (similar to wmii
237 (home-page "https://herbstluftwm.org")
238 (license license:bsd-2)))
240 (define-public i3status
246 (uri (string-append "https://i3wm.org/i3status/i3status-"
250 "0rhlzb96mw64z2jnhwz9nibc7pxg549626lz5642xxk5hpzwk2ff"))))
251 (build-system gnu-build-system)
253 `(;; XXX: Do an "out of source" build to work around
254 ;; <https://github.com/i3/i3status/issues/339>.
256 #:tests? #f)) ; no test suite
258 `(("openlibm" ,openlibm)
259 ("libconfuse" ,libconfuse)
261 ("alsa-lib" ,alsa-lib)
262 ("pulseaudio" ,pulseaudio)
265 ("asciidoc" ,asciidoc)))
267 `(("pkg-config" ,pkg-config)
268 ("docbook-xsl" ,docbook-xsl)
269 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
271 (home-page "https://i3wm.org/i3status/")
272 (synopsis "Status bar for i3bar, dzen2, xmobar or similar programs")
273 (description "i3status is a small program for generating a status bar for
274 i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient
275 by issuing a very small number of system calls, as one generally wants to
276 update such a status line every second. This ensures that even under high
277 load, your status bar is updated correctly. Also, it saves a bit of energy by
278 not hogging your CPU as much as spawning the corresponding amount of shell
280 (license license:bsd-3)))
288 (uri (string-append "https://i3wm.org/downloads/i3-"
292 "03dijnwv2n8ak9jq59fhq0rc80m5wjc9d54fslqaivnnz81pkbjk"))))
293 (build-system gnu-build-system)
296 ;; The build system tries to build in a separate directory, but that
297 ;; seems to be unnecessary.
298 (list "--disable-builddir")
300 ;; The test suite requires the unpackaged Xephyr X server.
303 (modify-phases %standard-phases
304 (add-after 'install 'patch-session-file
305 (lambda* (#:key outputs #:allow-other-keys)
306 (let* ((out (assoc-ref outputs "out"))
307 (i3 (string-append out "/bin/i3"))
308 (i3-with-shmlog (string-append out "/bin/i3-with-shmlog")))
309 (substitute* (string-append out "/share/xsessions/i3.desktop")
310 (("Exec=i3") (string-append "Exec=" i3)))
311 (substitute* (string-append out "/share/xsessions/i3-with-shmlog.desktop")
312 (("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog)))
316 ("xcb-util" ,xcb-util)
317 ("xcb-util-cursor" ,xcb-util-cursor)
318 ("xcb-util-keysyms" ,xcb-util-keysyms)
319 ("xcb-util-wm" ,xcb-util-wm)
320 ("xcb-util-xrm" ,xcb-util-xrm)
321 ("libxkbcommon" ,libxkbcommon)
325 ("perl-pod-simple" ,perl-pod-simple)
328 ("startup-notification" ,startup-notification)
334 ("pkg-config" ,pkg-config)
335 ("asciidoc-py3" ,asciidoc-py3)
336 ;; For building the documentation.
338 ("docbook-xsl" ,docbook-xsl)))
339 (home-page "https://i3wm.org/")
340 (synopsis "Tiling window manager")
341 (description "i3 is a tiling X11 window manager that dynamically manages
342 tiled, stacked, and tabbed window layouts.
344 i3 primarily targets advanced users. Windows are managed manually and organised
345 inside containers, which can be split vertically or horizontally, and optionally
348 i3 uses a plain-text configuration file, and can be extended and controlled from
349 many programming languages.")
350 (license license:bsd-3)))
352 (define-public i3-gaps
353 (package (inherit i3-wm)
359 "https://github.com/Airblader/i3/releases/download/"
360 version "/i3-" version ".tar.bz2"))
363 "1hcakwyz78lgp8mhqv7pw86jlb3m415pfql1q19rkijnhm3fn3ci"))))
364 (home-page "https://github.com/Airblader/i3")
365 (synopsis "Tiling window manager with gaps")
366 (description "i3-gaps is a fork of i3wm, a tiling window manager
367 for X11. It is kept up to date with upstream, adding a few additional
368 features such as gaps between windows.
370 i3 is a tiling X11 window manager that dynamically manages tiled, stacked,
371 and tabbed window layouts.
373 i3 primarily targets advanced users. Windows are managed manually and
374 organised inside containers, which can be split vertically or horizontally,
375 and optionally resized.
377 i3 uses a plain-text configuration file, and can be extended and controlled
378 from many programming languages.")
379 (license license:bsd-3)))
381 (define-public i3lock
387 (uri (string-append "https://i3wm.org/i3lock/i3lock-"
391 "015dn534m7cxjvqdncpvaq9p8b2r4w5hp1yanbdy2abmhbcc7a7j"))))
392 (build-system gnu-build-system)
394 `(("pkg-config" ,pkg-config)))
398 ("linux-pam" ,linux-pam)
400 ("libxkbcommon" ,libxkbcommon)
401 ("xcb-util" ,xcb-util)
402 ("xcb-util-image" ,xcb-util-image)
403 ("xcb-util-xrm" ,xcb-util-xrm)))
404 (home-page "https://i3wm.org/i3lock/")
405 (synopsis "Lightweight screen locker")
407 "i3lock is a simple X11 screen locker developed alongside the i3 project.
408 Despite the name it should work with any X11 window manager.")
409 (license license:bsd-3)))
411 (define-public i3blocks
418 (url "https://github.com/vivien/i3blocks")
422 "0v8mwnm8qzpv6xnqvrk43s4b9iyld4naqzbaxk4ldq1qkhai0wsv"))
423 (file-name (git-file-name name version))))
424 (build-system gnu-build-system)
426 `(("autoconf" ,autoconf)
427 ("automake" ,automake)
428 ("pkg-config" ,pkg-config)))
429 (home-page "https://github.com/vivien/i3blocks")
430 (synopsis "Minimalist scheduler for status bar scripts")
431 (description "i3blocks executes your command lines and generates a
432 status line from their output. The generated line is meant to be displayed by
433 the i3 window manager through its i3bar component, as an alternative to
435 (license license:gpl3+)))
437 (define-public perl-anyevent-i3
439 (name "perl-anyevent-i3")
443 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTPLBG/"
444 "AnyEvent-I3-" version ".tar.gz"))
447 "0qvd9bq16jyy7v3ma82qcnvz9j503bw0mh7h55gkjf7ir62ck0jk"))))
448 (build-system perl-build-system)
450 `(("perl-anyevent" ,perl-anyevent)
451 ("perl-json-xs" ,perl-json-xs)))
452 (home-page "https://metacpan.org/release/AnyEvent-I3")
454 "Communicate with the i3 window manager through perl")
456 "This module connects to the i3 window manager using the UNIX socket
457 based IPC interface it provides (if enabled in the configuration file).
458 You can then subscribe to events or send messages and receive their replies.")
459 ;; Can be used with either license.
460 (license (list license:gpl3+ license:perl-license))))
462 (define-public python-i3-py
464 (name "python-i3-py")
468 ;; The latest release is not tagged in Git nor has an entry in PyPi,
469 ;; but there is still a clear commit for it, and it's been the last one
473 (url "https://github.com/ziberna/i3-py")
474 (commit "27f88a616e9ecc340e7d041d3d00782f8a1964c1")))
477 "1nm719dc2xqlll7vj4c4m7mpjb27lpn3bg3c66gajvnrz2x1nmxs"))
478 (file-name (string-append name "-" version "-checkout"))))
479 (build-system python-build-system)
481 `(#:tests? #f ; no tests yet
482 #:phases (modify-phases %standard-phases
483 (add-after 'install 'install-doc
484 ;; Copy readme file to documentation directory.
485 (lambda* (#:key outputs #:allow-other-keys)
486 (let ((doc (string-append (assoc-ref outputs "out")
487 "/share/doc/" ,name)))
488 (install-file "README.md" doc)
489 ;; Avoid unspecified return value.
493 (home-page "https://github.com/ziberna/i3-py")
494 (synopsis "Python interface to the i3 window manager")
495 (description "This package allows you to interact from a Python program
496 with the i3 window manager via its IPC socket. It can send commands and other
497 kinds of messages to i3, select the affected containers, filter results and
498 subscribe to events.")
499 (license license:gpl3+)))
501 (define-public python2-i3-py
502 (package-with-python2 python-i3-py))
504 (define-public quickswitch-i3
505 (let ((commit "ed692b1e8f43b95bd907ced26238ce8ccb2ed28f")
506 (revision "1")) ; Guix package revision
508 (name "quickswitch-i3")
509 (version (string-append "2.2-" revision "."
510 (string-take commit 7)))
513 ;; The latest commit is a few years old and just a couple commits
514 ;; after the last tagged release, so we use that latest commit
515 ;; instead of the release.
518 (url "https://github.com/proxypoke/quickswitch-for-i3")
522 "0447077sama80jcdg5p64zjsvafmz5rbdrirhm1adcdjhkh6iqc5"))
523 (patches (search-patches "quickswitch-fix-dmenu-check.patch"))
524 (file-name (string-append name "-" version "-checkout"))))
525 (build-system python-build-system)
527 `(#:tests? #f ; no tests yet
528 #:phases (modify-phases %standard-phases
529 (add-after 'install 'install-doc
530 ;; Copy readme file to documentation directory.
531 (lambda* (#:key outputs #:allow-other-keys)
532 (let ((doc (string-append (assoc-ref outputs "out")
533 "/share/doc/" ,name)))
534 (install-file "README.rst" doc)
535 ;; Avoid unspecified return value.
538 `(("python-i3-py" ,python-i3-py)
540 (home-page "https://github.com/proxypoke/quickswitch-for-i3")
541 (synopsis "Quickly change to and locate windows in the i3 window manager")
543 "This utility for the i3 window manager allows you to quickly switch to
544 and locate windows on all your workspaces, using an interactive dmenu
546 (license license:wtfpl2))))
548 (define-public i3lock-color
550 (name "i3lock-color")
556 (url "https://github.com/PandorasFox/i3lock-color")
558 (file-name (git-file-name name version))
560 (base32 "08fhnchf187b73h52xgzb86g6byzxz085zs9galsvl687g5zxk34"))))
561 (build-system gnu-build-system)
563 `(#:tests? #f)) ; no tests included
567 ("libjpeg" ,libjpeg-turbo)
569 ("libxkbcommon" ,libxkbcommon)
570 ("linux-pam" ,linux-pam)
571 ("xcb-util" ,xcb-util)
572 ("xcb-util-image" ,xcb-util-image)
573 ("xcb-util-xrm" ,xcb-util-xrm)))
575 `(("autoconf" ,autoconf)
576 ("automake" ,automake)
577 ("pkg-config" ,pkg-config)))
578 (home-page "https://github.com/PandorasFox/i3lock-color")
579 (synopsis "Screen locker with color configuration support")
581 "i3lock-color is a simpler X11 screen locker derived from i3lock.
585 @item forking process, the locked screen is preserved when you suspend to RAM;
586 @item specify background color or image to be displayed in the lock screen;
587 @item many additional color options.
589 (license license:bsd-3)))
591 (define-public i3lock-fancy
593 (name "i3lock-fancy")
599 (url "https://github.com/meskarune/i3lock-fancy")
601 (file-name (git-file-name name version))
603 (base32 "11g2kkim33ra38d1m897sq1ifajw17iyw9mr7sg1q8i2ibl4lfsi"))))
604 (build-system gnu-build-system)
606 `(#:tests? #f ; no tests included
608 (modify-phases %standard-phases
610 (lambda* (#:key inputs outputs #:allow-other-keys)
611 (let* ((out (assoc-ref outputs "out"))
612 (icons (string-append out "/share/i3lock-fancy/icons/"))
613 (wmctrl (string-append (assoc-ref inputs "wmctrl")
615 (mconvert (string-append (assoc-ref inputs "imagemagick")
617 (mimport (string-append (assoc-ref inputs "imagemagick")
619 (awk (string-append (assoc-ref inputs "gawk")
623 (("\\$\\(command -V wmctrl\\)") wmctrl)
624 (("convert") mconvert)
625 (("shot=\\(import") (string-append "shot=\(" mimport))
626 (("awk -F") (string-append awk " -F"))
628 (("\\$scriptpath/icons/") icons))
632 (lambda* (#:key inputs outputs #:allow-other-keys)
633 (let* ((out (assoc-ref outputs "out"))
634 (bin (string-append out "/bin"))
635 (icons (string-append out "/share/i3lock-fancy/icons/")))
637 (install-file "lock" bin)
638 (rename-file (string-append bin "/lock")
639 (string-append bin "/i3lock-fancy"))
640 (copy-recursively "icons" icons)
643 `(("imagemagick" ,imagemagick)
646 (home-page "https://github.com/meskarune/i3lock-fancy")
647 (synopsis "Screen locker with screenshot function")
649 "@code{i3lock-fancy} is a Bash script that takes a screenshot of
650 the desktop, blurs the background and adds a lock icon and text.
651 It requires @code{i3lock-color} or @code{i3lock} and can optionally
652 be passed any screenshot util like @code{scrot}.
653 This screen locker can be used with any window manager or
654 desktop environment.")
655 (license license:expat)))
657 (define-public xmonad
661 (synopsis "Tiling window manager")
664 (uri (string-append "mirror://hackage/package/xmonad/"
665 "xmonad-" version ".tar.gz"))
668 "0a7rh21k9y6g8fwkggxdxjns2grvvsd5hi2ls4klmqz5xvk4hyaa"))
669 (patches (search-patches "xmonad-dynamic-linking.patch"))))
670 (build-system haskell-build-system)
672 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
673 ("ghc-quickcheck" ,ghc-quickcheck)
674 ("ghc-semigroups" ,ghc-semigroups)
675 ("ghc-setlocale" ,ghc-setlocale)
676 ("ghc-utf8-string" ,ghc-utf8-string)
677 ("ghc-x11" ,ghc-x11)))
680 (modify-phases %standard-phases
682 'install 'install-xsession
684 (let* ((xsessions (string-append %output "/share/xsessions")))
686 (call-with-output-file
687 (string-append xsessions "/xmonad.desktop")
694 Type=Application~%" ,name ,synopsis %output)))))))))
695 (home-page "https://xmonad.org")
697 "Xmonad is a tiling window manager for X. Windows are arranged
698 automatically to tile the screen without gaps or overlap, maximising screen
699 use. All features of the window manager are accessible from the keyboard: a
700 mouse is strictly optional. Xmonad is written and extensible in Haskell.
701 Custom layout algorithms, and other extensions, may be written by the user in
702 config files. Layouts are applied dynamically, and different layouts may be
703 used on each workspace. Xinerama is fully supported, allowing windows to be
704 tiled on several screens.")
705 (license license:bsd-3)))
707 (define-public xmobar
713 (uri (string-append "mirror://hackage/package/xmobar/"
714 "xmobar-" version ".tar.gz"))
717 "0x09xbz7y9ay0046j1xpr9jjk5jqivqi06vm3q6mhcrgc4y922rx"))))
718 (build-system haskell-build-system)
720 `(("ghc-hspec" ,ghc-hspec)
721 ("hspec-discover" ,hspec-discover)))
723 `(("ghc-alsa-core" ,ghc-alsa-core)
724 ("ghc-alsa-mixer" ,ghc-alsa-mixer)
725 ("ghc-dbus" ,ghc-dbus)
726 ("ghc-hinotify" ,ghc-hinotify)
727 ("ghc-http" ,ghc-http)
728 ("ghc-http-conduit" ,ghc-http-conduit)
729 ("ghc-http-types" ,ghc-http-types)
730 ("ghc-iwlib" ,ghc-iwlib)
731 ("ghc-libmpd" ,ghc-libmpd)
732 ("ghc-old-locale" ,ghc-old-locale)
733 ("ghc-parsec-numbers" ,ghc-parsec-numbers)
734 ("ghc-regex-compat" ,ghc-regex-compat)
735 ("ghc-temporary" ,ghc-temporary)
736 ("ghc-timezone-olson" ,ghc-timezone-olson)
738 ("ghc-x11-xft" ,ghc-x11-xft)
741 `(#:configure-flags (list "--flags=all_extensions")
743 (modify-phases %standard-phases
744 (add-before 'build 'patch-test-shebang
745 (lambda* (#:key inputs #:allow-other-keys)
746 (substitute* "test/Xmobar/Plugins/Monitors/AlsaSpec.hs"
747 (("/bin/bash") (which "bash")))
749 (home-page "https://xmobar.org")
750 (synopsis "Minimalistic text based status bar")
752 "@code{xmobar} is a lightweight, text-based, status bar written in
753 Haskell. It was originally designed to be used together with Xmonad, but it
754 is also usable with any other window manager. While xmobar is written in
755 Haskell, no knowledge of the language is required to install and use it.")
756 (license license:bsd-3)))
758 (define-public yeganesh
766 (uri (string-append "http://dmwit.com/yeganesh/yeganesh-" version ".tar.gz"))
768 (base32 "04djfyjab3c5y9z9x8zd0xcx0jyy35zq7cl9ddr4ppf6k5ky6iky"))))
769 (build-system haskell-build-system)
771 `(("ghc-strict" ,ghc-strict)
772 ("ghc-xdg-basedir" ,ghc-xdg-basedir)))
773 (home-page "http://dmwit.com/yeganesh/")
774 (synopsis "Small wrapper around dmenu")
775 (description "@code{yeganesh} is a small wrapper around demnu. Like
776 dmenu, it accepts input on stdin and writes the chosen result on stdout.
777 Unlike dmenu, it mangles the input before it presents its choices. In
778 particular, it displays commonly-chosen options before uncommon ones.")
779 (license license:bsd-3)))
781 (define-public ghc-xmonad-contrib
783 (name "ghc-xmonad-contrib")
788 (uri (string-append "mirror://hackage/package/xmonad-contrib/"
789 "xmonad-contrib-" version ".tar.gz"))
791 (base32 "1pddgkvnbww28wykncc7j0yb0lv15bk7xnnhdcbrwkxzw66w6wmd"))))
792 (build-system haskell-build-system)
794 `(("ghc-old-time" ,ghc-old-time)
795 ("ghc-random" ,ghc-random)
796 ("ghc-utf8-string" ,ghc-utf8-string)
797 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
798 ("ghc-semigroups" ,ghc-semigroups)
800 ("ghc-x11-xft" ,ghc-x11-xft)
802 (home-page "https://xmonad.org")
803 (synopsis "Third party extensions for xmonad")
805 "Third party tiling algorithms, configurations, and scripts to Xmonad, a
806 tiling window manager for X.")
807 (license license:bsd-3)))
809 (define-public evilwm
816 (uri (string-append "http://www.6809.org.uk/evilwm/evilwm-"
820 "0ak0yajzk3v4dg5wmaghv6acf7v02a4iw8qxmq5yw5ard8lrqn3r"))
821 (patches (search-patches "evilwm-lost-focus-bug.patch"))))
822 (build-system gnu-build-system)
826 ("libxrandr" ,libxrandr)))
828 `(#:modules ((srfi srfi-26)
830 (guix build gnu-build-system))
831 #:make-flags (let ((inputs (map (cut assoc-ref %build-inputs <>)
832 '("libx11" "libxext" "libxrandr")))
833 (join (lambda (proc strs)
834 (string-join (map proc strs) " ")))
835 (dash-I (cut string-append "-I" <> "/include"))
836 (dash-L (cut string-append "-L" <> "/lib")))
837 `("desktopfilesdir=$(prefix)/share/xsessions"
838 ,(string-append "prefix=" (assoc-ref %outputs "out"))
839 ,(string-append "CPPFLAGS=" (join dash-I inputs))
840 ,(string-append "LDFLAGS=" (join dash-L inputs))))
841 #:tests? #f ;no tests
842 #:phases (modify-phases %standard-phases
843 (delete 'configure)))) ;no configure script
844 (home-page "http://www.6809.org.uk/evilwm/")
845 (synopsis "Minimalist window manager for the X Window System")
847 "evilwm is a minimalist window manager based on aewm, extended to feature
848 many keyboard controls with repositioning and maximize toggles, solid window
849 drags, snap-to-border support, and virtual desktops.")
850 (license (license:x11-style "file:///README"))))
852 (define-public fluxbox
856 (synopsis "Small and fast window manager")
859 (uri (string-append "mirror://sourceforge/fluxbox/fluxbox/"
860 version "/fluxbox-" version ".tar.xz"))
863 "1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w"))))
864 (build-system gnu-build-system)
866 `(#:make-flags '("CPPFLAGS=-U__TIME__") ;ugly, but for reproducibility
868 (modify-phases %standard-phases
869 (add-after 'install 'install-vim-files
870 (lambda* (#:key outputs #:allow-other-keys)
871 (let* ((out (assoc-ref outputs "out"))
872 (syntax (string-append out "/share/vim/vimfiles/syntax")))
873 (copy-recursively "3rd/vim/vim/syntax" syntax)
875 (add-after 'install 'install-xsession
876 (lambda* (#:key outputs #:allow-other-keys)
877 (let* ((out (assoc-ref outputs "out"))
878 (xsessions (string-append out "/share/xsessions")))
880 (call-with-output-file
881 (string-append xsessions "/fluxbox.desktop")
887 Exec=~a/bin/startfluxbox~@
888 Type=Application~%" ,name ,synopsis out)))
891 `(("pkg-config" ,pkg-config)))
893 `(("freetype" ,freetype)
899 ("libxinerama" ,libxinerama)
901 ("libxrandr" ,libxrandr)
902 ("libxrender" ,libxrender)))
903 (description "Fluxbox is a window manager. It is light on resources
904 and easy to handle yet full of features to make an easy and fast desktop
906 (home-page "http://fluxbox.org/")
907 (license license:expat)))
909 (define-public awesome
917 "https://github.com/awesomeWM/awesome-releases/raw/master/"
918 "awesome-" version ".tar.xz"))
920 (base32 "0lqpw401mkkmp9wgbvrmm45bqq2j9357l4irwdqv6l1305pls9kq"))
921 (modules '((guix build utils)
925 ;; Remove non-reproducible timestamp and use the date of
926 ;; the source file instead.
927 (substitute* "common/version.c"
928 (("__DATE__ \" \" __TIME__")
931 (make-time time-utc 0 (stat:mtime (stat "awesome.c"))))
935 (search-patches "awesome-reproducible-png.patch"))))
936 (build-system cmake-build-system)
938 `(("asciidoc" ,asciidoc)
939 ("docbook-xsl" ,docbook-xsl)
942 ("imagemagick" ,imagemagick)
943 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
944 ("lua-ldoc" ,lua-ldoc)
945 ("pkg-config" ,pkg-config)
950 ("gdk-pixbuf" ,gdk-pixbuf)
952 ("gobject-introspection" ,gobject-introspection)
956 ("libxcursor" ,libxcursor)
957 ("libxdg-basedir" ,libxdg-basedir)
958 ("libxkbcommon" ,libxkbcommon)
962 ("startup-notification" ,startup-notification)
963 ("xcb-util" ,xcb-util)
964 ("xcb-util-cursor" ,xcb-util-cursor)
965 ("xcb-util-image" ,xcb-util-image)
966 ("xcb-util-keysyms" ,xcb-util-keysyms)
967 ("xcb-util-renderutil" ,xcb-util-renderutil)
968 ("xcb-util-xrm" ,xcb-util-xrm)
969 ("xcb-util-wm" ,xcb-util-wm)))
971 `(#:modules ((guix build cmake-build-system)
974 ;; Let compression happen in our 'compress-documentation' phase
975 ;; so that '--no-name' is used, which removes timestamps from
978 '("-DCOMPRESS_MANPAGES=off")
979 ;; Building awesome in its source directory is no longer
983 (modify-phases %standard-phases
984 (add-before 'configure 'set-paths
985 (lambda* (#:key inputs #:allow-other-keys)
986 (substitute* "lib/awful/completion.lua"
989 ;; The build process needs to load Cairo dynamically.
990 (let* ((cairo (string-append (assoc-ref inputs "cairo") "/lib"))
991 (lua-version ,(version-major+minor (package-version lua)))
993 (filter (match-lambda
994 ((label . _) (string-prefix? "lua-" label)))
1001 dir "/share/lua/" lua-version "/?.lua;"
1002 dir "/share/lua/" lua-version "/?/?.lua")))
1010 dir "/lib/lua/" lua-version "/?.so;"
1011 dir "/lib/lua/" lua-version "/?/?.so")))
1014 (setenv "LD_LIBRARY_PATH" cairo)
1015 (setenv "LUA_PATH" (string-append "?.lua;" lua-path))
1016 (setenv "LUA_CPATH" lua-cpath)
1020 ;; There aren't any tests, so just make sure the binary
1021 ;; gets built and can be run successfully.
1022 (invoke "../build/awesome" "-v")))
1023 (add-after 'install 'patch-session-file
1024 (lambda* (#:key outputs #:allow-other-keys)
1025 (let* ((out (assoc-ref outputs "out"))
1026 (awesome (string-append out "/bin/awesome")))
1027 (substitute* (string-append out "/share/xsessions/awesome.desktop")
1028 (("Exec=awesome") (string-append "Exec=" awesome)))
1030 (add-after 'install 'wrap
1031 (lambda* (#:key inputs outputs #:allow-other-keys)
1032 (let* ((awesome (assoc-ref outputs "out"))
1033 (cairo (string-append (assoc-ref inputs "cairo") "/lib"))
1034 (lua-version ,(version-major+minor (package-version lua)))
1035 (lua-lgi (assoc-ref inputs "lua-lgi")))
1036 (wrap-program (string-append awesome "/bin/awesome")
1037 `("LUA_PATH" ";" suffix
1038 (,(format #f "~a/share/lua/~a/?.lua" lua-lgi lua-version)))
1039 `("LUA_CPATH" ";" suffix
1040 (,(format #f "~a/lib/lua/~a/?.so" lua-lgi lua-version)))
1041 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))
1042 `("LD_LIBRARY_PATH" suffix (,cairo)))
1044 (home-page "https://awesomewm.org/")
1045 (synopsis "Highly configurable window manager")
1047 "Awesome has been designed as a framework window manager. It is fast, small,
1048 dynamic and extensible using the Lua programming language.")
1049 (license license:gpl2+)))
1051 (define-public menumaker
1058 (uri (string-append "mirror://sourceforge/menumaker/"
1059 "menumaker-" version ".tar.gz"))
1061 (base32 "034v5204bsgkzzk6zfa5ia63q95gln47f7hwf96yvad5hrhmd8z3"))))
1062 (build-system gnu-build-system)
1064 `(("python" ,python)))
1065 (synopsis "Heuristics-driven menu generator")
1067 "MenuMaker is a menu generation utility for a number of X window
1068 managers and desktop environments. It is capable of finding lots of
1069 installed programs and generating a root menu consistent across all
1070 supported window managers, so one will get (almost) the same menu in
1071 all of them. Currently supported window managers include:
1083 (home-page "http://menumaker.sourceforge.net/")
1084 (license license:bsd-2)))
1086 (define-public keybinder
1093 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1094 "/releases/download/v" version "/keybinder-"
1096 (file-name (string-append name "-" version ".tar.gz"))
1099 "0h52hj3ay8mfhwvmfxbxlfyq74hifdk8wxgxp7fr4iy6189hg7w7"))))
1100 (build-system gnu-build-system)
1102 `(("python-2" ,python-2)
1103 ("gtk+-2" ,gtk+-2)))
1105 `(("python2-pygtk" ,python2-pygtk)
1106 ("gtk-doc" ,gtk-doc)
1107 ("pkg-config" ,pkg-config)))
1108 (synopsis "Library for registering global keyboard shortcuts")
1110 "Keybinder is a library for registering global keyboard shortcuts.
1111 Keybinder works with GTK-based applications using the X Window System.")
1112 (home-page "https://github.com/kupferlauncher/keybinder")
1113 (license license:gpl2+)))
1115 (define-public keybinder-3.0
1117 (name "keybinder-3.0")
1122 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1123 "/releases/download/" name "-v" version "/" name "-"
1125 (file-name (string-append name "-" version ".tar.gz"))
1128 "0830ihwnalw59pp1xzrp37dn58n8vwb8zasnm4a1h81v3x7dxqz6"))))
1129 (build-system gnu-build-system)
1132 ("gobject-introspection" ,gobject-introspection)))
1134 `(("gtk-doc" ,gtk-doc)
1135 ("pkg-config" ,pkg-config)))
1136 (synopsis "Library for registering global keyboard shortcuts, Gtk3 version")
1138 "Keybinder is a library for registering global keyboard shortcuts.
1139 Keybinder works with GTK-based applications using the X Window System.")
1140 (home-page "https://github.com/kupferlauncher/keybinder")
1141 (license license:x11)))
1143 (define-public spectrwm
1151 (url "https://github.com/conformal/spectrwm")
1153 (string-append "SPECTRWM_"
1154 (string-join (string-split version #\.) "_")))))
1155 (file-name (git-file-name name version))
1157 (base32 "1dfqy5f0s1nv6rqkz9lj006vypmp4rwxd5vczfk3ndzqgnh19kw6"))))
1158 (build-system gnu-build-system)
1160 `(#:make-flags (let ((pkg-config (lambda (flag)
1162 "$(shell pkg-config " flag " "
1163 "xft fontconfig x11 libpng)"))))
1166 (string-append "PREFIX=" %output)
1167 (string-append "INCS=-I. " (pkg-config "--cflags"))
1168 (string-append "LIBS=" (pkg-config "--libs") " -lm")))
1169 #:tests? #f ;no test suite
1171 (modify-phases %standard-phases
1172 (add-before 'build 'change-dir
1174 (chdir "linux") #t))
1175 (add-after 'change-dir 'patch-makefile
1177 (substitute* "Makefile"
1179 (delete 'configure)))) ;no 'configure' exists
1181 `(("freetype" ,freetype)
1182 ("fontconfig" ,fontconfig)
1184 ("libxcursor" ,libxcursor)
1185 ("libxrandr" ,libxrandr)
1186 ("libxtst" ,libxtst)
1188 ("xcb-util" ,xcb-util)
1189 ("xcb-util-wm" ,xcb-util-wm)
1190 ("xcb-util-keysyms" ,xcb-util-keysyms)))
1193 ("pkg-config" ,pkg-config)))
1194 (synopsis "Minimalistic automatic tiling window manager")
1196 "Spectrwm is a small dynamic tiling and reparenting window manager for X11.
1197 It is inspired by Xmonad and dwm. Its major features include:
1200 @item Navigation anywhere on all screens with either the keyboard or mouse
1201 @item Customizable status bar
1202 @item Restartable without losing state
1203 @item Quick launch menu
1204 @item Many screen layouts possible with a few simple key strokes
1205 @item Move/resize floating windows
1206 @item Extended Window Manager Hints (@dfn{EWMH}) support
1207 @item Configurable tiling
1208 @item Adjustable tile gap allows for a true one pixel border
1209 @item Customizable colors and border width
1211 (home-page "https://github.com/conformal/spectrwm")
1212 (license license:isc)))
1221 (uri (string-append "https://leahneukirchen.org/releases/cwm-"
1224 (base32 "022zld29qawd8gl700g4m24qa89il3aks397zkhh66wvzssdblzx"))))
1225 (build-system gnu-build-system)
1227 `(#:make-flags (list (string-append "CC=" ,(cc-for-target))
1228 (string-append "PREFIX=" %output))
1231 (modify-phases %standard-phases
1233 (add-after 'build 'install-xsession
1234 (lambda* (#:key outputs #:allow-other-keys)
1235 ;; Add a .desktop file to xsessions.
1236 (let* ((output (assoc-ref outputs "out"))
1237 (xsessions (string-append output "/share/xsessions")))
1239 (with-output-to-file
1240 (string-append xsessions "/cwm.desktop")
1245 Comment=OpenBSD Calm Window Manager fork~@
1247 TryExec=~@*~a/bin/cwm~@
1253 `(("libxft" ,libxft)
1254 ("libxrandr" ,libxrandr)
1255 ("libxinerama" ,libxinerama)))
1257 `(("pkg-config" ,pkg-config)
1259 (home-page "https://github.com/leahneukirchen/cwm")
1260 (synopsis "OpenBSD fork of the calmwm window manager")
1261 (description "Cwm is a stacking window manager for X11. It is an OpenBSD
1262 project derived from the original Calm Window Manager.")
1263 (license license:isc)))
1272 (url "https://github.com/djpohly/dwl")
1273 (commit (string-append "v" version))))
1274 (file-name (git-file-name name version))
1277 "0r5hsxpckkrq1y7bjfq58rlc5xy45z499rg628q3nh289978ail1"))))
1278 (build-system gnu-build-system)
1280 `(#:tests? #f ; no tests
1283 (string-append "CC=" ,(cc-for-target))
1284 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1286 (modify-phases %standard-phases
1287 (delete 'configure)))) ; no configure
1289 `(("pkg-config" ,pkg-config)))
1291 `(("wlroots" ,wlroots)))
1292 (home-page "https://github.com/djpohly/dwl")
1293 (synopsis "Dynamic window manager for Wayland")
1295 "@command{dwl} is a compact, hackable compositor for Wayland based on
1296 wlroots. It is intended to fill the same space in the Wayland world that dwm
1297 does in X11, primarily in terms of philosophy, and secondarily in terms of
1298 functionality. Like dwm, dwl is easy to understand and hack on, due to a
1299 limited size and a few external dependencies. It is configurable via
1301 ;; LICENSE LICENSE.dwm LICENSE.tinywl
1302 (license (list license:gpl3+ license:expat license:cc0))))
1304 (define-public nitrogen
1310 (uri (string-append "http://github.com/l3ib/nitrogen/"
1311 "releases/download/" version "/"
1312 name "-" version ".tar.gz"))
1315 "0zc3fl1mbhq0iyndy4ysmy8vv5c7xwf54rbgamzfhfvsgdq160pl"))))
1316 (build-system gnu-build-system)
1321 ("glibmm" ,glibmm)))
1323 `(("pkg-config" ,pkg-config)))
1324 (home-page "http://projects.l3ib.org/nitrogen/")
1325 (synopsis "Background browser and setter for X windows")
1327 "This package is a background browser and setter for X windows. It's
1331 @item Multihead and Xinerama aware
1332 @item Recall mode to used via startup script
1333 @item Uses freedesktop.org standard for thumbnails
1334 @item Can set GNOME background
1335 @item Command lie set modes for script use
1336 @item Inotify monitoring of browse directory
1337 @item Lazy loading of thumbnails - conserves memory
1338 @item \"Automatic\" set mode - determines best mode to set an image based on
1340 @item Display preview images in a tiled icon layout
1342 (license license:gpl2+)))
1344 (define-public polybar
1351 (uri (string-append "https://github.com/polybar/polybar/releases/"
1352 "download/" version "/polybar-" version ".tar.gz"))
1354 (base32 "1c8br9972x1qw7l2shj9aqzv0gsx58fdh3r0f1z5i1bqdwxmsqky"))))
1355 (build-system cmake-build-system)
1357 ;; Test is disabled because it requires downloading googletest from the
1361 `(("alsa-lib" ,alsa-lib)
1364 ("jsoncpp" ,jsoncpp)
1365 ("libmpdclient" ,libmpdclient)
1368 ("pulseaudio" ,pulseaudio)
1369 ("xcb-proto" ,xcb-proto)
1370 ("xcb-util" ,xcb-util)
1371 ("xcb-util-cursor" ,xcb-util-cursor)
1372 ("xcb-util-image" ,xcb-util-image)
1373 ("xcb-util-wm" ,xcb-util-wm)
1374 ("xcb-util-xrm" ,xcb-util-xrm)))
1376 `(("pkg-config" ,pkg-config)
1377 ("python-sphinx" ,python-sphinx) ; for the manual
1378 ;; XXX: "python" input must be located after "python-2", or the package
1379 ;; fails to build with "missing required python module: xcbgen".
1380 ("python-2" ,python-2) ; lib/xpp depends on python 2
1381 ("python" ,python))) ; xcb-proto depends on python 3
1382 (home-page "https://polybar.github.io/")
1383 (synopsis "Fast and easy-to-use status bar")
1384 (description "Polybar aims to help users build beautiful and highly
1385 customizable status bars for their desktop environment. It has built-in
1386 functionality to display information about the most commonly used services.")
1387 (license license:expat)))
1389 (define-public wlroots
1397 (url "https://github.com/swaywm/wlroots")
1399 (file-name (git-file-name name version))
1401 (base32 "01j38lmgs2c6fq68v8b75pkilia2wsgzgp46ivfbi9hhx47kgcfn"))))
1402 (build-system meson-build-system)
1404 `(#:configure-flags '("-Dlogind-provider=elogind")
1407 (modify-phases %standard-phases
1408 (add-before 'configure 'hardcode-paths
1409 (lambda* (#:key inputs #:allow-other-keys)
1410 (substitute* "xwayland/server.c"
1411 (("Xwayland") (string-append (assoc-ref inputs
1412 "xorg-server-xwayland")
1416 `(;; As required by wlroots.pc.
1417 ("elogind" ,elogind)
1419 ("libinput" ,libinput)
1420 ("libxkbcommon" ,libxkbcommon)
1423 ("wayland" ,wayland)
1424 ("wayland-protocols" ,wayland-protocols)
1425 ("xcb-util-errors" ,xcb-util-errors)
1426 ("xcb-util-wm" ,xcb-util-wm)
1427 ("xorg-server-xwayland" ,xorg-server-xwayland)))
1429 `(("pkg-config" ,pkg-config)))
1430 (home-page "https://github.com/swaywm/wlroots")
1431 (synopsis "Pluggable, composable, unopinionated modules for building a
1432 Wayland compositor")
1433 (description "wlroots is a set of pluggable, composable, unopinionated
1434 modules for building a Wayland compositor.")
1435 (license license:expat))) ; MIT license
1445 (url "https://github.com/swaywm/sway")
1447 (file-name (git-file-name name version))
1449 (base32 "1xsa3h8zhf29p0mi90baxpr76jkd9pd1gr97ky8cnjbcs4isj9j0"))))
1450 (build-system meson-build-system)
1453 (modify-phases %standard-phases
1454 (add-before 'configure 'hardcode-paths
1455 (lambda* (#:key inputs #:allow-other-keys)
1456 ;; Hardcode path to swaybg.
1457 (substitute* "sway/config.c"
1458 (("strdup..swaybg..")
1459 (string-append "strdup(\"" (assoc-ref inputs "swaybg")
1461 ;; Hardcode path to scdoc.
1462 (substitute* "meson.build"
1463 (("scdoc.get_pkgconfig_variable..scdoc..")
1464 (string-append "'" (assoc-ref inputs "scdoc")
1467 (inputs `(("cairo" ,cairo)
1468 ("elogind" ,elogind)
1469 ("gdk-pixbuf" ,gdk-pixbuf)
1471 ("libevdev" ,libevdev)
1472 ("libinput" ,libinput)
1473 ("libxkbcommon" ,libxkbcommon)
1476 ("wayland" ,wayland)
1477 ("wlroots" ,wlroots)))
1479 `(("linux-pam" ,linux-pam)
1481 ("pkg-config" ,pkg-config)
1483 ("wayland-protocols" ,wayland-protocols)))
1484 (home-page "https://github.com/swaywm/sway")
1485 (synopsis "Wayland compositor compatible with i3")
1486 (description "Sway is a i3-compatible Wayland compositor.")
1487 (license license:expat)))
1489 (define-public swayidle
1497 (url "https://github.com/swaywm/swayidle")
1499 (file-name (git-file-name name version))
1501 (base32 "1nd3v8r9549lykdwh4krldfl59lzaspmmai5k1icy7dvi6kkr18r"))))
1502 (build-system meson-build-system)
1504 `(#:configure-flags '("-Dlogind-provider=elogind")))
1505 (inputs `(("elogind" ,elogind)
1506 ("wayland" ,wayland)))
1507 (native-inputs `(("pkg-config" ,pkg-config)
1509 ("wayland-protocols" ,wayland-protocols)))
1510 (home-page "https://github.com/swaywm/sway")
1511 (synopsis "Idle management daemon for Wayland compositors")
1512 (description "Swayidle is a idle management daemon for Wayland compositors.")
1513 (license license:expat))) ; MIT license
1515 (define-public swaylock
1523 (url "https://github.com/swaywm/swaylock")
1525 (file-name (git-file-name name version))
1527 (base32 "0r95p4w11dwm5ra614vddz83r8j7z6gd120z2vcchy7m9b0f15kf"))))
1528 (build-system meson-build-system)
1529 (inputs `(("cairo" ,cairo)
1530 ("gdk-pixbuf" ,gdk-pixbuf)
1531 ("libxkbcommon" ,libxkbcommon)
1532 ;("linux-pam" ,linux-pam) ; FIXME: Doesn't work.
1533 ("wayland" ,wayland)))
1534 (native-inputs `(("pango" ,pango)
1535 ("pkg-config" ,pkg-config)
1537 ("wayland-protocols" ,wayland-protocols)))
1538 (home-page "https://github.com/swaywm/sway")
1539 (synopsis "Screen locking utility for Wayland compositors")
1540 (description "Swaylock is a screen locking utility for Wayland compositors.")
1541 (license license:expat))) ; MIT license
1543 (define-public swaybg
1551 (url "https://github.com/swaywm/swaybg")
1553 (file-name (git-file-name name version))
1555 (base32 "1lmqz5bmig90gq2m7lwf02d2g7z4hzf8fhqz78c8vk92c6p4xwbc"))))
1556 (build-system meson-build-system)
1557 (inputs `(("cairo" ,cairo)
1558 ("gdk-pixbuf" ,gdk-pixbuf)
1559 ("wayland" ,wayland)))
1560 (native-inputs `(("pkg-config" ,pkg-config)
1562 ("wayland-protocols" ,wayland-protocols)))
1563 (home-page "https://github.com/swaywm/sway")
1564 (synopsis "Screen wallpaper utility for Wayland compositors")
1565 (description "Swaybg is a wallpaper utility for Wayland compositors.")
1566 (license license:expat))) ; MIT license
1568 (define-public waybar
1576 (url "https://github.com/Alexays/Waybar")
1578 (file-name (git-file-name name version))
1580 (base32 "038vnma7y7z81caywp45yr364bc1aq8d01j5vycyiyfv33nm76fy"))))
1581 (build-system meson-build-system)
1582 (inputs `(("date" ,date)
1584 ("gtk-layer-shell" ,gtk-layer-shell)
1586 ("jsoncpp" ,jsoncpp)
1587 ("libdbusmenu" ,libdbusmenu)
1588 ("libinput" ,libinput)
1589 ("libmpdclent" ,libmpdclient)
1591 ("pulseaudio" ,pulseaudio)
1592 ("spdlog" ,spdlog-1.7)
1593 ("wayland" ,wayland)))
1595 `(("gcc" ,gcc-8) ; for #include <filesystem>
1596 ("glib:bin" ,glib "bin")
1597 ("pkg-config" ,pkg-config)
1599 ("wayland-protocols" ,wayland-protocols)))
1600 (home-page "https://github.com/Alexays/Waybar")
1601 (synopsis "Wayland bar for Sway and Wlroots based compositors")
1602 (description "Waybar is a highly customisable Wayland bar for Sway and
1603 Wlroots based compositors.")
1604 (license license:expat))) ; MIT license
1606 (define-public wlr-randr
1614 (url "https://github.com/emersion/wlr-randr")
1615 (commit (string-append "v" version))))
1616 (file-name (git-file-name name version))
1618 (base32 "10c8zzp78s5bw34vvjhilipa28bsdx3jbyhnxgp8f8kawh3cvgsc"))))
1619 (build-system meson-build-system)
1620 (inputs `(("wayland" ,wayland)))
1621 (native-inputs `(("pkg-config" ,pkg-config)))
1622 (home-page "https://github.com/emersion/wlr-randr")
1623 (synopsis "Utility to manage Wayland compositor outputs")
1624 (description "wlr-randr is a utility to manage outputs of a Wayland compositor.")
1625 (license license:expat))) ; MIT license
1635 (url "https://github.com/emersion/mako")
1636 (commit (string-append "v" version))))
1637 (file-name (git-file-name name version))
1639 (base32 "0hwvibpnrximb628w9dsfjpi30b5jy7nfkm4d94z5vhp78p43vxh"))))
1640 (build-system meson-build-system)
1641 (inputs `(("cairo" ,cairo)
1642 ("elogind" ,elogind)
1643 ("gdk-pixbuf" ,gdk-pixbuf)
1645 ("wayland" ,wayland)))
1646 (native-inputs `(("pkg-config" ,pkg-config)
1648 ("wayland-protocols" ,wayland-protocols)))
1649 (home-page "https://wayland.emersion.fr/mako")
1650 (synopsis "Lightweight Wayland notification daemon")
1651 (description "Mako is a lightweight notification daemon for Wayland
1652 compositors that support the layer-shell protocol.")
1653 (license license:expat))) ; MIT license
1655 (define-public kanshi
1663 (url "https://github.com/emersion/kanshi")
1664 (commit (string-append "v" version))))
1665 (file-name (git-file-name name version))
1667 (base32 "0nbpgm8qnn7ljsg9vgs35kl8l4rrk542vdcbx8wrn9r909ld3x92"))))
1668 (build-system meson-build-system)
1669 (inputs `(("wayland" ,wayland)))
1670 (native-inputs `(("pkg-config" ,pkg-config)
1672 (home-page "https://wayland.emersion.fr/kanshi")
1673 (synopsis "Hotswappable output profiles for Wayland")
1674 (description "Kanshi allows you to define output profiles that are
1675 automatically enabled and disabled on hotplug. Kanshi can be used with
1676 Wayland compositors supporting the wlr-output-management protocol.")
1677 (license license:expat))) ; MIT license
1679 (define-public stumpwm
1687 (url "https://github.com/stumpwm/stumpwm")
1689 (file-name (git-file-name "stumpwm" version))
1691 (base32 "1ghs6ihvmb3bz4q4ys1d3h6rdi96xyiw7l2ip7jh54c25049aymf"))))
1692 (build-system asdf-build-system/sbcl)
1693 (native-inputs `(("fiasco" ,sbcl-fiasco)
1694 ("texinfo" ,texinfo)
1696 ;; To build the manual.
1697 ("autoconf" ,autoconf)
1698 ("automake" ,automake)))
1699 (inputs `(("cl-ppcre" ,sbcl-cl-ppcre)
1701 ("alexandria" ,sbcl-alexandria)))
1702 (outputs '("out" "lib"))
1704 '(#:asd-systems '("stumpwm")
1706 (modify-phases %standard-phases
1707 (add-after 'create-asdf-configuration 'build-program
1708 (lambda* (#:key outputs #:allow-other-keys)
1710 (string-append (assoc-ref outputs "out") "/bin/stumpwm")
1712 #:entry-program '((stumpwm:stumpwm) 0))))
1713 (add-after 'build-program 'create-desktop-file
1714 (lambda* (#:key outputs #:allow-other-keys)
1715 (let* ((out (assoc-ref outputs "out"))
1716 (xsessions (string-append out "/share/xsessions")))
1718 (call-with-output-file
1719 (string-append xsessions "/stumpwm.desktop")
1724 Comment=The Stump Window Manager~@
1725 Exec=~a/bin/stumpwm~@
1726 TryExec=~@*~a/bin/stumpwm~@
1731 (add-after 'install 'install-manual
1732 (lambda* (#:key (make-flags '()) outputs #:allow-other-keys)
1733 (let* ((out (assoc-ref outputs "out"))
1734 (info (string-append out "/share/info")))
1735 (invoke "./autogen.sh")
1736 (invoke "sh" "./configure" "SHELL=sh")
1737 (apply invoke "make" "stumpwm.info" make-flags)
1738 (install-file "stumpwm.info" info)
1740 (synopsis "Window manager written in Common Lisp")
1741 (description "Stumpwm is a window manager written entirely in Common Lisp.
1742 It attempts to be highly customizable while relying entirely on the keyboard
1743 for input. These design decisions reflect the growing popularity of
1744 productive, customizable lisp based systems.")
1745 (home-page "https://github.com/stumpwm/stumpwm")
1746 (license license:gpl2+)
1747 (properties `((cl-source-variant . ,(delay cl-stumpwm))))))
1749 (define-public sbcl-stumpwm
1750 (deprecated-package "sbcl-stumpwm" stumpwm))
1752 (define-public cl-stumpwm
1754 (inherit (sbcl-package->cl-source-package stumpwm))
1755 (name "cl-stumpwm")))
1757 (define-public stumpwm+slynk
1760 (name "stumpwm-with-slynk")
1763 `(("stumpwm" ,stumpwm "lib")
1764 ("slynk" ,sbcl-slynk)))
1766 (substitute-keyword-arguments (package-arguments stumpwm)
1768 `(modify-phases ,phases
1769 (replace 'build-program
1770 (lambda* (#:key inputs outputs #:allow-other-keys)
1771 (let* ((out (assoc-ref outputs "out"))
1772 (program (string-append out "/bin/stumpwm")))
1773 (setenv "HOME" "/tmp")
1774 (build-program program outputs
1775 #:entry-program '((stumpwm:stumpwm) 0)
1776 #:dependencies '("stumpwm" "slynk")
1777 #:dependency-prefixes
1778 (map (lambda (input) (assoc-ref inputs input))
1779 '("stumpwm" "slynk")))
1781 (delete 'copy-source)
1784 (delete 'cleanup)))))))
1786 (define stumpwm-contrib
1787 (let ((commit "a7dc1c663d04e6c73a4772c8a6ad56a34381096a")
1790 (name "stumpwm-contrib")
1791 (version (git-version "0.0.1" revision commit)) ;no upstream release
1796 (url "https://github.com/stumpwm/stumpwm-contrib")
1798 (file-name (git-file-name name version))
1800 (base32 "09akdaaya7lga5lzbq1aj1filsyjwvflghkidpmr0nk0jz5xx1g7"))))
1801 (build-system asdf-build-system/sbcl)
1803 `(("stumpwm" ,stumpwm "lib")))
1804 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1805 (synopsis "StumpWM interactive shell")
1806 (description "This package provides a StumpWM interactive shell.")
1807 (license (list license:gpl2+ license:gpl3+ license:bsd-2)))))
1809 (define-public stumpish
1811 (inherit stumpwm-contrib)
1817 (build-system trivial-build-system)
1819 '(#:modules ((guix build utils))
1822 (use-modules (guix build utils))
1823 (copy-recursively (assoc-ref %build-inputs "source") ".")
1824 (chdir "util/stumpish")
1825 (substitute* "stumpish"
1826 (("rlwrap") (string-append (assoc-ref %build-inputs "rlwrap")
1828 (("xprop") (string-append (assoc-ref %build-inputs "xprop")
1830 (("/bin/sh") (string-append (assoc-ref %build-inputs "bash")
1832 (install-file "stumpish" (string-append %output "/bin")))))
1833 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1834 (synopsis "StumpWM interactive shell")
1835 (description "This package provides a StumpWM interactive shell.")
1836 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1838 (define-public sbcl-stumpwm+slynk
1839 (deprecated-package "sbcl-stumpwm-with-slynk" stumpwm+slynk))
1841 (define-public sbcl-stumpwm-ttf-fonts
1843 (inherit stumpwm-contrib)
1844 (name "sbcl-stumpwm-ttf-fonts")
1846 `(("stumpwm" ,stumpwm "lib")
1847 ("clx-truetype" ,sbcl-clx-truetype)))
1849 '(#:asd-systems '("ttf-fonts")
1852 (modify-phases %standard-phases
1853 (add-after 'unpack 'chdir
1854 (lambda _ (chdir "util/ttf-fonts") #t)))))
1855 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1856 (synopsis "Implementation of TTF font rendering for Lisp")
1857 (description "This package provides a Lisp implementation of TTF font
1859 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1861 (define-public sbcl-stumpwm-pass
1863 (inherit stumpwm-contrib)
1864 (name "sbcl-stumpwm-pass")
1866 '(#:asd-systems '("pass")
1869 (modify-phases %standard-phases
1870 (add-after 'unpack 'chdir
1871 (lambda _ (chdir "util/pass") #t)))))
1872 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1873 (synopsis "Integrate @code{pass} with StumpWM")
1874 (description "This package provides an interface which integrates
1875 password-store into StumpWM.")
1876 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1878 (define-public sbcl-stumpwm-globalwindows
1880 (inherit stumpwm-contrib)
1881 (name "sbcl-stumpwm-globalwindows")
1883 '(#:asd-systems '("globalwindows")
1886 (modify-phases %standard-phases
1887 (add-after 'unpack 'chdir
1888 (lambda _ (chdir "util/globalwindows") #t)))))
1889 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1890 (synopsis "Manipulate all windows in the current X session")
1891 (description "This package provides a StumpWM module to manipulate all
1892 windows in the current X session.")
1893 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1895 (define-public sbcl-stumpwm-swm-gaps
1897 (inherit stumpwm-contrib)
1898 (name "sbcl-stumpwm-swm-gaps")
1900 '(#:asd-systems '("swm-gaps")
1903 (modify-phases %standard-phases
1904 (add-after 'unpack 'chdir
1905 (lambda _ (chdir "util/swm-gaps") #t)))))
1906 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1907 (synopsis "Gaps between windows for StumpWM")
1908 (description "This package provides a StumpWM module which adds gaps
1910 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1912 (define-public sbcl-stumpwm-net
1914 (inherit stumpwm-contrib)
1915 (name "sbcl-stumpwm-net")
1917 '(#:asd-systems '("net")
1920 (modify-phases %standard-phases
1921 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/net") #t)))))
1923 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/net")
1924 (synopsis "Modeline support for network connectivity")
1925 (description "Modeline support for network connectivity.")
1927 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1928 (license license:gpl3+)))
1930 (define-public sbcl-stumpwm-wifi
1932 (inherit stumpwm-contrib)
1933 (name "sbcl-stumpwm-wifi")
1935 '(#:asd-systems '("wifi")
1938 (modify-phases %standard-phases
1939 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/wifi") #t)))))
1941 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/wifi")
1942 (synopsis "Modeline support for wifi connectivity")
1943 (description "Modeline support for wifi connectivity.")
1945 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1946 (license license:gpl3+)))
1948 (define-public sbcl-stumpwm-stumptray
1950 (inherit stumpwm-contrib)
1951 (name "sbcl-stumpwm-stumptray")
1953 '(#:asd-systems '("stumptray")
1956 (modify-phases %standard-phases
1957 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/stumptray") #t)))))
1959 `(("stumpwm" ,stumpwm "lib")
1960 ("xembed" ,sbcl-clx-xembed)
1961 ("alexandria" ,sbcl-alexandria)))
1963 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/stumptray")
1964 (synopsis "Modeline support for stumptray connectivity")
1965 (description "Modeline support for stumptray connectivity.")
1967 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1968 (license license:gpl3+)))
1970 (define-public sbcl-stumpwm-kbd-layouts
1972 (inherit stumpwm-contrib)
1973 (name "sbcl-stumpwm-kbd-layouts")
1975 '(#:asd-systems '("kbd-layouts")
1978 (modify-phases %standard-phases
1979 (add-after 'unpack 'chdir (lambda _ (chdir "util/kbd-layouts") #t)))))
1981 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/kbd-layouts")
1982 (synopsis "Keyboard layout switcher for StumpWM")
1983 (description "Keyboard layout switcher for StumpWM")
1984 (license license:gpl3+)))
1986 (define-public sbcl-stumpwm-numpad-layouts
1988 (inherit stumpwm-contrib)
1989 (name "sbcl-stumpwm-numpad-layouts")
1991 '(#:asd-systems '("numpad-layouts")
1994 (modify-phases %standard-phases
1995 (add-after 'unpack 'chdir
1997 (chdir "util/numpad-layouts"))))))
1999 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/numpad-layouts")
2000 (synopsis "Keyboard numpad layouts for StumpWM")
2001 (description "This is a module for handling different keyboards numpad
2002 layouts in StumpWM.")
2003 (license license:gpl3+)))
2005 (define-public sbcl-stumpwm-cpu
2007 (inherit stumpwm-contrib)
2008 (name "sbcl-stumpwm-cpu")
2010 '(#:asd-systems '("cpu")
2013 (modify-phases %standard-phases
2014 (add-after 'unpack 'chdir
2016 (chdir "modeline/cpu"))))))
2018 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/cpu")
2019 (synopsis "Modeline support for CPU info")
2020 (description "Modeline support for CPU info.")
2021 (license license:gpl3+)))
2023 (define-public sbcl-stumpwm-disk
2025 (inherit stumpwm-contrib)
2026 (name "sbcl-stumpwm-disk")
2028 '(#:asd-systems '("disk")
2031 (modify-phases %standard-phases
2032 (add-after 'unpack 'chdir
2033 (lambda _ (chdir "modeline/disk") #t)))))
2035 `(("stumpwm" ,stumpwm "lib")
2036 ("cl-diskspace" ,sbcl-cl-diskspace)
2037 ("cl-mount-info" ,sbcl-cl-mount-info)))
2038 (home-page "https://github.com/stumpwm/stumpwm-contrib")
2039 (synopsis "StumpWM modeline support to show disk usage")
2040 (description "StumpWM modeline support to show disk usage")
2041 (license (list license:gpl2+ license:gpl3+))))
2043 (define-public sbcl-stumpwm-mem
2045 (inherit stumpwm-contrib)
2046 (name "sbcl-stumpwm-mem")
2048 '(#:asd-systems '("mem")
2051 (modify-phases %standard-phases
2052 (add-after 'unpack 'chdir
2054 (chdir "modeline/mem"))))))
2056 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/mem")
2057 (synopsis "Modeline support for memory info")
2058 (description "Modeline support for memory info.")
2059 (license license:gpl3+)))
2061 (define-public sbcl-stumpwm-winner-mode
2063 (inherit stumpwm-contrib)
2064 (name "sbcl-stumpwm-winner-mode")
2066 '(#:asd-systems '("winner-mode")
2069 (modify-phases %standard-phases
2070 (add-after 'unpack 'chdir
2072 (chdir "util/winner-mode"))))))
2074 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/winner-mode")
2075 (synopsis "Emacs' winner-mode for StumpWM")
2076 (description "This module provides a winner-mode for StumpWM similar to the
2078 (license license:gpl3+)))
2080 (define-public sbcl-stumpwm-screenshot
2082 (inherit stumpwm-contrib)
2083 (name "sbcl-stumpwm-screenshot")
2085 `(("stumpwm" ,stumpwm "lib")
2086 ("zpng" ,sbcl-zpng)))
2088 '(#:asd-systems '("screenshot")
2091 (modify-phases %standard-phases
2092 (add-after 'unpack 'chdir
2094 (chdir "util/screenshot")))
2095 (add-after 'chdir 'fix-build
2097 (substitute* "screenshot.asd"
2099 "#:stumpwm #:zpng")))))))
2101 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/screenshot")
2102 (synopsis "Screenshots for StumpWM")
2103 (description "This StumpWM module can take screenshots and store them as
2105 (license license:gpl3+)))
2107 (define-public lemonbar
2108 (let ((commit "35183ab81d2128dbb7b6d8e119cc57846bcefdb4")
2112 (version (git-version "1.3" revision commit))
2116 (url "https://github.com/LemonBoy/bar")
2118 (file-name (git-file-name name version))
2121 "1wwqbph392iwz8skaqxb0xpklb1l6yganqz80g4x1fhrnz7idmlh"))))
2122 (build-system gnu-build-system)
2124 `(#:tests? #f ; no test suite
2126 (list ,(string-append "CC=" (cc-for-target))
2127 (string-append "PREFIX=" %output))
2129 (modify-phases %standard-phases
2130 (delete 'configure))))
2132 `(("libxcb" ,libxcb)))
2135 (home-page "https://github.com/LemonBoy/bar")
2136 (synopsis "Featherweight status bar")
2138 "@code{lemonbar} (formerly known as @code{bar}) is a lightweight
2139 bar entirely based on XCB. Provides full UTF-8 support, basic
2140 formatting, RandR and Xinerama support and EWMH compliance without
2141 wasting your precious memory.")
2142 (license license:x11))))
2144 (define-public lemonbar-xft
2145 ;; Upstream v2.0 tag is several years behind HEAD
2146 (let ((commit "481e12363e2a0fe0ddd2176a8e003392be90ed02"))
2149 (name "lemonbar-xft")
2150 (version (string-append "2.0." (string-take commit 7)))
2154 (url "https://github.com/drscream/lemonbar-xft")
2156 (file-name (git-file-name name version))
2159 "0588g37h18lv50h7w8vfbwhvc3iajh7sdr53848spaif99nh3mh4"))))
2161 `(("freetype" ,freetype)
2164 ,@(package-inputs lemonbar)))
2166 (substitute-keyword-arguments (package-arguments lemonbar)
2167 ((#:make-flags make-flags)
2170 (list (string-append
2173 (list (string-append
2174 "-I" (assoc-ref %build-inputs "freetype")
2175 "/include/freetype2")
2178 (format #f "'~s'" ,version))))))))))
2179 (home-page "https://github.com/drscream/lemonbar-xft")
2182 (package-synopsis lemonbar)
2183 " with fontconfig support"))
2186 (package-description lemonbar)
2187 "This is a fork of the @code{lemonbar} package that adds fontconfig
2188 support, for easier unicode usage.")))))
2190 (define-public xclickroot
2197 (url "https://github.com/phillbush/xclickroot")
2198 (commit (string-append "v" version))))
2199 (file-name (git-file-name name version))
2202 "1nd5qz0qz5j7gx2jsbcp234giwaa0xmg42vrcjrcf587q9ivakfl"))))
2203 (build-system gnu-build-system)
2205 `(("libx11" ,libx11)))
2207 `(#:tests? #f ;no test suite
2209 (list ,(string-append "CC=" (cc-for-target))
2210 (string-append "PREFIX=" %output))
2212 (modify-phases %standard-phases
2213 (delete 'configure))))
2214 (home-page "https://github.com/phillbush/xclickroot")
2215 (synopsis "Run a command when a mouse button is pressed on the root window")
2216 (description "@code{xclickroot} runs a command every time a given mouse
2217 button is pressed on the root window.")
2218 (license license:public-domain)))
2220 (define-public xmenu
2227 (url "https://github.com/phillbush/xmenu")
2228 (commit (string-append "v" version))))
2229 (file-name (git-file-name name version))
2232 "1s70zvsaqnsjqs298vw3py0vcvia68xlks1wcz37pb88bwligz1x"))))
2233 (build-system gnu-build-system)
2235 `(("libx11" ,libx11)
2236 ("libxinerama" ,libxinerama)
2238 ("freetype" ,freetype)
2239 ("imlib2" ,imlib2)))
2241 `(#:tests? #f ;no test suite
2243 (list (string-append "CC=" ,(cc-for-target))
2244 (string-append "PREFIX=" %output)
2245 (string-append "CFLAGS="
2246 "-I" (assoc-ref %build-inputs "freetype")
2247 "/include/freetype2"))
2249 (modify-phases %standard-phases
2250 (delete 'configure))))
2251 (home-page "https://github.com/phillbush/xmenu")
2252 (synopsis "Menu utility for X")
2253 (description "@code{xmenu} receives a menu specification in stdin, shows
2254 a menu for the user to select one of the options, and outputs the option
2255 selected to stdout. It can be controlled both via mouse and via keyboard.")
2256 (license license:public-domain)))
2258 (define-public idesk
2266 "mirror://sourceforge/idesk/idesk/idesk-" version
2267 "/idesk-" version ".tar.bz2"))
2270 "1lxk2yvgysxwl514zc82lwr1dwc8cd62slgr5lzdhjbdrxfymdyl"))
2271 (modules '((guix build utils)
2274 '(let* ((file "src/DesktopConfig.cpp")
2275 (template (string-append file ".XXXXXX"))
2276 (out (mkstemp! template))
2278 (mode (stat:mode st)))
2279 (call-with-ascii-input-file file
2281 (format out "~{~a~%~}" '("#include <unistd.h>"
2282 "#include <sys/stat.h>"
2283 "#include <sys/types.h>"))
2286 (chmod template mode)
2287 (rename-file template file)
2289 (build-system gnu-build-system)
2291 `(("libx11" ,libx11)
2295 ("freetype" ,freetype)
2299 `(("pkg-config" ,pkg-config)))
2301 `(#:tests? #f)) ;no test suite
2302 (home-page "https://sourceforge.net/projects/idesk/")
2303 (synopsis "Add icons on X desktop and set background image for wallpaper")
2304 (description "Idesk is program that draws desktop icons. Each icon will
2305 execute a shell command on a configurable action. The icons can be moved on
2306 the desktop by dragging them, and the icons will remember their positions on
2308 (license license:bsd-3)))
2310 (define-public xnotify
2317 (url "https://github.com/phillbush/xnotify")
2319 (file-name (git-file-name name version))
2322 "09s29m8z4x3mc3wja2587ik3f6zg16b40adr3nllnpyy1mqnprq5"))))
2323 (build-system gnu-build-system)
2325 `(("libx11" ,libx11)
2327 ("libxinerama" ,libxinerama)
2328 ("imlib2" ,imlib2)))
2331 (list (string-append "CC=" ,(cc-for-target))
2332 (string-append "PREFIX=" %output)
2333 (string-append "CFLAGS="
2334 "-I" (assoc-ref %build-inputs "freetype")
2335 "/include/freetype2"))
2336 #:tests? #f ;no test suite
2338 (modify-phases %standard-phases
2339 (delete 'configure))))
2340 (home-page "https://github.com/phillbush/xnotify")
2341 (synopsis "Displays a notification on the screen")
2342 (description "XNotify receives a notification specification in stdin and
2343 shows a notification for the user on the screen.")
2344 (license license:expat)))
2346 (define-public cagebreak
2353 (url "https://github.com/project-repo/cagebreak")
2355 (file-name (git-file-name name version))
2358 "0mnxs1m7jrqdl0asx39nxfzvkp7d4jqpdchi63w2yd1igpj2frb2"))))
2359 (build-system meson-build-system)
2360 (arguments '(#:configure-flags '("-Dxwayland=true")))
2362 `(("pandoc" ,pandoc)
2363 ("pkg-config" ,pkg-config)))
2366 ("wlroots" ,wlroots)))
2367 (home-page "https://github.com/project-repo/cagebreak")
2368 (synopsis "Tiling wayland compositor inspired by ratpoison")
2370 "@command{cagebreak} is a slim, keyboard-controlled, tiling compositor
2371 for wayland conceptually based on the X11 window manager
2372 @command{ratpoison}.")
2373 (license license:expat)))