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 Efraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016 Al McElrath <hello@yrns.org>
10 ;;; Copyright © 2016 Carlo Zancanaro <carlo@zancanaro.id.au>
11 ;;; Copyright © 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
12 ;;; Copyright © 2016, 2017, 2018, 2020 Nikita <nikita@n0.is>
13 ;;; Copyright © 2016 doncatnip <gnopap@gmail.com>
14 ;;; Copyright © 2016 Ivan Vilata i Balaguer <ivan@selidor.net>
15 ;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com>
16 ;;; Copyright © 2017, 2019 Marius Bakke <mbakke@fastmail.com>
17 ;;; Copyright © 2017, 2020 Oleg Pykhalov <go.wigust@gmail.com>
18 ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
19 ;;; Copyright © 2018 Pierre-Antoine Rouby <contact@parouby.fr>
20 ;;; Copyright © 2018, 2019 Meiyo Peng <meiyo@riseup.net>
21 ;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
22 ;;; Copyright © 2019 Timothy Sample <samplet@ngyro.com>
23 ;;; Copyright © 2019 Gábor Boskovits <boskovits@gmail.com>
24 ;;; Copyright © 2019 Kyle Andrews <kyle.c.andrews@gmail.com>
25 ;;; Copyright © 2019 Ingo Ruhnke <grumbel@gmail.com>
26 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
27 ;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
28 ;;; Copyright © 2018, 2019 Pierre Langlois <pierre.langlois@gmx.com>
29 ;;; Copyright © 2016, 2017 Andy Patterson <ajpatter@uwaterloo.ca>
30 ;;; Copyright © 2019 Evan Straw <evan.straw99@gmail.com>
31 ;;; Copyright © 2019 Brett Gilio <brettg@gnu.org>
32 ;;; Copyright © 2019 Noodles! <nnoodle@chiru.no>
33 ;;; Copyright © 2019, 2020 Alexandru-Sergiu Marton <brown121407@member.fsf.org>
34 ;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
35 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
36 ;;; Copyright © 2020 Boris A. Dekshteyn <harlequin78@gmail.com>
37 ;;; Copyright © 2020 Marcin Karpezo <sirmacik@wioo.waw.pl>
39 ;;; This file is part of GNU Guix.
41 ;;; GNU Guix is free software; you can redistribute it and/or modify it
42 ;;; under the terms of the GNU General Public License as published by
43 ;;; the Free Software Foundation; either version 3 of the License, or (at
44 ;;; your option) any later version.
46 ;;; GNU Guix is distributed in the hope that it will be useful, but
47 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
48 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49 ;;; GNU General Public License for more details.
51 ;;; You should have received a copy of the GNU General Public License
52 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
54 (define-module (gnu packages wm)
55 #:use-module ((guix licenses) #:prefix license:)
56 #:use-module (guix packages)
57 #:use-module (guix download)
58 #:use-module (guix git-download)
59 #:use-module (guix build-system asdf)
60 #:use-module (guix build-system cmake)
61 #:use-module (guix build-system gnu)
62 #:use-module (guix build-system haskell)
63 #:use-module (guix build-system meson)
64 #:use-module (guix build-system perl)
65 #:use-module (guix build-system python)
66 #:use-module (guix build-system trivial)
67 #:use-module (guix utils)
68 #:use-module (gnu packages)
69 #:use-module (gnu packages bash)
70 #:use-module (gnu packages autotools)
71 #:use-module (gnu packages base)
72 #:use-module (gnu packages bison)
73 #:use-module (gnu packages calendar)
74 #:use-module (gnu packages docbook)
75 #:use-module (gnu packages documentation)
76 #:use-module (gnu packages fontutils)
77 #:use-module (gnu packages freedesktop)
78 #:use-module (gnu packages fribidi)
79 #:use-module (gnu packages gawk)
80 #:use-module (gnu packages gcc)
81 #:use-module (gnu packages gl)
82 #:use-module (gnu packages glib)
83 #:use-module (gnu packages gperf)
84 #:use-module (gnu packages gtk)
85 #:use-module (gnu packages haskell-check)
86 #:use-module (gnu packages haskell-web)
87 #:use-module (gnu packages haskell-xyz)
88 #:use-module (gnu packages image)
89 #:use-module (gnu packages imagemagick)
90 #:use-module (gnu packages libevent)
91 #:use-module (gnu packages linux)
92 #:use-module (gnu packages lisp-xyz)
93 #:use-module (gnu packages logging)
94 #:use-module (gnu packages lua)
95 #:use-module (gnu packages m4)
96 #:use-module (gnu packages man)
97 #:use-module (gnu packages maths)
98 #:use-module (gnu packages mpd)
99 #:use-module (gnu packages pcre)
100 #:use-module (gnu packages perl)
101 #:use-module (gnu packages pkg-config)
102 #:use-module (gnu packages pretty-print)
103 #:use-module (gnu packages pulseaudio)
104 #:use-module (gnu packages python)
105 #:use-module (gnu packages readline)
106 #:use-module (gnu packages serialization)
107 #:use-module (gnu packages sphinx)
108 #:use-module (gnu packages suckless)
109 #:use-module (gnu packages texinfo)
110 #:use-module (gnu packages textutils)
111 #:use-module (gnu packages video)
112 #:use-module (gnu packages web)
113 #:use-module (gnu packages xdisorg)
114 #:use-module (gnu packages xml)
115 #:use-module (gnu packages xorg))
125 (url "https://github.com/baskerville/bspwm")
127 (file-name (git-file-name name version))
129 (base32 "0qlv7b4c2mmjfd65y100d11x8iqyg5f6lfiws3cgmpjidhdygnxc"))))
130 (build-system gnu-build-system)
133 ("libxinerama" ,libxinerama)
135 ("xcb-util" ,xcb-util)
136 ("xcb-util-keysyms" ,xcb-util-keysyms)
137 ("xcb-util-wm" ,xcb-util-wm)))
140 (modify-phases %standard-phases
141 (delete 'configure)) ; no configure script
142 #:tests? #f ; no check target
145 (string-append "PREFIX=" %output))))
146 (home-page "https://github.com/baskerville/bspwm")
147 (synopsis "Tiling window manager based on binary space partitioning")
148 (description "bspwm is a tiling window manager that represents windows as
149 the leaves of a full binary tree.")
150 (license license:bsd-2)))
152 (define-public herbstluftwm
154 (name "herbstluftwm")
159 (uri (string-append "https://herbstluftwm.org/tarballs/herbstluftwm-"
162 (base32 "1qmb4pjf2f6g0dvcg11cw9njwmxblhqzd70ai8qnlgqw1iz3nkm1"))
163 (file-name (string-append "herbstluftwm-" version ".tar.gz"))))
164 (build-system cmake-build-system)
171 ("xsetroot" ,xsetroot)
174 ("libxinerama" ,libxinerama)
175 ("libxrandr" ,libxrandr)))
177 `(("asciidoc" ,asciidoc)
178 ("pkg-config" ,pkg-config)))
182 (let ((out (assoc-ref %outputs "out")))
184 (string-append "-DCMAKE_INSTALL_SYSCONF_PREFIX=" out "/etc")
185 (string-append "-DBASHCOMPLETIONDIR=" out "/etc/bash_completion.d")))
187 (modify-phases %standard-phases
188 (add-after 'install 'install-xsession
189 (lambda* (#:key outputs #:allow-other-keys)
190 (let* ((out (assoc-ref outputs "out"))
191 (xsessions (string-append out "/share/xsessions")))
193 (call-with-output-file
194 (string-append xsessions "/herbstluftwm.desktop")
199 Comment=Manual tiling window manager~@
200 Exec=~a/bin/herbstluftwm~@
201 Type=XSession~%" out)))
203 (synopsis "Tiling window manager for X11")
204 (description "herbstluftwm is a manual tiling window manager for X11 using
205 Xlib and GLib. Its main features are:
209 The layout is based on splitting frames into subframes which can be split
210 again or can be filled with windows (similar to i3 or musca).
213 Tags (or workspaces or virtual desktops or …) can be added/removed at runtime.
214 Each tag contains an own layout.
217 Exactly one tag is viewed on each monitor. The tags are monitor independent
221 It is configured at runtime via IPC calls from @command{herbstclient}. So the
222 configuration file is just a script which is run on startup (similar to wmii
226 (home-page "https://herbstluftwm.org")
227 (license license:bsd-2)))
229 (define-public i3status
235 (uri (string-append "https://i3wm.org/i3status/i3status-"
239 "0rhlzb96mw64z2jnhwz9nibc7pxg549626lz5642xxk5hpzwk2ff"))))
240 (build-system gnu-build-system)
242 `(;; XXX: Do an "out of source" build to work around
243 ;; <https://github.com/i3/i3status/issues/339>.
245 #:tests? #f)) ; no test suite
247 `(("openlibm" ,openlibm)
248 ("libconfuse" ,libconfuse)
250 ("alsa-lib" ,alsa-lib)
251 ("pulseaudio" ,pulseaudio)
254 ("asciidoc" ,asciidoc)))
256 `(("pkg-config" ,pkg-config)
257 ("docbook-xsl" ,docbook-xsl)
258 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
260 (home-page "https://i3wm.org/i3status/")
261 (synopsis "Status bar for i3bar, dzen2, xmobar or similar programs")
262 (description "i3status is a small program for generating a status bar for
263 i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient
264 by issuing a very small number of system calls, as one generally wants to
265 update such a status line every second. This ensures that even under high
266 load, your status bar is updated correctly. Also, it saves a bit of energy by
267 not hogging your CPU as much as spawning the corresponding amount of shell
269 (license license:bsd-3)))
277 (uri (string-append "https://i3wm.org/downloads/i3-"
281 "030jym6b8b07yf4y6pb806hg8k77zsprv569gy0r72rh5zb1g1mj"))))
282 (build-system gnu-build-system)
285 ;; The build system tries to build in a separate directory, but that
286 ;; seems to be unnecessary.
287 (list "--disable-builddir")
289 ;; The test suite requires the unpackaged Xephyr X server.
292 (modify-phases %standard-phases
293 (add-after 'install 'patch-session-file
294 (lambda* (#:key outputs #:allow-other-keys)
295 (let* ((out (assoc-ref outputs "out"))
296 (i3 (string-append out "/bin/i3"))
297 (i3-with-shmlog (string-append out "/bin/i3-with-shmlog")))
298 (substitute* (string-append out "/share/xsessions/i3.desktop")
299 (("Exec=i3") (string-append "Exec=" i3)))
300 (substitute* (string-append out "/share/xsessions/i3-with-shmlog.desktop")
301 (("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog)))
305 ("xcb-util" ,xcb-util)
306 ("xcb-util-cursor" ,xcb-util-cursor)
307 ("xcb-util-keysyms" ,xcb-util-keysyms)
308 ("xcb-util-wm" ,xcb-util-wm)
309 ("xcb-util-xrm" ,xcb-util-xrm)
310 ("libxkbcommon" ,libxkbcommon)
313 ("asciidoc" ,asciidoc)
315 ("perl-pod-simple" ,perl-pod-simple)
318 ("startup-notification" ,startup-notification)
324 ("pkg-config" ,pkg-config)
325 ;; For building the documentation.
327 ("docbook-xsl" ,docbook-xsl)))
328 (home-page "https://i3wm.org/")
329 (synopsis "Tiling window manager")
330 (description "i3 is a tiling X11 window manager that dynamically manages
331 tiled, stacked, and tabbed window layouts.
333 i3 primarily targets advanced users. Windows are managed manually and organised
334 inside containers, which can be split vertically or horizontally, and optionally
337 i3 uses a plain-text configuration file, and can be extended and controlled from
338 many programming languages.")
339 (license license:bsd-3)))
341 (define-public i3-gaps
342 (package (inherit i3-wm)
348 "https://github.com/Airblader/i3/releases/download/"
349 version "/i3-" version ".tar.bz2"))
352 "0lz08wf4b0yprzqsmymn94kiyg885dcwmh0p64v2rnf52s165g2g"))))
353 (home-page "https://github.com/Airblader/i3")
354 (synopsis "Tiling window manager with gaps")
355 (description "i3-gaps is a fork of i3wm, a tiling window manager
356 for X11. It is kept up to date with upstream, adding a few additional
357 features such as gaps between windows.
359 i3 is a tiling X11 window manager that dynamically manages tiled, stacked,
360 and tabbed window layouts.
362 i3 primarily targets advanced users. Windows are managed manually and
363 organised inside containers, which can be split vertically or horizontally,
364 and optionally resized.
366 i3 uses a plain-text configuration file, and can be extended and controlled
367 from many programming languages.")
368 (license license:bsd-3)))
370 (define-public i3lock
376 (uri (string-append "https://i3wm.org/i3lock/i3lock-"
380 "015dn534m7cxjvqdncpvaq9p8b2r4w5hp1yanbdy2abmhbcc7a7j"))))
381 (build-system gnu-build-system)
383 `(("pkg-config" ,pkg-config)))
387 ("linux-pam" ,linux-pam)
389 ("libxkbcommon" ,libxkbcommon)
390 ("xcb-util" ,xcb-util)
391 ("xcb-util-image" ,xcb-util-image)
392 ("xcb-util-xrm" ,xcb-util-xrm)))
393 (home-page "https://i3wm.org/i3lock/")
394 (synopsis "Lightweight screen locker")
396 "i3lock is a simple X11 screen locker developed alongside the i3 project.
397 Despite the name it should work with any X11 window manager.")
398 (license license:bsd-3)))
400 (define-public i3blocks
407 (url "https://github.com/vivien/i3blocks")
411 "0v8mwnm8qzpv6xnqvrk43s4b9iyld4naqzbaxk4ldq1qkhai0wsv"))
412 (file-name (git-file-name name version))))
413 (build-system gnu-build-system)
415 `(("autoconf" ,autoconf)
416 ("automake" ,automake)
417 ("pkg-config" ,pkg-config)))
418 (home-page "https://github.com/vivien/i3blocks")
419 (synopsis "Minimalist scheduler for status bar scripts")
420 (description "i3blocks executes your command lines and generates a
421 status line from their output. The generated line is meant to be displayed by
422 the i3 window manager through its i3bar component, as an alternative to
424 (license license:gpl3+)))
426 (define-public perl-anyevent-i3
428 (name "perl-anyevent-i3")
432 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTPLBG/"
433 "AnyEvent-I3-" version ".tar.gz"))
436 "0qvd9bq16jyy7v3ma82qcnvz9j503bw0mh7h55gkjf7ir62ck0jk"))))
437 (build-system perl-build-system)
439 `(("perl-anyevent" ,perl-anyevent)
440 ("perl-json-xs" ,perl-json-xs)))
441 (home-page "https://metacpan.org/release/AnyEvent-I3")
443 "Communicate with the i3 window manager through perl")
445 "This module connects to the i3 window manager using the UNIX socket
446 based IPC interface it provides (if enabled in the configuration file).
447 You can then subscribe to events or send messages and receive their replies.")
448 ;; Can be used with either license.
449 (license (list license:gpl3+ license:perl-license))))
451 (define-public python-i3-py
453 (name "python-i3-py")
457 ;; The latest release is not tagged in Git nor has an entry in PyPi,
458 ;; but there is still a clear commit for it, and it's been the last one
462 (url "https://github.com/ziberna/i3-py")
463 (commit "27f88a616e9ecc340e7d041d3d00782f8a1964c1")))
466 "1nm719dc2xqlll7vj4c4m7mpjb27lpn3bg3c66gajvnrz2x1nmxs"))
467 (file-name (string-append name "-" version "-checkout"))))
468 (build-system python-build-system)
470 `(#:tests? #f ; no tests yet
471 #:phases (modify-phases %standard-phases
472 (add-after 'install 'install-doc
473 ;; Copy readme file to documentation directory.
474 (lambda* (#:key outputs #:allow-other-keys)
475 (let ((doc (string-append (assoc-ref outputs "out")
476 "/share/doc/" ,name)))
477 (install-file "README.md" doc)
478 ;; Avoid unspecified return value.
482 (home-page "https://github.com/ziberna/i3-py")
483 (synopsis "Python interface to the i3 window manager")
484 (description "This package allows you to interact from a Python program
485 with the i3 window manager via its IPC socket. It can send commands and other
486 kinds of messages to i3, select the affected containers, filter results and
487 subscribe to events.")
488 (license license:gpl3+)))
490 (define-public python2-i3-py
491 (package-with-python2 python-i3-py))
493 (define-public quickswitch-i3
494 (let ((commit "ed692b1e8f43b95bd907ced26238ce8ccb2ed28f")
495 (revision "1")) ; Guix package revision
497 (name "quickswitch-i3")
498 (version (string-append "2.2-" revision "."
499 (string-take commit 7)))
502 ;; The latest commit is a few years old and just a couple commits
503 ;; after the last tagged release, so we use that latest commit
504 ;; instead of the release.
507 (url "https://github.com/proxypoke/quickswitch-for-i3")
511 "0447077sama80jcdg5p64zjsvafmz5rbdrirhm1adcdjhkh6iqc5"))
512 (patches (search-patches "quickswitch-fix-dmenu-check.patch"))
513 (file-name (string-append name "-" version "-checkout"))))
514 (build-system python-build-system)
516 `(#:tests? #f ; no tests yet
517 #:phases (modify-phases %standard-phases
518 (add-after 'install 'install-doc
519 ;; Copy readme file to documentation directory.
520 (lambda* (#:key outputs #:allow-other-keys)
521 (let ((doc (string-append (assoc-ref outputs "out")
522 "/share/doc/" ,name)))
523 (install-file "README.rst" doc)
524 ;; Avoid unspecified return value.
527 `(("python-i3-py" ,python-i3-py)
529 (home-page "https://github.com/proxypoke/quickswitch-for-i3")
530 (synopsis "Quickly change to and locate windows in the i3 window manager")
532 "This utility for the i3 window manager allows you to quickly switch to
533 and locate windows on all your workspaces, using an interactive dmenu
535 (license license:wtfpl2))))
537 (define-public i3lock-color
539 (name "i3lock-color")
545 (url "https://github.com/PandorasFox/i3lock-color")
547 (file-name (git-file-name name version))
549 (base32 "08fhnchf187b73h52xgzb86g6byzxz085zs9galsvl687g5zxk34"))))
550 (build-system gnu-build-system)
552 `(#:tests? #f)) ; no tests included
556 ("libjpeg" ,libjpeg-turbo)
558 ("libxkbcommon" ,libxkbcommon)
559 ("linux-pam" ,linux-pam)
560 ("xcb-util" ,xcb-util)
561 ("xcb-util-image" ,xcb-util-image)
562 ("xcb-util-xrm" ,xcb-util-xrm)))
564 `(("autoconf" ,autoconf)
565 ("automake" ,automake)
566 ("pkg-config" ,pkg-config)))
567 (home-page "https://github.com/PandorasFox/i3lock-color")
568 (synopsis "Screen locker with color configuration support")
570 "i3lock-color is a simpler X11 screen locker derived from i3lock.
574 @item forking process, the locked screen is preserved when you suspend to RAM;
575 @item specify background color or image to be displayed in the lock screen;
576 @item many additional color options.
578 (license license:bsd-3)))
580 (define-public i3lock-fancy
582 (name "i3lock-fancy")
588 (url "https://github.com/meskarune/i3lock-fancy")
590 (file-name (git-file-name name version))
592 (base32 "11g2kkim33ra38d1m897sq1ifajw17iyw9mr7sg1q8i2ibl4lfsi"))))
593 (build-system gnu-build-system)
595 `(#:tests? #f ; no tests included
597 (modify-phases %standard-phases
599 (lambda* (#:key inputs outputs #:allow-other-keys)
600 (let* ((out (assoc-ref outputs "out"))
601 (icons (string-append out "/share/i3lock-fancy/icons/"))
602 (wmctrl (string-append (assoc-ref inputs "wmctrl")
604 (mconvert (string-append (assoc-ref inputs "imagemagick")
606 (mimport (string-append (assoc-ref inputs "imagemagick")
608 (awk (string-append (assoc-ref inputs "gawk")
612 (("$(which wmctrl)") wmctrl)
613 (("convert") mconvert)
614 (("shot=\\(import") (string-append "shot=\(" mimport))
615 (("awk -F") (string-append awk " -F"))
617 (("\\$scriptpath/icons/") icons))
621 (lambda* (#:key inputs outputs #:allow-other-keys)
622 (let* ((out (assoc-ref outputs "out"))
623 (bin (string-append out "/bin"))
624 (icons (string-append out "/share/i3lock-fancy/icons/")))
626 (install-file "lock" bin)
627 (rename-file (string-append bin "/lock")
628 (string-append bin "/i3lock-fancy"))
629 (copy-recursively "icons" icons)
632 `(("imagemagick" ,imagemagick)
635 (home-page "https://github.com/meskarune/i3lock-fancy")
636 (synopsis "Screen locker with screenshot function")
638 "@code{i3lock-fancy} is a Bash script that takes a screenshot of
639 the desktop, blurs the background and adds a lock icon and text.
640 It requires @code{i3lock-color} or @code{i3lock} and can optionally
641 be passed any screenshot util like @code{scrot}.
642 This screen locker can be used with any window manager or
643 desktop environment.")
644 (license license:expat)))
646 (define-public xmonad
650 (synopsis "Tiling window manager")
653 (uri (string-append "mirror://hackage/package/xmonad/"
654 "xmonad-" version ".tar.gz"))
657 "0a7rh21k9y6g8fwkggxdxjns2grvvsd5hi2ls4klmqz5xvk4hyaa"))))
658 (build-system haskell-build-system)
660 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
661 ("ghc-quickcheck" ,ghc-quickcheck)
662 ("ghc-semigroups" ,ghc-semigroups)
663 ("ghc-setlocale" ,ghc-setlocale)
664 ("ghc-utf8-string" ,ghc-utf8-string)
665 ("ghc-x11" ,ghc-x11)))
668 (modify-phases %standard-phases
670 'install 'install-xsession
672 (let* ((xsessions (string-append %output "/share/xsessions")))
674 (call-with-output-file
675 (string-append xsessions "/xmonad.desktop")
682 Type=Application~%" ,name ,synopsis %output)))))))))
683 (home-page "https://xmonad.org")
685 "Xmonad is a tiling window manager for X. Windows are arranged
686 automatically to tile the screen without gaps or overlap, maximising screen
687 use. All features of the window manager are accessible from the keyboard: a
688 mouse is strictly optional. Xmonad is written and extensible in Haskell.
689 Custom layout algorithms, and other extensions, may be written by the user in
690 config files. Layouts are applied dynamically, and different layouts may be
691 used on each workspace. Xinerama is fully supported, allowing windows to be
692 tiled on several screens.")
693 (license license:bsd-3)))
695 (define-public xmobar
701 (uri (string-append "mirror://hackage/package/xmobar/"
702 "xmobar-" version ".tar.gz"))
705 "0x09xbz7y9ay0046j1xpr9jjk5jqivqi06vm3q6mhcrgc4y922rx"))))
706 (build-system haskell-build-system)
708 `(("ghc-hspec" ,ghc-hspec)
709 ("hspec-discover" ,hspec-discover)))
711 `(("ghc-alsa-core" ,ghc-alsa-core)
712 ("ghc-alsa-mixer" ,ghc-alsa-mixer)
713 ("ghc-dbus" ,ghc-dbus)
714 ("ghc-hinotify" ,ghc-hinotify)
715 ("ghc-http" ,ghc-http)
716 ("ghc-http-conduit" ,ghc-http-conduit)
717 ("ghc-http-types" ,ghc-http-types)
718 ("ghc-iwlib" ,ghc-iwlib)
719 ("ghc-libmpd" ,ghc-libmpd)
720 ("ghc-old-locale" ,ghc-old-locale)
721 ("ghc-parsec-numbers" ,ghc-parsec-numbers)
722 ("ghc-regex-compat" ,ghc-regex-compat)
723 ("ghc-temporary" ,ghc-temporary)
724 ("ghc-timezone-olson" ,ghc-timezone-olson)
726 ("ghc-x11-xft" ,ghc-x11-xft)
729 `(#:configure-flags (list "--flags=all_extensions")
731 (modify-phases %standard-phases
732 (add-before 'build 'patch-test-shebang
733 (lambda* (#:key inputs #:allow-other-keys)
734 (substitute* "test/Xmobar/Plugins/Monitors/AlsaSpec.hs"
735 (("/bin/bash") (which "bash")))
737 (home-page "https://xmobar.org")
738 (synopsis "Minimalistic text based status bar")
740 "@code{xmobar} is a lightweight, text-based, status bar written in
741 Haskell. It was originally designed to be used together with Xmonad, but it
742 is also usable with any other window manager. While xmobar is written in
743 Haskell, no knowledge of the language is required to install and use it.")
744 (license license:bsd-3)))
746 (define-public ghc-xmonad-contrib
748 (name "ghc-xmonad-contrib")
753 (uri (string-append "mirror://hackage/package/xmonad-contrib/"
754 "xmonad-contrib-" version ".tar.gz"))
756 (base32 "1pddgkvnbww28wykncc7j0yb0lv15bk7xnnhdcbrwkxzw66w6wmd"))))
757 (build-system haskell-build-system)
759 `(("ghc-old-time" ,ghc-old-time)
760 ("ghc-random" ,ghc-random)
761 ("ghc-utf8-string" ,ghc-utf8-string)
762 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
763 ("ghc-semigroups" ,ghc-semigroups)
765 ("ghc-x11-xft" ,ghc-x11-xft)
767 (home-page "https://xmonad.org")
768 (synopsis "Third party extensions for xmonad")
770 "Third party tiling algorithms, configurations, and scripts to Xmonad, a
771 tiling window manager for X.")
772 (license license:bsd-3)))
774 (define-public evilwm
781 (uri (string-append "http://www.6809.org.uk/evilwm/evilwm-"
785 "0ak0yajzk3v4dg5wmaghv6acf7v02a4iw8qxmq5yw5ard8lrqn3r"))
786 (patches (search-patches "evilwm-lost-focus-bug.patch"))))
787 (build-system gnu-build-system)
791 ("libxrandr" ,libxrandr)))
793 `(#:modules ((srfi srfi-26)
795 (guix build gnu-build-system))
796 #:make-flags (let ((inputs (map (cut assoc-ref %build-inputs <>)
797 '("libx11" "libxext" "libxrandr")))
798 (join (lambda (proc strs)
799 (string-join (map proc strs) " ")))
800 (dash-I (cut string-append "-I" <> "/include"))
801 (dash-L (cut string-append "-L" <> "/lib")))
802 `("desktopfilesdir=$(prefix)/share/xsessions"
803 ,(string-append "prefix=" (assoc-ref %outputs "out"))
804 ,(string-append "CPPFLAGS=" (join dash-I inputs))
805 ,(string-append "LDFLAGS=" (join dash-L inputs))))
806 #:tests? #f ;no tests
807 #:phases (modify-phases %standard-phases
808 (delete 'configure)))) ;no configure script
809 (home-page "http://www.6809.org.uk/evilwm/")
810 (synopsis "Minimalist window manager for the X Window System")
812 "evilwm is a minimalist window manager based on aewm, extended to feature
813 many keyboard controls with repositioning and maximize toggles, solid window
814 drags, snap-to-border support, and virtual desktops.")
815 (license (license:x11-style "file:///README"))))
817 (define-public fluxbox
821 (synopsis "Small and fast window manager")
824 (uri (string-append "mirror://sourceforge/fluxbox/fluxbox/"
825 version "/fluxbox-" version ".tar.xz"))
828 "1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w"))))
829 (build-system gnu-build-system)
831 `(#:make-flags '("CPPFLAGS=-U__TIME__") ;ugly, but for reproducibility
833 (modify-phases %standard-phases
834 (add-after 'install 'install-vim-files
835 (lambda* (#:key outputs #:allow-other-keys)
836 (let* ((out (assoc-ref outputs "out"))
837 (syntax (string-append out "/share/vim/vimfiles/syntax")))
838 (copy-recursively "3rd/vim/vim/syntax" syntax)
840 (add-after 'install 'install-xsession
841 (lambda* (#:key outputs #:allow-other-keys)
842 (let* ((out (assoc-ref outputs "out"))
843 (xsessions (string-append out "/share/xsessions")))
845 (call-with-output-file
846 (string-append xsessions "/fluxbox.desktop")
852 Exec=~a/bin/startfluxbox~@
853 Type=Application~%" ,name ,synopsis out)))
856 `(("pkg-config" ,pkg-config)))
858 `(("freetype" ,freetype)
864 ("libxinerama" ,libxinerama)
866 ("libxrandr" ,libxrandr)
867 ("libxrender" ,libxrender)))
868 (description "Fluxbox is a window manager. It is light on resources
869 and easy to handle yet full of features to make an easy and fast desktop
871 (home-page "http://fluxbox.org/")
872 (license license:expat)))
874 (define-public awesome
882 "https://github.com/awesomeWM/awesome-releases/raw/master/"
883 "awesome-" version ".tar.xz"))
885 (base32 "0lqpw401mkkmp9wgbvrmm45bqq2j9357l4irwdqv6l1305pls9kq"))
886 (modules '((guix build utils)
890 ;; Remove non-reproducible timestamp and use the date of
891 ;; the source file instead.
892 (substitute* "common/version.c"
893 (("__DATE__ \" \" __TIME__")
896 (make-time time-utc 0 (stat:mtime (stat "awesome.c"))))
900 (search-patches "awesome-reproducible-png.patch"))))
901 (build-system cmake-build-system)
903 `(("asciidoc" ,asciidoc)
904 ("docbook-xsl" ,docbook-xsl)
907 ("imagemagick" ,imagemagick)
908 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
909 ("lua-ldoc" ,lua-ldoc)
910 ("pkg-config" ,pkg-config)
915 ("gdk-pixbuf" ,gdk-pixbuf)
917 ("gobject-introspection" ,gobject-introspection)
921 ("libxcursor" ,libxcursor)
922 ("libxdg-basedir" ,libxdg-basedir)
923 ("libxkbcommon" ,libxkbcommon)
927 ("startup-notification" ,startup-notification)
928 ("xcb-util" ,xcb-util)
929 ("xcb-util-cursor" ,xcb-util-cursor)
930 ("xcb-util-image" ,xcb-util-image)
931 ("xcb-util-keysyms" ,xcb-util-keysyms)
932 ("xcb-util-renderutil" ,xcb-util-renderutil)
933 ("xcb-util-xrm" ,xcb-util-xrm)
934 ("xcb-util-wm" ,xcb-util-wm)))
936 `(#:modules ((guix build cmake-build-system)
939 ;; Let compression happen in our 'compress-documentation' phase
940 ;; so that '--no-name' is used, which removes timestamps from
943 '("-DCOMPRESS_MANPAGES=off")
944 ;; Building awesome in its source directory is no longer
948 (modify-phases %standard-phases
949 (add-before 'configure 'set-paths
950 (lambda* (#:key inputs #:allow-other-keys)
951 ;; The build process needs to load Cairo dynamically.
952 (let* ((cairo (string-append (assoc-ref inputs "cairo") "/lib"))
953 (lua-version ,(version-major+minor (package-version lua)))
955 (filter (match-lambda
956 ((label . _) (string-prefix? "lua-" label)))
963 dir "/share/lua/" lua-version "/?.lua;"
964 dir "/share/lua/" lua-version "/?/?.lua")))
972 dir "/lib/lua/" lua-version "/?.so;"
973 dir "/lib/lua/" lua-version "/?/?.so")))
976 (setenv "LD_LIBRARY_PATH" cairo)
977 (setenv "LUA_PATH" (string-append "?.lua;" lua-path))
978 (setenv "LUA_CPATH" lua-cpath)
982 ;; There aren't any tests, so just make sure the binary
983 ;; gets built and can be run successfully.
984 (invoke "../build/awesome" "-v")))
985 (add-after 'install 'patch-session-file
986 (lambda* (#:key outputs #:allow-other-keys)
987 (let* ((out (assoc-ref outputs "out"))
988 (awesome (string-append out "/bin/awesome")))
989 (substitute* (string-append out "/share/xsessions/awesome.desktop")
990 (("Exec=awesome") (string-append "Exec=" awesome)))
992 (add-after 'install 'wrap
993 (lambda* (#:key inputs outputs #:allow-other-keys)
994 (let* ((awesome (assoc-ref outputs "out"))
995 (cairo (string-append (assoc-ref inputs "cairo") "/lib"))
996 (lua-version ,(version-major+minor (package-version lua)))
997 (lua-lgi (assoc-ref inputs "lua-lgi")))
998 (wrap-program (string-append awesome "/bin/awesome")
1000 (,(format #f "~a/share/lua/~a/?.lua" lua-lgi lua-version)))
1001 `("LUA_CPATH" suffix
1002 (,(format #f "~a/lib/lua/~a/?.so" lua-lgi lua-version)))
1003 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))
1004 `("LD_LIBRARY_PATH" suffix (,cairo)))
1006 (home-page "https://awesomewm.org/")
1007 (synopsis "Highly configurable window manager")
1009 "Awesome has been designed as a framework window manager. It is fast, small,
1010 dynamic and extensible using the Lua programming language.")
1011 (license license:gpl2+)))
1013 (define-public menumaker
1020 (uri (string-append "mirror://sourceforge/menumaker/"
1021 "menumaker-" version ".tar.gz"))
1023 (base32 "034v5204bsgkzzk6zfa5ia63q95gln47f7hwf96yvad5hrhmd8z3"))))
1024 (build-system gnu-build-system)
1026 `(("python" ,python)))
1027 (synopsis "Heuristics-driven menu generator")
1029 "MenuMaker is a menu generation utility for a number of X window
1030 managers and desktop environments. It is capable of finding lots of
1031 installed programs and generating a root menu consistent across all
1032 supported window managers, so one will get (almost) the same menu in
1033 all of them. Currently supported window managers include:
1045 (home-page "http://menumaker.sourceforge.net/")
1046 (license license:bsd-2)))
1048 (define-public keybinder
1055 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1056 "/releases/download/v" version "/keybinder-"
1058 (file-name (string-append name "-" version ".tar.gz"))
1061 "0h52hj3ay8mfhwvmfxbxlfyq74hifdk8wxgxp7fr4iy6189hg7w7"))))
1062 (build-system gnu-build-system)
1064 `(("python-2" ,python-2)
1065 ("gtk+-2" ,gtk+-2)))
1067 `(("python2-pygtk" ,python2-pygtk)
1068 ("gtk-doc" ,gtk-doc)
1069 ("pkg-config" ,pkg-config)))
1070 (synopsis "Library for registering global keyboard shortcuts")
1072 "Keybinder is a library for registering global keyboard shortcuts.
1073 Keybinder works with GTK-based applications using the X Window System.")
1074 (home-page "https://github.com/kupferlauncher/keybinder")
1075 (license license:gpl2+)))
1077 (define-public keybinder-3.0
1079 (name "keybinder-3.0")
1084 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1085 "/releases/download/" name "-v" version "/" name "-"
1087 (file-name (string-append name "-" version ".tar.gz"))
1090 "0830ihwnalw59pp1xzrp37dn58n8vwb8zasnm4a1h81v3x7dxqz6"))))
1091 (build-system gnu-build-system)
1094 ("gobject-introspection" ,gobject-introspection)))
1096 `(("gtk-doc" ,gtk-doc)
1097 ("pkg-config" ,pkg-config)))
1098 (synopsis "Library for registering global keyboard shortcuts, Gtk3 version")
1100 "Keybinder is a library for registering global keyboard shortcuts.
1101 Keybinder works with GTK-based applications using the X Window System.")
1102 (home-page "https://github.com/kupferlauncher/keybinder")
1103 (license license:x11)))
1105 (define-public spectrwm
1113 (url "https://github.com/conformal/spectrwm")
1115 (string-append "SPECTRWM_"
1116 (string-join (string-split version #\.) "_")))))
1117 (file-name (git-file-name name version))
1119 (base32 "1dfqy5f0s1nv6rqkz9lj006vypmp4rwxd5vczfk3ndzqgnh19kw6"))))
1120 (build-system gnu-build-system)
1122 `(#:make-flags (let ((pkg-config (lambda (flag)
1124 "$(shell pkg-config " flag " "
1125 "xft fontconfig x11 libpng)"))))
1128 (string-append "PREFIX=" %output)
1129 (string-append "INCS=-I. " (pkg-config "--cflags"))
1130 (string-append "LIBS=" (pkg-config "--libs") " -lm")))
1131 #:tests? #f ;no test suite
1133 (modify-phases %standard-phases
1134 (add-before 'build 'change-dir
1136 (chdir "linux") #t))
1137 (add-after 'change-dir 'patch-makefile
1139 (substitute* "Makefile"
1141 (delete 'configure)))) ;no 'configure' exists
1143 `(("freetype" ,freetype)
1144 ("fontconfig" ,fontconfig)
1146 ("libxcursor" ,libxcursor)
1147 ("libxrandr" ,libxrandr)
1148 ("libxtst" ,libxtst)
1150 ("xcb-util" ,xcb-util)
1151 ("xcb-util-wm" ,xcb-util-wm)
1152 ("xcb-util-keysyms" ,xcb-util-keysyms)))
1155 ("pkg-config" ,pkg-config)))
1156 (synopsis "Minimalistic automatic tiling window manager")
1158 "Spectrwm is a small dynamic tiling and reparenting window manager for X11.
1159 It is inspired by Xmonad and dwm. Its major features include:
1162 @item Navigation anywhere on all screens with either the keyboard or mouse
1163 @item Customizable status bar
1164 @item Restartable without losing state
1165 @item Quick launch menu
1166 @item Many screen layouts possible with a few simple key strokes
1167 @item Move/resize floating windows
1168 @item Extended Window Manager Hints (@dfn{EWMH}) support
1169 @item Configurable tiling
1170 @item Adjustable tile gap allows for a true one pixel border
1171 @item Customizable colors and border width
1173 (home-page "https://github.com/conformal/spectrwm")
1174 (license license:isc)))
1183 (uri (string-append "https://leahneukirchen.org/releases/cwm-"
1187 "0p350pbfn92m21jiq4i324sdskxhs71p435g0mgz7cmzprnhhg92"))))
1188 (build-system gnu-build-system)
1190 `(#:make-flags (list "CC=gcc"
1191 (string-append "PREFIX=" %output))
1194 (modify-phases %standard-phases
1196 (add-after 'build 'install-xsession
1197 (lambda* (#:key outputs #:allow-other-keys)
1198 ;; Add a .desktop file to xsessions.
1199 (let* ((output (assoc-ref outputs "out"))
1200 (xsessions (string-append output "/share/xsessions")))
1202 (with-output-to-file
1203 (string-append xsessions "/cwm.desktop")
1208 Comment=OpenBSD Calm Window Manager fork~@
1210 TryExec=~@*~a/bin/cwm~@
1216 `(("libxft" ,libxft)
1217 ("libxrandr" ,libxrandr)
1218 ("libxinerama" ,libxinerama)))
1220 `(("pkg-config" ,pkg-config)
1222 (home-page "https://github.com/leahneukirchen/cwm")
1223 (synopsis "OpenBSD fork of the calmwm window manager")
1224 (description "Cwm is a stacking window manager for X11. It is an OpenBSD
1225 project derived from the original Calm Window Manager.")
1226 (license license:isc)))
1228 (define-public nitrogen
1234 (uri (string-append "http://github.com/l3ib/nitrogen/"
1235 "releases/download/" version "/"
1236 name "-" version ".tar.gz"))
1239 "0zc3fl1mbhq0iyndy4ysmy8vv5c7xwf54rbgamzfhfvsgdq160pl"))))
1240 (build-system gnu-build-system)
1245 ("glibmm" ,glibmm)))
1247 `(("pkg-config" ,pkg-config)))
1248 (home-page "http://projects.l3ib.org/nitrogen/")
1249 (synopsis "Background browser and setter for X windows")
1251 "This package is a background browser and setter for X windows. It's
1255 @item Multihead and Xinerama aware
1256 @item Recall mode to used via startup script
1257 @item Uses freedesktop.org standard for thumbnails
1258 @item Can set GNOME background
1259 @item Command lie set modes for script use
1260 @item Inotify monitoring of browse directory
1261 @item Lazy loading of thumbnails - conserves memory
1262 @item \"Automatic\" set mode - determines best mode to set an image based on
1264 @item Display preview images in a tiled icon layout
1266 (license license:gpl2+)))
1268 (define-public polybar
1275 (uri (string-append "https://github.com/polybar/polybar/releases/"
1276 "download/" version "/polybar-" version ".tar"))
1278 (base32 "0bw22qvbcdvyd0qv3ax48r34rnclbbb6dyb8h8zljq1r3lf15vfl"))))
1279 (build-system cmake-build-system)
1281 ;; Test is disabled because it requires downloading googletest from the
1285 `(("alsa-lib" ,alsa-lib)
1288 ("jsoncpp" ,jsoncpp)
1289 ("libmpdclient" ,libmpdclient)
1292 ("pulseaudio" ,pulseaudio)
1293 ("xcb-proto" ,xcb-proto)
1294 ("xcb-util" ,xcb-util)
1295 ("xcb-util-cursor" ,xcb-util-cursor)
1296 ("xcb-util-image" ,xcb-util-image)
1297 ("xcb-util-wm" ,xcb-util-wm)
1298 ("xcb-util-xrm" ,xcb-util-xrm)))
1300 `(("pkg-config" ,pkg-config)
1301 ("python-sphinx" ,python-sphinx) ; for the manual
1302 ;; XXX: "python" input must be located after "python-2", or the package
1303 ;; fails to build with "missing required python module: xcbgen".
1304 ("python-2" ,python-2) ; lib/xpp depends on python 2
1305 ("python" ,python))) ; xcb-proto depends on python 3
1306 (home-page "https://polybar.github.io/")
1307 (synopsis "Fast and easy-to-use status bar")
1308 (description "Polybar aims to help users build beautiful and highly
1309 customizable status bars for their desktop environment. It has built-in
1310 functionality to display information about the most commonly used services.")
1311 (license license:expat)))
1313 (define-public wlroots
1321 (url "https://github.com/swaywm/wlroots")
1323 (file-name (git-file-name name version))
1325 (base32 "0j2lh9vc92zhn44rjbia5aw3y1rpgfng1x1h17lcvj5m4i6vj0pc"))))
1326 (build-system meson-build-system)
1328 `(#:configure-flags '("-Dlogind-provider=elogind")
1330 (modify-phases %standard-phases
1331 (add-before 'configure 'hardcode-paths
1332 (lambda* (#:key inputs #:allow-other-keys)
1333 (substitute* "xwayland/xwayland.c"
1334 (("Xwayland") (string-append (assoc-ref inputs
1335 "xorg-server-xwayland")
1338 (inputs `(("elogind" ,elogind)
1340 ("libinput" ,libinput)
1341 ("libxkbcommon" ,libxkbcommon)
1344 ("wayland" ,wayland)
1345 ("xorg-server-xwayland" ,xorg-server-xwayland)))
1346 (native-inputs `(("ffmpeg" ,ffmpeg)
1349 ("pkg-config" ,pkg-config)
1350 ("wayland-protocols" ,wayland-protocols)))
1351 (home-page "https://github.com/swaywm/wlroots")
1352 (synopsis "Pluggable, composable, unopinionated modules for building a
1353 Wayland compositor")
1354 (description "wlroots is a set of pluggable, composable, unopinionated
1355 modules for building a Wayland compositor.")
1356 (license license:expat))) ; MIT license
1366 (url "https://github.com/swaywm/sway")
1368 (file-name (git-file-name name version))
1370 (base32 "11qf89y3q92g696a6f4d23qb44gqixg6qxq740vwv2jw59ms34ja"))))
1371 (build-system meson-build-system)
1374 (modify-phases %standard-phases
1375 (add-before 'configure 'hardcode-paths
1376 (lambda* (#:key inputs #:allow-other-keys)
1377 ;; Hardcode path to swaybg.
1378 (substitute* "sway/config.c"
1379 (("strdup..swaybg..")
1380 (string-append "strdup(\"" (assoc-ref inputs "swaybg")
1382 ;; Hardcode path to scdoc.
1383 (substitute* "meson.build"
1384 (("scdoc.get_pkgconfig_variable..scdoc..")
1385 (string-append "'" (assoc-ref inputs "scdoc")
1388 (inputs `(("cairo" ,cairo)
1389 ("elogind" ,elogind)
1390 ("gdk-pixbuf" ,gdk-pixbuf)
1392 ("libevdev" ,libevdev)
1393 ("libinput" ,libinput)
1394 ("libxkbcommon" ,libxkbcommon)
1397 ("wayland" ,wayland)
1398 ("wlroots" ,wlroots)))
1399 (native-inputs `(("libcap" ,libcap)
1400 ("linux-pam" ,linux-pam)
1402 ("pkg-config" ,pkg-config)
1404 ("wayland-protocols" ,wayland-protocols)))
1405 (home-page "https://github.com/swaywm/sway")
1406 (synopsis "Wayland compositor compatible with i3")
1407 (description "Sway is a i3-compatible Wayland compositor.")
1408 (license license:expat))) ; MIT license
1410 (define-public swayidle
1418 (url "https://github.com/swaywm/swayidle")
1420 (file-name (git-file-name name version))
1422 (base32 "05qi96j58xqxjiighay1d39rfanxcpn6vlynj23mb5dymxvlaq9n"))))
1423 (build-system meson-build-system)
1425 `(#:configure-flags '("-Dlogind-provider=elogind")))
1426 (inputs `(("elogind" ,elogind)
1427 ("wayland" ,wayland)))
1428 (native-inputs `(("pkg-config" ,pkg-config)
1430 ("wayland-protocols" ,wayland-protocols)))
1431 (home-page "https://github.com/swaywm/sway")
1432 (synopsis "Idle management daemon for Wayland compositors")
1433 (description "Swayidle is a idle management daemon for Wayland compositors.")
1434 (license license:expat))) ; MIT license
1436 (define-public swaylock
1444 (url "https://github.com/swaywm/swaylock")
1446 (file-name (git-file-name name version))
1448 (base32 "1ii9ql1mxkk2z69dv6bg1x22nl3a46iww764wqjiv78x08xpk982"))))
1449 (build-system meson-build-system)
1450 (inputs `(("cairo" ,cairo)
1451 ("gdk-pixbuf" ,gdk-pixbuf)
1452 ("libxkbcommon" ,libxkbcommon)
1453 ;("linux-pam" ,linux-pam) ; FIXME: Doesn't work.
1454 ("wayland" ,wayland)))
1455 (native-inputs `(("pango" ,pango)
1456 ("pkg-config" ,pkg-config)
1458 ("wayland-protocols" ,wayland-protocols)))
1459 (home-page "https://github.com/swaywm/sway")
1460 (synopsis "Screen locking utility for Wayland compositors")
1461 (description "Swaylock is a screen locking utility for Wayland compositors.")
1462 (license license:expat))) ; MIT license
1464 (define-public swaybg
1472 (url "https://github.com/swaywm/swaybg")
1474 (file-name (git-file-name name version))
1476 (base32 "1lmqz5bmig90gq2m7lwf02d2g7z4hzf8fhqz78c8vk92c6p4xwbc"))))
1477 (build-system meson-build-system)
1478 (inputs `(("cairo" ,cairo)
1479 ("gdk-pixbuf" ,gdk-pixbuf)
1480 ("wayland" ,wayland)))
1481 (native-inputs `(("pkg-config" ,pkg-config)
1483 ("wayland-protocols" ,wayland-protocols)))
1484 (home-page "https://github.com/swaywm/sway")
1485 (synopsis "Screen wallpaper utility for Wayland compositors")
1486 (description "Swaybg is a wallpaper utility for Wayland compositors.")
1487 (license license:expat))) ; MIT license
1489 (define-public waybar
1497 (url "https://github.com/Alexays/Waybar")
1499 (file-name (git-file-name name version))
1501 (base32 "0ks719khhg2zwpyiwa2079i6962qcxpapm28hmr4ckpsp2n659ck"))))
1502 (build-system meson-build-system)
1505 (list (string-append "-Dout=" (assoc-ref %outputs "out")))))
1506 (inputs `(("date" ,date)
1508 ("gtk-layer-shell" ,gtk-layer-shell)
1510 ("jsoncpp" ,jsoncpp)
1511 ("libdbusmenu" ,libdbusmenu)
1512 ("libinput" ,libinput)
1513 ("libmpdclent" ,libmpdclient)
1515 ("pulseaudio" ,pulseaudio)
1517 ("wayland" ,wayland)))
1519 `(("gcc" ,gcc-8) ; for #include <filesystem>
1520 ("glib:bin" ,glib "bin")
1521 ("pkg-config" ,pkg-config)
1522 ("wayland-protocols" ,wayland-protocols)))
1523 (home-page "https://github.com/Alexays/Waybar")
1524 (synopsis "Wayland bar for Sway and Wlroots based compositors")
1525 (description "Waybar is a highly customisable Wayland bar for Sway and
1526 Wlroots based compositors.")
1527 (license license:expat))) ; MIT license
1537 (url "https://github.com/emersion/mako")
1538 (commit (string-append "v" version))))
1539 (file-name (git-file-name name version))
1541 (base32 "11ymiq6cr2ma0iva1mqybn3j6k73bsc6lv6pcbdq7hkhd4f9b7j9"))))
1542 (build-system meson-build-system)
1543 (inputs `(("cairo" ,cairo)
1544 ("elogind" ,elogind)
1545 ("gdk-pixbuf" ,gdk-pixbuf)
1547 ("wayland" ,wayland)))
1548 (native-inputs `(("pkg-config" ,pkg-config)
1550 ("wayland-protocols" ,wayland-protocols)))
1551 (home-page "https://wayland.emersion.fr/mako")
1552 (synopsis "Lightweight Wayland notification daemon")
1553 (description "Mako is a lightweight notification daemon for Wayland
1554 compositors that support the layer-shell protocol.")
1555 (license license:expat))) ; MIT license
1557 (define-public stumpwm
1565 (url "https://github.com/stumpwm/stumpwm")
1567 (file-name (git-file-name "stumpwm" version))
1569 (base32 "1ha8803ll7472kqxsy2xz0v5d4sv8apmc9z631d67m31q0z1m9rz"))))
1570 (build-system asdf-build-system/sbcl)
1571 (native-inputs `(("fiasco" ,sbcl-fiasco)
1572 ("texinfo" ,texinfo)))
1573 (inputs `(("cl-ppcre" ,sbcl-cl-ppcre)
1575 ("alexandria" ,sbcl-alexandria)))
1576 (outputs '("out" "lib"))
1578 '(#:asd-system-name "stumpwm"
1580 (modify-phases %standard-phases
1581 (add-after 'create-symlinks 'build-program
1582 (lambda* (#:key outputs #:allow-other-keys)
1584 (string-append (assoc-ref outputs "out") "/bin/stumpwm")
1586 #:entry-program '((stumpwm:stumpwm) 0))))
1587 (add-after 'build-program 'create-desktop-file
1588 (lambda* (#:key outputs #:allow-other-keys)
1589 (let* ((out (assoc-ref outputs "out"))
1590 (xsessions (string-append out "/share/xsessions")))
1592 (call-with-output-file
1593 (string-append xsessions "/stumpwm.desktop")
1598 Comment=The Stump Window Manager~@
1599 Exec=~a/bin/stumpwm~@
1600 TryExec=~@*~a/bin/stumpwm~@
1605 (add-after 'install 'install-manual
1606 (lambda* (#:key outputs #:allow-other-keys)
1607 ;; The proper way to the manual is bootstrapping a full autotools
1608 ;; build system and running ‘./configure && make stumpwm.info’ to
1609 ;; do some macro substitution. We can get away with much less.
1610 (let* ((out (assoc-ref outputs "out"))
1611 (info (string-append out "/share/info")))
1612 (invoke "makeinfo" "stumpwm.texi.in")
1613 (install-file "stumpwm.info" info)
1615 (synopsis "Window manager written in Common Lisp")
1616 (description "Stumpwm is a window manager written entirely in Common Lisp.
1617 It attempts to be highly customizable while relying entirely on the keyboard
1618 for input. These design decisions reflect the growing popularity of
1619 productive, customizable lisp based systems.")
1620 (home-page "https://github.com/stumpwm/stumpwm")
1621 (license license:gpl2+)
1622 (properties `((cl-source-variant . ,(delay cl-stumpwm))))))
1624 (define-public sbcl-stumpwm
1625 (deprecated-package "sbcl-stumpwm" stumpwm))
1627 (define-public cl-stumpwm
1629 (inherit (sbcl-package->cl-source-package stumpwm))
1630 (name "cl-stumpwm")))
1632 (define-public stumpwm+slynk
1635 (name "stumpwm-with-slynk")
1638 `(("stumpwm" ,stumpwm "lib")
1639 ("slynk" ,sbcl-slynk)))
1641 (substitute-keyword-arguments (package-arguments stumpwm)
1643 `(modify-phases ,phases
1644 (replace 'build-program
1645 (lambda* (#:key inputs outputs #:allow-other-keys)
1646 (let* ((out (assoc-ref outputs "out"))
1647 (program (string-append out "/bin/stumpwm")))
1648 (build-program program outputs
1649 #:entry-program '((stumpwm:stumpwm) 0)
1650 #:dependencies '("stumpwm"
1651 ,@(@@ (gnu packages lisp-xyz) slynk-systems))
1652 #:dependency-prefixes
1653 (map (lambda (input) (assoc-ref inputs input))
1654 '("stumpwm" "slynk")))
1655 ;; Remove unneeded file.
1656 (delete-file (string-append out "/bin/stumpwm-exec.fasl"))
1658 (delete 'copy-source)
1661 (delete 'create-asd-file)
1663 (delete 'create-symlinks)))))))
1665 (define stumpwm-contrib
1666 (let ((commit "920f8fc1488f7953f205e1dda4c2ecbbbda56d63")
1669 (name "stumpwm-contrib")
1670 (version (git-version "0.0.1" revision commit)) ;no upstream release
1675 (url "https://github.com/stumpwm/stumpwm-contrib")
1677 (file-name (git-file-name name version))
1679 (base32 "0giac390bq95ag41xkxqp8jjrhfx1wpgglz7jg5rkm0wjhcwmyml"))))
1680 (build-system asdf-build-system/sbcl)
1682 `(("stumpwm" ,stumpwm "lib")))
1683 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1684 (synopsis "StumpWM interactive shell")
1685 (description "This package provides a StumpWM interactive shell.")
1686 (license (list license:gpl2+ license:gpl3+ license:bsd-2)))))
1688 (define-public stumpish
1690 (inherit stumpwm-contrib)
1694 ("rlwrap" ,rlwrap)))
1695 (build-system trivial-build-system)
1697 '(#:modules ((guix build utils))
1700 (use-modules (guix build utils))
1701 (copy-recursively (assoc-ref %build-inputs "source") ".")
1702 (chdir "util/stumpish")
1703 (substitute* "stumpish"
1704 (("rlwrap") (string-append (assoc-ref %build-inputs "rlwrap")
1706 (("/bin/sh") (string-append (assoc-ref %build-inputs "bash")
1708 (install-file "stumpish" (string-append %output "/bin")))))
1709 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1710 (synopsis "StumpWM interactive shell")
1711 (description "This package provides a StumpWM interactive shell.")
1712 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1714 (define-public sbcl-stumpwm+slynk
1715 (deprecated-package "sbcl-stumpwm-with-slynk" stumpwm+slynk))
1717 (define-public sbcl-stumpwm-ttf-fonts
1719 (inherit stumpwm-contrib)
1720 (name "sbcl-stumpwm-ttf-fonts")
1722 `(("stumpwm" ,stumpwm "lib")
1723 ("clx-truetype" ,sbcl-clx-truetype)))
1725 '(#:asd-system-name "ttf-fonts"
1728 (modify-phases %standard-phases
1729 (add-after 'unpack 'chdir
1730 (lambda _ (chdir "util/ttf-fonts") #t)))))
1731 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1732 (synopsis "Implementation of TTF font rendering for Lisp")
1733 (description "This package provides a Lisp implementation of TTF font
1735 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1737 (define-public sbcl-stumpwm-pass
1739 (inherit stumpwm-contrib)
1740 (name "sbcl-stumpwm-pass")
1742 '(#:asd-system-name "pass"
1745 (modify-phases %standard-phases
1746 (add-after 'unpack 'chdir
1747 (lambda _ (chdir "util/pass") #t)))))
1748 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1749 (synopsis "Integrate @code{pass} with StumpWM")
1750 (description "This package provides an interface which integrates
1751 password-store into StumpWM.")
1752 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1754 (define-public sbcl-stumpwm-globalwindows
1756 (inherit stumpwm-contrib)
1757 (name "sbcl-stumpwm-globalwindows")
1759 '(#:asd-system-name "globalwindows"
1762 (modify-phases %standard-phases
1763 (add-after 'unpack 'chdir
1764 (lambda _ (chdir "util/globalwindows") #t)))))
1765 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1766 (synopsis "Manipulate all windows in the current X session")
1767 (description "This package provides a StumpWM module to manipulate all
1768 windows in the current X session.")
1769 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1771 (define-public sbcl-stumpwm-swm-gaps
1773 (inherit stumpwm-contrib)
1774 (name "sbcl-stumpwm-swm-gaps")
1776 '(#:asd-system-name "swm-gaps"
1779 (modify-phases %standard-phases
1780 (add-after 'unpack 'chdir
1781 (lambda _ (chdir "util/swm-gaps") #t)))))
1782 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1783 (synopsis "Gaps between windows for StumpWM")
1784 (description "This package provides a StumpWM module which adds gaps
1786 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1788 (define-public sbcl-stumpwm-net
1790 (inherit stumpwm-contrib)
1791 (name "sbcl-stumpwm-net")
1793 '(#:asd-system-name "net"
1796 (modify-phases %standard-phases
1797 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/net") #t)))))
1799 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/net")
1800 (synopsis "Modeline support for network connectivity")
1801 (description "Modeline support for network connectivity.")
1803 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1804 (license license:gpl3+)))
1806 (define-public sbcl-stumpwm-wifi
1808 (inherit stumpwm-contrib)
1809 (name "sbcl-stumpwm-wifi")
1811 '(#:asd-system-name "wifi"
1814 (modify-phases %standard-phases
1815 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/wifi") #t)))))
1817 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/wifi")
1818 (synopsis "Modeline support for wifi connectivity")
1819 (description "Modeline support for wifi connectivity.")
1821 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1822 (license license:gpl3+)))
1824 (define-public sbcl-stumpwm-stumptray
1826 (inherit stumpwm-contrib)
1827 (name "sbcl-stumpwm-stumptray")
1829 '(#:asd-system-name "stumptray"
1832 (modify-phases %standard-phases
1833 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/stumptray") #t)))))
1835 `(("stumpwm" ,stumpwm "lib")
1836 ("xembed" ,sbcl-clx-xembed)
1837 ("alexandria" ,sbcl-alexandria)))
1839 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/stumptray")
1840 (synopsis "Modeline support for stumptray connectivity")
1841 (description "Modeline support for stumptray connectivity.")
1843 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1844 (license license:gpl3+)))
1846 (define-public sbcl-stumpwm-kbd-layouts
1848 (inherit stumpwm-contrib)
1849 (name "sbcl-stumpwm-kbd-layouts")
1851 '(#:asd-system-name "kbd-layouts"
1854 (modify-phases %standard-phases
1855 (add-after 'unpack 'chdir (lambda _ (chdir "util/kbd-layouts") #t)))))
1857 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/kbd-layouts")
1858 (synopsis "Keyboard layout switcher for StumpWM")
1859 (description "Keyboard layout switcher for StumpWM")
1860 (license license:gpl3+)))
1862 (define-public lemonbar
1863 (let ((commit "35183ab81d2128dbb7b6d8e119cc57846bcefdb4")
1867 (version (git-version "1.3" revision commit))
1871 (url "https://github.com/LemonBoy/bar")
1873 (file-name (git-file-name name version))
1876 "1wwqbph392iwz8skaqxb0xpklb1l6yganqz80g4x1fhrnz7idmlh"))))
1877 (build-system gnu-build-system)
1879 `(#:tests? #f ; no test suite
1881 (list ,(string-append "CC=" (cc-for-target))
1882 (string-append "PREFIX=" %output))
1884 (modify-phases %standard-phases
1885 (delete 'configure))))
1887 `(("libxcb" ,libxcb)))
1890 (home-page "https://github.com/LemonBoy/bar")
1891 (synopsis "Featherweight status bar")
1893 "@code{lemonbar} (formerly known as @code{bar}) is a lightweight
1894 bar entirely based on XCB. Provides full UTF-8 support, basic
1895 formatting, RandR and Xinerama support and EWMH compliance without
1896 wasting your precious memory.")
1897 (license license:x11))))
1899 (define-public xclickroot
1900 (let ((commit "309fd17174dba4149b5ea66654c6fd02cfcf7c9a")
1904 (version (git-version "0.0.1" revision commit)) ;no upstream release
1908 (url "https://github.com/phillbush/xclickroot")
1910 (file-name (git-file-name name version))
1913 "0fjqkg3wnyks0my1vrzhxfjicsfy8xwnijaazmpz6mhilcqkpvnd"))))
1914 (build-system gnu-build-system)
1916 `(("libx11" ,libx11)))
1918 `(#:tests? #f ;no test suite
1920 (list ,(string-append "CC=" (cc-for-target))
1921 (string-append "PREFIX=" %output))
1923 (modify-phases %standard-phases
1924 (delete 'configure))))
1925 (home-page "https://github.com/phillbush/xclickroot")
1926 (synopsis "Run a command when a mouse button is pressed on the root window")
1927 (description "@code{xclickroot} runs a command every time a given mouse
1928 button is pressed on the root window.")
1929 (license license:public-domain))))
1931 (define-public xmenu
1938 (url "https://github.com/phillbush/xmenu")
1939 (commit (string-append "v" version))))
1940 (file-name (git-file-name name version))
1943 "1sw9l87fh03jp03a2v7rhgpyx29yg2x9blzfzp40jwad2whs7m7n"))))
1944 (build-system gnu-build-system)
1946 `(("libx11" ,libx11)
1948 ("freetype" ,freetype)
1949 ("imlib2" ,imlib2)))
1951 `(#:tests? #f ;no test suite
1953 (list (string-append "CC=" ,(cc-for-target))
1954 (string-append "PREFIX=" %output)
1955 (string-append "CFLAGS="
1956 "-I" (assoc-ref %build-inputs "freetype")
1957 "/include/freetype2"))
1959 (modify-phases %standard-phases
1960 (delete 'configure))))
1961 (home-page "https://github.com/phillbush/xmenu")
1962 (synopsis "Menu utility for X")
1963 (description "@code{xmenu} receives a menu specification in stdin, shows
1964 a menu for the user to select one of the options, and outputs the option
1965 selected to stdout. It can be controlled both via mouse and via keyboard.")
1966 (license license:public-domain)))
1968 (define-public idesk
1976 "mirror://sourceforge/idesk/idesk/idesk-" version
1977 "/idesk-" version ".tar.bz2"))
1980 "1lxk2yvgysxwl514zc82lwr1dwc8cd62slgr5lzdhjbdrxfymdyl"))
1981 (modules '((guix build utils)
1984 '(let* ((file "src/DesktopConfig.cpp")
1985 (template (string-append file ".XXXXXX"))
1986 (out (mkstemp! template))
1988 (mode (stat:mode st)))
1989 (call-with-ascii-input-file file
1991 (format out "~{~a~%~}" '("#include <unistd.h>"
1992 "#include <sys/stat.h>"
1993 "#include <sys/types.h>"))
1996 (chmod template mode)
1997 (rename-file template file)
1999 (build-system gnu-build-system)
2001 `(("libx11" ,libx11)
2005 ("freetype" ,freetype)
2009 `(("pkg-config" ,pkg-config)))
2011 `(#:tests? #f)) ;no test suite
2012 (home-page "https://sourceforge.net/projects/idesk/")
2013 (synopsis "Add icons on X desktop and set background image for wallpaper")
2014 (description "Idesk is program that draws desktop icons. Each icon will
2015 execute a shell command on a configurable action. The icons can be moved on
2016 the desktop by dragging them, and the icons will remember their positions on
2018 (license license:bsd-3)))