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 ng0 <ng0@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 Oleg Pykhalov <go.wigust@gmail.com>
18 ;;; Copyright © 2018, 2019 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>
27 ;;; This file is part of GNU Guix.
29 ;;; GNU Guix is free software; you can redistribute it and/or modify it
30 ;;; under the terms of the GNU General Public License as published by
31 ;;; the Free Software Foundation; either version 3 of the License, or (at
32 ;;; your option) any later version.
34 ;;; GNU Guix is distributed in the hope that it will be useful, but
35 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
36 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 ;;; GNU General Public License for more details.
39 ;;; You should have received a copy of the GNU General Public License
40 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
42 (define-module (gnu packages wm)
43 #:use-module ((guix licenses) #:prefix license:)
44 #:use-module (guix packages)
45 #:use-module (gnu packages)
46 #:use-module (gnu packages linux)
47 #:use-module (guix build-system cmake)
48 #:use-module (guix build-system gnu)
49 #:use-module (guix build-system haskell)
50 #:use-module (guix build-system meson)
51 #:use-module (guix build-system perl)
52 #:use-module (guix build-system python)
53 #:use-module (gnu packages haskell-check)
54 #:use-module (gnu packages haskell-web)
55 #:use-module (gnu packages haskell-xyz)
56 #:use-module (gnu packages autotools)
57 #:use-module (gnu packages bison)
58 #:use-module (gnu packages gawk)
59 #:use-module (gnu packages base)
60 #:use-module (gnu packages pkg-config)
61 #:use-module (gnu packages perl)
62 #:use-module (gnu packages pulseaudio)
63 #:use-module (gnu packages xorg)
64 #:use-module (gnu packages xdisorg)
65 #:use-module (gnu packages documentation)
66 #:use-module (gnu packages xml)
67 #:use-module (gnu packages m4)
68 #:use-module (gnu packages docbook)
69 #:use-module (gnu packages image)
70 #:use-module (gnu packages pcre)
71 #:use-module (gnu packages python)
72 #:use-module (gnu packages gtk)
73 #:use-module (gnu packages libevent)
74 #:use-module (gnu packages fribidi)
75 #:use-module (gnu packages maths)
76 #:use-module (gnu packages web)
77 #:use-module (gnu packages fontutils)
78 #:use-module (gnu packages freedesktop)
79 #:use-module (gnu packages glib)
80 #:use-module (gnu packages gperf)
81 #:use-module (gnu packages imagemagick)
82 #:use-module (gnu packages lua)
83 #:use-module (gnu packages linux)
84 #:use-module (gnu packages suckless)
85 #:use-module (gnu packages mpd)
86 #:use-module (gnu packages gl)
87 #:use-module (gnu packages video)
88 #:use-module (gnu packages version-control)
89 #:use-module (gnu packages man)
90 #:use-module (gnu packages textutils)
91 #:use-module (gnu packages pretty-print)
92 #:use-module (gnu packages logging)
93 #:use-module (gnu packages serialization)
94 #:use-module (guix download)
95 #:use-module (guix git-download))
105 (url "https://github.com/baskerville/bspwm.git")
107 (file-name (git-file-name name version))
109 (base32 "1i7crmljk1vra1r6alxvj6lqqailjjcv0llyg7a0gm23rbv4a42g"))))
110 (build-system gnu-build-system)
113 ("libxinerama" ,libxinerama)
115 ("xcb-util" ,xcb-util)
116 ("xcb-util-keysyms" ,xcb-util-keysyms)
117 ("xcb-util-wm" ,xcb-util-wm)))
120 (modify-phases %standard-phases
121 (delete 'configure)) ; no configure script
122 #:tests? #f ; no check target
125 (string-append "PREFIX=" %output))))
126 (home-page "https://github.com/baskerville/bspwm")
127 (synopsis "Tiling window manager based on binary space partitioning")
128 (description "bspwm is a tiling window manager that represents windows as
129 the leaves of a full binary tree.")
130 (license license:bsd-2)))
132 (define-public herbstluftwm
134 (name "herbstluftwm")
139 (uri (string-append "https://herbstluftwm.org/tarballs/herbstluftwm-"
143 "1kc18aj9j3nfz6fj4qxg9s3gg4jvn6kzi3ii24hfm0vqdpy17xnz"))
144 (file-name (string-append "herbstluftwm-" version ".tar.gz"))))
145 (build-system gnu-build-system)
152 ("xsetroot" ,xsetroot)
155 ("libxinerama" ,libxinerama)))
157 `(("pkg-config" ,pkg-config)))
160 (modify-phases %standard-phases
163 (add-after 'install 'install-xsession
164 (lambda* (#:key outputs #:allow-other-keys)
165 (let* ((out (assoc-ref outputs "out"))
166 (xsessions (string-append out "/share/xsessions")))
168 (call-with-output-file
169 (string-append xsessions "/herbstluftwm.desktop")
174 Comment=Manual tiling window manager~@
175 Exec=~a/bin/herbstluftwm~@
176 Type=XSession~%" out)))
180 (let ((out (assoc-ref %outputs "out")))
182 (string-append "PREFIX=''")
183 (string-append "DESTDIR=" out)
184 (string-append "BASHCOMPLETIONDIR=" out
185 "/etc/bash_completion.d")))))
186 (synopsis "Tiling window manager for X11")
187 (description "herbstluftwm is a manual tiling window manager for X11 using
188 Xlib and GLib. Its main features are:
192 The layout is based on splitting frames into subframes which can be split
193 again or can be filled with windows (similar to i3 or musca).
196 Tags (or workspaces or virtual desktops or …) can be added/removed at runtime.
197 Each tag contains an own layout.
200 Exactly one tag is viewed on each monitor. The tags are monitor independent
204 It is configured at runtime via IPC calls from @command{herbstclient}. So the
205 configuration file is just a script which is run on startup (similar to wmii
209 (home-page "https://herbstluftwm.org")
210 (license license:bsd-2)))
212 (define-public i3status
218 (uri (string-append "https://i3wm.org/i3status/i3status-"
222 "0rhlzb96mw64z2jnhwz9nibc7pxg549626lz5642xxk5hpzwk2ff"))))
223 (build-system gnu-build-system)
225 `(;; XXX: Do an "out of source" build to work around
226 ;; <https://github.com/i3/i3status/issues/339>.
228 #:tests? #f)) ; no test suite
230 `(("openlibm" ,openlibm)
231 ("libconfuse" ,libconfuse)
233 ("alsa-lib" ,alsa-lib)
234 ("pulseaudio" ,pulseaudio)
237 ("asciidoc" ,asciidoc)))
239 `(("pkg-config" ,pkg-config)
240 ("docbook-xsl" ,docbook-xsl)
241 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
243 (home-page "https://i3wm.org/i3status/")
244 (synopsis "Status bar for i3bar, dzen2, xmobar or similar programs")
245 (description "i3status is a small program for generating a status bar for
246 i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient
247 by issuing a very small number of system calls, as one generally wants to
248 update such a status line every second. This ensures that even under high
249 load, your status bar is updated correctly. Also, it saves a bit of energy by
250 not hogging your CPU as much as spawning the corresponding amount of shell
252 (license license:bsd-3)))
260 (uri (string-append "https://i3wm.org/downloads/i3-"
264 "0iazv2i2rgmakzh95pgj6iapyzn7bdpcbcd35a79mhlml4ry33qy"))))
265 (build-system gnu-build-system)
268 ;; The build system tries to build in a separate directory, but that
269 ;; seems to be unnecessary.
270 (list "--disable-builddir")
272 ;; The test suite requires the unpackaged Xephyr X server.
275 (modify-phases %standard-phases
276 (add-after 'install 'patch-session-file
277 (lambda* (#:key outputs #:allow-other-keys)
278 (let* ((out (assoc-ref outputs "out"))
279 (i3 (string-append out "/bin/i3"))
280 (i3-with-shmlog (string-append out "/bin/i3-with-shmlog")))
281 (substitute* (string-append out "/share/xsessions/i3.desktop")
282 (("Exec=i3") (string-append "Exec=" i3)))
283 (substitute* (string-append out "/share/xsessions/i3-with-shmlog.desktop")
284 (("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog)))
288 ("xcb-util" ,xcb-util)
289 ("xcb-util-cursor" ,xcb-util-cursor)
290 ("xcb-util-keysyms" ,xcb-util-keysyms)
291 ("xcb-util-wm" ,xcb-util-wm)
292 ("xcb-util-xrm" ,xcb-util-xrm)
293 ("libxkbcommon" ,libxkbcommon)
296 ("asciidoc" ,asciidoc)
298 ("perl-pod-simple" ,perl-pod-simple)
301 ("startup-notification" ,startup-notification)
307 ("pkg-config" ,pkg-config)
308 ;; For building the documentation.
310 ("docbook-xsl" ,docbook-xsl)))
311 (home-page "https://i3wm.org/")
312 (synopsis "Tiling window manager")
313 (description "i3 is a tiling X11 window manager that dynamically manages
314 tiled, stacked, and tabbed window layouts.
316 i3 primarily targets advanced users. Windows are managed manually and organised
317 inside containers, which can be split vertically or horizontally, and optionally
320 i3 uses a plain-text configuration file, and can be extended and controlled from
321 many programming languages.")
322 (license license:bsd-3)))
324 (define-public i3lock
330 (uri (string-append "https://i3wm.org/i3lock/i3lock-"
334 "015dn534m7cxjvqdncpvaq9p8b2r4w5hp1yanbdy2abmhbcc7a7j"))))
335 (build-system gnu-build-system)
337 `(("pkg-config" ,pkg-config)))
341 ("linux-pam" ,linux-pam)
343 ("libxkbcommon" ,libxkbcommon)
344 ("xcb-util" ,xcb-util)
345 ("xcb-util-image" ,xcb-util-image)
346 ("xcb-util-xrm" ,xcb-util-xrm)))
347 (home-page "https://i3wm.org/i3lock/")
348 (synopsis "Lightweight screen locker")
350 "i3lock is a simple X11 screen locker developed alongside the i3 project.
351 Despite the name it should work with any X11 window manager.")
352 (license license:bsd-3)))
354 (define-public i3blocks
361 (url "https://github.com/vivien/i3blocks.git")
365 "0v8mwnm8qzpv6xnqvrk43s4b9iyld4naqzbaxk4ldq1qkhai0wsv"))
366 (file-name (git-file-name name version))))
367 (build-system gnu-build-system)
369 `(("autoconf" ,autoconf)
370 ("automake" ,automake)
371 ("pkg-config" ,pkg-config)))
372 (home-page "https://github.com/vivien/i3blocks")
373 (synopsis "Minimalist scheduler for status bar scripts")
374 (description "i3blocks executes your command lines and generates a
375 status line from their output. The generated line is meant to be displayed by
376 the i3 window manager through its i3bar component, as an alternative to
378 (license license:gpl3+)))
380 (define-public perl-anyevent-i3
382 (name "perl-anyevent-i3")
386 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTPLBG/"
387 "AnyEvent-I3-" version ".tar.gz"))
390 "0qvd9bq16jyy7v3ma82qcnvz9j503bw0mh7h55gkjf7ir62ck0jk"))))
391 (build-system perl-build-system)
393 `(("perl-anyevent" ,perl-anyevent)
394 ("perl-json-xs" ,perl-json-xs)))
395 (home-page "https://metacpan.org/release/AnyEvent-I3")
397 "Communicate with the i3 window manager through perl")
399 "This module connects to the i3 window manager using the UNIX socket
400 based IPC interface it provides (if enabled in the configuration file).
401 You can then subscribe to events or send messages and receive their replies.")
402 ;; Can be used with either license.
403 (license (list license:gpl3+ license:perl-license))))
405 (define-public python-i3-py
407 (name "python-i3-py")
411 ;; The latest release is not tagged in Git nor has an entry in PyPi,
412 ;; but there is still a clear commit for it, and it's been the last one
416 (url "https://github.com/ziberna/i3-py.git")
417 (commit "27f88a616e9ecc340e7d041d3d00782f8a1964c1")))
420 "1nm719dc2xqlll7vj4c4m7mpjb27lpn3bg3c66gajvnrz2x1nmxs"))
421 (file-name (string-append name "-" version "-checkout"))))
422 (build-system python-build-system)
424 `(#:tests? #f ; no tests yet
425 #:phases (modify-phases %standard-phases
426 (add-after 'install 'install-doc
427 ;; Copy readme file to documentation directory.
428 (lambda* (#:key outputs #:allow-other-keys)
429 (let ((doc (string-append (assoc-ref outputs "out")
430 "/share/doc/" ,name)))
431 (install-file "README.md" doc)
432 ;; Avoid unspecified return value.
436 (home-page "https://github.com/ziberna/i3-py")
437 (synopsis "Python interface to the i3 window manager")
438 (description "This package allows you to interact from a Python program
439 with the i3 window manager via its IPC socket. It can send commands and other
440 kinds of messages to i3, select the affected containers, filter results and
441 subscribe to events.")
442 (license license:gpl3+)))
444 (define-public python2-i3-py
445 (package-with-python2 python-i3-py))
447 (define-public quickswitch-i3
448 (let ((commit "ed692b1e8f43b95bd907ced26238ce8ccb2ed28f")
449 (revision "1")) ; Guix package revision
451 (name "quickswitch-i3")
452 (version (string-append "2.2-" revision "."
453 (string-take commit 7)))
456 ;; The latest commit is a few years old and just a couple commits
457 ;; after the last tagged release, so we use that latest commit
458 ;; instead of the release.
461 (url "https://github.com/proxypoke/quickswitch-for-i3.git")
465 "0447077sama80jcdg5p64zjsvafmz5rbdrirhm1adcdjhkh6iqc5"))
466 (patches (search-patches "quickswitch-fix-dmenu-check.patch"))
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.rst" doc)
478 ;; Avoid unspecified return value.
481 `(("python-i3-py" ,python-i3-py)
483 (home-page "https://github.com/proxypoke/quickswitch-for-i3")
484 (synopsis "Quickly change to and locate windows in the i3 window manager")
486 "This utility for the i3 window manager allows you to quickly switch to
487 and locate windows on all your workspaces, using an interactive dmenu
489 (license license:wtfpl2))))
491 (define-public i3lock-color
493 (name "i3lock-color")
499 (url "https://github.com/PandorasFox/i3lock-color.git")
501 (file-name (git-file-name name version))
503 (base32 "08fhnchf187b73h52xgzb86g6byzxz085zs9galsvl687g5zxk34"))))
504 (build-system gnu-build-system)
506 `(#:tests? #f)) ; no tests included
510 ("libjpeg" ,libjpeg-turbo)
512 ("libxkbcommon" ,libxkbcommon)
513 ("linux-pam" ,linux-pam)
514 ("xcb-util" ,xcb-util)
515 ("xcb-util-image" ,xcb-util-image)
516 ("xcb-util-xrm" ,xcb-util-xrm)))
518 `(("autoconf" ,autoconf)
519 ("automake" ,automake)
520 ("pkg-config" ,pkg-config)))
521 (home-page "https://github.com/PandorasFox/i3lock-color")
522 (synopsis "Screen locker with color configuration support")
524 "i3lock-color is a simpler X11 screen locker derived from i3lock.
528 @item forking process, the locked screen is preserved when you suspend to RAM;
529 @item specify background color or image to be displayed in the lock screen;
530 @item many additional color options.
532 (license license:bsd-3)))
534 (define-public i3lock-fancy
536 (name "i3lock-fancy")
542 (url "https://github.com/meskarune/i3lock-fancy.git")
544 (file-name (git-file-name name version))
546 (base32 "11g2kkim33ra38d1m897sq1ifajw17iyw9mr7sg1q8i2ibl4lfsi"))))
547 (build-system gnu-build-system)
549 `(#:tests? #f ; no tests included
551 (modify-phases %standard-phases
553 (lambda* (#:key inputs outputs #:allow-other-keys)
554 (let* ((out (assoc-ref outputs "out"))
555 (icons (string-append out "/share/i3lock-fancy/icons/"))
556 (wmctrl (string-append (assoc-ref inputs "wmctrl")
558 (mconvert (string-append (assoc-ref inputs "imagemagick")
560 (mimport (string-append (assoc-ref inputs "imagemagick")
562 (awk (string-append (assoc-ref inputs "gawk")
566 (("$(which wmctrl)") wmctrl)
567 (("convert") mconvert)
568 (("shot=\\(import") (string-append "shot=\(" mimport))
569 (("awk -F") (string-append awk " -F"))
571 (("\\$scriptpath/icons/") icons))
575 (lambda* (#:key inputs outputs #:allow-other-keys)
576 (let* ((out (assoc-ref outputs "out"))
577 (bin (string-append out "/bin"))
578 (icons (string-append out "/share/i3lock-fancy/icons/")))
580 (install-file "lock" bin)
581 (rename-file (string-append bin "/lock")
582 (string-append bin "/i3lock-fancy"))
583 (copy-recursively "icons" icons)
586 `(("imagemagick" ,imagemagick)
589 (home-page "https://github.com/meskarune/i3lock-fancy")
590 (synopsis "Screen locker with screenshot function")
592 "@code{i3lock-fancy} is a Bash script that takes a screenshot of
593 the desktop, blurs the background and adds a lock icon and text.
594 It requires @code{i3lock-color} or @code{i3lock} and can optionally
595 be passed any screenshot util like @code{scrot}.
596 This screen locker can be used with any window manager or
597 desktop environment.")
598 (license license:expat)))
600 (define-public xmonad
604 (synopsis "Tiling window manager")
607 (uri (string-append "mirror://hackage/package/xmonad/"
608 "xmonad-" version ".tar.gz"))
611 "0a7rh21k9y6g8fwkggxdxjns2grvvsd5hi2ls4klmqz5xvk4hyaa"))))
612 (build-system haskell-build-system)
614 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
615 ("ghc-quickcheck" ,ghc-quickcheck)
616 ("ghc-semigroups" ,ghc-semigroups)
617 ("ghc-setlocale" ,ghc-setlocale)
618 ("ghc-utf8-string" ,ghc-utf8-string)
619 ("ghc-x11" ,ghc-x11)))
622 (modify-phases %standard-phases
624 'install 'install-xsession
626 (let* ((xsessions (string-append %output "/share/xsessions")))
628 (call-with-output-file
629 (string-append xsessions "/xmonad.desktop")
636 Type=Application~%" ,name ,synopsis %output)))))))))
637 (home-page "https://xmonad.org")
639 "Xmonad is a tiling window manager for X. Windows are arranged
640 automatically to tile the screen without gaps or overlap, maximising screen
641 use. All features of the window manager are accessible from the keyboard: a
642 mouse is strictly optional. Xmonad is written and extensible in Haskell.
643 Custom layout algorithms, and other extensions, may be written by the user in
644 config files. Layouts are applied dynamically, and different layouts may be
645 used on each workspace. Xinerama is fully supported, allowing windows to be
646 tiled on several screens.")
647 (license license:bsd-3)))
649 (define-public xmobar
655 (uri (string-append "mirror://hackage/package/xmobar/"
656 "xmobar-" version ".tar.gz"))
659 "1xh87asg8y35srvp7d3gyyy4bkxsw122liihxgzgm8pqv2z3h4zd"))))
660 (build-system haskell-build-system)
662 `(("ghc-hspec" ,ghc-hspec)
663 ("hspec-discover" ,hspec-discover)))
665 `(("ghc-hinotify" ,ghc-hinotify)
666 ("ghc-http" ,ghc-http)
667 ("ghc-iwlib" ,ghc-iwlib)
668 ("ghc-parsec-numbers" ,ghc-parsec-numbers)
669 ("ghc-regex-compat" ,ghc-regex-compat)
670 ("ghc-x11-xft" ,ghc-x11-xft)
674 (list (string-append "--flags="
675 (string-join (list "with_inotify"
682 (home-page "http://xmobar.org")
683 (synopsis "Minimalistic text based status bar")
685 "@code{xmobar} is a lightweight, text-based, status bar written in
686 Haskell. It was originally designed to be used together with Xmonad, but it
687 is also usable with any other window manager. While xmobar is written in
688 Haskell, no knowledge of the language is required to install and use it.")
689 (license license:bsd-3)))
691 (define-public ghc-xmonad-contrib
693 (name "ghc-xmonad-contrib")
698 (uri (string-append "mirror://hackage/package/xmonad-contrib/"
699 "xmonad-contrib-" version ".tar.gz"))
701 (base32 "0r9yzgy67j4mi3dyxx714f0ssk5qzca5kh4zw0fhiz1pf008cxms"))))
702 (build-system haskell-build-system)
704 `(("ghc-old-time" ,ghc-old-time)
705 ("ghc-random" ,ghc-random)
706 ("ghc-utf8-string" ,ghc-utf8-string)
707 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
708 ("ghc-semigroups" ,ghc-semigroups)
710 ("ghc-x11-xft" ,ghc-x11-xft)
712 (home-page "https://xmonad.org")
713 (synopsis "Third party extensions for xmonad")
715 "Third party tiling algorithms, configurations, and scripts to Xmonad, a
716 tiling window manager for X.")
717 (license license:bsd-3)))
719 (define-public evilwm
726 (uri (string-append "http://www.6809.org.uk/evilwm/evilwm-"
730 "0ak0yajzk3v4dg5wmaghv6acf7v02a4iw8qxmq5yw5ard8lrqn3r"))
731 (patches (search-patches "evilwm-lost-focus-bug.patch"))))
732 (build-system gnu-build-system)
736 ("libxrandr" ,libxrandr)))
738 `(#:modules ((srfi srfi-26)
740 (guix build gnu-build-system))
741 #:make-flags (let ((inputs (map (cut assoc-ref %build-inputs <>)
742 '("libx11" "libxext" "libxrandr")))
743 (join (lambda (proc strs)
744 (string-join (map proc strs) " ")))
745 (dash-I (cut string-append "-I" <> "/include"))
746 (dash-L (cut string-append "-L" <> "/lib")))
747 `("desktopfilesdir=$(prefix)/share/xsessions"
748 ,(string-append "prefix=" (assoc-ref %outputs "out"))
749 ,(string-append "CPPFLAGS=" (join dash-I inputs))
750 ,(string-append "LDFLAGS=" (join dash-L inputs))))
751 #:tests? #f ;no tests
752 #:phases (modify-phases %standard-phases
753 (delete 'configure)))) ;no configure script
754 (home-page "http://www.6809.org.uk/evilwm/")
755 (synopsis "Minimalist window manager for the X Window System")
757 "evilwm is a minimalist window manager based on aewm, extended to feature
758 many keyboard controls with repositioning and maximize toggles, solid window
759 drags, snap-to-border support, and virtual desktops.")
760 (license (license:x11-style "file:///README"))))
762 (define-public fluxbox
766 (synopsis "Small and fast window manager")
769 (uri (string-append "mirror://sourceforge/fluxbox/fluxbox/"
770 version "/fluxbox-" version ".tar.xz"))
773 "1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w"))))
774 (build-system gnu-build-system)
776 `(#:make-flags '("CPPFLAGS=-U__TIME__") ;ugly, but for reproducibility
778 (modify-phases %standard-phases
779 (add-after 'install 'install-vim-files
780 (lambda* (#:key outputs #:allow-other-keys)
781 (let* ((out (assoc-ref outputs "out"))
782 (syntax (string-append out "/share/vim/vimfiles/syntax")))
783 (copy-recursively "3rd/vim/vim/syntax" syntax)
785 (add-after 'install 'install-xsession
786 (lambda* (#:key outputs #:allow-other-keys)
787 (let* ((out (assoc-ref outputs "out"))
788 (xsessions (string-append out "/share/xsessions")))
790 (call-with-output-file
791 (string-append xsessions "/fluxbox.desktop")
797 Exec=~a/bin/startfluxbox~@
798 Type=Application~%" ,name ,synopsis out)))
801 `(("pkg-config" ,pkg-config)))
803 `(("freetype" ,freetype)
809 ("libxinerama" ,libxinerama)
811 ("libxrandr" ,libxrandr)
812 ("libxrender" ,libxrender)))
813 (description "Fluxbox is a window manager. It is light on resources
814 and easy to handle yet full of features to make an easy and fast desktop
816 (home-page "http://fluxbox.org/")
817 (license license:expat)))
819 (define-public awesome
824 (origin (method url-fetch)
826 "https://github.com/awesomeWM/awesome-releases/raw/"
827 "master/awesome-" version ".tar.xz"))
830 "0kwpbls9h1alxcmvxh5g9qb995fds5b2ngcr44w0ibazkyls2pdc"))
831 (modules '((guix build utils)
834 ;; Remove non-reproducible timestamp and use the date
835 ;; of the source file instead.
836 (substitute* "common/version.c"
837 (("__DATE__ \" \" __TIME__")
840 (make-time time-utc 0
841 (stat:mtime (stat "awesome.c"))))
844 (patches (search-patches "awesome-reproducible-png.patch"))))
845 (build-system cmake-build-system)
846 (native-inputs `(("asciidoc" ,asciidoc)
847 ("docbook-xsl" ,docbook-xsl)
850 ("imagemagick" ,imagemagick)
851 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
852 ("pkg-config" ,pkg-config)
854 (inputs `(("cairo" ,cairo)
856 ("gdk-pixbuf" ,gdk-pixbuf)
858 ("gobject-introspection" ,gobject-introspection)
862 ("libxcursor" ,libxcursor)
863 ("libxdg-basedir" ,libxdg-basedir)
864 ("libxkbcommon" ,libxkbcommon)
868 ("startup-notification" ,startup-notification)
869 ("xcb-util" ,xcb-util)
870 ("xcb-util-cursor" ,xcb-util-cursor)
871 ("xcb-util-image" ,xcb-util-image)
872 ("xcb-util-keysyms" ,xcb-util-keysyms)
873 ("xcb-util-renderutil" ,xcb-util-renderutil)
874 ("xcb-util-xrm" ,xcb-util-xrm)
875 ("xcb-util-wm" ,xcb-util-wm)))
877 `(;; Let compression happen in our 'compress-documentation' phase so that
878 ;; '--no-name' is used, which removes timestamps from gzip output.
879 #:configure-flags '("-DCOMPRESS_MANPAGES=off")
881 ;; Building awesome in its source dir is no longer supported.
885 (modify-phases %standard-phases
886 (add-before 'build 'xmlto-skip-validation
888 ;; We can't download the necessary schema, so so skip
889 ;; validation and assume they're valid.
890 (substitute* "../build/CMakeFiles/man.dir/build.make"
892 (string-append "/xmlto --skip-validation")))
894 (add-before 'configure 'set-lua-paths
895 (lambda* (#:key inputs #:allow-other-keys)
896 ;; The build process needs to load cairo dynamically.
897 (let* ((cairo (string-append
898 (assoc-ref inputs "cairo") "/lib" ))
899 (lua-lgi (assoc-ref inputs "lua-lgi") ))
900 (setenv "LD_LIBRARY_PATH" cairo )
901 (setenv "LUA_PATH" (string-append lua-lgi
902 "/share/lua/5.2/?.lua"))
903 (setenv "LUA_CPATH" (string-append lua-lgi
904 "/lib/lua/5.2/?.so"))
908 ;; There aren't any tests, so just make sure the binary
909 ;; gets built and can be run successfully.
910 (invoke "../build/awesome" "-v")))
911 (add-after 'install 'patch-session-file
912 (lambda* (#:key outputs #:allow-other-keys)
913 (let* ((out (assoc-ref outputs "out"))
914 (awesome (string-append out "/bin/awesome")))
915 (substitute* (string-append out "/share/xsessions/awesome.desktop")
916 (("Exec=awesome") (string-append "Exec=" awesome)))
918 (add-after 'install 'wrap
919 (lambda* (#:key inputs outputs #:allow-other-keys)
920 (let* ((awesome (assoc-ref outputs "out"))
921 (cairo (string-append
922 (assoc-ref inputs "cairo") "/lib" ))
923 (lua-lgi (assoc-ref inputs "lua-lgi") ))
924 (wrap-program (string-append awesome "/bin/awesome")
925 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))
926 `("LD_LIBRARY_PATH" suffix (, cairo))
927 `("LUA_PATH" suffix (,(string-append lua-lgi
928 "/share/lua/5.2/?.lua")))
929 `("LUA_CPATH" suffix (,(string-append
930 lua-lgi "/lib/lua/5.2/?.so"))))))))))
931 (synopsis "Highly configurable window manager")
933 "Awesome has been designed as a framework window manager. It is fast, small,
934 dynamic and extensible using the Lua programming language.")
935 (license license:gpl2+)
936 (home-page "https://awesomewm.org/")))
938 (define-public menumaker
945 (uri (string-append "mirror://sourceforge/menumaker/"
946 "menumaker-" version ".tar.gz"))
949 "1mm4cvg3kphkkd8nwrhcg6d9nm5ar7mgc0wf6fxk6zck1l7xn8ky"))))
950 (build-system gnu-build-system)
952 `(("python" ,python)))
953 (synopsis "Heuristics-driven menu generator")
955 "MenuMaker is a menu generation utility for a number of X window
956 managers and desktop environments. It is capable of finding lots of
957 installed programs and generating a root menu consistent across all
958 supported window managers, so one will get (almost) the same menu in
959 all of them. Currently supported window managers include:
971 (home-page "http://menumaker.sourceforge.net/")
972 (license license:bsd-2)))
974 (define-public keybinder
981 (uri (string-append "https://github.com/kupferlauncher/keybinder"
982 "/releases/download/v" version "/keybinder-"
984 (file-name (string-append name "-" version ".tar.gz"))
987 "0h52hj3ay8mfhwvmfxbxlfyq74hifdk8wxgxp7fr4iy6189hg7w7"))))
988 (build-system gnu-build-system)
990 `(("python-2" ,python-2)
993 `(("python2-pygtk" ,python2-pygtk)
995 ("pkg-config" ,pkg-config)))
996 (synopsis "Library for registering global keyboard shortcuts")
998 "Keybinder is a library for registering global keyboard shortcuts.
999 Keybinder works with GTK-based applications using the X Window System.")
1000 (home-page "https://github.com/kupferlauncher/keybinder")
1001 (license license:gpl2+)))
1003 (define-public keybinder-3.0
1005 (name "keybinder-3.0")
1010 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1011 "/releases/download/" name "-v" version "/" name "-"
1013 (file-name (string-append name "-" version ".tar.gz"))
1016 "0830ihwnalw59pp1xzrp37dn58n8vwb8zasnm4a1h81v3x7dxqz6"))))
1017 (build-system gnu-build-system)
1020 ("gobject-introspection" ,gobject-introspection)))
1022 `(("gtk-doc" ,gtk-doc)
1023 ("pkg-config" ,pkg-config)))
1024 (synopsis "Library for registering global keyboard shortcuts, Gtk3 version")
1026 "Keybinder is a library for registering global keyboard shortcuts.
1027 Keybinder works with GTK-based applications using the X Window System.")
1028 (home-page "https://github.com/kupferlauncher/keybinder")
1029 (license license:x11)))
1031 (define-public spectrwm
1038 (uri (let ((version-with-underscores
1039 (string-join (string-split version #\.) "_")))
1040 (string-append "https://github.com/conformal/spectrwm/archive/"
1041 "SPECTRWM_" version-with-underscores ".tar.gz")))
1042 (file-name (string-append name "-" version ".tar.gz"))
1045 "0z7gjmp1x6y8q3dnw6swvbv8x2wd4ykzjvi3ibk2sxhgc910907v"))))
1046 (build-system gnu-build-system)
1048 `(#:make-flags (let ((pkg-config (lambda (flag)
1050 "$(shell pkg-config " flag " "
1051 "xft fontconfig x11 libpng)"))))
1054 (string-append "PREFIX=" %output)
1055 (string-append "INCS=-I. " (pkg-config "--cflags"))
1056 (string-append "LIBS=" (pkg-config "--libs") " -lm")))
1057 #:tests? #f ;no test suite
1059 (modify-phases %standard-phases
1060 (add-before 'build 'change-dir
1062 (chdir "linux") #t))
1063 (add-after 'change-dir 'patch-makefile
1065 (substitute* "Makefile"
1067 (delete 'configure)))) ;no 'configure' exists
1069 `(("freetype" ,freetype)
1070 ("fontconfig" ,fontconfig)
1072 ("libxcursor" ,libxcursor)
1073 ("libxrandr" ,libxrandr)
1074 ("libxtst" ,libxtst)
1076 ("xcb-util" ,xcb-util)
1077 ("xcb-util-wm" ,xcb-util-wm)
1078 ("xcb-util-keysyms" ,xcb-util-keysyms)))
1081 ("pkg-config" ,pkg-config)))
1082 (synopsis "Minimalistic automatic tiling window manager")
1084 "Spectrwm is a small dynamic tiling and reparenting window manager for X11.
1085 It is inspired by Xmonad and dwm. Its major features include:
1088 @item Navigation anywhere on all screens with either the keyboard or mouse
1089 @item Customizable status bar
1090 @item Restartable without losing state
1091 @item Quick launch menu
1092 @item Many screen layouts possible with a few simple key strokes
1093 @item Move/resize floating windows
1094 @item Extended Window Manager Hints (@dfn{EWMH}) support
1095 @item Configurable tiling
1096 @item Adjustable tile gap allows for a true one pixel border
1097 @item Customizable colors and border width
1099 (home-page "https://github.com/conformal/spectrwm")
1100 (license license:isc)))
1109 (uri (string-append "http://chneukirchen.org/releases/cwm-"
1113 "17pdp9cfgh2n3n3905l4rl9qk7b722i8psnarhlc2h98qzx7zmac"))))
1114 (build-system gnu-build-system)
1116 `(#:make-flags (list "CC=gcc"
1117 (string-append "PREFIX=" %output))
1120 (modify-phases %standard-phases
1122 (add-after 'build 'install-xsession
1123 (lambda* (#:key outputs #:allow-other-keys)
1124 ;; Add a .desktop file to xsessions.
1125 (let* ((output (assoc-ref outputs "out"))
1126 (xsessions (string-append output "/share/xsessions")))
1128 (with-output-to-file
1129 (string-append xsessions "/cwm.desktop")
1134 Comment=OpenBSD Calm Window Manager fork~@
1136 TryExec=~@*~a/bin/cwm~@
1142 `(("libxft" ,libxft)
1143 ("libxrandr" ,libxrandr)
1144 ("libxinerama" ,libxinerama)))
1146 `(("pkg-config" ,pkg-config)
1148 (home-page "https://github.com/chneukirchen/cwm")
1149 (synopsis "OpenBSD fork of the calmwm window manager")
1150 (description "Cwm is a stacking window manager for X11. It is an OpenBSD
1151 project derived from the original Calm Window Manager.")
1152 (license license:isc)))
1154 (define-public nitrogen
1160 (uri (string-append "http://github.com/l3ib/nitrogen/"
1161 "releases/download/" version "/"
1162 name "-" version ".tar.gz"))
1165 "0zc3fl1mbhq0iyndy4ysmy8vv5c7xwf54rbgamzfhfvsgdq160pl"))))
1166 (build-system gnu-build-system)
1171 ("glibmm" ,glibmm)))
1173 `(("pkg-config" ,pkg-config)))
1174 (home-page "http://projects.l3ib.org/nitrogen/")
1175 (synopsis "Background browser and setter for X windows")
1177 "This package is a background browser and setter for X windows. It's
1181 @item Multihead and Xinerama aware
1182 @item Recall mode to used via startup script
1183 @item Uses freedesktop.org standard for thumbnails
1184 @item Can set GNOME background
1185 @item Command lie set modes for script use
1186 @item Inotify monitoring of browse directory
1187 @item Lazy loading of thumbnails - conserves memory
1188 @item \"Automatic\" set mode - determines best mode to set an image based on
1190 @item Display preview images in a tiled icon layout
1192 (license license:gpl2+)))
1194 (define-public polybar
1201 (uri (string-append "https://github.com/jaagr/polybar/releases/"
1202 "download/" version "/polybar-" version ".tar"))
1204 (base32 "0758na059vpgnsrcdrxmh9wsahs80wnmizb9g7bmixlrkxr2m65h"))
1205 (file-name (string-append name "-" version ".tar"))))
1206 (build-system cmake-build-system)
1208 ;; Test is disabled because it requires downloading googletest from the
1212 `(("alsa-lib" ,alsa-lib)
1215 ("libmpdclient" ,libmpdclient)
1218 ("pulseaudio" ,pulseaudio)
1219 ("xcb-proto" ,xcb-proto)
1220 ("xcb-util" ,xcb-util)
1221 ("xcb-util-cursor" ,xcb-util-cursor)
1222 ("xcb-util-image" ,xcb-util-image)
1223 ("xcb-util-wm" ,xcb-util-wm)
1224 ("xcb-util-xrm" ,xcb-util-xrm)))
1226 `(("pkg-config" ,pkg-config)
1227 ("python-2" ,python-2) ; lib/xpp depends on python 2
1228 ("python" ,python))) ; xcb-proto depends on python 3
1229 (home-page "https://polybar.github.io/")
1230 (synopsis "Fast and easy-to-use status bar")
1231 (description "Polybar aims to help users build beautiful and highly
1232 customizable status bars for their desktop environment. It has built-in
1233 functionality to display information about the most commonly used services.")
1234 (license license:expat)))
1236 (define-public wlroots
1244 (url "https://github.com/swaywm/wlroots.git")
1246 (file-name (git-file-name name version))
1248 (base32 "0jzxa6psbc7ddxli7rbfqxmv1svxnis51l1vch4hb9fdixqm284a"))))
1249 (build-system meson-build-system)
1251 `(#:configure-flags '("-Dlogind-provider=elogind")
1253 (modify-phases %standard-phases
1254 (add-before 'configure 'hardcode-paths
1255 (lambda* (#:key inputs #:allow-other-keys)
1256 (substitute* "xwayland/xwayland.c"
1257 (("Xwayland") (string-append (assoc-ref inputs
1258 "xorg-server-xwayland")
1261 (inputs `(("elogind" ,elogind)
1263 ("libinput" ,libinput)
1264 ("libxkbcommon" ,libxkbcommon)
1267 ("wayland" ,wayland)
1268 ("xorg-server-xwayland" ,xorg-server-xwayland)))
1269 (native-inputs `(("ffmpeg" ,ffmpeg)
1272 ("pkg-config" ,pkg-config)
1273 ("wayland-protocols" ,wayland-protocols)))
1274 (home-page "https://github.com/swaywm/wlroots")
1275 (synopsis "Pluggable, composable, unopinionated modules for building a
1276 Wayland compositor")
1277 (description "wlroots is a set of pluggable, composable, unopinionated
1278 modules for building a Wayland compositor.")
1279 (license license:expat))) ; MIT license
1289 (url "https://github.com/swaywm/sway.git")
1291 (file-name (git-file-name name version))
1293 (base32 "0vch2zm5afc76ia78p3vg71zr2fyda67l9hd2h0x1jq3mnvfbxnd"))))
1294 (build-system meson-build-system)
1297 (modify-phases %standard-phases
1298 (add-before 'configure 'hardcode-paths
1299 (lambda* (#:key inputs #:allow-other-keys)
1300 ;; Hardcode path to swaybg.
1301 (substitute* "sway/config.c"
1302 (("strdup..swaybg..")
1303 (string-append "strdup(\"" (assoc-ref inputs "swaybg")
1305 ;; Hardcode path to scdoc.
1306 (substitute* "meson.build"
1307 (("scdoc.get_pkgconfig_variable..scdoc..")
1308 (string-append "'" (assoc-ref inputs "scdoc")
1311 (inputs `(("cairo" ,cairo)
1312 ("elogind" ,elogind)
1313 ("gdk-pixbuf" ,gdk-pixbuf)
1315 ("libevdev" ,libevdev)
1316 ("libinput" ,libinput)
1317 ("libxkbcommon" ,libxkbcommon)
1320 ("wayland" ,wayland)
1321 ("wlroots" ,wlroots)))
1322 (native-inputs `(("git" ,git)
1324 ("linux-pam" ,linux-pam)
1326 ("pkg-config" ,pkg-config)
1328 ("wayland-protocols" ,wayland-protocols)))
1329 (home-page "https://github.com/swaywm/sway")
1330 (synopsis "Wayland compositor compatible with i3")
1331 (description "Sway is a i3-compatible Wayland compositor.")
1332 (license license:expat))) ; MIT license
1334 (define-public swayidle
1342 (url "https://github.com/swaywm/swayidle.git")
1344 (file-name (git-file-name name version))
1346 (base32 "05qi96j58xqxjiighay1d39rfanxcpn6vlynj23mb5dymxvlaq9n"))))
1347 (build-system meson-build-system)
1349 `(#:configure-flags '("-Dlogind-provider=elogind")))
1350 (inputs `(("elogind" ,elogind)
1351 ("wayland" ,wayland)))
1352 (native-inputs `(("pkg-config" ,pkg-config)
1354 ("wayland-protocols" ,wayland-protocols)))
1355 (home-page "https://github.com/swaywm/sway")
1356 (synopsis "Idle management daemon for Wayland compositors")
1357 (description "Swayidle is a idle management daemon for Wayland compositors.")
1358 (license license:expat))) ; MIT license
1360 (define-public swaylock
1368 (url "https://github.com/swaywm/swaylock.git")
1370 (file-name (git-file-name name version))
1372 (base32 "1ii9ql1mxkk2z69dv6bg1x22nl3a46iww764wqjiv78x08xpk982"))))
1373 (build-system meson-build-system)
1374 (inputs `(("cairo" ,cairo)
1375 ("gdk-pixbuf" ,gdk-pixbuf)
1376 ("libxkbcommon" ,libxkbcommon)
1377 ;("linux-pam" ,linux-pam) ; FIXME: Doesn't work.
1378 ("wayland" ,wayland)))
1379 (native-inputs `(("git" ,git)
1381 ("pkg-config" ,pkg-config)
1383 ("wayland-protocols" ,wayland-protocols)))
1384 (home-page "https://github.com/swaywm/sway")
1385 (synopsis "Screen locking utility for Wayland compositors")
1386 (description "Swaylock is a screen locking utility for Wayland compositors.")
1387 (license license:expat))) ; MIT license
1389 (define-public swaybg
1397 (url "https://github.com/swaywm/swaybg.git")
1399 (file-name (git-file-name name version))
1401 (base32 "1lmqz5bmig90gq2m7lwf02d2g7z4hzf8fhqz78c8vk92c6p4xwbc"))))
1402 (build-system meson-build-system)
1403 (inputs `(("cairo" ,cairo)
1404 ("gdk-pixbuf" ,gdk-pixbuf)
1405 ("wayland" ,wayland)))
1406 (native-inputs `(("git" ,git)
1407 ("pkg-config" ,pkg-config)
1409 ("wayland-protocols" ,wayland-protocols)))
1410 (home-page "https://github.com/swaywm/sway")
1411 (synopsis "Screen wallpaper utility for Wayland compositors")
1412 (description "Swaybg is a wallpaper utility for Wayland compositors.")
1413 (license license:expat))) ; MIT license
1415 (define-public waybar
1423 (url "https://github.com/Alexays/Waybar.git")
1425 (file-name (git-file-name name version))
1427 (base32 "0s8ck7qxka0l91ayma6amp9sc8cidi43byqgzcavi3a6id983r1z"))))
1428 (build-system meson-build-system)
1431 (list (string-append "-Dout=" (assoc-ref %outputs "out")))))
1432 (inputs `(("fmt" ,fmt)
1434 ("jsoncpp" ,jsoncpp)
1435 ("libdbusmenu" ,libdbusmenu)
1436 ("libinput" ,libinput)
1437 ("libmpdclent" ,libmpdclient)
1439 ("pulseaudio" ,pulseaudio)
1441 ("wayland" ,wayland)))
1442 (native-inputs `(("glib:bin" ,glib "bin")
1443 ("pkg-config" ,pkg-config)
1444 ("wayland-protocols" ,wayland-protocols)))
1445 (home-page "https://github.com/Alexays/Waybar")
1446 (synopsis "Wayland bar for Sway and Wlroots based compositors.")
1447 (description "Waybar is a highly customisable Wayland bar for Sway and
1448 Wlroots based compositors.")
1449 (license license:expat))) ; MIT license
1459 (url "https://github.com/emersion/mako.git")
1460 (commit (string-append "v" version))))
1461 (file-name (git-file-name name version))
1463 (base32 "11ymiq6cr2ma0iva1mqybn3j6k73bsc6lv6pcbdq7hkhd4f9b7j9"))))
1464 (build-system meson-build-system)
1465 (inputs `(("cairo" ,cairo)
1466 ("elogind" ,elogind)
1467 ("gdk-pixbuf" ,gdk-pixbuf)
1469 ("wayland" ,wayland)))
1470 (native-inputs `(("pkg-config" ,pkg-config)
1472 ("wayland-protocols" ,wayland-protocols)))
1473 (home-page "https://wayland.emersion.fr/mako")
1474 (synopsis "Lightweight Wayland notification daemon")
1475 (description "Mako is a lightweight notification daemon for Wayland
1476 compositors that support the layer-shell protocol.")
1477 (license license:expat))) ; MIT license