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 calendar)
70 #:use-module (gnu packages docbook)
71 #:use-module (gnu packages documentation)
72 #:use-module (gnu packages fontutils)
73 #:use-module (gnu packages freedesktop)
74 #:use-module (gnu packages fribidi)
75 #:use-module (gnu packages gawk)
76 #:use-module (gnu packages gl)
77 #:use-module (gnu packages glib)
78 #:use-module (gnu packages gperf)
79 #:use-module (gnu packages gtk)
80 #:use-module (gnu packages haskell-check)
81 #:use-module (gnu packages haskell-web)
82 #:use-module (gnu packages haskell-xyz)
83 #:use-module (gnu packages image)
84 #:use-module (gnu packages imagemagick)
85 #:use-module (gnu packages libevent)
86 #:use-module (gnu packages linux)
87 #:use-module (gnu packages lisp-xyz)
88 #:use-module (gnu packages logging)
89 #:use-module (gnu packages lua)
90 #:use-module (gnu packages m4)
91 #:use-module (gnu packages man)
92 #:use-module (gnu packages maths)
93 #:use-module (gnu packages mpd)
94 #:use-module (gnu packages pcre)
95 #:use-module (gnu packages perl)
96 #:use-module (gnu packages pkg-config)
97 #:use-module (gnu packages pretty-print)
98 #:use-module (gnu packages pulseaudio)
99 #:use-module (gnu packages python)
100 #:use-module (gnu packages serialization)
101 #:use-module (gnu packages sphinx)
102 #:use-module (gnu packages suckless)
103 #:use-module (gnu packages texinfo)
104 #:use-module (gnu packages textutils)
105 #:use-module (gnu packages video)
106 #:use-module (gnu packages web)
107 #:use-module (gnu packages xdisorg)
108 #:use-module (gnu packages xml)
109 #:use-module (gnu packages xorg))
119 (url "https://github.com/baskerville/bspwm.git")
121 (file-name (git-file-name name version))
123 (base32 "1i7crmljk1vra1r6alxvj6lqqailjjcv0llyg7a0gm23rbv4a42g"))))
124 (build-system gnu-build-system)
127 ("libxinerama" ,libxinerama)
129 ("xcb-util" ,xcb-util)
130 ("xcb-util-keysyms" ,xcb-util-keysyms)
131 ("xcb-util-wm" ,xcb-util-wm)))
134 (modify-phases %standard-phases
135 (delete 'configure)) ; no configure script
136 #:tests? #f ; no check target
139 (string-append "PREFIX=" %output))))
140 (home-page "https://github.com/baskerville/bspwm")
141 (synopsis "Tiling window manager based on binary space partitioning")
142 (description "bspwm is a tiling window manager that represents windows as
143 the leaves of a full binary tree.")
144 (license license:bsd-2)))
146 (define-public herbstluftwm
148 (name "herbstluftwm")
153 (uri (string-append "https://herbstluftwm.org/tarballs/herbstluftwm-"
157 "1kc18aj9j3nfz6fj4qxg9s3gg4jvn6kzi3ii24hfm0vqdpy17xnz"))
158 (file-name (string-append "herbstluftwm-" version ".tar.gz"))))
159 (build-system gnu-build-system)
166 ("xsetroot" ,xsetroot)
169 ("libxinerama" ,libxinerama)))
171 `(("pkg-config" ,pkg-config)))
174 (modify-phases %standard-phases
177 (add-after 'install 'install-xsession
178 (lambda* (#:key outputs #:allow-other-keys)
179 (let* ((out (assoc-ref outputs "out"))
180 (xsessions (string-append out "/share/xsessions")))
182 (call-with-output-file
183 (string-append xsessions "/herbstluftwm.desktop")
188 Comment=Manual tiling window manager~@
189 Exec=~a/bin/herbstluftwm~@
190 Type=XSession~%" out)))
194 (let ((out (assoc-ref %outputs "out")))
196 (string-append "PREFIX=''")
197 (string-append "DESTDIR=" out)
198 (string-append "BASHCOMPLETIONDIR=" out
199 "/etc/bash_completion.d")))))
200 (synopsis "Tiling window manager for X11")
201 (description "herbstluftwm is a manual tiling window manager for X11 using
202 Xlib and GLib. Its main features are:
206 The layout is based on splitting frames into subframes which can be split
207 again or can be filled with windows (similar to i3 or musca).
210 Tags (or workspaces or virtual desktops or …) can be added/removed at runtime.
211 Each tag contains an own layout.
214 Exactly one tag is viewed on each monitor. The tags are monitor independent
218 It is configured at runtime via IPC calls from @command{herbstclient}. So the
219 configuration file is just a script which is run on startup (similar to wmii
223 (home-page "https://herbstluftwm.org")
224 (license license:bsd-2)))
226 (define-public i3status
232 (uri (string-append "https://i3wm.org/i3status/i3status-"
236 "0rhlzb96mw64z2jnhwz9nibc7pxg549626lz5642xxk5hpzwk2ff"))))
237 (build-system gnu-build-system)
239 `(;; XXX: Do an "out of source" build to work around
240 ;; <https://github.com/i3/i3status/issues/339>.
242 #:tests? #f)) ; no test suite
244 `(("openlibm" ,openlibm)
245 ("libconfuse" ,libconfuse)
247 ("alsa-lib" ,alsa-lib)
248 ("pulseaudio" ,pulseaudio)
251 ("asciidoc" ,asciidoc)))
253 `(("pkg-config" ,pkg-config)
254 ("docbook-xsl" ,docbook-xsl)
255 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
257 (home-page "https://i3wm.org/i3status/")
258 (synopsis "Status bar for i3bar, dzen2, xmobar or similar programs")
259 (description "i3status is a small program for generating a status bar for
260 i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient
261 by issuing a very small number of system calls, as one generally wants to
262 update such a status line every second. This ensures that even under high
263 load, your status bar is updated correctly. Also, it saves a bit of energy by
264 not hogging your CPU as much as spawning the corresponding amount of shell
266 (license license:bsd-3)))
274 (uri (string-append "https://i3wm.org/downloads/i3-"
278 "0dv5g8ycfmijxfjyw8hzsxaf80v09lb73zh7x2vszy78h3amifqz"))))
279 (build-system gnu-build-system)
282 ;; The build system tries to build in a separate directory, but that
283 ;; seems to be unnecessary.
284 (list "--disable-builddir")
286 ;; The test suite requires the unpackaged Xephyr X server.
289 (modify-phases %standard-phases
290 (add-after 'install 'patch-session-file
291 (lambda* (#:key outputs #:allow-other-keys)
292 (let* ((out (assoc-ref outputs "out"))
293 (i3 (string-append out "/bin/i3"))
294 (i3-with-shmlog (string-append out "/bin/i3-with-shmlog")))
295 (substitute* (string-append out "/share/xsessions/i3.desktop")
296 (("Exec=i3") (string-append "Exec=" i3)))
297 (substitute* (string-append out "/share/xsessions/i3-with-shmlog.desktop")
298 (("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog)))
302 ("xcb-util" ,xcb-util)
303 ("xcb-util-cursor" ,xcb-util-cursor)
304 ("xcb-util-keysyms" ,xcb-util-keysyms)
305 ("xcb-util-wm" ,xcb-util-wm)
306 ("xcb-util-xrm" ,xcb-util-xrm)
307 ("libxkbcommon" ,libxkbcommon)
310 ("asciidoc" ,asciidoc)
312 ("perl-pod-simple" ,perl-pod-simple)
315 ("startup-notification" ,startup-notification)
321 ("pkg-config" ,pkg-config)
322 ;; For building the documentation.
324 ("docbook-xsl" ,docbook-xsl)))
325 (home-page "https://i3wm.org/")
326 (synopsis "Tiling window manager")
327 (description "i3 is a tiling X11 window manager that dynamically manages
328 tiled, stacked, and tabbed window layouts.
330 i3 primarily targets advanced users. Windows are managed manually and organised
331 inside containers, which can be split vertically or horizontally, and optionally
334 i3 uses a plain-text configuration file, and can be extended and controlled from
335 many programming languages.")
336 (license license:bsd-3)))
338 (define-public i3-gaps
339 (package (inherit i3-wm)
345 "https://github.com/Airblader/i3/releases/download/"
346 version "/i3-" version ".tar.bz2"))
349 "0gqcr6s53dk3f2y9h6cna00rnwnh4yymk96li7lbym3d84cxjzrs"))))
350 (home-page "https://github.com/Airblader/i3")
351 (synopsis "Tiling window manager with gaps")
352 (description "i3-gaps is a fork of i3wm, a tiling window manager
353 for X11. It is kept up to date with upstream, adding a few additional
354 features such as gaps between windows.
356 i3 is a tiling X11 window manager that dynamically manages tiled, stacked,
357 and tabbed window layouts.
359 i3 primarily targets advanced users. Windows are managed manually and
360 organised inside containers, which can be split vertically or horizontally,
361 and optionally resized.
363 i3 uses a plain-text configuration file, and can be extended and controlled
364 from many programming languages.")
365 (license license:bsd-3)))
367 (define-public i3lock
373 (uri (string-append "https://i3wm.org/i3lock/i3lock-"
377 "015dn534m7cxjvqdncpvaq9p8b2r4w5hp1yanbdy2abmhbcc7a7j"))))
378 (build-system gnu-build-system)
380 `(("pkg-config" ,pkg-config)))
384 ("linux-pam" ,linux-pam)
386 ("libxkbcommon" ,libxkbcommon)
387 ("xcb-util" ,xcb-util)
388 ("xcb-util-image" ,xcb-util-image)
389 ("xcb-util-xrm" ,xcb-util-xrm)))
390 (home-page "https://i3wm.org/i3lock/")
391 (synopsis "Lightweight screen locker")
393 "i3lock is a simple X11 screen locker developed alongside the i3 project.
394 Despite the name it should work with any X11 window manager.")
395 (license license:bsd-3)))
397 (define-public i3blocks
404 (url "https://github.com/vivien/i3blocks.git")
408 "0v8mwnm8qzpv6xnqvrk43s4b9iyld4naqzbaxk4ldq1qkhai0wsv"))
409 (file-name (git-file-name name version))))
410 (build-system gnu-build-system)
412 `(("autoconf" ,autoconf)
413 ("automake" ,automake)
414 ("pkg-config" ,pkg-config)))
415 (home-page "https://github.com/vivien/i3blocks")
416 (synopsis "Minimalist scheduler for status bar scripts")
417 (description "i3blocks executes your command lines and generates a
418 status line from their output. The generated line is meant to be displayed by
419 the i3 window manager through its i3bar component, as an alternative to
421 (license license:gpl3+)))
423 (define-public perl-anyevent-i3
425 (name "perl-anyevent-i3")
429 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTPLBG/"
430 "AnyEvent-I3-" version ".tar.gz"))
433 "0qvd9bq16jyy7v3ma82qcnvz9j503bw0mh7h55gkjf7ir62ck0jk"))))
434 (build-system perl-build-system)
436 `(("perl-anyevent" ,perl-anyevent)
437 ("perl-json-xs" ,perl-json-xs)))
438 (home-page "https://metacpan.org/release/AnyEvent-I3")
440 "Communicate with the i3 window manager through perl")
442 "This module connects to the i3 window manager using the UNIX socket
443 based IPC interface it provides (if enabled in the configuration file).
444 You can then subscribe to events or send messages and receive their replies.")
445 ;; Can be used with either license.
446 (license (list license:gpl3+ license:perl-license))))
448 (define-public python-i3-py
450 (name "python-i3-py")
454 ;; The latest release is not tagged in Git nor has an entry in PyPi,
455 ;; but there is still a clear commit for it, and it's been the last one
459 (url "https://github.com/ziberna/i3-py.git")
460 (commit "27f88a616e9ecc340e7d041d3d00782f8a1964c1")))
463 "1nm719dc2xqlll7vj4c4m7mpjb27lpn3bg3c66gajvnrz2x1nmxs"))
464 (file-name (string-append name "-" version "-checkout"))))
465 (build-system python-build-system)
467 `(#:tests? #f ; no tests yet
468 #:phases (modify-phases %standard-phases
469 (add-after 'install 'install-doc
470 ;; Copy readme file to documentation directory.
471 (lambda* (#:key outputs #:allow-other-keys)
472 (let ((doc (string-append (assoc-ref outputs "out")
473 "/share/doc/" ,name)))
474 (install-file "README.md" doc)
475 ;; Avoid unspecified return value.
479 (home-page "https://github.com/ziberna/i3-py")
480 (synopsis "Python interface to the i3 window manager")
481 (description "This package allows you to interact from a Python program
482 with the i3 window manager via its IPC socket. It can send commands and other
483 kinds of messages to i3, select the affected containers, filter results and
484 subscribe to events.")
485 (license license:gpl3+)))
487 (define-public python2-i3-py
488 (package-with-python2 python-i3-py))
490 (define-public quickswitch-i3
491 (let ((commit "ed692b1e8f43b95bd907ced26238ce8ccb2ed28f")
492 (revision "1")) ; Guix package revision
494 (name "quickswitch-i3")
495 (version (string-append "2.2-" revision "."
496 (string-take commit 7)))
499 ;; The latest commit is a few years old and just a couple commits
500 ;; after the last tagged release, so we use that latest commit
501 ;; instead of the release.
504 (url "https://github.com/proxypoke/quickswitch-for-i3.git")
508 "0447077sama80jcdg5p64zjsvafmz5rbdrirhm1adcdjhkh6iqc5"))
509 (patches (search-patches "quickswitch-fix-dmenu-check.patch"))
510 (file-name (string-append name "-" version "-checkout"))))
511 (build-system python-build-system)
513 `(#:tests? #f ; no tests yet
514 #:phases (modify-phases %standard-phases
515 (add-after 'install 'install-doc
516 ;; Copy readme file to documentation directory.
517 (lambda* (#:key outputs #:allow-other-keys)
518 (let ((doc (string-append (assoc-ref outputs "out")
519 "/share/doc/" ,name)))
520 (install-file "README.rst" doc)
521 ;; Avoid unspecified return value.
524 `(("python-i3-py" ,python-i3-py)
526 (home-page "https://github.com/proxypoke/quickswitch-for-i3")
527 (synopsis "Quickly change to and locate windows in the i3 window manager")
529 "This utility for the i3 window manager allows you to quickly switch to
530 and locate windows on all your workspaces, using an interactive dmenu
532 (license license:wtfpl2))))
534 (define-public i3lock-color
536 (name "i3lock-color")
542 (url "https://github.com/PandorasFox/i3lock-color.git")
544 (file-name (git-file-name name version))
546 (base32 "08fhnchf187b73h52xgzb86g6byzxz085zs9galsvl687g5zxk34"))))
547 (build-system gnu-build-system)
549 `(#:tests? #f)) ; no tests included
553 ("libjpeg" ,libjpeg-turbo)
555 ("libxkbcommon" ,libxkbcommon)
556 ("linux-pam" ,linux-pam)
557 ("xcb-util" ,xcb-util)
558 ("xcb-util-image" ,xcb-util-image)
559 ("xcb-util-xrm" ,xcb-util-xrm)))
561 `(("autoconf" ,autoconf)
562 ("automake" ,automake)
563 ("pkg-config" ,pkg-config)))
564 (home-page "https://github.com/PandorasFox/i3lock-color")
565 (synopsis "Screen locker with color configuration support")
567 "i3lock-color is a simpler X11 screen locker derived from i3lock.
571 @item forking process, the locked screen is preserved when you suspend to RAM;
572 @item specify background color or image to be displayed in the lock screen;
573 @item many additional color options.
575 (license license:bsd-3)))
577 (define-public i3lock-fancy
579 (name "i3lock-fancy")
585 (url "https://github.com/meskarune/i3lock-fancy.git")
587 (file-name (git-file-name name version))
589 (base32 "11g2kkim33ra38d1m897sq1ifajw17iyw9mr7sg1q8i2ibl4lfsi"))))
590 (build-system gnu-build-system)
592 `(#:tests? #f ; no tests included
594 (modify-phases %standard-phases
596 (lambda* (#:key inputs outputs #:allow-other-keys)
597 (let* ((out (assoc-ref outputs "out"))
598 (icons (string-append out "/share/i3lock-fancy/icons/"))
599 (wmctrl (string-append (assoc-ref inputs "wmctrl")
601 (mconvert (string-append (assoc-ref inputs "imagemagick")
603 (mimport (string-append (assoc-ref inputs "imagemagick")
605 (awk (string-append (assoc-ref inputs "gawk")
609 (("$(which wmctrl)") wmctrl)
610 (("convert") mconvert)
611 (("shot=\\(import") (string-append "shot=\(" mimport))
612 (("awk -F") (string-append awk " -F"))
614 (("\\$scriptpath/icons/") icons))
618 (lambda* (#:key inputs outputs #:allow-other-keys)
619 (let* ((out (assoc-ref outputs "out"))
620 (bin (string-append out "/bin"))
621 (icons (string-append out "/share/i3lock-fancy/icons/")))
623 (install-file "lock" bin)
624 (rename-file (string-append bin "/lock")
625 (string-append bin "/i3lock-fancy"))
626 (copy-recursively "icons" icons)
629 `(("imagemagick" ,imagemagick)
632 (home-page "https://github.com/meskarune/i3lock-fancy")
633 (synopsis "Screen locker with screenshot function")
635 "@code{i3lock-fancy} is a Bash script that takes a screenshot of
636 the desktop, blurs the background and adds a lock icon and text.
637 It requires @code{i3lock-color} or @code{i3lock} and can optionally
638 be passed any screenshot util like @code{scrot}.
639 This screen locker can be used with any window manager or
640 desktop environment.")
641 (license license:expat)))
643 (define-public xmonad
647 (synopsis "Tiling window manager")
650 (uri (string-append "mirror://hackage/package/xmonad/"
651 "xmonad-" version ".tar.gz"))
654 "0a7rh21k9y6g8fwkggxdxjns2grvvsd5hi2ls4klmqz5xvk4hyaa"))))
655 (build-system haskell-build-system)
657 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
658 ("ghc-quickcheck" ,ghc-quickcheck)
659 ("ghc-semigroups" ,ghc-semigroups)
660 ("ghc-setlocale" ,ghc-setlocale)
661 ("ghc-utf8-string" ,ghc-utf8-string)
662 ("ghc-x11" ,ghc-x11)))
665 (modify-phases %standard-phases
667 'install 'install-xsession
669 (let* ((xsessions (string-append %output "/share/xsessions")))
671 (call-with-output-file
672 (string-append xsessions "/xmonad.desktop")
679 Type=Application~%" ,name ,synopsis %output)))))))))
680 (home-page "https://xmonad.org")
682 "Xmonad is a tiling window manager for X. Windows are arranged
683 automatically to tile the screen without gaps or overlap, maximising screen
684 use. All features of the window manager are accessible from the keyboard: a
685 mouse is strictly optional. Xmonad is written and extensible in Haskell.
686 Custom layout algorithms, and other extensions, may be written by the user in
687 config files. Layouts are applied dynamically, and different layouts may be
688 used on each workspace. Xinerama is fully supported, allowing windows to be
689 tiled on several screens.")
690 (license license:bsd-3)))
692 (define-public xmobar
698 (uri (string-append "mirror://hackage/package/xmobar/"
699 "xmobar-" version ".tar.gz"))
702 "1hr3qqykc5givcpcwrr9f2y920jmiinmxm5mcy6qgpgymgwqb618"))))
703 (build-system haskell-build-system)
705 `(("ghc-hspec" ,ghc-hspec)
706 ("hspec-discover" ,hspec-discover)))
708 `(("ghc-alsa-core" ,ghc-alsa-core)
709 ("ghc-alsa-mixer" ,ghc-alsa-mixer)
710 ("ghc-dbus" ,ghc-dbus)
711 ("ghc-hinotify" ,ghc-hinotify)
712 ("ghc-http" ,ghc-http)
713 ("ghc-http-conduit" ,ghc-http-conduit)
714 ("ghc-http-types" ,ghc-http-types)
715 ("ghc-iwlib" ,ghc-iwlib)
716 ("ghc-libmpd" ,ghc-libmpd)
717 ("ghc-old-locale" ,ghc-old-locale)
718 ("ghc-parsec-numbers" ,ghc-parsec-numbers)
719 ("ghc-regex-compat" ,ghc-regex-compat)
720 ("ghc-temporary" ,ghc-temporary)
721 ("ghc-timezone-olson" ,ghc-timezone-olson)
723 ("ghc-x11-xft" ,ghc-x11-xft)
726 `(#:configure-flags (list "--flags=all_extensions")
728 (modify-phases %standard-phases
729 (add-before 'build 'patch-test-shebang
730 (lambda* (#:key inputs #:allow-other-keys)
731 (substitute* "test/Xmobar/Plugins/Monitors/AlsaSpec.hs"
732 (("/bin/bash") (which "bash")))
734 (home-page "https://xmobar.org")
735 (synopsis "Minimalistic text based status bar")
737 "@code{xmobar} is a lightweight, text-based, status bar written in
738 Haskell. It was originally designed to be used together with Xmonad, but it
739 is also usable with any other window manager. While xmobar is written in
740 Haskell, no knowledge of the language is required to install and use it.")
741 (license license:bsd-3)))
743 (define-public ghc-xmonad-contrib
745 (name "ghc-xmonad-contrib")
750 (uri (string-append "mirror://hackage/package/xmonad-contrib/"
751 "xmonad-contrib-" version ".tar.gz"))
753 (base32 "1pddgkvnbww28wykncc7j0yb0lv15bk7xnnhdcbrwkxzw66w6wmd"))))
754 (build-system haskell-build-system)
756 `(("ghc-old-time" ,ghc-old-time)
757 ("ghc-random" ,ghc-random)
758 ("ghc-utf8-string" ,ghc-utf8-string)
759 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
760 ("ghc-semigroups" ,ghc-semigroups)
762 ("ghc-x11-xft" ,ghc-x11-xft)
764 (home-page "https://xmonad.org")
765 (synopsis "Third party extensions for xmonad")
767 "Third party tiling algorithms, configurations, and scripts to Xmonad, a
768 tiling window manager for X.")
769 (license license:bsd-3)))
771 (define-public evilwm
778 (uri (string-append "http://www.6809.org.uk/evilwm/evilwm-"
782 "0ak0yajzk3v4dg5wmaghv6acf7v02a4iw8qxmq5yw5ard8lrqn3r"))
783 (patches (search-patches "evilwm-lost-focus-bug.patch"))))
784 (build-system gnu-build-system)
788 ("libxrandr" ,libxrandr)))
790 `(#:modules ((srfi srfi-26)
792 (guix build gnu-build-system))
793 #:make-flags (let ((inputs (map (cut assoc-ref %build-inputs <>)
794 '("libx11" "libxext" "libxrandr")))
795 (join (lambda (proc strs)
796 (string-join (map proc strs) " ")))
797 (dash-I (cut string-append "-I" <> "/include"))
798 (dash-L (cut string-append "-L" <> "/lib")))
799 `("desktopfilesdir=$(prefix)/share/xsessions"
800 ,(string-append "prefix=" (assoc-ref %outputs "out"))
801 ,(string-append "CPPFLAGS=" (join dash-I inputs))
802 ,(string-append "LDFLAGS=" (join dash-L inputs))))
803 #:tests? #f ;no tests
804 #:phases (modify-phases %standard-phases
805 (delete 'configure)))) ;no configure script
806 (home-page "http://www.6809.org.uk/evilwm/")
807 (synopsis "Minimalist window manager for the X Window System")
809 "evilwm is a minimalist window manager based on aewm, extended to feature
810 many keyboard controls with repositioning and maximize toggles, solid window
811 drags, snap-to-border support, and virtual desktops.")
812 (license (license:x11-style "file:///README"))))
814 (define-public fluxbox
818 (synopsis "Small and fast window manager")
821 (uri (string-append "mirror://sourceforge/fluxbox/fluxbox/"
822 version "/fluxbox-" version ".tar.xz"))
825 "1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w"))))
826 (build-system gnu-build-system)
828 `(#:make-flags '("CPPFLAGS=-U__TIME__") ;ugly, but for reproducibility
830 (modify-phases %standard-phases
831 (add-after 'install 'install-vim-files
832 (lambda* (#:key outputs #:allow-other-keys)
833 (let* ((out (assoc-ref outputs "out"))
834 (syntax (string-append out "/share/vim/vimfiles/syntax")))
835 (copy-recursively "3rd/vim/vim/syntax" syntax)
837 (add-after 'install 'install-xsession
838 (lambda* (#:key outputs #:allow-other-keys)
839 (let* ((out (assoc-ref outputs "out"))
840 (xsessions (string-append out "/share/xsessions")))
842 (call-with-output-file
843 (string-append xsessions "/fluxbox.desktop")
849 Exec=~a/bin/startfluxbox~@
850 Type=Application~%" ,name ,synopsis out)))
853 `(("pkg-config" ,pkg-config)))
855 `(("freetype" ,freetype)
861 ("libxinerama" ,libxinerama)
863 ("libxrandr" ,libxrandr)
864 ("libxrender" ,libxrender)))
865 (description "Fluxbox is a window manager. It is light on resources
866 and easy to handle yet full of features to make an easy and fast desktop
868 (home-page "http://fluxbox.org/")
869 (license license:expat)))
871 (define-public awesome
879 "https://github.com/awesomeWM/awesome-releases/raw/master/"
880 "awesome-" version ".tar.xz"))
882 (base32 "0lqpw401mkkmp9wgbvrmm45bqq2j9357l4irwdqv6l1305pls9kq"))
883 (modules '((guix build utils)
887 ;; Remove non-reproducible timestamp and use the date of
888 ;; the source file instead.
889 (substitute* "common/version.c"
890 (("__DATE__ \" \" __TIME__")
893 (make-time time-utc 0 (stat:mtime (stat "awesome.c"))))
897 (search-patches "awesome-reproducible-png.patch"))))
898 (build-system cmake-build-system)
900 `(("asciidoc" ,asciidoc)
901 ("docbook-xsl" ,docbook-xsl)
904 ("imagemagick" ,imagemagick)
905 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
906 ("lua-ldoc" ,lua-ldoc)
907 ("pkg-config" ,pkg-config)
912 ("gdk-pixbuf" ,gdk-pixbuf)
914 ("gobject-introspection" ,gobject-introspection)
918 ("libxcursor" ,libxcursor)
919 ("libxdg-basedir" ,libxdg-basedir)
920 ("libxkbcommon" ,libxkbcommon)
924 ("startup-notification" ,startup-notification)
925 ("xcb-util" ,xcb-util)
926 ("xcb-util-cursor" ,xcb-util-cursor)
927 ("xcb-util-image" ,xcb-util-image)
928 ("xcb-util-keysyms" ,xcb-util-keysyms)
929 ("xcb-util-renderutil" ,xcb-util-renderutil)
930 ("xcb-util-xrm" ,xcb-util-xrm)
931 ("xcb-util-wm" ,xcb-util-wm)))
933 `(#:modules ((guix build cmake-build-system)
936 ;; Let compression happen in our 'compress-documentation' phase
937 ;; so that '--no-name' is used, which removes timestamps from
940 '("-DCOMPRESS_MANPAGES=off")
941 ;; Building awesome in its source directory is no longer
945 (modify-phases %standard-phases
946 (add-before 'configure 'set-paths
947 (lambda* (#:key inputs #:allow-other-keys)
948 ;; The build process needs to load Cairo dynamically.
949 (let* ((cairo (string-append (assoc-ref inputs "cairo") "/lib"))
950 (lua-version ,(version-major+minor (package-version lua)))
952 (filter (match-lambda
953 ((label . _) (string-prefix? "lua-" label)))
960 dir "/share/lua/" lua-version "/?.lua;"
961 dir "/share/lua/" lua-version "/?/?.lua")))
969 dir "/lib/lua/" lua-version "/?.so;"
970 dir "/lib/lua/" lua-version "/?/?.so")))
973 (setenv "LD_LIBRARY_PATH" cairo)
974 (setenv "LUA_PATH" (string-append "?.lua;" lua-path))
975 (setenv "LUA_CPATH" lua-cpath)
979 ;; There aren't any tests, so just make sure the binary
980 ;; gets built and can be run successfully.
981 (invoke "../build/awesome" "-v")))
982 (add-after 'install 'patch-session-file
983 (lambda* (#:key outputs #:allow-other-keys)
984 (let* ((out (assoc-ref outputs "out"))
985 (awesome (string-append out "/bin/awesome")))
986 (substitute* (string-append out "/share/xsessions/awesome.desktop")
987 (("Exec=awesome") (string-append "Exec=" awesome)))
989 (add-after 'install 'wrap
990 (lambda* (#:key inputs outputs #:allow-other-keys)
991 (let* ((awesome (assoc-ref outputs "out"))
992 (cairo (string-append (assoc-ref inputs "cairo") "/lib"))
993 (lua-version ,(version-major+minor (package-version lua)))
994 (lua-lgi (assoc-ref inputs "lua-lgi")))
995 (wrap-program (string-append awesome "/bin/awesome")
997 (,(format #f "~a/share/lua/~a/?.lua" lua-lgi lua-version)))
999 (,(format #f "~a/lib/lua/~a/?.so" lua-lgi lua-version)))
1000 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))
1001 `("LD_LIBRARY_PATH" suffix (,cairo)))
1003 (home-page "https://awesomewm.org/")
1004 (synopsis "Highly configurable window manager")
1006 "Awesome has been designed as a framework window manager. It is fast, small,
1007 dynamic and extensible using the Lua programming language.")
1008 (license license:gpl2+)))
1010 (define-public menumaker
1017 (uri (string-append "mirror://sourceforge/menumaker/"
1018 "menumaker-" version ".tar.gz"))
1020 (base32 "0dprndnhwm7b803zkp4pisiq06ic9iv8vr42in5is47jmvdim0wx"))))
1021 (build-system gnu-build-system)
1023 `(("python" ,python)))
1024 (synopsis "Heuristics-driven menu generator")
1026 "MenuMaker is a menu generation utility for a number of X window
1027 managers and desktop environments. It is capable of finding lots of
1028 installed programs and generating a root menu consistent across all
1029 supported window managers, so one will get (almost) the same menu in
1030 all of them. Currently supported window managers include:
1042 (home-page "http://menumaker.sourceforge.net/")
1043 (license license:bsd-2)))
1045 (define-public keybinder
1052 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1053 "/releases/download/v" version "/keybinder-"
1055 (file-name (string-append name "-" version ".tar.gz"))
1058 "0h52hj3ay8mfhwvmfxbxlfyq74hifdk8wxgxp7fr4iy6189hg7w7"))))
1059 (build-system gnu-build-system)
1061 `(("python-2" ,python-2)
1062 ("gtk+-2" ,gtk+-2)))
1064 `(("python2-pygtk" ,python2-pygtk)
1065 ("gtk-doc" ,gtk-doc)
1066 ("pkg-config" ,pkg-config)))
1067 (synopsis "Library for registering global keyboard shortcuts")
1069 "Keybinder is a library for registering global keyboard shortcuts.
1070 Keybinder works with GTK-based applications using the X Window System.")
1071 (home-page "https://github.com/kupferlauncher/keybinder")
1072 (license license:gpl2+)))
1074 (define-public keybinder-3.0
1076 (name "keybinder-3.0")
1081 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1082 "/releases/download/" name "-v" version "/" name "-"
1084 (file-name (string-append name "-" version ".tar.gz"))
1087 "0830ihwnalw59pp1xzrp37dn58n8vwb8zasnm4a1h81v3x7dxqz6"))))
1088 (build-system gnu-build-system)
1091 ("gobject-introspection" ,gobject-introspection)))
1093 `(("gtk-doc" ,gtk-doc)
1094 ("pkg-config" ,pkg-config)))
1095 (synopsis "Library for registering global keyboard shortcuts, Gtk3 version")
1097 "Keybinder is a library for registering global keyboard shortcuts.
1098 Keybinder works with GTK-based applications using the X Window System.")
1099 (home-page "https://github.com/kupferlauncher/keybinder")
1100 (license license:x11)))
1102 (define-public spectrwm
1110 (url "https://github.com/conformal/spectrwm.git")
1112 (string-append "SPECTRWM_"
1113 (string-join (string-split version #\.) "_")))))
1114 (file-name (git-file-name name version))
1116 (base32 "1dfqy5f0s1nv6rqkz9lj006vypmp4rwxd5vczfk3ndzqgnh19kw6"))))
1117 (build-system gnu-build-system)
1119 `(#:make-flags (let ((pkg-config (lambda (flag)
1121 "$(shell pkg-config " flag " "
1122 "xft fontconfig x11 libpng)"))))
1125 (string-append "PREFIX=" %output)
1126 (string-append "INCS=-I. " (pkg-config "--cflags"))
1127 (string-append "LIBS=" (pkg-config "--libs") " -lm")))
1128 #:tests? #f ;no test suite
1130 (modify-phases %standard-phases
1131 (add-before 'build 'change-dir
1133 (chdir "linux") #t))
1134 (add-after 'change-dir 'patch-makefile
1136 (substitute* "Makefile"
1138 (delete 'configure)))) ;no 'configure' exists
1140 `(("freetype" ,freetype)
1141 ("fontconfig" ,fontconfig)
1143 ("libxcursor" ,libxcursor)
1144 ("libxrandr" ,libxrandr)
1145 ("libxtst" ,libxtst)
1147 ("xcb-util" ,xcb-util)
1148 ("xcb-util-wm" ,xcb-util-wm)
1149 ("xcb-util-keysyms" ,xcb-util-keysyms)))
1152 ("pkg-config" ,pkg-config)))
1153 (synopsis "Minimalistic automatic tiling window manager")
1155 "Spectrwm is a small dynamic tiling and reparenting window manager for X11.
1156 It is inspired by Xmonad and dwm. Its major features include:
1159 @item Navigation anywhere on all screens with either the keyboard or mouse
1160 @item Customizable status bar
1161 @item Restartable without losing state
1162 @item Quick launch menu
1163 @item Many screen layouts possible with a few simple key strokes
1164 @item Move/resize floating windows
1165 @item Extended Window Manager Hints (@dfn{EWMH}) support
1166 @item Configurable tiling
1167 @item Adjustable tile gap allows for a true one pixel border
1168 @item Customizable colors and border width
1170 (home-page "https://github.com/conformal/spectrwm")
1171 (license license:isc)))
1180 (uri (string-append "http://chneukirchen.org/releases/cwm-"
1184 "17pdp9cfgh2n3n3905l4rl9qk7b722i8psnarhlc2h98qzx7zmac"))))
1185 (build-system gnu-build-system)
1187 `(#:make-flags (list "CC=gcc"
1188 (string-append "PREFIX=" %output))
1191 (modify-phases %standard-phases
1193 (add-after 'build 'install-xsession
1194 (lambda* (#:key outputs #:allow-other-keys)
1195 ;; Add a .desktop file to xsessions.
1196 (let* ((output (assoc-ref outputs "out"))
1197 (xsessions (string-append output "/share/xsessions")))
1199 (with-output-to-file
1200 (string-append xsessions "/cwm.desktop")
1205 Comment=OpenBSD Calm Window Manager fork~@
1207 TryExec=~@*~a/bin/cwm~@
1213 `(("libxft" ,libxft)
1214 ("libxrandr" ,libxrandr)
1215 ("libxinerama" ,libxinerama)))
1217 `(("pkg-config" ,pkg-config)
1219 (home-page "https://github.com/chneukirchen/cwm")
1220 (synopsis "OpenBSD fork of the calmwm window manager")
1221 (description "Cwm is a stacking window manager for X11. It is an OpenBSD
1222 project derived from the original Calm Window Manager.")
1223 (license license:isc)))
1225 (define-public nitrogen
1231 (uri (string-append "http://github.com/l3ib/nitrogen/"
1232 "releases/download/" version "/"
1233 name "-" version ".tar.gz"))
1236 "0zc3fl1mbhq0iyndy4ysmy8vv5c7xwf54rbgamzfhfvsgdq160pl"))))
1237 (build-system gnu-build-system)
1242 ("glibmm" ,glibmm)))
1244 `(("pkg-config" ,pkg-config)))
1245 (home-page "http://projects.l3ib.org/nitrogen/")
1246 (synopsis "Background browser and setter for X windows")
1248 "This package is a background browser and setter for X windows. It's
1252 @item Multihead and Xinerama aware
1253 @item Recall mode to used via startup script
1254 @item Uses freedesktop.org standard for thumbnails
1255 @item Can set GNOME background
1256 @item Command lie set modes for script use
1257 @item Inotify monitoring of browse directory
1258 @item Lazy loading of thumbnails - conserves memory
1259 @item \"Automatic\" set mode - determines best mode to set an image based on
1261 @item Display preview images in a tiled icon layout
1263 (license license:gpl2+)))
1265 (define-public polybar
1272 (uri (string-append "https://github.com/polybar/polybar/releases/"
1273 "download/" version "/polybar-" version ".tar"))
1275 (base32 "0fmnviz4b01aw50nkv4yibm8ykc5ff860ynw3xb1ymlsjrvwj8jd"))))
1276 (build-system cmake-build-system)
1278 ;; Test is disabled because it requires downloading googletest from the
1282 `(("alsa-lib" ,alsa-lib)
1285 ("jsoncpp" ,jsoncpp)
1286 ("libmpdclient" ,libmpdclient)
1289 ("pulseaudio" ,pulseaudio)
1290 ("xcb-proto" ,xcb-proto)
1291 ("xcb-util" ,xcb-util)
1292 ("xcb-util-cursor" ,xcb-util-cursor)
1293 ("xcb-util-image" ,xcb-util-image)
1294 ("xcb-util-wm" ,xcb-util-wm)
1295 ("xcb-util-xrm" ,xcb-util-xrm)))
1297 `(("pkg-config" ,pkg-config)
1298 ("python-sphinx" ,python-sphinx) ; for the manual
1299 ;; XXX: "python" input must be located after "python-2", or the package
1300 ;; fails to build with "missing required python module: xcbgen".
1301 ("python-2" ,python-2) ; lib/xpp depends on python 2
1302 ("python" ,python))) ; xcb-proto depends on python 3
1303 (home-page "https://polybar.github.io/")
1304 (synopsis "Fast and easy-to-use status bar")
1305 (description "Polybar aims to help users build beautiful and highly
1306 customizable status bars for their desktop environment. It has built-in
1307 functionality to display information about the most commonly used services.")
1308 (license license:expat)))
1310 (define-public wlroots
1318 (url "https://github.com/swaywm/wlroots.git")
1320 (file-name (git-file-name name version))
1322 (base32 "0jzxa6psbc7ddxli7rbfqxmv1svxnis51l1vch4hb9fdixqm284a"))))
1323 (build-system meson-build-system)
1325 `(#:configure-flags '("-Dlogind-provider=elogind")
1327 (modify-phases %standard-phases
1328 (add-before 'configure 'hardcode-paths
1329 (lambda* (#:key inputs #:allow-other-keys)
1330 (substitute* "xwayland/xwayland.c"
1331 (("Xwayland") (string-append (assoc-ref inputs
1332 "xorg-server-xwayland")
1335 (inputs `(("elogind" ,elogind)
1337 ("libinput" ,libinput)
1338 ("libxkbcommon" ,libxkbcommon)
1341 ("wayland" ,wayland)
1342 ("xorg-server-xwayland" ,xorg-server-xwayland)))
1343 (native-inputs `(("ffmpeg" ,ffmpeg)
1346 ("pkg-config" ,pkg-config)
1347 ("wayland-protocols" ,wayland-protocols)))
1348 (home-page "https://github.com/swaywm/wlroots")
1349 (synopsis "Pluggable, composable, unopinionated modules for building a
1350 Wayland compositor")
1351 (description "wlroots is a set of pluggable, composable, unopinionated
1352 modules for building a Wayland compositor.")
1353 (license license:expat))) ; MIT license
1363 (url "https://github.com/swaywm/sway.git")
1365 (file-name (git-file-name name version))
1367 (base32 "0vch2zm5afc76ia78p3vg71zr2fyda67l9hd2h0x1jq3mnvfbxnd"))))
1368 (build-system meson-build-system)
1371 (modify-phases %standard-phases
1372 (add-before 'configure 'hardcode-paths
1373 (lambda* (#:key inputs #:allow-other-keys)
1374 ;; Hardcode path to swaybg.
1375 (substitute* "sway/config.c"
1376 (("strdup..swaybg..")
1377 (string-append "strdup(\"" (assoc-ref inputs "swaybg")
1379 ;; Hardcode path to scdoc.
1380 (substitute* "meson.build"
1381 (("scdoc.get_pkgconfig_variable..scdoc..")
1382 (string-append "'" (assoc-ref inputs "scdoc")
1385 (inputs `(("cairo" ,cairo)
1386 ("elogind" ,elogind)
1387 ("gdk-pixbuf" ,gdk-pixbuf)
1389 ("libevdev" ,libevdev)
1390 ("libinput" ,libinput)
1391 ("libxkbcommon" ,libxkbcommon)
1394 ("wayland" ,wayland)
1395 ("wlroots" ,wlroots)))
1396 (native-inputs `(("libcap" ,libcap)
1397 ("linux-pam" ,linux-pam)
1399 ("pkg-config" ,pkg-config)
1401 ("wayland-protocols" ,wayland-protocols)))
1402 (home-page "https://github.com/swaywm/sway")
1403 (synopsis "Wayland compositor compatible with i3")
1404 (description "Sway is a i3-compatible Wayland compositor.")
1405 (license license:expat))) ; MIT license
1407 (define-public swayidle
1415 (url "https://github.com/swaywm/swayidle.git")
1417 (file-name (git-file-name name version))
1419 (base32 "05qi96j58xqxjiighay1d39rfanxcpn6vlynj23mb5dymxvlaq9n"))))
1420 (build-system meson-build-system)
1422 `(#:configure-flags '("-Dlogind-provider=elogind")))
1423 (inputs `(("elogind" ,elogind)
1424 ("wayland" ,wayland)))
1425 (native-inputs `(("pkg-config" ,pkg-config)
1427 ("wayland-protocols" ,wayland-protocols)))
1428 (home-page "https://github.com/swaywm/sway")
1429 (synopsis "Idle management daemon for Wayland compositors")
1430 (description "Swayidle is a idle management daemon for Wayland compositors.")
1431 (license license:expat))) ; MIT license
1433 (define-public swaylock
1441 (url "https://github.com/swaywm/swaylock.git")
1443 (file-name (git-file-name name version))
1445 (base32 "1ii9ql1mxkk2z69dv6bg1x22nl3a46iww764wqjiv78x08xpk982"))))
1446 (build-system meson-build-system)
1447 (inputs `(("cairo" ,cairo)
1448 ("gdk-pixbuf" ,gdk-pixbuf)
1449 ("libxkbcommon" ,libxkbcommon)
1450 ;("linux-pam" ,linux-pam) ; FIXME: Doesn't work.
1451 ("wayland" ,wayland)))
1452 (native-inputs `(("pango" ,pango)
1453 ("pkg-config" ,pkg-config)
1455 ("wayland-protocols" ,wayland-protocols)))
1456 (home-page "https://github.com/swaywm/sway")
1457 (synopsis "Screen locking utility for Wayland compositors")
1458 (description "Swaylock is a screen locking utility for Wayland compositors.")
1459 (license license:expat))) ; MIT license
1461 (define-public swaybg
1469 (url "https://github.com/swaywm/swaybg.git")
1471 (file-name (git-file-name name version))
1473 (base32 "1lmqz5bmig90gq2m7lwf02d2g7z4hzf8fhqz78c8vk92c6p4xwbc"))))
1474 (build-system meson-build-system)
1475 (inputs `(("cairo" ,cairo)
1476 ("gdk-pixbuf" ,gdk-pixbuf)
1477 ("wayland" ,wayland)))
1478 (native-inputs `(("pkg-config" ,pkg-config)
1480 ("wayland-protocols" ,wayland-protocols)))
1481 (home-page "https://github.com/swaywm/sway")
1482 (synopsis "Screen wallpaper utility for Wayland compositors")
1483 (description "Swaybg is a wallpaper utility for Wayland compositors.")
1484 (license license:expat))) ; MIT license
1486 (define-public waybar
1494 (url "https://github.com/Alexays/Waybar.git")
1496 (file-name (git-file-name name version))
1498 (base32 "0drlv8im5phz39jxp3gxkc40b6f85bb3piff2v3hmnfzh7ib915s"))))
1499 (build-system meson-build-system)
1502 (list (string-append "-Dout=" (assoc-ref %outputs "out")))))
1503 (inputs `(("date" ,date)
1505 ("gtk-layer-shell" ,gtk-layer-shell)
1507 ("jsoncpp" ,jsoncpp)
1508 ("libdbusmenu" ,libdbusmenu)
1509 ("libinput" ,libinput)
1510 ("libmpdclent" ,libmpdclient)
1512 ("pulseaudio" ,pulseaudio)
1514 ("wayland" ,wayland)))
1515 (native-inputs `(("glib:bin" ,glib "bin")
1516 ("pkg-config" ,pkg-config)
1517 ("wayland-protocols" ,wayland-protocols)))
1518 (home-page "https://github.com/Alexays/Waybar")
1519 (synopsis "Wayland bar for Sway and Wlroots based compositors")
1520 (description "Waybar is a highly customisable Wayland bar for Sway and
1521 Wlroots based compositors.")
1522 (license license:expat))) ; MIT license
1532 (url "https://github.com/emersion/mako.git")
1533 (commit (string-append "v" version))))
1534 (file-name (git-file-name name version))
1536 (base32 "11ymiq6cr2ma0iva1mqybn3j6k73bsc6lv6pcbdq7hkhd4f9b7j9"))))
1537 (build-system meson-build-system)
1538 (inputs `(("cairo" ,cairo)
1539 ("elogind" ,elogind)
1540 ("gdk-pixbuf" ,gdk-pixbuf)
1542 ("wayland" ,wayland)))
1543 (native-inputs `(("pkg-config" ,pkg-config)
1545 ("wayland-protocols" ,wayland-protocols)))
1546 (home-page "https://wayland.emersion.fr/mako")
1547 (synopsis "Lightweight Wayland notification daemon")
1548 (description "Mako is a lightweight notification daemon for Wayland
1549 compositors that support the layer-shell protocol.")
1550 (license license:expat))) ; MIT license
1552 (define-public stumpwm
1560 (url "https://github.com/stumpwm/stumpwm.git")
1562 (file-name (git-file-name "stumpwm" version))
1564 (base32 "1ha8803ll7472kqxsy2xz0v5d4sv8apmc9z631d67m31q0z1m9rz"))))
1565 (build-system asdf-build-system/sbcl)
1566 (native-inputs `(("fiasco" ,sbcl-fiasco)
1567 ("texinfo" ,texinfo)))
1568 (inputs `(("cl-ppcre" ,sbcl-cl-ppcre)
1570 ("alexandria" ,sbcl-alexandria)))
1571 (outputs '("out" "lib"))
1573 '(#:asd-system-name "stumpwm"
1575 (modify-phases %standard-phases
1576 (add-after 'create-symlinks 'build-program
1577 (lambda* (#:key outputs #:allow-other-keys)
1579 (string-append (assoc-ref outputs "out") "/bin/stumpwm")
1581 #:entry-program '((stumpwm:stumpwm) 0))))
1582 (add-after 'build-program 'create-desktop-file
1583 (lambda* (#:key outputs #:allow-other-keys)
1584 (let* ((out (assoc-ref outputs "out"))
1585 (xsessions (string-append out "/share/xsessions")))
1587 (call-with-output-file
1588 (string-append xsessions "/stumpwm.desktop")
1593 Comment=The Stump Window Manager~@
1594 Exec=~a/bin/stumpwm~@
1595 TryExec=~@*~a/bin/stumpwm~@
1600 (add-after 'install 'install-manual
1601 (lambda* (#:key outputs #:allow-other-keys)
1602 ;; The proper way to the manual is bootstrapping a full autotools
1603 ;; build system and running ‘./configure && make stumpwm.info’ to
1604 ;; do some macro substitution. We can get away with much less.
1605 (let* ((out (assoc-ref outputs "out"))
1606 (info (string-append out "/share/info")))
1607 (invoke "makeinfo" "stumpwm.texi.in")
1608 (install-file "stumpwm.info" info)
1610 (synopsis "Window manager written in Common Lisp")
1611 (description "Stumpwm is a window manager written entirely in Common Lisp.
1612 It attempts to be highly customizable while relying entirely on the keyboard
1613 for input. These design decisions reflect the growing popularity of
1614 productive, customizable lisp based systems.")
1615 (home-page "https://github.com/stumpwm/stumpwm")
1616 (license license:gpl2+)
1617 (properties `((cl-source-variant . ,(delay cl-stumpwm))))))
1619 (define-public sbcl-stumpwm
1620 (deprecated-package "sbcl-stumpwm" stumpwm))
1622 (define-public cl-stumpwm
1624 (inherit (sbcl-package->cl-source-package stumpwm))
1625 (name "cl-stumpwm")))
1627 (define-public stumpwm+slynk
1630 (name "stumpwm-with-slynk")
1633 `(("stumpwm" ,stumpwm "lib")
1634 ("slynk" ,sbcl-slynk)))
1636 (substitute-keyword-arguments (package-arguments stumpwm)
1638 `(modify-phases ,phases
1639 (replace 'build-program
1640 (lambda* (#:key inputs outputs #:allow-other-keys)
1641 (let* ((out (assoc-ref outputs "out"))
1642 (program (string-append out "/bin/stumpwm")))
1643 (build-program program outputs
1644 #:entry-program '((stumpwm:stumpwm) 0)
1645 #:dependencies '("stumpwm"
1646 ,@(@@ (gnu packages lisp-xyz) slynk-systems))
1647 #:dependency-prefixes
1648 (map (lambda (input) (assoc-ref inputs input))
1649 '("stumpwm" "slynk")))
1650 ;; Remove unneeded file.
1651 (delete-file (string-append out "/bin/stumpwm-exec.fasl"))
1653 (delete 'copy-source)
1656 (delete 'create-asd-file)
1658 (delete 'create-symlinks)))))))
1660 (define-public sbcl-stumpwm+slynk
1661 (deprecated-package "sbcl-stumpwm-with-slynk" stumpwm+slynk))
1663 (define-public lemonbar
1664 (let ((commit "35183ab81d2128dbb7b6d8e119cc57846bcefdb4")
1668 (version (git-version "1.3" revision commit))
1672 (url "https://github.com/LemonBoy/bar")
1674 (file-name (git-file-name name version))
1677 "1wwqbph392iwz8skaqxb0xpklb1l6yganqz80g4x1fhrnz7idmlh"))))
1678 (build-system gnu-build-system)
1680 '(#:tests? #f ; no test suite
1681 #:make-flags (list "CC=gcc"
1682 (string-append "PREFIX=" %output))
1684 (modify-phases %standard-phases
1685 (delete 'configure))))
1687 `(("libxcb" ,libxcb)))
1690 (home-page "https://github.com/LemonBoy/bar")
1691 (synopsis "Featherweight status bar")
1693 "@code{lemonbar} (formerly known as @code{bar}) is a lightweight
1694 bar entirely based on XCB. Provides full UTF-8 support, basic
1695 formatting, RandR and Xinerama support and EWMH compliance without
1696 wasting your precious memory.")
1697 (license license:x11))))