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, 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 Alexandru-Sergiu Marton <brown121407@member.fsf.org>
34 ;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
35 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
37 ;;; This file is part of GNU Guix.
39 ;;; GNU Guix is free software; you can redistribute it and/or modify it
40 ;;; under the terms of the GNU General Public License as published by
41 ;;; the Free Software Foundation; either version 3 of the License, or (at
42 ;;; your option) any later version.
44 ;;; GNU Guix is distributed in the hope that it will be useful, but
45 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
46 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47 ;;; GNU General Public License for more details.
49 ;;; You should have received a copy of the GNU General Public License
50 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
52 (define-module (gnu packages wm)
53 #:use-module ((guix licenses) #:prefix license:)
54 #:use-module (guix packages)
55 #:use-module (guix download)
56 #:use-module (guix git-download)
57 #:use-module (guix build-system asdf)
58 #:use-module (guix build-system cmake)
59 #:use-module (guix build-system gnu)
60 #:use-module (guix build-system haskell)
61 #:use-module (guix build-system meson)
62 #:use-module (guix build-system perl)
63 #:use-module (guix build-system python)
64 #:use-module (guix utils)
65 #:use-module (gnu packages)
66 #:use-module (gnu packages autotools)
67 #:use-module (gnu packages base)
68 #:use-module (gnu packages bison)
69 #:use-module (gnu packages docbook)
70 #:use-module (gnu packages documentation)
71 #:use-module (gnu packages fontutils)
72 #:use-module (gnu packages freedesktop)
73 #:use-module (gnu packages fribidi)
74 #:use-module (gnu packages gawk)
75 #:use-module (gnu packages gl)
76 #:use-module (gnu packages glib)
77 #:use-module (gnu packages gperf)
78 #:use-module (gnu packages gtk)
79 #:use-module (gnu packages haskell-check)
80 #:use-module (gnu packages haskell-web)
81 #:use-module (gnu packages haskell-xyz)
82 #:use-module (gnu packages image)
83 #:use-module (gnu packages imagemagick)
84 #:use-module (gnu packages libevent)
85 #:use-module (gnu packages linux)
86 #:use-module (gnu packages lisp-xyz)
87 #:use-module (gnu packages logging)
88 #:use-module (gnu packages lua)
89 #:use-module (gnu packages m4)
90 #:use-module (gnu packages man)
91 #:use-module (gnu packages maths)
92 #:use-module (gnu packages mpd)
93 #:use-module (gnu packages pcre)
94 #:use-module (gnu packages perl)
95 #:use-module (gnu packages pkg-config)
96 #:use-module (gnu packages pretty-print)
97 #:use-module (gnu packages pulseaudio)
98 #:use-module (gnu packages python)
99 #:use-module (gnu packages serialization)
100 #:use-module (gnu packages sphinx)
101 #:use-module (gnu packages suckless)
102 #:use-module (gnu packages texinfo)
103 #:use-module (gnu packages textutils)
104 #:use-module (gnu packages video)
105 #:use-module (gnu packages web)
106 #:use-module (gnu packages xdisorg)
107 #:use-module (gnu packages xml)
108 #:use-module (gnu packages xorg))
118 (url "https://github.com/baskerville/bspwm.git")
120 (file-name (git-file-name name version))
122 (base32 "1i7crmljk1vra1r6alxvj6lqqailjjcv0llyg7a0gm23rbv4a42g"))))
123 (build-system gnu-build-system)
126 ("libxinerama" ,libxinerama)
128 ("xcb-util" ,xcb-util)
129 ("xcb-util-keysyms" ,xcb-util-keysyms)
130 ("xcb-util-wm" ,xcb-util-wm)))
133 (modify-phases %standard-phases
134 (delete 'configure)) ; no configure script
135 #:tests? #f ; no check target
138 (string-append "PREFIX=" %output))))
139 (home-page "https://github.com/baskerville/bspwm")
140 (synopsis "Tiling window manager based on binary space partitioning")
141 (description "bspwm is a tiling window manager that represents windows as
142 the leaves of a full binary tree.")
143 (license license:bsd-2)))
145 (define-public herbstluftwm
147 (name "herbstluftwm")
152 (uri (string-append "https://herbstluftwm.org/tarballs/herbstluftwm-"
156 "1kc18aj9j3nfz6fj4qxg9s3gg4jvn6kzi3ii24hfm0vqdpy17xnz"))
157 (file-name (string-append "herbstluftwm-" version ".tar.gz"))))
158 (build-system gnu-build-system)
165 ("xsetroot" ,xsetroot)
168 ("libxinerama" ,libxinerama)))
170 `(("pkg-config" ,pkg-config)))
173 (modify-phases %standard-phases
176 (add-after 'install 'install-xsession
177 (lambda* (#:key outputs #:allow-other-keys)
178 (let* ((out (assoc-ref outputs "out"))
179 (xsessions (string-append out "/share/xsessions")))
181 (call-with-output-file
182 (string-append xsessions "/herbstluftwm.desktop")
187 Comment=Manual tiling window manager~@
188 Exec=~a/bin/herbstluftwm~@
189 Type=XSession~%" out)))
193 (let ((out (assoc-ref %outputs "out")))
195 (string-append "PREFIX=''")
196 (string-append "DESTDIR=" out)
197 (string-append "BASHCOMPLETIONDIR=" out
198 "/etc/bash_completion.d")))))
199 (synopsis "Tiling window manager for X11")
200 (description "herbstluftwm is a manual tiling window manager for X11 using
201 Xlib and GLib. Its main features are:
205 The layout is based on splitting frames into subframes which can be split
206 again or can be filled with windows (similar to i3 or musca).
209 Tags (or workspaces or virtual desktops or …) can be added/removed at runtime.
210 Each tag contains an own layout.
213 Exactly one tag is viewed on each monitor. The tags are monitor independent
217 It is configured at runtime via IPC calls from @command{herbstclient}. So the
218 configuration file is just a script which is run on startup (similar to wmii
222 (home-page "https://herbstluftwm.org")
223 (license license:bsd-2)))
225 (define-public i3status
231 (uri (string-append "https://i3wm.org/i3status/i3status-"
235 "0rhlzb96mw64z2jnhwz9nibc7pxg549626lz5642xxk5hpzwk2ff"))))
236 (build-system gnu-build-system)
238 `(;; XXX: Do an "out of source" build to work around
239 ;; <https://github.com/i3/i3status/issues/339>.
241 #:tests? #f)) ; no test suite
243 `(("openlibm" ,openlibm)
244 ("libconfuse" ,libconfuse)
246 ("alsa-lib" ,alsa-lib)
247 ("pulseaudio" ,pulseaudio)
250 ("asciidoc" ,asciidoc)))
252 `(("pkg-config" ,pkg-config)
253 ("docbook-xsl" ,docbook-xsl)
254 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
256 (home-page "https://i3wm.org/i3status/")
257 (synopsis "Status bar for i3bar, dzen2, xmobar or similar programs")
258 (description "i3status is a small program for generating a status bar for
259 i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient
260 by issuing a very small number of system calls, as one generally wants to
261 update such a status line every second. This ensures that even under high
262 load, your status bar is updated correctly. Also, it saves a bit of energy by
263 not hogging your CPU as much as spawning the corresponding amount of shell
265 (license license:bsd-3)))
273 (uri (string-append "https://i3wm.org/downloads/i3-"
277 "0iazv2i2rgmakzh95pgj6iapyzn7bdpcbcd35a79mhlml4ry33qy"))))
278 (build-system gnu-build-system)
281 ;; The build system tries to build in a separate directory, but that
282 ;; seems to be unnecessary.
283 (list "--disable-builddir")
285 ;; The test suite requires the unpackaged Xephyr X server.
288 (modify-phases %standard-phases
289 (add-after 'install 'patch-session-file
290 (lambda* (#:key outputs #:allow-other-keys)
291 (let* ((out (assoc-ref outputs "out"))
292 (i3 (string-append out "/bin/i3"))
293 (i3-with-shmlog (string-append out "/bin/i3-with-shmlog")))
294 (substitute* (string-append out "/share/xsessions/i3.desktop")
295 (("Exec=i3") (string-append "Exec=" i3)))
296 (substitute* (string-append out "/share/xsessions/i3-with-shmlog.desktop")
297 (("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog)))
301 ("xcb-util" ,xcb-util)
302 ("xcb-util-cursor" ,xcb-util-cursor)
303 ("xcb-util-keysyms" ,xcb-util-keysyms)
304 ("xcb-util-wm" ,xcb-util-wm)
305 ("xcb-util-xrm" ,xcb-util-xrm)
306 ("libxkbcommon" ,libxkbcommon)
309 ("asciidoc" ,asciidoc)
311 ("perl-pod-simple" ,perl-pod-simple)
314 ("startup-notification" ,startup-notification)
320 ("pkg-config" ,pkg-config)
321 ;; For building the documentation.
323 ("docbook-xsl" ,docbook-xsl)))
324 (home-page "https://i3wm.org/")
325 (synopsis "Tiling window manager")
326 (description "i3 is a tiling X11 window manager that dynamically manages
327 tiled, stacked, and tabbed window layouts.
329 i3 primarily targets advanced users. Windows are managed manually and organised
330 inside containers, which can be split vertically or horizontally, and optionally
333 i3 uses a plain-text configuration file, and can be extended and controlled from
334 many programming languages.")
335 (license license:bsd-3)))
337 (define-public i3-gaps
338 (package (inherit i3-wm)
344 "https://github.com/Airblader/i3/releases/download/"
345 version "/i3-" version ".tar.bz2"))
348 "0gqcr6s53dk3f2y9h6cna00rnwnh4yymk96li7lbym3d84cxjzrs"))))
349 (home-page "https://github.com/Airblader/i3")
350 (synopsis "Tiling window manager with gaps")
351 (description "i3-gaps is a fork of i3wm, a tiling window manager
352 for X11. It is kept up to date with upstream, adding a few additional
353 features such as gaps between windows.
355 i3 is a tiling X11 window manager that dynamically manages tiled, stacked,
356 and tabbed window layouts.
358 i3 primarily targets advanced users. Windows are managed manually and
359 organised inside containers, which can be split vertically or horizontally,
360 and optionally resized.
362 i3 uses a plain-text configuration file, and can be extended and controlled
363 from many programming languages.")
364 (license license:bsd-3)))
366 (define-public i3lock
372 (uri (string-append "https://i3wm.org/i3lock/i3lock-"
376 "015dn534m7cxjvqdncpvaq9p8b2r4w5hp1yanbdy2abmhbcc7a7j"))))
377 (build-system gnu-build-system)
379 `(("pkg-config" ,pkg-config)))
383 ("linux-pam" ,linux-pam)
385 ("libxkbcommon" ,libxkbcommon)
386 ("xcb-util" ,xcb-util)
387 ("xcb-util-image" ,xcb-util-image)
388 ("xcb-util-xrm" ,xcb-util-xrm)))
389 (home-page "https://i3wm.org/i3lock/")
390 (synopsis "Lightweight screen locker")
392 "i3lock is a simple X11 screen locker developed alongside the i3 project.
393 Despite the name it should work with any X11 window manager.")
394 (license license:bsd-3)))
396 (define-public i3blocks
403 (url "https://github.com/vivien/i3blocks.git")
407 "0v8mwnm8qzpv6xnqvrk43s4b9iyld4naqzbaxk4ldq1qkhai0wsv"))
408 (file-name (git-file-name name version))))
409 (build-system gnu-build-system)
411 `(("autoconf" ,autoconf)
412 ("automake" ,automake)
413 ("pkg-config" ,pkg-config)))
414 (home-page "https://github.com/vivien/i3blocks")
415 (synopsis "Minimalist scheduler for status bar scripts")
416 (description "i3blocks executes your command lines and generates a
417 status line from their output. The generated line is meant to be displayed by
418 the i3 window manager through its i3bar component, as an alternative to
420 (license license:gpl3+)))
422 (define-public perl-anyevent-i3
424 (name "perl-anyevent-i3")
428 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTPLBG/"
429 "AnyEvent-I3-" version ".tar.gz"))
432 "0qvd9bq16jyy7v3ma82qcnvz9j503bw0mh7h55gkjf7ir62ck0jk"))))
433 (build-system perl-build-system)
435 `(("perl-anyevent" ,perl-anyevent)
436 ("perl-json-xs" ,perl-json-xs)))
437 (home-page "https://metacpan.org/release/AnyEvent-I3")
439 "Communicate with the i3 window manager through perl")
441 "This module connects to the i3 window manager using the UNIX socket
442 based IPC interface it provides (if enabled in the configuration file).
443 You can then subscribe to events or send messages and receive their replies.")
444 ;; Can be used with either license.
445 (license (list license:gpl3+ license:perl-license))))
447 (define-public python-i3-py
449 (name "python-i3-py")
453 ;; The latest release is not tagged in Git nor has an entry in PyPi,
454 ;; but there is still a clear commit for it, and it's been the last one
458 (url "https://github.com/ziberna/i3-py.git")
459 (commit "27f88a616e9ecc340e7d041d3d00782f8a1964c1")))
462 "1nm719dc2xqlll7vj4c4m7mpjb27lpn3bg3c66gajvnrz2x1nmxs"))
463 (file-name (string-append name "-" version "-checkout"))))
464 (build-system python-build-system)
466 `(#:tests? #f ; no tests yet
467 #:phases (modify-phases %standard-phases
468 (add-after 'install 'install-doc
469 ;; Copy readme file to documentation directory.
470 (lambda* (#:key outputs #:allow-other-keys)
471 (let ((doc (string-append (assoc-ref outputs "out")
472 "/share/doc/" ,name)))
473 (install-file "README.md" doc)
474 ;; Avoid unspecified return value.
478 (home-page "https://github.com/ziberna/i3-py")
479 (synopsis "Python interface to the i3 window manager")
480 (description "This package allows you to interact from a Python program
481 with the i3 window manager via its IPC socket. It can send commands and other
482 kinds of messages to i3, select the affected containers, filter results and
483 subscribe to events.")
484 (license license:gpl3+)))
486 (define-public python2-i3-py
487 (package-with-python2 python-i3-py))
489 (define-public quickswitch-i3
490 (let ((commit "ed692b1e8f43b95bd907ced26238ce8ccb2ed28f")
491 (revision "1")) ; Guix package revision
493 (name "quickswitch-i3")
494 (version (string-append "2.2-" revision "."
495 (string-take commit 7)))
498 ;; The latest commit is a few years old and just a couple commits
499 ;; after the last tagged release, so we use that latest commit
500 ;; instead of the release.
503 (url "https://github.com/proxypoke/quickswitch-for-i3.git")
507 "0447077sama80jcdg5p64zjsvafmz5rbdrirhm1adcdjhkh6iqc5"))
508 (patches (search-patches "quickswitch-fix-dmenu-check.patch"))
509 (file-name (string-append name "-" version "-checkout"))))
510 (build-system python-build-system)
512 `(#:tests? #f ; no tests yet
513 #:phases (modify-phases %standard-phases
514 (add-after 'install 'install-doc
515 ;; Copy readme file to documentation directory.
516 (lambda* (#:key outputs #:allow-other-keys)
517 (let ((doc (string-append (assoc-ref outputs "out")
518 "/share/doc/" ,name)))
519 (install-file "README.rst" doc)
520 ;; Avoid unspecified return value.
523 `(("python-i3-py" ,python-i3-py)
525 (home-page "https://github.com/proxypoke/quickswitch-for-i3")
526 (synopsis "Quickly change to and locate windows in the i3 window manager")
528 "This utility for the i3 window manager allows you to quickly switch to
529 and locate windows on all your workspaces, using an interactive dmenu
531 (license license:wtfpl2))))
533 (define-public i3lock-color
535 (name "i3lock-color")
541 (url "https://github.com/PandorasFox/i3lock-color.git")
543 (file-name (git-file-name name version))
545 (base32 "08fhnchf187b73h52xgzb86g6byzxz085zs9galsvl687g5zxk34"))))
546 (build-system gnu-build-system)
548 `(#:tests? #f)) ; no tests included
552 ("libjpeg" ,libjpeg-turbo)
554 ("libxkbcommon" ,libxkbcommon)
555 ("linux-pam" ,linux-pam)
556 ("xcb-util" ,xcb-util)
557 ("xcb-util-image" ,xcb-util-image)
558 ("xcb-util-xrm" ,xcb-util-xrm)))
560 `(("autoconf" ,autoconf)
561 ("automake" ,automake)
562 ("pkg-config" ,pkg-config)))
563 (home-page "https://github.com/PandorasFox/i3lock-color")
564 (synopsis "Screen locker with color configuration support")
566 "i3lock-color is a simpler X11 screen locker derived from i3lock.
570 @item forking process, the locked screen is preserved when you suspend to RAM;
571 @item specify background color or image to be displayed in the lock screen;
572 @item many additional color options.
574 (license license:bsd-3)))
576 (define-public i3lock-fancy
578 (name "i3lock-fancy")
584 (url "https://github.com/meskarune/i3lock-fancy.git")
586 (file-name (git-file-name name version))
588 (base32 "11g2kkim33ra38d1m897sq1ifajw17iyw9mr7sg1q8i2ibl4lfsi"))))
589 (build-system gnu-build-system)
591 `(#:tests? #f ; no tests included
593 (modify-phases %standard-phases
595 (lambda* (#:key inputs outputs #:allow-other-keys)
596 (let* ((out (assoc-ref outputs "out"))
597 (icons (string-append out "/share/i3lock-fancy/icons/"))
598 (wmctrl (string-append (assoc-ref inputs "wmctrl")
600 (mconvert (string-append (assoc-ref inputs "imagemagick")
602 (mimport (string-append (assoc-ref inputs "imagemagick")
604 (awk (string-append (assoc-ref inputs "gawk")
608 (("$(which wmctrl)") wmctrl)
609 (("convert") mconvert)
610 (("shot=\\(import") (string-append "shot=\(" mimport))
611 (("awk -F") (string-append awk " -F"))
613 (("\\$scriptpath/icons/") icons))
617 (lambda* (#:key inputs outputs #:allow-other-keys)
618 (let* ((out (assoc-ref outputs "out"))
619 (bin (string-append out "/bin"))
620 (icons (string-append out "/share/i3lock-fancy/icons/")))
622 (install-file "lock" bin)
623 (rename-file (string-append bin "/lock")
624 (string-append bin "/i3lock-fancy"))
625 (copy-recursively "icons" icons)
628 `(("imagemagick" ,imagemagick)
631 (home-page "https://github.com/meskarune/i3lock-fancy")
632 (synopsis "Screen locker with screenshot function")
634 "@code{i3lock-fancy} is a Bash script that takes a screenshot of
635 the desktop, blurs the background and adds a lock icon and text.
636 It requires @code{i3lock-color} or @code{i3lock} and can optionally
637 be passed any screenshot util like @code{scrot}.
638 This screen locker can be used with any window manager or
639 desktop environment.")
640 (license license:expat)))
642 (define-public xmonad
646 (synopsis "Tiling window manager")
649 (uri (string-append "mirror://hackage/package/xmonad/"
650 "xmonad-" version ".tar.gz"))
653 "0a7rh21k9y6g8fwkggxdxjns2grvvsd5hi2ls4klmqz5xvk4hyaa"))))
654 (build-system haskell-build-system)
656 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
657 ("ghc-quickcheck" ,ghc-quickcheck)
658 ("ghc-semigroups" ,ghc-semigroups)
659 ("ghc-setlocale" ,ghc-setlocale)
660 ("ghc-utf8-string" ,ghc-utf8-string)
661 ("ghc-x11" ,ghc-x11)))
664 (modify-phases %standard-phases
666 'install 'install-xsession
668 (let* ((xsessions (string-append %output "/share/xsessions")))
670 (call-with-output-file
671 (string-append xsessions "/xmonad.desktop")
678 Type=Application~%" ,name ,synopsis %output)))))))))
679 (home-page "https://xmonad.org")
681 "Xmonad is a tiling window manager for X. Windows are arranged
682 automatically to tile the screen without gaps or overlap, maximising screen
683 use. All features of the window manager are accessible from the keyboard: a
684 mouse is strictly optional. Xmonad is written and extensible in Haskell.
685 Custom layout algorithms, and other extensions, may be written by the user in
686 config files. Layouts are applied dynamically, and different layouts may be
687 used on each workspace. Xinerama is fully supported, allowing windows to be
688 tiled on several screens.")
689 (license license:bsd-3)))
691 (define-public xmobar
697 (uri (string-append "mirror://hackage/package/xmobar/"
698 "xmobar-" version ".tar.gz"))
701 "0x2ki3v0pmhl4bva3qi1xx21axayc4sx1nkzhmk2ap4l0cj52jrd"))))
702 (build-system haskell-build-system)
704 `(("ghc-hspec" ,ghc-hspec)
705 ("hspec-discover" ,hspec-discover)))
707 `(("ghc-alsa-core" ,ghc-alsa-core)
708 ("ghc-alsa-mixer" ,ghc-alsa-mixer)
709 ("ghc-dbus" ,ghc-dbus)
710 ("ghc-hinotify" ,ghc-hinotify)
711 ("ghc-http" ,ghc-http)
712 ("ghc-http-conduit" ,ghc-http-conduit)
713 ("ghc-http-types" ,ghc-http-types)
714 ("ghc-iwlib" ,ghc-iwlib)
715 ("ghc-libmpd" ,ghc-libmpd)
716 ("ghc-old-locale" ,ghc-old-locale)
717 ("ghc-parsec-numbers" ,ghc-parsec-numbers)
718 ("ghc-regex-compat" ,ghc-regex-compat)
719 ("ghc-temporary" ,ghc-temporary)
720 ("ghc-timezone-olson" ,ghc-timezone-olson)
722 ("ghc-x11-xft" ,ghc-x11-xft)
725 `(#:configure-flags (list "--flags=all_extensions")
727 (modify-phases %standard-phases
728 (add-before 'build 'patch-test-shebang
729 (lambda* (#:key inputs #:allow-other-keys)
730 (substitute* "test/Xmobar/Plugins/Monitors/AlsaSpec.hs"
731 (("/bin/bash") (which "bash")))
733 (home-page "http://xmobar.org")
734 (synopsis "Minimalistic text based status bar")
736 "@code{xmobar} is a lightweight, text-based, status bar written in
737 Haskell. It was originally designed to be used together with Xmonad, but it
738 is also usable with any other window manager. While xmobar is written in
739 Haskell, no knowledge of the language is required to install and use it.")
740 (license license:bsd-3)))
742 (define-public ghc-xmonad-contrib
744 (name "ghc-xmonad-contrib")
749 (uri (string-append "mirror://hackage/package/xmonad-contrib/"
750 "xmonad-contrib-" version ".tar.gz"))
752 (base32 "1pddgkvnbww28wykncc7j0yb0lv15bk7xnnhdcbrwkxzw66w6wmd"))))
753 (build-system haskell-build-system)
755 `(("ghc-old-time" ,ghc-old-time)
756 ("ghc-random" ,ghc-random)
757 ("ghc-utf8-string" ,ghc-utf8-string)
758 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
759 ("ghc-semigroups" ,ghc-semigroups)
761 ("ghc-x11-xft" ,ghc-x11-xft)
763 (home-page "https://xmonad.org")
764 (synopsis "Third party extensions for xmonad")
766 "Third party tiling algorithms, configurations, and scripts to Xmonad, a
767 tiling window manager for X.")
768 (license license:bsd-3)))
770 (define-public evilwm
777 (uri (string-append "http://www.6809.org.uk/evilwm/evilwm-"
781 "0ak0yajzk3v4dg5wmaghv6acf7v02a4iw8qxmq5yw5ard8lrqn3r"))
782 (patches (search-patches "evilwm-lost-focus-bug.patch"))))
783 (build-system gnu-build-system)
787 ("libxrandr" ,libxrandr)))
789 `(#:modules ((srfi srfi-26)
791 (guix build gnu-build-system))
792 #:make-flags (let ((inputs (map (cut assoc-ref %build-inputs <>)
793 '("libx11" "libxext" "libxrandr")))
794 (join (lambda (proc strs)
795 (string-join (map proc strs) " ")))
796 (dash-I (cut string-append "-I" <> "/include"))
797 (dash-L (cut string-append "-L" <> "/lib")))
798 `("desktopfilesdir=$(prefix)/share/xsessions"
799 ,(string-append "prefix=" (assoc-ref %outputs "out"))
800 ,(string-append "CPPFLAGS=" (join dash-I inputs))
801 ,(string-append "LDFLAGS=" (join dash-L inputs))))
802 #:tests? #f ;no tests
803 #:phases (modify-phases %standard-phases
804 (delete 'configure)))) ;no configure script
805 (home-page "http://www.6809.org.uk/evilwm/")
806 (synopsis "Minimalist window manager for the X Window System")
808 "evilwm is a minimalist window manager based on aewm, extended to feature
809 many keyboard controls with repositioning and maximize toggles, solid window
810 drags, snap-to-border support, and virtual desktops.")
811 (license (license:x11-style "file:///README"))))
813 (define-public fluxbox
817 (synopsis "Small and fast window manager")
820 (uri (string-append "mirror://sourceforge/fluxbox/fluxbox/"
821 version "/fluxbox-" version ".tar.xz"))
824 "1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w"))))
825 (build-system gnu-build-system)
827 `(#:make-flags '("CPPFLAGS=-U__TIME__") ;ugly, but for reproducibility
829 (modify-phases %standard-phases
830 (add-after 'install 'install-vim-files
831 (lambda* (#:key outputs #:allow-other-keys)
832 (let* ((out (assoc-ref outputs "out"))
833 (syntax (string-append out "/share/vim/vimfiles/syntax")))
834 (copy-recursively "3rd/vim/vim/syntax" syntax)
836 (add-after 'install 'install-xsession
837 (lambda* (#:key outputs #:allow-other-keys)
838 (let* ((out (assoc-ref outputs "out"))
839 (xsessions (string-append out "/share/xsessions")))
841 (call-with-output-file
842 (string-append xsessions "/fluxbox.desktop")
848 Exec=~a/bin/startfluxbox~@
849 Type=Application~%" ,name ,synopsis out)))
852 `(("pkg-config" ,pkg-config)))
854 `(("freetype" ,freetype)
860 ("libxinerama" ,libxinerama)
862 ("libxrandr" ,libxrandr)
863 ("libxrender" ,libxrender)))
864 (description "Fluxbox is a window manager. It is light on resources
865 and easy to handle yet full of features to make an easy and fast desktop
867 (home-page "http://fluxbox.org/")
868 (license license:expat)))
870 (define-public awesome
878 "https://github.com/awesomeWM/awesome-releases/raw/master/"
879 "awesome-" version ".tar.xz"))
881 (base32 "0lqpw401mkkmp9wgbvrmm45bqq2j9357l4irwdqv6l1305pls9kq"))
882 (modules '((guix build utils)
886 ;; Remove non-reproducible timestamp and use the date of
887 ;; the source file instead.
888 (substitute* "common/version.c"
889 (("__DATE__ \" \" __TIME__")
892 (make-time time-utc 0 (stat:mtime (stat "awesome.c"))))
896 (search-patches "awesome-reproducible-png.patch"))))
897 (build-system cmake-build-system)
899 `(("asciidoc" ,asciidoc)
900 ("docbook-xsl" ,docbook-xsl)
903 ("imagemagick" ,imagemagick)
904 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
905 ("lua-ldoc" ,lua-ldoc)
906 ("pkg-config" ,pkg-config)
911 ("gdk-pixbuf" ,gdk-pixbuf)
913 ("gobject-introspection" ,gobject-introspection)
917 ("libxcursor" ,libxcursor)
918 ("libxdg-basedir" ,libxdg-basedir)
919 ("libxkbcommon" ,libxkbcommon)
923 ("startup-notification" ,startup-notification)
924 ("xcb-util" ,xcb-util)
925 ("xcb-util-cursor" ,xcb-util-cursor)
926 ("xcb-util-image" ,xcb-util-image)
927 ("xcb-util-keysyms" ,xcb-util-keysyms)
928 ("xcb-util-renderutil" ,xcb-util-renderutil)
929 ("xcb-util-xrm" ,xcb-util-xrm)
930 ("xcb-util-wm" ,xcb-util-wm)))
932 `(#:modules ((guix build cmake-build-system)
935 ;; Let compression happen in our 'compress-documentation' phase
936 ;; so that '--no-name' is used, which removes timestamps from
939 '("-DCOMPRESS_MANPAGES=off")
940 ;; Building awesome in its source directory is no longer
944 (modify-phases %standard-phases
945 (add-before 'configure 'set-paths
946 (lambda* (#:key inputs #:allow-other-keys)
947 ;; The build process needs to load Cairo dynamically.
948 (let* ((cairo (string-append (assoc-ref inputs "cairo") "/lib"))
949 (lua-version ,(version-major+minor (package-version lua)))
951 (filter (match-lambda
952 ((label . _) (string-prefix? "lua-" label)))
959 dir "/share/lua/" lua-version "/?.lua;"
960 dir "/share/lua/" lua-version "/?/?.lua")))
968 dir "/lib/lua/" lua-version "/?.so;"
969 dir "/lib/lua/" lua-version "/?/?.so")))
972 (setenv "LD_LIBRARY_PATH" cairo)
973 (setenv "LUA_PATH" (string-append "?.lua;" lua-path))
974 (setenv "LUA_CPATH" lua-cpath)
978 ;; There aren't any tests, so just make sure the binary
979 ;; gets built and can be run successfully.
980 (invoke "../build/awesome" "-v")))
981 (add-after 'install 'patch-session-file
982 (lambda* (#:key outputs #:allow-other-keys)
983 (let* ((out (assoc-ref outputs "out"))
984 (awesome (string-append out "/bin/awesome")))
985 (substitute* (string-append out "/share/xsessions/awesome.desktop")
986 (("Exec=awesome") (string-append "Exec=" awesome)))
988 (add-after 'install 'wrap
989 (lambda* (#:key inputs outputs #:allow-other-keys)
990 (let* ((awesome (assoc-ref outputs "out"))
991 (cairo (string-append (assoc-ref inputs "cairo") "/lib"))
992 (lua-version ,(version-major+minor (package-version lua)))
993 (lua-lgi (assoc-ref inputs "lua-lgi")))
994 (wrap-program (string-append awesome "/bin/awesome")
996 (,(format #f "~a/share/lua/~a/?.lua" lua-lgi lua-version)))
998 (,(format #f "~a/lib/lua/~a/?.so" lua-lgi lua-version)))
999 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))
1000 `("LD_LIBRARY_PATH" suffix (,cairo)))
1002 (home-page "https://awesomewm.org/")
1003 (synopsis "Highly configurable window manager")
1005 "Awesome has been designed as a framework window manager. It is fast, small,
1006 dynamic and extensible using the Lua programming language.")
1007 (license license:gpl2+)))
1009 (define-public menumaker
1016 (uri (string-append "mirror://sourceforge/menumaker/"
1017 "menumaker-" version ".tar.gz"))
1019 (base32 "0dprndnhwm7b803zkp4pisiq06ic9iv8vr42in5is47jmvdim0wx"))))
1020 (build-system gnu-build-system)
1022 `(("python" ,python)))
1023 (synopsis "Heuristics-driven menu generator")
1025 "MenuMaker is a menu generation utility for a number of X window
1026 managers and desktop environments. It is capable of finding lots of
1027 installed programs and generating a root menu consistent across all
1028 supported window managers, so one will get (almost) the same menu in
1029 all of them. Currently supported window managers include:
1041 (home-page "http://menumaker.sourceforge.net/")
1042 (license license:bsd-2)))
1044 (define-public keybinder
1051 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1052 "/releases/download/v" version "/keybinder-"
1054 (file-name (string-append name "-" version ".tar.gz"))
1057 "0h52hj3ay8mfhwvmfxbxlfyq74hifdk8wxgxp7fr4iy6189hg7w7"))))
1058 (build-system gnu-build-system)
1060 `(("python-2" ,python-2)
1061 ("gtk+-2" ,gtk+-2)))
1063 `(("python2-pygtk" ,python2-pygtk)
1064 ("gtk-doc" ,gtk-doc)
1065 ("pkg-config" ,pkg-config)))
1066 (synopsis "Library for registering global keyboard shortcuts")
1068 "Keybinder is a library for registering global keyboard shortcuts.
1069 Keybinder works with GTK-based applications using the X Window System.")
1070 (home-page "https://github.com/kupferlauncher/keybinder")
1071 (license license:gpl2+)))
1073 (define-public keybinder-3.0
1075 (name "keybinder-3.0")
1080 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1081 "/releases/download/" name "-v" version "/" name "-"
1083 (file-name (string-append name "-" version ".tar.gz"))
1086 "0830ihwnalw59pp1xzrp37dn58n8vwb8zasnm4a1h81v3x7dxqz6"))))
1087 (build-system gnu-build-system)
1090 ("gobject-introspection" ,gobject-introspection)))
1092 `(("gtk-doc" ,gtk-doc)
1093 ("pkg-config" ,pkg-config)))
1094 (synopsis "Library for registering global keyboard shortcuts, Gtk3 version")
1096 "Keybinder is a library for registering global keyboard shortcuts.
1097 Keybinder works with GTK-based applications using the X Window System.")
1098 (home-page "https://github.com/kupferlauncher/keybinder")
1099 (license license:x11)))
1101 (define-public spectrwm
1109 (url "https://github.com/conformal/spectrwm.git")
1111 (string-append "SPECTRWM_"
1112 (string-join (string-split version #\.) "_")))))
1113 (file-name (git-file-name name version))
1115 (base32 "1dfqy5f0s1nv6rqkz9lj006vypmp4rwxd5vczfk3ndzqgnh19kw6"))))
1116 (build-system gnu-build-system)
1118 `(#:make-flags (let ((pkg-config (lambda (flag)
1120 "$(shell pkg-config " flag " "
1121 "xft fontconfig x11 libpng)"))))
1124 (string-append "PREFIX=" %output)
1125 (string-append "INCS=-I. " (pkg-config "--cflags"))
1126 (string-append "LIBS=" (pkg-config "--libs") " -lm")))
1127 #:tests? #f ;no test suite
1129 (modify-phases %standard-phases
1130 (add-before 'build 'change-dir
1132 (chdir "linux") #t))
1133 (add-after 'change-dir 'patch-makefile
1135 (substitute* "Makefile"
1137 (delete 'configure)))) ;no 'configure' exists
1139 `(("freetype" ,freetype)
1140 ("fontconfig" ,fontconfig)
1142 ("libxcursor" ,libxcursor)
1143 ("libxrandr" ,libxrandr)
1144 ("libxtst" ,libxtst)
1146 ("xcb-util" ,xcb-util)
1147 ("xcb-util-wm" ,xcb-util-wm)
1148 ("xcb-util-keysyms" ,xcb-util-keysyms)))
1151 ("pkg-config" ,pkg-config)))
1152 (synopsis "Minimalistic automatic tiling window manager")
1154 "Spectrwm is a small dynamic tiling and reparenting window manager for X11.
1155 It is inspired by Xmonad and dwm. Its major features include:
1158 @item Navigation anywhere on all screens with either the keyboard or mouse
1159 @item Customizable status bar
1160 @item Restartable without losing state
1161 @item Quick launch menu
1162 @item Many screen layouts possible with a few simple key strokes
1163 @item Move/resize floating windows
1164 @item Extended Window Manager Hints (@dfn{EWMH}) support
1165 @item Configurable tiling
1166 @item Adjustable tile gap allows for a true one pixel border
1167 @item Customizable colors and border width
1169 (home-page "https://github.com/conformal/spectrwm")
1170 (license license:isc)))
1179 (uri (string-append "http://chneukirchen.org/releases/cwm-"
1183 "17pdp9cfgh2n3n3905l4rl9qk7b722i8psnarhlc2h98qzx7zmac"))))
1184 (build-system gnu-build-system)
1186 `(#:make-flags (list "CC=gcc"
1187 (string-append "PREFIX=" %output))
1190 (modify-phases %standard-phases
1192 (add-after 'build 'install-xsession
1193 (lambda* (#:key outputs #:allow-other-keys)
1194 ;; Add a .desktop file to xsessions.
1195 (let* ((output (assoc-ref outputs "out"))
1196 (xsessions (string-append output "/share/xsessions")))
1198 (with-output-to-file
1199 (string-append xsessions "/cwm.desktop")
1204 Comment=OpenBSD Calm Window Manager fork~@
1206 TryExec=~@*~a/bin/cwm~@
1212 `(("libxft" ,libxft)
1213 ("libxrandr" ,libxrandr)
1214 ("libxinerama" ,libxinerama)))
1216 `(("pkg-config" ,pkg-config)
1218 (home-page "https://github.com/chneukirchen/cwm")
1219 (synopsis "OpenBSD fork of the calmwm window manager")
1220 (description "Cwm is a stacking window manager for X11. It is an OpenBSD
1221 project derived from the original Calm Window Manager.")
1222 (license license:isc)))
1224 (define-public nitrogen
1230 (uri (string-append "http://github.com/l3ib/nitrogen/"
1231 "releases/download/" version "/"
1232 name "-" version ".tar.gz"))
1235 "0zc3fl1mbhq0iyndy4ysmy8vv5c7xwf54rbgamzfhfvsgdq160pl"))))
1236 (build-system gnu-build-system)
1241 ("glibmm" ,glibmm)))
1243 `(("pkg-config" ,pkg-config)))
1244 (home-page "http://projects.l3ib.org/nitrogen/")
1245 (synopsis "Background browser and setter for X windows")
1247 "This package is a background browser and setter for X windows. It's
1251 @item Multihead and Xinerama aware
1252 @item Recall mode to used via startup script
1253 @item Uses freedesktop.org standard for thumbnails
1254 @item Can set GNOME background
1255 @item Command lie set modes for script use
1256 @item Inotify monitoring of browse directory
1257 @item Lazy loading of thumbnails - conserves memory
1258 @item \"Automatic\" set mode - determines best mode to set an image based on
1260 @item Display preview images in a tiled icon layout
1262 (license license:gpl2+)))
1264 (define-public polybar
1271 (uri (string-append "https://github.com/polybar/polybar/releases/"
1272 "download/" version "/polybar-" version ".tar"))
1274 (base32 "0fmnviz4b01aw50nkv4yibm8ykc5ff860ynw3xb1ymlsjrvwj8jd"))))
1275 (build-system cmake-build-system)
1277 ;; Test is disabled because it requires downloading googletest from the
1281 `(("alsa-lib" ,alsa-lib)
1284 ("jsoncpp" ,jsoncpp)
1285 ("libmpdclient" ,libmpdclient)
1288 ("pulseaudio" ,pulseaudio)
1289 ("xcb-proto" ,xcb-proto)
1290 ("xcb-util" ,xcb-util)
1291 ("xcb-util-cursor" ,xcb-util-cursor)
1292 ("xcb-util-image" ,xcb-util-image)
1293 ("xcb-util-wm" ,xcb-util-wm)
1294 ("xcb-util-xrm" ,xcb-util-xrm)))
1296 `(("pkg-config" ,pkg-config)
1297 ("python-sphinx" ,python-sphinx) ; for the manual
1298 ;; XXX: "python" input must be located after "python-2", or the package
1299 ;; fails to build with "missing required python module: xcbgen".
1300 ("python-2" ,python-2) ; lib/xpp depends on python 2
1301 ("python" ,python))) ; xcb-proto depends on python 3
1302 (home-page "https://polybar.github.io/")
1303 (synopsis "Fast and easy-to-use status bar")
1304 (description "Polybar aims to help users build beautiful and highly
1305 customizable status bars for their desktop environment. It has built-in
1306 functionality to display information about the most commonly used services.")
1307 (license license:expat)))
1309 (define-public wlroots
1317 (url "https://github.com/swaywm/wlroots.git")
1319 (file-name (git-file-name name version))
1321 (base32 "0jzxa6psbc7ddxli7rbfqxmv1svxnis51l1vch4hb9fdixqm284a"))))
1322 (build-system meson-build-system)
1324 `(#:configure-flags '("-Dlogind-provider=elogind")
1326 (modify-phases %standard-phases
1327 (add-before 'configure 'hardcode-paths
1328 (lambda* (#:key inputs #:allow-other-keys)
1329 (substitute* "xwayland/xwayland.c"
1330 (("Xwayland") (string-append (assoc-ref inputs
1331 "xorg-server-xwayland")
1334 (inputs `(("elogind" ,elogind)
1336 ("libinput" ,libinput)
1337 ("libxkbcommon" ,libxkbcommon)
1340 ("wayland" ,wayland)
1341 ("xorg-server-xwayland" ,xorg-server-xwayland)))
1342 (native-inputs `(("ffmpeg" ,ffmpeg)
1345 ("pkg-config" ,pkg-config)
1346 ("wayland-protocols" ,wayland-protocols)))
1347 (home-page "https://github.com/swaywm/wlroots")
1348 (synopsis "Pluggable, composable, unopinionated modules for building a
1349 Wayland compositor")
1350 (description "wlroots is a set of pluggable, composable, unopinionated
1351 modules for building a Wayland compositor.")
1352 (license license:expat))) ; MIT license
1362 (url "https://github.com/swaywm/sway.git")
1364 (file-name (git-file-name name version))
1366 (base32 "0vch2zm5afc76ia78p3vg71zr2fyda67l9hd2h0x1jq3mnvfbxnd"))))
1367 (build-system meson-build-system)
1370 (modify-phases %standard-phases
1371 (add-before 'configure 'hardcode-paths
1372 (lambda* (#:key inputs #:allow-other-keys)
1373 ;; Hardcode path to swaybg.
1374 (substitute* "sway/config.c"
1375 (("strdup..swaybg..")
1376 (string-append "strdup(\"" (assoc-ref inputs "swaybg")
1378 ;; Hardcode path to scdoc.
1379 (substitute* "meson.build"
1380 (("scdoc.get_pkgconfig_variable..scdoc..")
1381 (string-append "'" (assoc-ref inputs "scdoc")
1384 (inputs `(("cairo" ,cairo)
1385 ("elogind" ,elogind)
1386 ("gdk-pixbuf" ,gdk-pixbuf)
1388 ("libevdev" ,libevdev)
1389 ("libinput" ,libinput)
1390 ("libxkbcommon" ,libxkbcommon)
1393 ("wayland" ,wayland)
1394 ("wlroots" ,wlroots)))
1395 (native-inputs `(("libcap" ,libcap)
1396 ("linux-pam" ,linux-pam)
1398 ("pkg-config" ,pkg-config)
1400 ("wayland-protocols" ,wayland-protocols)))
1401 (home-page "https://github.com/swaywm/sway")
1402 (synopsis "Wayland compositor compatible with i3")
1403 (description "Sway is a i3-compatible Wayland compositor.")
1404 (license license:expat))) ; MIT license
1406 (define-public swayidle
1414 (url "https://github.com/swaywm/swayidle.git")
1416 (file-name (git-file-name name version))
1418 (base32 "05qi96j58xqxjiighay1d39rfanxcpn6vlynj23mb5dymxvlaq9n"))))
1419 (build-system meson-build-system)
1421 `(#:configure-flags '("-Dlogind-provider=elogind")))
1422 (inputs `(("elogind" ,elogind)
1423 ("wayland" ,wayland)))
1424 (native-inputs `(("pkg-config" ,pkg-config)
1426 ("wayland-protocols" ,wayland-protocols)))
1427 (home-page "https://github.com/swaywm/sway")
1428 (synopsis "Idle management daemon for Wayland compositors")
1429 (description "Swayidle is a idle management daemon for Wayland compositors.")
1430 (license license:expat))) ; MIT license
1432 (define-public swaylock
1440 (url "https://github.com/swaywm/swaylock.git")
1442 (file-name (git-file-name name version))
1444 (base32 "1ii9ql1mxkk2z69dv6bg1x22nl3a46iww764wqjiv78x08xpk982"))))
1445 (build-system meson-build-system)
1446 (inputs `(("cairo" ,cairo)
1447 ("gdk-pixbuf" ,gdk-pixbuf)
1448 ("libxkbcommon" ,libxkbcommon)
1449 ;("linux-pam" ,linux-pam) ; FIXME: Doesn't work.
1450 ("wayland" ,wayland)))
1451 (native-inputs `(("pango" ,pango)
1452 ("pkg-config" ,pkg-config)
1454 ("wayland-protocols" ,wayland-protocols)))
1455 (home-page "https://github.com/swaywm/sway")
1456 (synopsis "Screen locking utility for Wayland compositors")
1457 (description "Swaylock is a screen locking utility for Wayland compositors.")
1458 (license license:expat))) ; MIT license
1460 (define-public swaybg
1468 (url "https://github.com/swaywm/swaybg.git")
1470 (file-name (git-file-name name version))
1472 (base32 "1lmqz5bmig90gq2m7lwf02d2g7z4hzf8fhqz78c8vk92c6p4xwbc"))))
1473 (build-system meson-build-system)
1474 (inputs `(("cairo" ,cairo)
1475 ("gdk-pixbuf" ,gdk-pixbuf)
1476 ("wayland" ,wayland)))
1477 (native-inputs `(("pkg-config" ,pkg-config)
1479 ("wayland-protocols" ,wayland-protocols)))
1480 (home-page "https://github.com/swaywm/sway")
1481 (synopsis "Screen wallpaper utility for Wayland compositors")
1482 (description "Swaybg is a wallpaper utility for Wayland compositors.")
1483 (license license:expat))) ; MIT license
1485 (define-public waybar
1493 (url "https://github.com/Alexays/Waybar.git")
1495 (file-name (git-file-name name version))
1497 (base32 "0s8ck7qxka0l91ayma6amp9sc8cidi43byqgzcavi3a6id983r1z"))))
1498 (build-system meson-build-system)
1501 (list (string-append "-Dout=" (assoc-ref %outputs "out")))))
1502 (inputs `(("fmt" ,fmt)
1504 ("jsoncpp" ,jsoncpp)
1505 ("libdbusmenu" ,libdbusmenu)
1506 ("libinput" ,libinput)
1507 ("libmpdclent" ,libmpdclient)
1509 ("pulseaudio" ,pulseaudio)
1511 ("wayland" ,wayland)))
1512 (native-inputs `(("glib:bin" ,glib "bin")
1513 ("pkg-config" ,pkg-config)
1514 ("wayland-protocols" ,wayland-protocols)))
1515 (home-page "https://github.com/Alexays/Waybar")
1516 (synopsis "Wayland bar for Sway and Wlroots based compositors.")
1517 (description "Waybar is a highly customisable Wayland bar for Sway and
1518 Wlroots based compositors.")
1519 (license license:expat))) ; MIT license
1529 (url "https://github.com/emersion/mako.git")
1530 (commit (string-append "v" version))))
1531 (file-name (git-file-name name version))
1533 (base32 "11ymiq6cr2ma0iva1mqybn3j6k73bsc6lv6pcbdq7hkhd4f9b7j9"))))
1534 (build-system meson-build-system)
1535 (inputs `(("cairo" ,cairo)
1536 ("elogind" ,elogind)
1537 ("gdk-pixbuf" ,gdk-pixbuf)
1539 ("wayland" ,wayland)))
1540 (native-inputs `(("pkg-config" ,pkg-config)
1542 ("wayland-protocols" ,wayland-protocols)))
1543 (home-page "https://wayland.emersion.fr/mako")
1544 (synopsis "Lightweight Wayland notification daemon")
1545 (description "Mako is a lightweight notification daemon for Wayland
1546 compositors that support the layer-shell protocol.")
1547 (license license:expat))) ; MIT license
1549 (define-public stumpwm
1557 (url "https://github.com/stumpwm/stumpwm.git")
1559 (file-name (git-file-name "stumpwm" version))
1561 (base32 "1ha8803ll7472kqxsy2xz0v5d4sv8apmc9z631d67m31q0z1m9rz"))))
1562 (build-system asdf-build-system/sbcl)
1563 (native-inputs `(("fiasco" ,sbcl-fiasco)
1564 ("texinfo" ,texinfo)))
1565 (inputs `(("cl-ppcre" ,sbcl-cl-ppcre)
1567 ("alexandria" ,sbcl-alexandria)))
1568 (outputs '("out" "lib"))
1570 '(#:asd-system-name "stumpwm"
1572 (modify-phases %standard-phases
1573 (add-after 'create-symlinks 'build-program
1574 (lambda* (#:key outputs #:allow-other-keys)
1576 (string-append (assoc-ref outputs "out") "/bin/stumpwm")
1578 #:entry-program '((stumpwm:stumpwm) 0))))
1579 (add-after 'build-program 'create-desktop-file
1580 (lambda* (#:key outputs #:allow-other-keys)
1581 (let* ((out (assoc-ref outputs "out"))
1582 (xsessions (string-append out "/share/xsessions")))
1584 (call-with-output-file
1585 (string-append xsessions "/stumpwm.desktop")
1590 Comment=The Stump Window Manager~@
1591 Exec=~a/bin/stumpwm~@
1592 TryExec=~@*~a/bin/stumpwm~@
1597 (add-after 'install 'install-manual
1598 (lambda* (#:key outputs #:allow-other-keys)
1599 ;; The proper way to the manual is bootstrapping a full autotools
1600 ;; build system and running ‘./configure && make stumpwm.info’ to
1601 ;; do some macro substitution. We can get away with much less.
1602 (let* ((out (assoc-ref outputs "out"))
1603 (info (string-append out "/share/info")))
1604 (invoke "makeinfo" "stumpwm.texi.in")
1605 (install-file "stumpwm.info" info)
1607 (synopsis "Window manager written in Common Lisp")
1608 (description "Stumpwm is a window manager written entirely in Common Lisp.
1609 It attempts to be highly customizable while relying entirely on the keyboard
1610 for input. These design decisions reflect the growing popularity of
1611 productive, customizable lisp based systems.")
1612 (home-page "https://github.com/stumpwm/stumpwm")
1613 (license license:gpl2+)
1614 (properties `((cl-source-variant . ,(delay cl-stumpwm))))))
1616 (define-public sbcl-stumpwm
1617 (deprecated-package "sbcl-stumpwm" stumpwm))
1619 (define-public cl-stumpwm
1621 (inherit (sbcl-package->cl-source-package stumpwm))
1622 (name "cl-stumpwm")))
1624 (define-public stumpwm+slynk
1627 (name "stumpwm-with-slynk")
1630 `(("stumpwm" ,stumpwm "lib")
1631 ("slynk" ,sbcl-slynk)))
1633 (substitute-keyword-arguments (package-arguments stumpwm)
1635 `(modify-phases ,phases
1636 (replace 'build-program
1637 (lambda* (#:key inputs outputs #:allow-other-keys)
1638 (let* ((out (assoc-ref outputs "out"))
1639 (program (string-append out "/bin/stumpwm")))
1640 (build-program program outputs
1641 #:entry-program '((stumpwm:stumpwm) 0)
1642 #:dependencies '("stumpwm"
1643 ,@(@@ (gnu packages lisp-xyz) slynk-systems))
1644 #:dependency-prefixes
1645 (map (lambda (input) (assoc-ref inputs input))
1646 '("stumpwm" "slynk")))
1647 ;; Remove unneeded file.
1648 (delete-file (string-append out "/bin/stumpwm-exec.fasl"))
1650 (delete 'copy-source)
1653 (delete 'create-asd-file)
1655 (delete 'create-symlinks)))))))
1657 (define-public sbcl-stumpwm+slynk
1658 (deprecated-package "sbcl-stumpwm-with-slynk" stumpwm+slynk))
1660 (define-public lemonbar
1661 (let ((commit "35183ab81d2128dbb7b6d8e119cc57846bcefdb4")
1665 (version (git-version "1.3" revision commit))
1669 (url "https://github.com/LemonBoy/bar")
1671 (file-name (git-file-name name version))
1674 "1wwqbph392iwz8skaqxb0xpklb1l6yganqz80g4x1fhrnz7idmlh"))))
1675 (build-system gnu-build-system)
1677 '(#:tests? #f ; no test suite
1678 #:make-flags (list "CC=gcc"
1679 (string-append "PREFIX=" %output))
1681 (modify-phases %standard-phases
1682 (delete 'configure))))
1684 `(("libxcb" ,libxcb)))
1687 (home-page "https://github.com/LemonBoy/bar")
1688 (synopsis "Featherweight status bar")
1690 "@code{lemonbar} (formerly known as @code{bar}) is a lightweight
1691 bar entirely based on XCB. Provides full UTF-8 support, basic
1692 formatting, RandR and Xinerama support and EWMH compliance without
1693 wasting your precious memory.")
1694 (license license:x11))))