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>
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>
34 ;;; This file is part of GNU Guix.
36 ;;; GNU Guix is free software; you can redistribute it and/or modify it
37 ;;; under the terms of the GNU General Public License as published by
38 ;;; the Free Software Foundation; either version 3 of the License, or (at
39 ;;; your option) any later version.
41 ;;; GNU Guix is distributed in the hope that it will be useful, but
42 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
43 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44 ;;; GNU General Public License for more details.
46 ;;; You should have received a copy of the GNU General Public License
47 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
49 (define-module (gnu packages wm)
50 #:use-module ((guix licenses) #:prefix license:)
51 #:use-module (guix packages)
52 #:use-module (guix download)
53 #:use-module (guix git-download)
54 #:use-module (guix build-system asdf)
55 #:use-module (guix build-system cmake)
56 #:use-module (guix build-system gnu)
57 #:use-module (guix build-system haskell)
58 #:use-module (guix build-system meson)
59 #:use-module (guix build-system perl)
60 #:use-module (guix build-system python)
61 #:use-module (guix utils)
62 #:use-module (gnu packages)
63 #:use-module (gnu packages autotools)
64 #:use-module (gnu packages base)
65 #:use-module (gnu packages bison)
66 #:use-module (gnu packages docbook)
67 #:use-module (gnu packages documentation)
68 #:use-module (gnu packages fontutils)
69 #:use-module (gnu packages freedesktop)
70 #:use-module (gnu packages fribidi)
71 #:use-module (gnu packages gawk)
72 #:use-module (gnu packages gl)
73 #:use-module (gnu packages glib)
74 #:use-module (gnu packages gperf)
75 #:use-module (gnu packages gtk)
76 #:use-module (gnu packages haskell-check)
77 #:use-module (gnu packages haskell-web)
78 #:use-module (gnu packages haskell-xyz)
79 #:use-module (gnu packages image)
80 #:use-module (gnu packages imagemagick)
81 #:use-module (gnu packages libevent)
82 #:use-module (gnu packages linux)
83 #:use-module (gnu packages lisp-xyz)
84 #:use-module (gnu packages logging)
85 #:use-module (gnu packages lua)
86 #:use-module (gnu packages m4)
87 #:use-module (gnu packages man)
88 #:use-module (gnu packages maths)
89 #:use-module (gnu packages mpd)
90 #:use-module (gnu packages pcre)
91 #:use-module (gnu packages perl)
92 #:use-module (gnu packages pkg-config)
93 #:use-module (gnu packages pretty-print)
94 #:use-module (gnu packages pulseaudio)
95 #:use-module (gnu packages python)
96 #:use-module (gnu packages serialization)
97 #:use-module (gnu packages suckless)
98 #:use-module (gnu packages texinfo)
99 #:use-module (gnu packages textutils)
100 #:use-module (gnu packages version-control)
101 #:use-module (gnu packages video)
102 #:use-module (gnu packages web)
103 #:use-module (gnu packages xdisorg)
104 #:use-module (gnu packages xml)
105 #:use-module (gnu packages xorg))
115 (url "https://github.com/baskerville/bspwm.git")
117 (file-name (git-file-name name version))
119 (base32 "1i7crmljk1vra1r6alxvj6lqqailjjcv0llyg7a0gm23rbv4a42g"))))
120 (build-system gnu-build-system)
123 ("libxinerama" ,libxinerama)
125 ("xcb-util" ,xcb-util)
126 ("xcb-util-keysyms" ,xcb-util-keysyms)
127 ("xcb-util-wm" ,xcb-util-wm)))
130 (modify-phases %standard-phases
131 (delete 'configure)) ; no configure script
132 #:tests? #f ; no check target
135 (string-append "PREFIX=" %output))))
136 (home-page "https://github.com/baskerville/bspwm")
137 (synopsis "Tiling window manager based on binary space partitioning")
138 (description "bspwm is a tiling window manager that represents windows as
139 the leaves of a full binary tree.")
140 (license license:bsd-2)))
142 (define-public herbstluftwm
144 (name "herbstluftwm")
149 (uri (string-append "https://herbstluftwm.org/tarballs/herbstluftwm-"
153 "1kc18aj9j3nfz6fj4qxg9s3gg4jvn6kzi3ii24hfm0vqdpy17xnz"))
154 (file-name (string-append "herbstluftwm-" version ".tar.gz"))))
155 (build-system gnu-build-system)
162 ("xsetroot" ,xsetroot)
165 ("libxinerama" ,libxinerama)))
167 `(("pkg-config" ,pkg-config)))
170 (modify-phases %standard-phases
173 (add-after 'install 'install-xsession
174 (lambda* (#:key outputs #:allow-other-keys)
175 (let* ((out (assoc-ref outputs "out"))
176 (xsessions (string-append out "/share/xsessions")))
178 (call-with-output-file
179 (string-append xsessions "/herbstluftwm.desktop")
184 Comment=Manual tiling window manager~@
185 Exec=~a/bin/herbstluftwm~@
186 Type=XSession~%" out)))
190 (let ((out (assoc-ref %outputs "out")))
192 (string-append "PREFIX=''")
193 (string-append "DESTDIR=" out)
194 (string-append "BASHCOMPLETIONDIR=" out
195 "/etc/bash_completion.d")))))
196 (synopsis "Tiling window manager for X11")
197 (description "herbstluftwm is a manual tiling window manager for X11 using
198 Xlib and GLib. Its main features are:
202 The layout is based on splitting frames into subframes which can be split
203 again or can be filled with windows (similar to i3 or musca).
206 Tags (or workspaces or virtual desktops or …) can be added/removed at runtime.
207 Each tag contains an own layout.
210 Exactly one tag is viewed on each monitor. The tags are monitor independent
214 It is configured at runtime via IPC calls from @command{herbstclient}. So the
215 configuration file is just a script which is run on startup (similar to wmii
219 (home-page "https://herbstluftwm.org")
220 (license license:bsd-2)))
222 (define-public i3status
228 (uri (string-append "https://i3wm.org/i3status/i3status-"
232 "0rhlzb96mw64z2jnhwz9nibc7pxg549626lz5642xxk5hpzwk2ff"))))
233 (build-system gnu-build-system)
235 `(;; XXX: Do an "out of source" build to work around
236 ;; <https://github.com/i3/i3status/issues/339>.
238 #:tests? #f)) ; no test suite
240 `(("openlibm" ,openlibm)
241 ("libconfuse" ,libconfuse)
243 ("alsa-lib" ,alsa-lib)
244 ("pulseaudio" ,pulseaudio)
247 ("asciidoc" ,asciidoc)))
249 `(("pkg-config" ,pkg-config)
250 ("docbook-xsl" ,docbook-xsl)
251 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
253 (home-page "https://i3wm.org/i3status/")
254 (synopsis "Status bar for i3bar, dzen2, xmobar or similar programs")
255 (description "i3status is a small program for generating a status bar for
256 i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient
257 by issuing a very small number of system calls, as one generally wants to
258 update such a status line every second. This ensures that even under high
259 load, your status bar is updated correctly. Also, it saves a bit of energy by
260 not hogging your CPU as much as spawning the corresponding amount of shell
262 (license license:bsd-3)))
270 (uri (string-append "https://i3wm.org/downloads/i3-"
274 "0iazv2i2rgmakzh95pgj6iapyzn7bdpcbcd35a79mhlml4ry33qy"))))
275 (build-system gnu-build-system)
278 ;; The build system tries to build in a separate directory, but that
279 ;; seems to be unnecessary.
280 (list "--disable-builddir")
282 ;; The test suite requires the unpackaged Xephyr X server.
285 (modify-phases %standard-phases
286 (add-after 'install 'patch-session-file
287 (lambda* (#:key outputs #:allow-other-keys)
288 (let* ((out (assoc-ref outputs "out"))
289 (i3 (string-append out "/bin/i3"))
290 (i3-with-shmlog (string-append out "/bin/i3-with-shmlog")))
291 (substitute* (string-append out "/share/xsessions/i3.desktop")
292 (("Exec=i3") (string-append "Exec=" i3)))
293 (substitute* (string-append out "/share/xsessions/i3-with-shmlog.desktop")
294 (("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog)))
298 ("xcb-util" ,xcb-util)
299 ("xcb-util-cursor" ,xcb-util-cursor)
300 ("xcb-util-keysyms" ,xcb-util-keysyms)
301 ("xcb-util-wm" ,xcb-util-wm)
302 ("xcb-util-xrm" ,xcb-util-xrm)
303 ("libxkbcommon" ,libxkbcommon)
306 ("asciidoc" ,asciidoc)
308 ("perl-pod-simple" ,perl-pod-simple)
311 ("startup-notification" ,startup-notification)
317 ("pkg-config" ,pkg-config)
318 ;; For building the documentation.
320 ("docbook-xsl" ,docbook-xsl)))
321 (home-page "https://i3wm.org/")
322 (synopsis "Tiling window manager")
323 (description "i3 is a tiling X11 window manager that dynamically manages
324 tiled, stacked, and tabbed window layouts.
326 i3 primarily targets advanced users. Windows are managed manually and organised
327 inside containers, which can be split vertically or horizontally, and optionally
330 i3 uses a plain-text configuration file, and can be extended and controlled from
331 many programming languages.")
332 (license license:bsd-3)))
334 (define-public i3lock
340 (uri (string-append "https://i3wm.org/i3lock/i3lock-"
344 "015dn534m7cxjvqdncpvaq9p8b2r4w5hp1yanbdy2abmhbcc7a7j"))))
345 (build-system gnu-build-system)
347 `(("pkg-config" ,pkg-config)))
351 ("linux-pam" ,linux-pam)
353 ("libxkbcommon" ,libxkbcommon)
354 ("xcb-util" ,xcb-util)
355 ("xcb-util-image" ,xcb-util-image)
356 ("xcb-util-xrm" ,xcb-util-xrm)))
357 (home-page "https://i3wm.org/i3lock/")
358 (synopsis "Lightweight screen locker")
360 "i3lock is a simple X11 screen locker developed alongside the i3 project.
361 Despite the name it should work with any X11 window manager.")
362 (license license:bsd-3)))
364 (define-public i3blocks
371 (url "https://github.com/vivien/i3blocks.git")
375 "0v8mwnm8qzpv6xnqvrk43s4b9iyld4naqzbaxk4ldq1qkhai0wsv"))
376 (file-name (git-file-name name version))))
377 (build-system gnu-build-system)
379 `(("autoconf" ,autoconf)
380 ("automake" ,automake)
381 ("pkg-config" ,pkg-config)))
382 (home-page "https://github.com/vivien/i3blocks")
383 (synopsis "Minimalist scheduler for status bar scripts")
384 (description "i3blocks executes your command lines and generates a
385 status line from their output. The generated line is meant to be displayed by
386 the i3 window manager through its i3bar component, as an alternative to
388 (license license:gpl3+)))
390 (define-public perl-anyevent-i3
392 (name "perl-anyevent-i3")
396 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTPLBG/"
397 "AnyEvent-I3-" version ".tar.gz"))
400 "0qvd9bq16jyy7v3ma82qcnvz9j503bw0mh7h55gkjf7ir62ck0jk"))))
401 (build-system perl-build-system)
403 `(("perl-anyevent" ,perl-anyevent)
404 ("perl-json-xs" ,perl-json-xs)))
405 (home-page "https://metacpan.org/release/AnyEvent-I3")
407 "Communicate with the i3 window manager through perl")
409 "This module connects to the i3 window manager using the UNIX socket
410 based IPC interface it provides (if enabled in the configuration file).
411 You can then subscribe to events or send messages and receive their replies.")
412 ;; Can be used with either license.
413 (license (list license:gpl3+ license:perl-license))))
415 (define-public python-i3-py
417 (name "python-i3-py")
421 ;; The latest release is not tagged in Git nor has an entry in PyPi,
422 ;; but there is still a clear commit for it, and it's been the last one
426 (url "https://github.com/ziberna/i3-py.git")
427 (commit "27f88a616e9ecc340e7d041d3d00782f8a1964c1")))
430 "1nm719dc2xqlll7vj4c4m7mpjb27lpn3bg3c66gajvnrz2x1nmxs"))
431 (file-name (string-append name "-" version "-checkout"))))
432 (build-system python-build-system)
434 `(#:tests? #f ; no tests yet
435 #:phases (modify-phases %standard-phases
436 (add-after 'install 'install-doc
437 ;; Copy readme file to documentation directory.
438 (lambda* (#:key outputs #:allow-other-keys)
439 (let ((doc (string-append (assoc-ref outputs "out")
440 "/share/doc/" ,name)))
441 (install-file "README.md" doc)
442 ;; Avoid unspecified return value.
446 (home-page "https://github.com/ziberna/i3-py")
447 (synopsis "Python interface to the i3 window manager")
448 (description "This package allows you to interact from a Python program
449 with the i3 window manager via its IPC socket. It can send commands and other
450 kinds of messages to i3, select the affected containers, filter results and
451 subscribe to events.")
452 (license license:gpl3+)))
454 (define-public python2-i3-py
455 (package-with-python2 python-i3-py))
457 (define-public quickswitch-i3
458 (let ((commit "ed692b1e8f43b95bd907ced26238ce8ccb2ed28f")
459 (revision "1")) ; Guix package revision
461 (name "quickswitch-i3")
462 (version (string-append "2.2-" revision "."
463 (string-take commit 7)))
466 ;; The latest commit is a few years old and just a couple commits
467 ;; after the last tagged release, so we use that latest commit
468 ;; instead of the release.
471 (url "https://github.com/proxypoke/quickswitch-for-i3.git")
475 "0447077sama80jcdg5p64zjsvafmz5rbdrirhm1adcdjhkh6iqc5"))
476 (patches (search-patches "quickswitch-fix-dmenu-check.patch"))
477 (file-name (string-append name "-" version "-checkout"))))
478 (build-system python-build-system)
480 `(#:tests? #f ; no tests yet
481 #:phases (modify-phases %standard-phases
482 (add-after 'install 'install-doc
483 ;; Copy readme file to documentation directory.
484 (lambda* (#:key outputs #:allow-other-keys)
485 (let ((doc (string-append (assoc-ref outputs "out")
486 "/share/doc/" ,name)))
487 (install-file "README.rst" doc)
488 ;; Avoid unspecified return value.
491 `(("python-i3-py" ,python-i3-py)
493 (home-page "https://github.com/proxypoke/quickswitch-for-i3")
494 (synopsis "Quickly change to and locate windows in the i3 window manager")
496 "This utility for the i3 window manager allows you to quickly switch to
497 and locate windows on all your workspaces, using an interactive dmenu
499 (license license:wtfpl2))))
501 (define-public i3lock-color
503 (name "i3lock-color")
509 (url "https://github.com/PandorasFox/i3lock-color.git")
511 (file-name (git-file-name name version))
513 (base32 "08fhnchf187b73h52xgzb86g6byzxz085zs9galsvl687g5zxk34"))))
514 (build-system gnu-build-system)
516 `(#:tests? #f)) ; no tests included
520 ("libjpeg" ,libjpeg-turbo)
522 ("libxkbcommon" ,libxkbcommon)
523 ("linux-pam" ,linux-pam)
524 ("xcb-util" ,xcb-util)
525 ("xcb-util-image" ,xcb-util-image)
526 ("xcb-util-xrm" ,xcb-util-xrm)))
528 `(("autoconf" ,autoconf)
529 ("automake" ,automake)
530 ("pkg-config" ,pkg-config)))
531 (home-page "https://github.com/PandorasFox/i3lock-color")
532 (synopsis "Screen locker with color configuration support")
534 "i3lock-color is a simpler X11 screen locker derived from i3lock.
538 @item forking process, the locked screen is preserved when you suspend to RAM;
539 @item specify background color or image to be displayed in the lock screen;
540 @item many additional color options.
542 (license license:bsd-3)))
544 (define-public i3lock-fancy
546 (name "i3lock-fancy")
552 (url "https://github.com/meskarune/i3lock-fancy.git")
554 (file-name (git-file-name name version))
556 (base32 "11g2kkim33ra38d1m897sq1ifajw17iyw9mr7sg1q8i2ibl4lfsi"))))
557 (build-system gnu-build-system)
559 `(#:tests? #f ; no tests included
561 (modify-phases %standard-phases
563 (lambda* (#:key inputs outputs #:allow-other-keys)
564 (let* ((out (assoc-ref outputs "out"))
565 (icons (string-append out "/share/i3lock-fancy/icons/"))
566 (wmctrl (string-append (assoc-ref inputs "wmctrl")
568 (mconvert (string-append (assoc-ref inputs "imagemagick")
570 (mimport (string-append (assoc-ref inputs "imagemagick")
572 (awk (string-append (assoc-ref inputs "gawk")
576 (("$(which wmctrl)") wmctrl)
577 (("convert") mconvert)
578 (("shot=\\(import") (string-append "shot=\(" mimport))
579 (("awk -F") (string-append awk " -F"))
581 (("\\$scriptpath/icons/") icons))
585 (lambda* (#:key inputs outputs #:allow-other-keys)
586 (let* ((out (assoc-ref outputs "out"))
587 (bin (string-append out "/bin"))
588 (icons (string-append out "/share/i3lock-fancy/icons/")))
590 (install-file "lock" bin)
591 (rename-file (string-append bin "/lock")
592 (string-append bin "/i3lock-fancy"))
593 (copy-recursively "icons" icons)
596 `(("imagemagick" ,imagemagick)
599 (home-page "https://github.com/meskarune/i3lock-fancy")
600 (synopsis "Screen locker with screenshot function")
602 "@code{i3lock-fancy} is a Bash script that takes a screenshot of
603 the desktop, blurs the background and adds a lock icon and text.
604 It requires @code{i3lock-color} or @code{i3lock} and can optionally
605 be passed any screenshot util like @code{scrot}.
606 This screen locker can be used with any window manager or
607 desktop environment.")
608 (license license:expat)))
610 (define-public xmonad
614 (synopsis "Tiling window manager")
617 (uri (string-append "mirror://hackage/package/xmonad/"
618 "xmonad-" version ".tar.gz"))
621 "0a7rh21k9y6g8fwkggxdxjns2grvvsd5hi2ls4klmqz5xvk4hyaa"))))
622 (build-system haskell-build-system)
624 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
625 ("ghc-quickcheck" ,ghc-quickcheck)
626 ("ghc-semigroups" ,ghc-semigroups)
627 ("ghc-setlocale" ,ghc-setlocale)
628 ("ghc-utf8-string" ,ghc-utf8-string)
629 ("ghc-x11" ,ghc-x11)))
632 (modify-phases %standard-phases
634 'install 'install-xsession
636 (let* ((xsessions (string-append %output "/share/xsessions")))
638 (call-with-output-file
639 (string-append xsessions "/xmonad.desktop")
646 Type=Application~%" ,name ,synopsis %output)))))))))
647 (home-page "https://xmonad.org")
649 "Xmonad is a tiling window manager for X. Windows are arranged
650 automatically to tile the screen without gaps or overlap, maximising screen
651 use. All features of the window manager are accessible from the keyboard: a
652 mouse is strictly optional. Xmonad is written and extensible in Haskell.
653 Custom layout algorithms, and other extensions, may be written by the user in
654 config files. Layouts are applied dynamically, and different layouts may be
655 used on each workspace. Xinerama is fully supported, allowing windows to be
656 tiled on several screens.")
657 (license license:bsd-3)))
659 (define-public xmobar
665 (uri (string-append "mirror://hackage/package/xmobar/"
666 "xmobar-" version ".tar.gz"))
669 "1sbxva4zaj060bigmxivpn4zlz0q1qbq2np8gljdqkjvysjzpbka"))))
670 (build-system haskell-build-system)
672 `(("ghc-hspec" ,ghc-hspec)
673 ("hspec-discover" ,hspec-discover)))
675 `(("ghc-alsa-core" ,ghc-alsa-core)
676 ("ghc-alsa-mixer" ,ghc-alsa-mixer)
677 ("ghc-dbus" ,ghc-dbus)
678 ("ghc-hinotify" ,ghc-hinotify)
679 ("ghc-http" ,ghc-http)
680 ("ghc-http-conduit" ,ghc-http-conduit)
681 ("ghc-http-types" ,ghc-http-types)
682 ("ghc-iwlib" ,ghc-iwlib)
683 ("ghc-libmpd" ,ghc-libmpd)
684 ("ghc-old-locale" ,ghc-old-locale)
685 ("ghc-parsec-numbers" ,ghc-parsec-numbers)
686 ("ghc-regex-compat" ,ghc-regex-compat)
687 ("ghc-temporary" ,ghc-temporary)
688 ("ghc-timezone-olson" ,ghc-timezone-olson)
690 ("ghc-x11-xft" ,ghc-x11-xft)
693 `(#:configure-flags (list "--flags=all_extensions")
695 (modify-phases %standard-phases
696 (add-before 'build 'patch-test-shebang
697 (lambda* (#:key inputs #:allow-other-keys)
698 (substitute* "test/Xmobar/Plugins/Monitors/AlsaSpec.hs"
699 (("/bin/bash") (which "bash")))
701 (home-page "http://xmobar.org")
702 (synopsis "Minimalistic text based status bar")
704 "@code{xmobar} is a lightweight, text-based, status bar written in
705 Haskell. It was originally designed to be used together with Xmonad, but it
706 is also usable with any other window manager. While xmobar is written in
707 Haskell, no knowledge of the language is required to install and use it.")
708 (license license:bsd-3)))
710 (define-public ghc-xmonad-contrib
712 (name "ghc-xmonad-contrib")
717 (uri (string-append "mirror://hackage/package/xmonad-contrib/"
718 "xmonad-contrib-" version ".tar.gz"))
720 (base32 "1pddgkvnbww28wykncc7j0yb0lv15bk7xnnhdcbrwkxzw66w6wmd"))))
721 (build-system haskell-build-system)
723 `(("ghc-old-time" ,ghc-old-time)
724 ("ghc-random" ,ghc-random)
725 ("ghc-utf8-string" ,ghc-utf8-string)
726 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
727 ("ghc-semigroups" ,ghc-semigroups)
729 ("ghc-x11-xft" ,ghc-x11-xft)
731 (home-page "https://xmonad.org")
732 (synopsis "Third party extensions for xmonad")
734 "Third party tiling algorithms, configurations, and scripts to Xmonad, a
735 tiling window manager for X.")
736 (license license:bsd-3)))
738 (define-public evilwm
745 (uri (string-append "http://www.6809.org.uk/evilwm/evilwm-"
749 "0ak0yajzk3v4dg5wmaghv6acf7v02a4iw8qxmq5yw5ard8lrqn3r"))
750 (patches (search-patches "evilwm-lost-focus-bug.patch"))))
751 (build-system gnu-build-system)
755 ("libxrandr" ,libxrandr)))
757 `(#:modules ((srfi srfi-26)
759 (guix build gnu-build-system))
760 #:make-flags (let ((inputs (map (cut assoc-ref %build-inputs <>)
761 '("libx11" "libxext" "libxrandr")))
762 (join (lambda (proc strs)
763 (string-join (map proc strs) " ")))
764 (dash-I (cut string-append "-I" <> "/include"))
765 (dash-L (cut string-append "-L" <> "/lib")))
766 `("desktopfilesdir=$(prefix)/share/xsessions"
767 ,(string-append "prefix=" (assoc-ref %outputs "out"))
768 ,(string-append "CPPFLAGS=" (join dash-I inputs))
769 ,(string-append "LDFLAGS=" (join dash-L inputs))))
770 #:tests? #f ;no tests
771 #:phases (modify-phases %standard-phases
772 (delete 'configure)))) ;no configure script
773 (home-page "http://www.6809.org.uk/evilwm/")
774 (synopsis "Minimalist window manager for the X Window System")
776 "evilwm is a minimalist window manager based on aewm, extended to feature
777 many keyboard controls with repositioning and maximize toggles, solid window
778 drags, snap-to-border support, and virtual desktops.")
779 (license (license:x11-style "file:///README"))))
781 (define-public fluxbox
785 (synopsis "Small and fast window manager")
788 (uri (string-append "mirror://sourceforge/fluxbox/fluxbox/"
789 version "/fluxbox-" version ".tar.xz"))
792 "1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w"))))
793 (build-system gnu-build-system)
795 `(#:make-flags '("CPPFLAGS=-U__TIME__") ;ugly, but for reproducibility
797 (modify-phases %standard-phases
798 (add-after 'install 'install-vim-files
799 (lambda* (#:key outputs #:allow-other-keys)
800 (let* ((out (assoc-ref outputs "out"))
801 (syntax (string-append out "/share/vim/vimfiles/syntax")))
802 (copy-recursively "3rd/vim/vim/syntax" syntax)
804 (add-after 'install 'install-xsession
805 (lambda* (#:key outputs #:allow-other-keys)
806 (let* ((out (assoc-ref outputs "out"))
807 (xsessions (string-append out "/share/xsessions")))
809 (call-with-output-file
810 (string-append xsessions "/fluxbox.desktop")
816 Exec=~a/bin/startfluxbox~@
817 Type=Application~%" ,name ,synopsis out)))
820 `(("pkg-config" ,pkg-config)))
822 `(("freetype" ,freetype)
828 ("libxinerama" ,libxinerama)
830 ("libxrandr" ,libxrandr)
831 ("libxrender" ,libxrender)))
832 (description "Fluxbox is a window manager. It is light on resources
833 and easy to handle yet full of features to make an easy and fast desktop
835 (home-page "http://fluxbox.org/")
836 (license license:expat)))
838 (define-public awesome
843 (origin (method url-fetch)
845 "https://github.com/awesomeWM/awesome-releases/raw/"
846 "master/awesome-" version ".tar.xz"))
849 "0kwpbls9h1alxcmvxh5g9qb995fds5b2ngcr44w0ibazkyls2pdc"))
850 (modules '((guix build utils)
853 ;; Remove non-reproducible timestamp and use the date
854 ;; of the source file instead.
855 (substitute* "common/version.c"
856 (("__DATE__ \" \" __TIME__")
859 (make-time time-utc 0
860 (stat:mtime (stat "awesome.c"))))
863 (patches (search-patches "awesome-reproducible-png.patch"))))
864 (build-system cmake-build-system)
865 (native-inputs `(("asciidoc" ,asciidoc)
866 ("docbook-xsl" ,docbook-xsl)
869 ("imagemagick" ,imagemagick)
870 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
871 ("pkg-config" ,pkg-config)
873 (inputs `(("cairo" ,cairo)
875 ("gdk-pixbuf" ,gdk-pixbuf)
877 ("gobject-introspection" ,gobject-introspection)
881 ("libxcursor" ,libxcursor)
882 ("libxdg-basedir" ,libxdg-basedir)
883 ("libxkbcommon" ,libxkbcommon)
887 ("startup-notification" ,startup-notification)
888 ("xcb-util" ,xcb-util)
889 ("xcb-util-cursor" ,xcb-util-cursor)
890 ("xcb-util-image" ,xcb-util-image)
891 ("xcb-util-keysyms" ,xcb-util-keysyms)
892 ("xcb-util-renderutil" ,xcb-util-renderutil)
893 ("xcb-util-xrm" ,xcb-util-xrm)
894 ("xcb-util-wm" ,xcb-util-wm)))
896 `(;; Let compression happen in our 'compress-documentation' phase so that
897 ;; '--no-name' is used, which removes timestamps from gzip output.
898 #:configure-flags '("-DCOMPRESS_MANPAGES=off")
900 ;; Building awesome in its source dir is no longer supported.
904 (modify-phases %standard-phases
905 (add-before 'build 'xmlto-skip-validation
907 ;; We can't download the necessary schema, so so skip
908 ;; validation and assume they're valid.
909 (substitute* "../build/CMakeFiles/man.dir/build.make"
911 (string-append "/xmlto --skip-validation")))
913 (add-before 'configure 'set-lua-paths
914 (lambda* (#:key inputs #:allow-other-keys)
915 ;; The build process needs to load cairo dynamically.
916 (let* ((cairo (string-append
917 (assoc-ref inputs "cairo") "/lib" ))
918 (lua-lgi (assoc-ref inputs "lua-lgi") ))
919 (setenv "LD_LIBRARY_PATH" cairo )
920 (setenv "LUA_PATH" (string-append lua-lgi
921 "/share/lua/5.2/?.lua"))
922 (setenv "LUA_CPATH" (string-append lua-lgi
923 "/lib/lua/5.2/?.so"))
927 ;; There aren't any tests, so just make sure the binary
928 ;; gets built and can be run successfully.
929 (invoke "../build/awesome" "-v")))
930 (add-after 'install 'patch-session-file
931 (lambda* (#:key outputs #:allow-other-keys)
932 (let* ((out (assoc-ref outputs "out"))
933 (awesome (string-append out "/bin/awesome")))
934 (substitute* (string-append out "/share/xsessions/awesome.desktop")
935 (("Exec=awesome") (string-append "Exec=" awesome)))
937 (add-after 'install 'wrap
938 (lambda* (#:key inputs outputs #:allow-other-keys)
939 (let* ((awesome (assoc-ref outputs "out"))
940 (cairo (string-append
941 (assoc-ref inputs "cairo") "/lib" ))
942 (lua-lgi (assoc-ref inputs "lua-lgi") ))
943 (wrap-program (string-append awesome "/bin/awesome")
944 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))
945 `("LD_LIBRARY_PATH" suffix (, cairo))
946 `("LUA_PATH" suffix (,(string-append lua-lgi
947 "/share/lua/5.2/?.lua")))
948 `("LUA_CPATH" suffix (,(string-append
949 lua-lgi "/lib/lua/5.2/?.so"))))))))))
950 (synopsis "Highly configurable window manager")
952 "Awesome has been designed as a framework window manager. It is fast, small,
953 dynamic and extensible using the Lua programming language.")
954 (license license:gpl2+)
955 (home-page "https://awesomewm.org/")))
957 (define-public menumaker
964 (uri (string-append "mirror://sourceforge/menumaker/"
965 "menumaker-" version ".tar.gz"))
968 "1mm4cvg3kphkkd8nwrhcg6d9nm5ar7mgc0wf6fxk6zck1l7xn8ky"))))
969 (build-system gnu-build-system)
971 `(("python" ,python)))
972 (synopsis "Heuristics-driven menu generator")
974 "MenuMaker is a menu generation utility for a number of X window
975 managers and desktop environments. It is capable of finding lots of
976 installed programs and generating a root menu consistent across all
977 supported window managers, so one will get (almost) the same menu in
978 all of them. Currently supported window managers include:
990 (home-page "http://menumaker.sourceforge.net/")
991 (license license:bsd-2)))
993 (define-public keybinder
1000 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1001 "/releases/download/v" version "/keybinder-"
1003 (file-name (string-append name "-" version ".tar.gz"))
1006 "0h52hj3ay8mfhwvmfxbxlfyq74hifdk8wxgxp7fr4iy6189hg7w7"))))
1007 (build-system gnu-build-system)
1009 `(("python-2" ,python-2)
1010 ("gtk+-2" ,gtk+-2)))
1012 `(("python2-pygtk" ,python2-pygtk)
1013 ("gtk-doc" ,gtk-doc)
1014 ("pkg-config" ,pkg-config)))
1015 (synopsis "Library for registering global keyboard shortcuts")
1017 "Keybinder is a library for registering global keyboard shortcuts.
1018 Keybinder works with GTK-based applications using the X Window System.")
1019 (home-page "https://github.com/kupferlauncher/keybinder")
1020 (license license:gpl2+)))
1022 (define-public keybinder-3.0
1024 (name "keybinder-3.0")
1029 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1030 "/releases/download/" name "-v" version "/" name "-"
1032 (file-name (string-append name "-" version ".tar.gz"))
1035 "0830ihwnalw59pp1xzrp37dn58n8vwb8zasnm4a1h81v3x7dxqz6"))))
1036 (build-system gnu-build-system)
1039 ("gobject-introspection" ,gobject-introspection)))
1041 `(("gtk-doc" ,gtk-doc)
1042 ("pkg-config" ,pkg-config)))
1043 (synopsis "Library for registering global keyboard shortcuts, Gtk3 version")
1045 "Keybinder is a library for registering global keyboard shortcuts.
1046 Keybinder works with GTK-based applications using the X Window System.")
1047 (home-page "https://github.com/kupferlauncher/keybinder")
1048 (license license:x11)))
1050 (define-public spectrwm
1058 (url "https://github.com/conformal/spectrwm.git")
1060 (string-append "SPECTRWM_"
1061 (string-join (string-split version #\.) "_")))))
1062 (file-name (git-file-name name version))
1064 (base32 "1dfqy5f0s1nv6rqkz9lj006vypmp4rwxd5vczfk3ndzqgnh19kw6"))))
1065 (build-system gnu-build-system)
1067 `(#:make-flags (let ((pkg-config (lambda (flag)
1069 "$(shell pkg-config " flag " "
1070 "xft fontconfig x11 libpng)"))))
1073 (string-append "PREFIX=" %output)
1074 (string-append "INCS=-I. " (pkg-config "--cflags"))
1075 (string-append "LIBS=" (pkg-config "--libs") " -lm")))
1076 #:tests? #f ;no test suite
1078 (modify-phases %standard-phases
1079 (add-before 'build 'change-dir
1081 (chdir "linux") #t))
1082 (add-after 'change-dir 'patch-makefile
1084 (substitute* "Makefile"
1086 (delete 'configure)))) ;no 'configure' exists
1088 `(("freetype" ,freetype)
1089 ("fontconfig" ,fontconfig)
1091 ("libxcursor" ,libxcursor)
1092 ("libxrandr" ,libxrandr)
1093 ("libxtst" ,libxtst)
1095 ("xcb-util" ,xcb-util)
1096 ("xcb-util-wm" ,xcb-util-wm)
1097 ("xcb-util-keysyms" ,xcb-util-keysyms)))
1100 ("pkg-config" ,pkg-config)))
1101 (synopsis "Minimalistic automatic tiling window manager")
1103 "Spectrwm is a small dynamic tiling and reparenting window manager for X11.
1104 It is inspired by Xmonad and dwm. Its major features include:
1107 @item Navigation anywhere on all screens with either the keyboard or mouse
1108 @item Customizable status bar
1109 @item Restartable without losing state
1110 @item Quick launch menu
1111 @item Many screen layouts possible with a few simple key strokes
1112 @item Move/resize floating windows
1113 @item Extended Window Manager Hints (@dfn{EWMH}) support
1114 @item Configurable tiling
1115 @item Adjustable tile gap allows for a true one pixel border
1116 @item Customizable colors and border width
1118 (home-page "https://github.com/conformal/spectrwm")
1119 (license license:isc)))
1128 (uri (string-append "http://chneukirchen.org/releases/cwm-"
1132 "17pdp9cfgh2n3n3905l4rl9qk7b722i8psnarhlc2h98qzx7zmac"))))
1133 (build-system gnu-build-system)
1135 `(#:make-flags (list "CC=gcc"
1136 (string-append "PREFIX=" %output))
1139 (modify-phases %standard-phases
1141 (add-after 'build 'install-xsession
1142 (lambda* (#:key outputs #:allow-other-keys)
1143 ;; Add a .desktop file to xsessions.
1144 (let* ((output (assoc-ref outputs "out"))
1145 (xsessions (string-append output "/share/xsessions")))
1147 (with-output-to-file
1148 (string-append xsessions "/cwm.desktop")
1153 Comment=OpenBSD Calm Window Manager fork~@
1155 TryExec=~@*~a/bin/cwm~@
1161 `(("libxft" ,libxft)
1162 ("libxrandr" ,libxrandr)
1163 ("libxinerama" ,libxinerama)))
1165 `(("pkg-config" ,pkg-config)
1167 (home-page "https://github.com/chneukirchen/cwm")
1168 (synopsis "OpenBSD fork of the calmwm window manager")
1169 (description "Cwm is a stacking window manager for X11. It is an OpenBSD
1170 project derived from the original Calm Window Manager.")
1171 (license license:isc)))
1173 (define-public nitrogen
1179 (uri (string-append "http://github.com/l3ib/nitrogen/"
1180 "releases/download/" version "/"
1181 name "-" version ".tar.gz"))
1184 "0zc3fl1mbhq0iyndy4ysmy8vv5c7xwf54rbgamzfhfvsgdq160pl"))))
1185 (build-system gnu-build-system)
1190 ("glibmm" ,glibmm)))
1192 `(("pkg-config" ,pkg-config)))
1193 (home-page "http://projects.l3ib.org/nitrogen/")
1194 (synopsis "Background browser and setter for X windows")
1196 "This package is a background browser and setter for X windows. It's
1200 @item Multihead and Xinerama aware
1201 @item Recall mode to used via startup script
1202 @item Uses freedesktop.org standard for thumbnails
1203 @item Can set GNOME background
1204 @item Command lie set modes for script use
1205 @item Inotify monitoring of browse directory
1206 @item Lazy loading of thumbnails - conserves memory
1207 @item \"Automatic\" set mode - determines best mode to set an image based on
1209 @item Display preview images in a tiled icon layout
1211 (license license:gpl2+)))
1213 (define-public polybar
1220 (uri (string-append "https://github.com/polybar/polybar/releases/"
1221 "download/" version "/polybar-" version ".tar"))
1223 (base32 "1sy4xnx9rnj5z22kca8al84ivjg4mkvb9wj68pqq2y02l54gldwy"))))
1224 (build-system cmake-build-system)
1226 ;; Test is disabled because it requires downloading googletest from the
1230 `(("alsa-lib" ,alsa-lib)
1233 ("jsoncpp" ,jsoncpp)
1234 ("libmpdclient" ,libmpdclient)
1237 ("pulseaudio" ,pulseaudio)
1238 ("xcb-proto" ,xcb-proto)
1239 ("xcb-util" ,xcb-util)
1240 ("xcb-util-cursor" ,xcb-util-cursor)
1241 ("xcb-util-image" ,xcb-util-image)
1242 ("xcb-util-wm" ,xcb-util-wm)
1243 ("xcb-util-xrm" ,xcb-util-xrm)))
1245 `(("pkg-config" ,pkg-config)
1246 ("python-2" ,python-2) ; lib/xpp depends on python 2
1247 ("python" ,python))) ; xcb-proto depends on python 3
1248 (home-page "https://polybar.github.io/")
1249 (synopsis "Fast and easy-to-use status bar")
1250 (description "Polybar aims to help users build beautiful and highly
1251 customizable status bars for their desktop environment. It has built-in
1252 functionality to display information about the most commonly used services.")
1253 (license license:expat)))
1255 (define-public wlroots
1263 (url "https://github.com/swaywm/wlroots.git")
1265 (file-name (git-file-name name version))
1267 (base32 "0jzxa6psbc7ddxli7rbfqxmv1svxnis51l1vch4hb9fdixqm284a"))))
1268 (build-system meson-build-system)
1270 `(#:configure-flags '("-Dlogind-provider=elogind")
1272 (modify-phases %standard-phases
1273 (add-before 'configure 'hardcode-paths
1274 (lambda* (#:key inputs #:allow-other-keys)
1275 (substitute* "xwayland/xwayland.c"
1276 (("Xwayland") (string-append (assoc-ref inputs
1277 "xorg-server-xwayland")
1280 (inputs `(("elogind" ,elogind)
1282 ("libinput" ,libinput)
1283 ("libxkbcommon" ,libxkbcommon)
1286 ("wayland" ,wayland)
1287 ("xorg-server-xwayland" ,xorg-server-xwayland)))
1288 (native-inputs `(("ffmpeg" ,ffmpeg)
1291 ("pkg-config" ,pkg-config)
1292 ("wayland-protocols" ,wayland-protocols)))
1293 (home-page "https://github.com/swaywm/wlroots")
1294 (synopsis "Pluggable, composable, unopinionated modules for building a
1295 Wayland compositor")
1296 (description "wlroots is a set of pluggable, composable, unopinionated
1297 modules for building a Wayland compositor.")
1298 (license license:expat))) ; MIT license
1308 (url "https://github.com/swaywm/sway.git")
1310 (file-name (git-file-name name version))
1312 (base32 "0vch2zm5afc76ia78p3vg71zr2fyda67l9hd2h0x1jq3mnvfbxnd"))))
1313 (build-system meson-build-system)
1316 (modify-phases %standard-phases
1317 (add-before 'configure 'hardcode-paths
1318 (lambda* (#:key inputs #:allow-other-keys)
1319 ;; Hardcode path to swaybg.
1320 (substitute* "sway/config.c"
1321 (("strdup..swaybg..")
1322 (string-append "strdup(\"" (assoc-ref inputs "swaybg")
1324 ;; Hardcode path to scdoc.
1325 (substitute* "meson.build"
1326 (("scdoc.get_pkgconfig_variable..scdoc..")
1327 (string-append "'" (assoc-ref inputs "scdoc")
1330 (inputs `(("cairo" ,cairo)
1331 ("elogind" ,elogind)
1332 ("gdk-pixbuf" ,gdk-pixbuf)
1334 ("libevdev" ,libevdev)
1335 ("libinput" ,libinput)
1336 ("libxkbcommon" ,libxkbcommon)
1339 ("wayland" ,wayland)
1340 ("wlroots" ,wlroots)))
1341 (native-inputs `(("git" ,git)
1343 ("linux-pam" ,linux-pam)
1345 ("pkg-config" ,pkg-config)
1347 ("wayland-protocols" ,wayland-protocols)))
1348 (home-page "https://github.com/swaywm/sway")
1349 (synopsis "Wayland compositor compatible with i3")
1350 (description "Sway is a i3-compatible Wayland compositor.")
1351 (license license:expat))) ; MIT license
1353 (define-public swayidle
1361 (url "https://github.com/swaywm/swayidle.git")
1363 (file-name (git-file-name name version))
1365 (base32 "05qi96j58xqxjiighay1d39rfanxcpn6vlynj23mb5dymxvlaq9n"))))
1366 (build-system meson-build-system)
1368 `(#:configure-flags '("-Dlogind-provider=elogind")))
1369 (inputs `(("elogind" ,elogind)
1370 ("wayland" ,wayland)))
1371 (native-inputs `(("pkg-config" ,pkg-config)
1373 ("wayland-protocols" ,wayland-protocols)))
1374 (home-page "https://github.com/swaywm/sway")
1375 (synopsis "Idle management daemon for Wayland compositors")
1376 (description "Swayidle is a idle management daemon for Wayland compositors.")
1377 (license license:expat))) ; MIT license
1379 (define-public swaylock
1387 (url "https://github.com/swaywm/swaylock.git")
1389 (file-name (git-file-name name version))
1391 (base32 "1ii9ql1mxkk2z69dv6bg1x22nl3a46iww764wqjiv78x08xpk982"))))
1392 (build-system meson-build-system)
1393 (inputs `(("cairo" ,cairo)
1394 ("gdk-pixbuf" ,gdk-pixbuf)
1395 ("libxkbcommon" ,libxkbcommon)
1396 ;("linux-pam" ,linux-pam) ; FIXME: Doesn't work.
1397 ("wayland" ,wayland)))
1398 (native-inputs `(("git" ,git)
1400 ("pkg-config" ,pkg-config)
1402 ("wayland-protocols" ,wayland-protocols)))
1403 (home-page "https://github.com/swaywm/sway")
1404 (synopsis "Screen locking utility for Wayland compositors")
1405 (description "Swaylock is a screen locking utility for Wayland compositors.")
1406 (license license:expat))) ; MIT license
1408 (define-public swaybg
1416 (url "https://github.com/swaywm/swaybg.git")
1418 (file-name (git-file-name name version))
1420 (base32 "1lmqz5bmig90gq2m7lwf02d2g7z4hzf8fhqz78c8vk92c6p4xwbc"))))
1421 (build-system meson-build-system)
1422 (inputs `(("cairo" ,cairo)
1423 ("gdk-pixbuf" ,gdk-pixbuf)
1424 ("wayland" ,wayland)))
1425 (native-inputs `(("git" ,git)
1426 ("pkg-config" ,pkg-config)
1428 ("wayland-protocols" ,wayland-protocols)))
1429 (home-page "https://github.com/swaywm/sway")
1430 (synopsis "Screen wallpaper utility for Wayland compositors")
1431 (description "Swaybg is a wallpaper utility for Wayland compositors.")
1432 (license license:expat))) ; MIT license
1434 (define-public waybar
1442 (url "https://github.com/Alexays/Waybar.git")
1444 (file-name (git-file-name name version))
1446 (base32 "0s8ck7qxka0l91ayma6amp9sc8cidi43byqgzcavi3a6id983r1z"))))
1447 (build-system meson-build-system)
1450 (list (string-append "-Dout=" (assoc-ref %outputs "out")))))
1451 (inputs `(("fmt" ,fmt)
1453 ("jsoncpp" ,jsoncpp)
1454 ("libdbusmenu" ,libdbusmenu)
1455 ("libinput" ,libinput)
1456 ("libmpdclent" ,libmpdclient)
1458 ("pulseaudio" ,pulseaudio)
1460 ("wayland" ,wayland)))
1461 (native-inputs `(("glib:bin" ,glib "bin")
1462 ("pkg-config" ,pkg-config)
1463 ("wayland-protocols" ,wayland-protocols)))
1464 (home-page "https://github.com/Alexays/Waybar")
1465 (synopsis "Wayland bar for Sway and Wlroots based compositors.")
1466 (description "Waybar is a highly customisable Wayland bar for Sway and
1467 Wlroots based compositors.")
1468 (license license:expat))) ; MIT license
1478 (url "https://github.com/emersion/mako.git")
1479 (commit (string-append "v" version))))
1480 (file-name (git-file-name name version))
1482 (base32 "11ymiq6cr2ma0iva1mqybn3j6k73bsc6lv6pcbdq7hkhd4f9b7j9"))))
1483 (build-system meson-build-system)
1484 (inputs `(("cairo" ,cairo)
1485 ("elogind" ,elogind)
1486 ("gdk-pixbuf" ,gdk-pixbuf)
1488 ("wayland" ,wayland)))
1489 (native-inputs `(("pkg-config" ,pkg-config)
1491 ("wayland-protocols" ,wayland-protocols)))
1492 (home-page "https://wayland.emersion.fr/mako")
1493 (synopsis "Lightweight Wayland notification daemon")
1494 (description "Mako is a lightweight notification daemon for Wayland
1495 compositors that support the layer-shell protocol.")
1496 (license license:expat))) ; MIT license
1498 (define-public stumpwm
1506 (url "https://github.com/stumpwm/stumpwm.git")
1508 (file-name (git-file-name "stumpwm" version))
1510 (base32 "1ha8803ll7472kqxsy2xz0v5d4sv8apmc9z631d67m31q0z1m9rz"))))
1511 (build-system asdf-build-system/sbcl)
1512 (native-inputs `(("fiasco" ,sbcl-fiasco)
1513 ("texinfo" ,texinfo)))
1514 (inputs `(("cl-ppcre" ,sbcl-cl-ppcre)
1516 ("alexandria" ,sbcl-alexandria)))
1517 (outputs '("out" "lib"))
1519 '(#:asd-system-name "stumpwm"
1521 (modify-phases %standard-phases
1522 (add-after 'create-symlinks 'build-program
1523 (lambda* (#:key outputs #:allow-other-keys)
1525 (string-append (assoc-ref outputs "out") "/bin/stumpwm")
1527 #:entry-program '((stumpwm:stumpwm) 0))))
1528 (add-after 'build-program 'create-desktop-file
1529 (lambda* (#:key outputs #:allow-other-keys)
1530 (let* ((out (assoc-ref outputs "out"))
1531 (xsessions (string-append out "/share/xsessions")))
1533 (call-with-output-file
1534 (string-append xsessions "/stumpwm.desktop")
1539 Comment=The Stump Window Manager~@
1540 Exec=~a/bin/stumpwm~@
1541 TryExec=~@*~a/bin/stumpwm~@
1546 (add-after 'install 'install-manual
1547 (lambda* (#:key outputs #:allow-other-keys)
1548 ;; The proper way to the manual is bootstrapping a full autotools
1549 ;; build system and running ‘./configure && make stumpwm.info’ to
1550 ;; do some macro substitution. We can get away with much less.
1551 (let* ((out (assoc-ref outputs "out"))
1552 (info (string-append out "/share/info")))
1553 (invoke "makeinfo" "stumpwm.texi.in")
1554 (install-file "stumpwm.info" info)
1556 (synopsis "Window manager written in Common Lisp")
1557 (description "Stumpwm is a window manager written entirely in Common Lisp.
1558 It attempts to be highly customizable while relying entirely on the keyboard
1559 for input. These design decisions reflect the growing popularity of
1560 productive, customizable lisp based systems.")
1561 (home-page "https://github.com/stumpwm/stumpwm")
1562 (license license:gpl2+)
1563 (properties `((cl-source-variant . ,(delay cl-stumpwm))))))
1565 (define-public sbcl-stumpwm
1566 (deprecated-package "sbcl-stumpwm" stumpwm))
1568 (define-public cl-stumpwm
1570 (inherit (sbcl-package->cl-source-package stumpwm))
1571 (name "cl-stumpwm")))
1573 (define-public stumpwm+slynk
1576 (name "stumpwm-with-slynk")
1579 `(("stumpwm" ,stumpwm "lib")
1580 ("slynk" ,sbcl-slynk)))
1582 (substitute-keyword-arguments (package-arguments stumpwm)
1584 `(modify-phases ,phases
1585 (replace 'build-program
1586 (lambda* (#:key inputs outputs #:allow-other-keys)
1587 (let* ((out (assoc-ref outputs "out"))
1588 (program (string-append out "/bin/stumpwm")))
1589 (build-program program outputs
1590 #:entry-program '((stumpwm:stumpwm) 0)
1591 #:dependencies '("stumpwm"
1592 ,@(@@ (gnu packages lisp-xyz) slynk-systems))
1593 #:dependency-prefixes
1594 (map (lambda (input) (assoc-ref inputs input))
1595 '("stumpwm" "slynk")))
1596 ;; Remove unneeded file.
1597 (delete-file (string-append out "/bin/stumpwm-exec.fasl"))
1599 (delete 'copy-source)
1602 (delete 'create-asd-file)
1604 (delete 'create-symlinks)))))))
1606 (define-public sbcl-stumpwm+slynk
1607 (deprecated-package "sbcl-stumpwm-with-slynk" stumpwm+slynk))
1609 (define-public lemonbar
1610 (let ((commit "35183ab81d2128dbb7b6d8e119cc57846bcefdb4")
1614 (version (git-version "1.3" revision commit))
1618 (url "https://github.com/LemonBoy/bar")
1620 (file-name (git-file-name name version))
1623 "1wwqbph392iwz8skaqxb0xpklb1l6yganqz80g4x1fhrnz7idmlh"))))
1624 (build-system gnu-build-system)
1626 '(#:tests? #f ; no test suite
1627 #:make-flags (list "CC=gcc"
1628 (string-append "PREFIX=" %output))
1630 (modify-phases %standard-phases
1631 (delete 'configure))))
1633 `(("libxcb" ,libxcb)))
1636 (home-page "https://github.com/LemonBoy/bar")
1637 (synopsis "Featherweight status bar")
1639 "@code{lemonbar} (formerly known as @code{bar}) is a lightweight
1640 bar entirely based on XCB. Provides full UTF-8 support, basic
1641 formatting, RandR and Xinerama support and EWMH compliance without
1642 wasting your precious memory.")
1643 (license license:x11))))