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, 2020 Efraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016 Al McElrath <hello@yrns.org>
10 ;;; Copyright © 2016 Carlo Zancanaro <carlo@zancanaro.id.au>
11 ;;; Copyright © 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
12 ;;; Copyright © 2016, 2017, 2018, 2020 Nikita <nikita@n0.is>
13 ;;; Copyright © 2016 doncatnip <gnopap@gmail.com>
14 ;;; Copyright © 2016 Ivan Vilata i Balaguer <ivan@selidor.net>
15 ;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com>
16 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <marius@gnu.org>
17 ;;; Copyright © 2017, 2020 Oleg Pykhalov <go.wigust@gmail.com>
18 ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
19 ;;; Copyright © 2018 Pierre-Antoine Rouby <contact@parouby.fr>
20 ;;; Copyright © 2018, 2019 Meiyo Peng <meiyo@riseup.net>
21 ;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
22 ;;; Copyright © 2019 Timothy Sample <samplet@ngyro.com>
23 ;;; Copyright © 2019 Gábor Boskovits <boskovits@gmail.com>
24 ;;; Copyright © 2019 Kyle Andrews <kyle.c.andrews@gmail.com>
25 ;;; Copyright © 2019 Ingo Ruhnke <grumbel@gmail.com>
26 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
27 ;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
28 ;;; Copyright © 2018, 2019 Pierre Langlois <pierre.langlois@gmx.com>
29 ;;; Copyright © 2016, 2017 Andy Patterson <ajpatter@uwaterloo.ca>
30 ;;; Copyright © 2019 Evan Straw <evan.straw99@gmail.com>
31 ;;; Copyright © 2019 Brett Gilio <brettg@gnu.org>
32 ;;; Copyright © 2019 Noodles! <nnoodle@chiru.no>
33 ;;; Copyright © 2019, 2020 Alexandru-Sergiu Marton <brown121407@member.fsf.org>
34 ;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
35 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
36 ;;; Copyright © 2020 Boris A. Dekshteyn <harlequin78@gmail.com>
37 ;;; Copyright © 2020 Marcin Karpezo <sirmacik@wioo.waw.pl>
38 ;;; Copyright © 2020 EuAndreh <eu@euandre.org>
39 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
40 ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
41 ;;; Copyright © 2020 B. Wilson <elaexuotee@wilsonb.com>
42 ;; Copyright © 2020 Niklas Eklund <niklas.eklund@posteo.net>
43 ;;; Copyright © 2020 Robert Smith <robertsmith@posteo.net>
45 ;;; This file is part of GNU Guix.
47 ;;; GNU Guix is free software; you can redistribute it and/or modify it
48 ;;; under the terms of the GNU General Public License as published by
49 ;;; the Free Software Foundation; either version 3 of the License, or (at
50 ;;; your option) any later version.
52 ;;; GNU Guix is distributed in the hope that it will be useful, but
53 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
54 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
55 ;;; GNU General Public License for more details.
57 ;;; You should have received a copy of the GNU General Public License
58 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
60 (define-module (gnu packages wm)
61 #:use-module ((guix licenses) #:prefix license:)
62 #:use-module (guix packages)
63 #:use-module (guix download)
64 #:use-module (guix git-download)
65 #:use-module (guix build-system asdf)
66 #:use-module (guix build-system cmake)
67 #:use-module (guix build-system gnu)
68 #:use-module (guix build-system haskell)
69 #:use-module (guix build-system meson)
70 #:use-module (guix build-system perl)
71 #:use-module (guix build-system python)
72 #:use-module (guix build-system trivial)
73 #:use-module (guix utils)
74 #:use-module (gnu packages)
75 #:use-module (gnu packages bash)
76 #:use-module (gnu packages autotools)
77 #:use-module (gnu packages base)
78 #:use-module (gnu packages bison)
79 #:use-module (gnu packages build-tools) ;for meson-0.55
80 #:use-module (gnu packages calendar)
81 #:use-module (gnu packages docbook)
82 #:use-module (gnu packages documentation)
83 #:use-module (gnu packages fontutils)
84 #:use-module (gnu packages freedesktop)
85 #:use-module (gnu packages fribidi)
86 #:use-module (gnu packages gawk)
87 #:use-module (gnu packages gcc)
88 #:use-module (gnu packages gl)
89 #:use-module (gnu packages glib)
90 #:use-module (gnu packages gperf)
91 #:use-module (gnu packages gtk)
92 #:use-module (gnu packages haskell-check)
93 #:use-module (gnu packages haskell-web)
94 #:use-module (gnu packages haskell-xyz)
95 #:use-module (gnu packages image)
96 #:use-module (gnu packages imagemagick)
97 #:use-module (gnu packages libevent)
98 #:use-module (gnu packages linux)
99 #:use-module (gnu packages lisp-xyz)
100 #:use-module (gnu packages logging)
101 #:use-module (gnu packages lua)
102 #:use-module (gnu packages m4)
103 #:use-module (gnu packages man)
104 #:use-module (gnu packages maths)
105 #:use-module (gnu packages mpd)
106 #:use-module (gnu packages pcre)
107 #:use-module (gnu packages perl)
108 #:use-module (gnu packages pkg-config)
109 #:use-module (gnu packages pretty-print)
110 #:use-module (gnu packages pulseaudio)
111 #:use-module (gnu packages python)
112 #:use-module (gnu packages readline)
113 #:use-module (gnu packages serialization)
114 #:use-module (gnu packages sphinx)
115 #:use-module (gnu packages suckless)
116 #:use-module (gnu packages texinfo)
117 #:use-module (gnu packages textutils)
118 #:use-module (gnu packages video)
119 #:use-module (gnu packages web)
120 #:use-module (gnu packages xdisorg)
121 #:use-module (gnu packages xml)
122 #:use-module (gnu packages xorg))
132 (url "https://github.com/baskerville/bspwm")
134 (file-name (git-file-name name version))
136 (base32 "0qlv7b4c2mmjfd65y100d11x8iqyg5f6lfiws3cgmpjidhdygnxc"))))
137 (build-system gnu-build-system)
140 ("libxinerama" ,libxinerama)
142 ("xcb-util" ,xcb-util)
143 ("xcb-util-keysyms" ,xcb-util-keysyms)
144 ("xcb-util-wm" ,xcb-util-wm)))
147 (modify-phases %standard-phases
148 (delete 'configure)) ; no configure script
149 #:tests? #f ; no check target
152 (string-append "PREFIX=" %output))))
153 (home-page "https://github.com/baskerville/bspwm")
154 (synopsis "Tiling window manager based on binary space partitioning")
155 (description "bspwm is a tiling window manager that represents windows as
156 the leaves of a full binary tree.")
157 (license license:bsd-2)))
159 (define-public herbstluftwm
161 (name "herbstluftwm")
166 (uri (string-append "https://herbstluftwm.org/tarballs/herbstluftwm-"
169 (base32 "1qmb4pjf2f6g0dvcg11cw9njwmxblhqzd70ai8qnlgqw1iz3nkm1"))
170 (file-name (string-append "herbstluftwm-" version ".tar.gz"))))
171 (build-system cmake-build-system)
178 ("xsetroot" ,xsetroot)
181 ("libxinerama" ,libxinerama)
182 ("libxrandr" ,libxrandr)))
184 `(("asciidoc" ,asciidoc)
185 ("pkg-config" ,pkg-config)))
189 (let ((out (assoc-ref %outputs "out")))
191 (string-append "-DCMAKE_INSTALL_SYSCONF_PREFIX=" out "/etc")
192 (string-append "-DBASHCOMPLETIONDIR=" out "/etc/bash_completion.d")))
194 (modify-phases %standard-phases
195 (add-after 'install 'install-xsession
196 (lambda* (#:key outputs #:allow-other-keys)
197 (let* ((out (assoc-ref outputs "out"))
198 (xsessions (string-append out "/share/xsessions")))
200 (call-with-output-file
201 (string-append xsessions "/herbstluftwm.desktop")
206 Comment=Manual tiling window manager~@
207 Exec=~a/bin/herbstluftwm~@
208 Type=XSession~%" out)))
210 (synopsis "Tiling window manager for X11")
211 (description "herbstluftwm is a manual tiling window manager for X11 using
212 Xlib and GLib. Its main features are:
216 The layout is based on splitting frames into subframes which can be split
217 again or can be filled with windows (similar to i3 or musca).
220 Tags (or workspaces or virtual desktops or …) can be added/removed at runtime.
221 Each tag contains an own layout.
224 Exactly one tag is viewed on each monitor. The tags are monitor independent
228 It is configured at runtime via IPC calls from @command{herbstclient}. So the
229 configuration file is just a script which is run on startup (similar to wmii
233 (home-page "https://herbstluftwm.org")
234 (license license:bsd-2)))
236 (define-public i3status
242 (uri (string-append "https://i3wm.org/i3status/i3status-"
246 "0rhlzb96mw64z2jnhwz9nibc7pxg549626lz5642xxk5hpzwk2ff"))))
247 (build-system gnu-build-system)
249 `(;; XXX: Do an "out of source" build to work around
250 ;; <https://github.com/i3/i3status/issues/339>.
252 #:tests? #f)) ; no test suite
254 `(("openlibm" ,openlibm)
255 ("libconfuse" ,libconfuse)
257 ("alsa-lib" ,alsa-lib)
258 ("pulseaudio" ,pulseaudio)
261 ("asciidoc" ,asciidoc)))
263 `(("pkg-config" ,pkg-config)
264 ("docbook-xsl" ,docbook-xsl)
265 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
267 (home-page "https://i3wm.org/i3status/")
268 (synopsis "Status bar for i3bar, dzen2, xmobar or similar programs")
269 (description "i3status is a small program for generating a status bar for
270 i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient
271 by issuing a very small number of system calls, as one generally wants to
272 update such a status line every second. This ensures that even under high
273 load, your status bar is updated correctly. Also, it saves a bit of energy by
274 not hogging your CPU as much as spawning the corresponding amount of shell
276 (license license:bsd-3)))
284 (uri (string-append "https://i3wm.org/downloads/i3-"
288 "03dijnwv2n8ak9jq59fhq0rc80m5wjc9d54fslqaivnnz81pkbjk"))))
289 (build-system gnu-build-system)
292 ;; The build system tries to build in a separate directory, but that
293 ;; seems to be unnecessary.
294 (list "--disable-builddir")
296 ;; The test suite requires the unpackaged Xephyr X server.
299 (modify-phases %standard-phases
300 (add-after 'install 'patch-session-file
301 (lambda* (#:key outputs #:allow-other-keys)
302 (let* ((out (assoc-ref outputs "out"))
303 (i3 (string-append out "/bin/i3"))
304 (i3-with-shmlog (string-append out "/bin/i3-with-shmlog")))
305 (substitute* (string-append out "/share/xsessions/i3.desktop")
306 (("Exec=i3") (string-append "Exec=" i3)))
307 (substitute* (string-append out "/share/xsessions/i3-with-shmlog.desktop")
308 (("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog)))
312 ("xcb-util" ,xcb-util)
313 ("xcb-util-cursor" ,xcb-util-cursor)
314 ("xcb-util-keysyms" ,xcb-util-keysyms)
315 ("xcb-util-wm" ,xcb-util-wm)
316 ("xcb-util-xrm" ,xcb-util-xrm)
317 ("libxkbcommon" ,libxkbcommon)
320 ("asciidoc" ,asciidoc)
322 ("perl-pod-simple" ,perl-pod-simple)
325 ("startup-notification" ,startup-notification)
331 ("pkg-config" ,pkg-config)
332 ;; For building the documentation.
334 ("docbook-xsl" ,docbook-xsl)))
335 (home-page "https://i3wm.org/")
336 (synopsis "Tiling window manager")
337 (description "i3 is a tiling X11 window manager that dynamically manages
338 tiled, stacked, and tabbed window layouts.
340 i3 primarily targets advanced users. Windows are managed manually and organised
341 inside containers, which can be split vertically or horizontally, and optionally
344 i3 uses a plain-text configuration file, and can be extended and controlled from
345 many programming languages.")
346 (license license:bsd-3)))
348 (define-public i3-gaps
349 (package (inherit i3-wm)
355 "https://github.com/Airblader/i3/releases/download/"
356 version "/i3-" version ".tar.bz2"))
359 "1hcakwyz78lgp8mhqv7pw86jlb3m415pfql1q19rkijnhm3fn3ci"))))
360 (home-page "https://github.com/Airblader/i3")
361 (synopsis "Tiling window manager with gaps")
362 (description "i3-gaps is a fork of i3wm, a tiling window manager
363 for X11. It is kept up to date with upstream, adding a few additional
364 features such as gaps between windows.
366 i3 is a tiling X11 window manager that dynamically manages tiled, stacked,
367 and tabbed window layouts.
369 i3 primarily targets advanced users. Windows are managed manually and
370 organised inside containers, which can be split vertically or horizontally,
371 and optionally resized.
373 i3 uses a plain-text configuration file, and can be extended and controlled
374 from many programming languages.")
375 (license license:bsd-3)))
377 (define-public i3lock
383 (uri (string-append "https://i3wm.org/i3lock/i3lock-"
387 "015dn534m7cxjvqdncpvaq9p8b2r4w5hp1yanbdy2abmhbcc7a7j"))))
388 (build-system gnu-build-system)
390 `(("pkg-config" ,pkg-config)))
394 ("linux-pam" ,linux-pam)
396 ("libxkbcommon" ,libxkbcommon)
397 ("xcb-util" ,xcb-util)
398 ("xcb-util-image" ,xcb-util-image)
399 ("xcb-util-xrm" ,xcb-util-xrm)))
400 (home-page "https://i3wm.org/i3lock/")
401 (synopsis "Lightweight screen locker")
403 "i3lock is a simple X11 screen locker developed alongside the i3 project.
404 Despite the name it should work with any X11 window manager.")
405 (license license:bsd-3)))
407 (define-public i3blocks
414 (url "https://github.com/vivien/i3blocks")
418 "0v8mwnm8qzpv6xnqvrk43s4b9iyld4naqzbaxk4ldq1qkhai0wsv"))
419 (file-name (git-file-name name version))))
420 (build-system gnu-build-system)
422 `(("autoconf" ,autoconf)
423 ("automake" ,automake)
424 ("pkg-config" ,pkg-config)))
425 (home-page "https://github.com/vivien/i3blocks")
426 (synopsis "Minimalist scheduler for status bar scripts")
427 (description "i3blocks executes your command lines and generates a
428 status line from their output. The generated line is meant to be displayed by
429 the i3 window manager through its i3bar component, as an alternative to
431 (license license:gpl3+)))
433 (define-public perl-anyevent-i3
435 (name "perl-anyevent-i3")
439 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTPLBG/"
440 "AnyEvent-I3-" version ".tar.gz"))
443 "0qvd9bq16jyy7v3ma82qcnvz9j503bw0mh7h55gkjf7ir62ck0jk"))))
444 (build-system perl-build-system)
446 `(("perl-anyevent" ,perl-anyevent)
447 ("perl-json-xs" ,perl-json-xs)))
448 (home-page "https://metacpan.org/release/AnyEvent-I3")
450 "Communicate with the i3 window manager through perl")
452 "This module connects to the i3 window manager using the UNIX socket
453 based IPC interface it provides (if enabled in the configuration file).
454 You can then subscribe to events or send messages and receive their replies.")
455 ;; Can be used with either license.
456 (license (list license:gpl3+ license:perl-license))))
458 (define-public python-i3-py
460 (name "python-i3-py")
464 ;; The latest release is not tagged in Git nor has an entry in PyPi,
465 ;; but there is still a clear commit for it, and it's been the last one
469 (url "https://github.com/ziberna/i3-py")
470 (commit "27f88a616e9ecc340e7d041d3d00782f8a1964c1")))
473 "1nm719dc2xqlll7vj4c4m7mpjb27lpn3bg3c66gajvnrz2x1nmxs"))
474 (file-name (string-append name "-" version "-checkout"))))
475 (build-system python-build-system)
477 `(#:tests? #f ; no tests yet
478 #:phases (modify-phases %standard-phases
479 (add-after 'install 'install-doc
480 ;; Copy readme file to documentation directory.
481 (lambda* (#:key outputs #:allow-other-keys)
482 (let ((doc (string-append (assoc-ref outputs "out")
483 "/share/doc/" ,name)))
484 (install-file "README.md" doc)
485 ;; Avoid unspecified return value.
489 (home-page "https://github.com/ziberna/i3-py")
490 (synopsis "Python interface to the i3 window manager")
491 (description "This package allows you to interact from a Python program
492 with the i3 window manager via its IPC socket. It can send commands and other
493 kinds of messages to i3, select the affected containers, filter results and
494 subscribe to events.")
495 (license license:gpl3+)))
497 (define-public python2-i3-py
498 (package-with-python2 python-i3-py))
500 (define-public quickswitch-i3
501 (let ((commit "ed692b1e8f43b95bd907ced26238ce8ccb2ed28f")
502 (revision "1")) ; Guix package revision
504 (name "quickswitch-i3")
505 (version (string-append "2.2-" revision "."
506 (string-take commit 7)))
509 ;; The latest commit is a few years old and just a couple commits
510 ;; after the last tagged release, so we use that latest commit
511 ;; instead of the release.
514 (url "https://github.com/proxypoke/quickswitch-for-i3")
518 "0447077sama80jcdg5p64zjsvafmz5rbdrirhm1adcdjhkh6iqc5"))
519 (patches (search-patches "quickswitch-fix-dmenu-check.patch"))
520 (file-name (string-append name "-" version "-checkout"))))
521 (build-system python-build-system)
523 `(#:tests? #f ; no tests yet
524 #:phases (modify-phases %standard-phases
525 (add-after 'install 'install-doc
526 ;; Copy readme file to documentation directory.
527 (lambda* (#:key outputs #:allow-other-keys)
528 (let ((doc (string-append (assoc-ref outputs "out")
529 "/share/doc/" ,name)))
530 (install-file "README.rst" doc)
531 ;; Avoid unspecified return value.
534 `(("python-i3-py" ,python-i3-py)
536 (home-page "https://github.com/proxypoke/quickswitch-for-i3")
537 (synopsis "Quickly change to and locate windows in the i3 window manager")
539 "This utility for the i3 window manager allows you to quickly switch to
540 and locate windows on all your workspaces, using an interactive dmenu
542 (license license:wtfpl2))))
544 (define-public i3lock-color
546 (name "i3lock-color")
552 (url "https://github.com/PandorasFox/i3lock-color")
554 (file-name (git-file-name name version))
556 (base32 "08fhnchf187b73h52xgzb86g6byzxz085zs9galsvl687g5zxk34"))))
557 (build-system gnu-build-system)
559 `(#:tests? #f)) ; no tests included
563 ("libjpeg" ,libjpeg-turbo)
565 ("libxkbcommon" ,libxkbcommon)
566 ("linux-pam" ,linux-pam)
567 ("xcb-util" ,xcb-util)
568 ("xcb-util-image" ,xcb-util-image)
569 ("xcb-util-xrm" ,xcb-util-xrm)))
571 `(("autoconf" ,autoconf)
572 ("automake" ,automake)
573 ("pkg-config" ,pkg-config)))
574 (home-page "https://github.com/PandorasFox/i3lock-color")
575 (synopsis "Screen locker with color configuration support")
577 "i3lock-color is a simpler X11 screen locker derived from i3lock.
581 @item forking process, the locked screen is preserved when you suspend to RAM;
582 @item specify background color or image to be displayed in the lock screen;
583 @item many additional color options.
585 (license license:bsd-3)))
587 (define-public i3lock-fancy
589 (name "i3lock-fancy")
595 (url "https://github.com/meskarune/i3lock-fancy")
597 (file-name (git-file-name name version))
599 (base32 "11g2kkim33ra38d1m897sq1ifajw17iyw9mr7sg1q8i2ibl4lfsi"))))
600 (build-system gnu-build-system)
602 `(#:tests? #f ; no tests included
604 (modify-phases %standard-phases
606 (lambda* (#:key inputs outputs #:allow-other-keys)
607 (let* ((out (assoc-ref outputs "out"))
608 (icons (string-append out "/share/i3lock-fancy/icons/"))
609 (wmctrl (string-append (assoc-ref inputs "wmctrl")
611 (mconvert (string-append (assoc-ref inputs "imagemagick")
613 (mimport (string-append (assoc-ref inputs "imagemagick")
615 (awk (string-append (assoc-ref inputs "gawk")
619 (("\\$\\(command -V wmctrl\\)") wmctrl)
620 (("convert") mconvert)
621 (("shot=\\(import") (string-append "shot=\(" mimport))
622 (("awk -F") (string-append awk " -F"))
624 (("\\$scriptpath/icons/") icons))
628 (lambda* (#:key inputs outputs #:allow-other-keys)
629 (let* ((out (assoc-ref outputs "out"))
630 (bin (string-append out "/bin"))
631 (icons (string-append out "/share/i3lock-fancy/icons/")))
633 (install-file "lock" bin)
634 (rename-file (string-append bin "/lock")
635 (string-append bin "/i3lock-fancy"))
636 (copy-recursively "icons" icons)
639 `(("imagemagick" ,imagemagick)
642 (home-page "https://github.com/meskarune/i3lock-fancy")
643 (synopsis "Screen locker with screenshot function")
645 "@code{i3lock-fancy} is a Bash script that takes a screenshot of
646 the desktop, blurs the background and adds a lock icon and text.
647 It requires @code{i3lock-color} or @code{i3lock} and can optionally
648 be passed any screenshot util like @code{scrot}.
649 This screen locker can be used with any window manager or
650 desktop environment.")
651 (license license:expat)))
653 (define-public xmonad
657 (synopsis "Tiling window manager")
660 (uri (string-append "mirror://hackage/package/xmonad/"
661 "xmonad-" version ".tar.gz"))
664 "0a7rh21k9y6g8fwkggxdxjns2grvvsd5hi2ls4klmqz5xvk4hyaa"))
665 (patches (search-patches "xmonad-dynamic-linking.patch"))))
666 (build-system haskell-build-system)
668 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
669 ("ghc-quickcheck" ,ghc-quickcheck)
670 ("ghc-semigroups" ,ghc-semigroups)
671 ("ghc-setlocale" ,ghc-setlocale)
672 ("ghc-utf8-string" ,ghc-utf8-string)
673 ("ghc-x11" ,ghc-x11)))
676 (modify-phases %standard-phases
678 'install 'install-xsession
680 (let* ((xsessions (string-append %output "/share/xsessions")))
682 (call-with-output-file
683 (string-append xsessions "/xmonad.desktop")
690 Type=Application~%" ,name ,synopsis %output)))))))))
691 (home-page "https://xmonad.org")
693 "Xmonad is a tiling window manager for X. Windows are arranged
694 automatically to tile the screen without gaps or overlap, maximising screen
695 use. All features of the window manager are accessible from the keyboard: a
696 mouse is strictly optional. Xmonad is written and extensible in Haskell.
697 Custom layout algorithms, and other extensions, may be written by the user in
698 config files. Layouts are applied dynamically, and different layouts may be
699 used on each workspace. Xinerama is fully supported, allowing windows to be
700 tiled on several screens.")
701 (license license:bsd-3)))
703 (define-public xmobar
709 (uri (string-append "mirror://hackage/package/xmobar/"
710 "xmobar-" version ".tar.gz"))
713 "0x09xbz7y9ay0046j1xpr9jjk5jqivqi06vm3q6mhcrgc4y922rx"))))
714 (build-system haskell-build-system)
716 `(("ghc-hspec" ,ghc-hspec)
717 ("hspec-discover" ,hspec-discover)))
719 `(("ghc-alsa-core" ,ghc-alsa-core)
720 ("ghc-alsa-mixer" ,ghc-alsa-mixer)
721 ("ghc-dbus" ,ghc-dbus)
722 ("ghc-hinotify" ,ghc-hinotify)
723 ("ghc-http" ,ghc-http)
724 ("ghc-http-conduit" ,ghc-http-conduit)
725 ("ghc-http-types" ,ghc-http-types)
726 ("ghc-iwlib" ,ghc-iwlib)
727 ("ghc-libmpd" ,ghc-libmpd)
728 ("ghc-old-locale" ,ghc-old-locale)
729 ("ghc-parsec-numbers" ,ghc-parsec-numbers)
730 ("ghc-regex-compat" ,ghc-regex-compat)
731 ("ghc-temporary" ,ghc-temporary)
732 ("ghc-timezone-olson" ,ghc-timezone-olson)
734 ("ghc-x11-xft" ,ghc-x11-xft)
737 `(#:configure-flags (list "--flags=all_extensions")
739 (modify-phases %standard-phases
740 (add-before 'build 'patch-test-shebang
741 (lambda* (#:key inputs #:allow-other-keys)
742 (substitute* "test/Xmobar/Plugins/Monitors/AlsaSpec.hs"
743 (("/bin/bash") (which "bash")))
745 (home-page "https://xmobar.org")
746 (synopsis "Minimalistic text based status bar")
748 "@code{xmobar} is a lightweight, text-based, status bar written in
749 Haskell. It was originally designed to be used together with Xmonad, but it
750 is also usable with any other window manager. While xmobar is written in
751 Haskell, no knowledge of the language is required to install and use it.")
752 (license license:bsd-3)))
754 (define-public yeganesh
762 (uri (string-append "http://dmwit.com/yeganesh/yeganesh-" version ".tar.gz"))
764 (base32 "04djfyjab3c5y9z9x8zd0xcx0jyy35zq7cl9ddr4ppf6k5ky6iky"))))
765 (build-system haskell-build-system)
767 `(("ghc-strict" ,ghc-strict)
768 ("ghc-xdg-basedir" ,ghc-xdg-basedir)))
769 (home-page "http://dmwit.com/yeganesh/")
770 (synopsis "Small wrapper around dmenu")
771 (description "@code{yeganesh} is a small wrapper around demnu. Like
772 dmenu, it accepts input on stdin and writes the chosen result on stdout.
773 Unlike dmenu, it mangles the input before it presents its choices. In
774 particular, it displays commonly-chosen options before uncommon ones.")
775 (license license:bsd-3)))
777 (define-public ghc-xmonad-contrib
779 (name "ghc-xmonad-contrib")
784 (uri (string-append "mirror://hackage/package/xmonad-contrib/"
785 "xmonad-contrib-" version ".tar.gz"))
787 (base32 "1pddgkvnbww28wykncc7j0yb0lv15bk7xnnhdcbrwkxzw66w6wmd"))))
788 (build-system haskell-build-system)
790 `(("ghc-old-time" ,ghc-old-time)
791 ("ghc-random" ,ghc-random)
792 ("ghc-utf8-string" ,ghc-utf8-string)
793 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
794 ("ghc-semigroups" ,ghc-semigroups)
796 ("ghc-x11-xft" ,ghc-x11-xft)
798 (home-page "https://xmonad.org")
799 (synopsis "Third party extensions for xmonad")
801 "Third party tiling algorithms, configurations, and scripts to Xmonad, a
802 tiling window manager for X.")
803 (license license:bsd-3)))
805 (define-public evilwm
812 (uri (string-append "http://www.6809.org.uk/evilwm/evilwm-"
816 "0ak0yajzk3v4dg5wmaghv6acf7v02a4iw8qxmq5yw5ard8lrqn3r"))
817 (patches (search-patches "evilwm-lost-focus-bug.patch"))))
818 (build-system gnu-build-system)
822 ("libxrandr" ,libxrandr)))
824 `(#:modules ((srfi srfi-26)
826 (guix build gnu-build-system))
827 #:make-flags (let ((inputs (map (cut assoc-ref %build-inputs <>)
828 '("libx11" "libxext" "libxrandr")))
829 (join (lambda (proc strs)
830 (string-join (map proc strs) " ")))
831 (dash-I (cut string-append "-I" <> "/include"))
832 (dash-L (cut string-append "-L" <> "/lib")))
833 `("desktopfilesdir=$(prefix)/share/xsessions"
834 ,(string-append "prefix=" (assoc-ref %outputs "out"))
835 ,(string-append "CPPFLAGS=" (join dash-I inputs))
836 ,(string-append "LDFLAGS=" (join dash-L inputs))))
837 #:tests? #f ;no tests
838 #:phases (modify-phases %standard-phases
839 (delete 'configure)))) ;no configure script
840 (home-page "http://www.6809.org.uk/evilwm/")
841 (synopsis "Minimalist window manager for the X Window System")
843 "evilwm is a minimalist window manager based on aewm, extended to feature
844 many keyboard controls with repositioning and maximize toggles, solid window
845 drags, snap-to-border support, and virtual desktops.")
846 (license (license:x11-style "file:///README"))))
848 (define-public fluxbox
852 (synopsis "Small and fast window manager")
855 (uri (string-append "mirror://sourceforge/fluxbox/fluxbox/"
856 version "/fluxbox-" version ".tar.xz"))
859 "1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w"))))
860 (build-system gnu-build-system)
862 `(#:make-flags '("CPPFLAGS=-U__TIME__") ;ugly, but for reproducibility
864 (modify-phases %standard-phases
865 (add-after 'install 'install-vim-files
866 (lambda* (#:key outputs #:allow-other-keys)
867 (let* ((out (assoc-ref outputs "out"))
868 (syntax (string-append out "/share/vim/vimfiles/syntax")))
869 (copy-recursively "3rd/vim/vim/syntax" syntax)
871 (add-after 'install 'install-xsession
872 (lambda* (#:key outputs #:allow-other-keys)
873 (let* ((out (assoc-ref outputs "out"))
874 (xsessions (string-append out "/share/xsessions")))
876 (call-with-output-file
877 (string-append xsessions "/fluxbox.desktop")
883 Exec=~a/bin/startfluxbox~@
884 Type=Application~%" ,name ,synopsis out)))
887 `(("pkg-config" ,pkg-config)))
889 `(("freetype" ,freetype)
895 ("libxinerama" ,libxinerama)
897 ("libxrandr" ,libxrandr)
898 ("libxrender" ,libxrender)))
899 (description "Fluxbox is a window manager. It is light on resources
900 and easy to handle yet full of features to make an easy and fast desktop
902 (home-page "http://fluxbox.org/")
903 (license license:expat)))
905 (define-public awesome
913 "https://github.com/awesomeWM/awesome-releases/raw/master/"
914 "awesome-" version ".tar.xz"))
916 (base32 "0lqpw401mkkmp9wgbvrmm45bqq2j9357l4irwdqv6l1305pls9kq"))
917 (modules '((guix build utils)
921 ;; Remove non-reproducible timestamp and use the date of
922 ;; the source file instead.
923 (substitute* "common/version.c"
924 (("__DATE__ \" \" __TIME__")
927 (make-time time-utc 0 (stat:mtime (stat "awesome.c"))))
931 (search-patches "awesome-reproducible-png.patch"))))
932 (build-system cmake-build-system)
934 `(("asciidoc" ,asciidoc)
935 ("docbook-xsl" ,docbook-xsl)
938 ("imagemagick" ,imagemagick)
939 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
940 ("lua-ldoc" ,lua-ldoc)
941 ("pkg-config" ,pkg-config)
946 ("gdk-pixbuf" ,gdk-pixbuf)
948 ("gobject-introspection" ,gobject-introspection)
952 ("libxcursor" ,libxcursor)
953 ("libxdg-basedir" ,libxdg-basedir)
954 ("libxkbcommon" ,libxkbcommon)
958 ("startup-notification" ,startup-notification)
959 ("xcb-util" ,xcb-util)
960 ("xcb-util-cursor" ,xcb-util-cursor)
961 ("xcb-util-image" ,xcb-util-image)
962 ("xcb-util-keysyms" ,xcb-util-keysyms)
963 ("xcb-util-renderutil" ,xcb-util-renderutil)
964 ("xcb-util-xrm" ,xcb-util-xrm)
965 ("xcb-util-wm" ,xcb-util-wm)))
967 `(#:modules ((guix build cmake-build-system)
970 ;; Let compression happen in our 'compress-documentation' phase
971 ;; so that '--no-name' is used, which removes timestamps from
974 '("-DCOMPRESS_MANPAGES=off")
975 ;; Building awesome in its source directory is no longer
979 (modify-phases %standard-phases
980 (add-before 'configure 'set-paths
981 (lambda* (#:key inputs #:allow-other-keys)
982 (substitute* "lib/awful/completion.lua"
985 ;; The build process needs to load Cairo dynamically.
986 (let* ((cairo (string-append (assoc-ref inputs "cairo") "/lib"))
987 (lua-version ,(version-major+minor (package-version lua)))
989 (filter (match-lambda
990 ((label . _) (string-prefix? "lua-" label)))
997 dir "/share/lua/" lua-version "/?.lua;"
998 dir "/share/lua/" lua-version "/?/?.lua")))
1006 dir "/lib/lua/" lua-version "/?.so;"
1007 dir "/lib/lua/" lua-version "/?/?.so")))
1010 (setenv "LD_LIBRARY_PATH" cairo)
1011 (setenv "LUA_PATH" (string-append "?.lua;" lua-path))
1012 (setenv "LUA_CPATH" lua-cpath)
1016 ;; There aren't any tests, so just make sure the binary
1017 ;; gets built and can be run successfully.
1018 (invoke "../build/awesome" "-v")))
1019 (add-after 'install 'patch-session-file
1020 (lambda* (#:key outputs #:allow-other-keys)
1021 (let* ((out (assoc-ref outputs "out"))
1022 (awesome (string-append out "/bin/awesome")))
1023 (substitute* (string-append out "/share/xsessions/awesome.desktop")
1024 (("Exec=awesome") (string-append "Exec=" awesome)))
1026 (add-after 'install 'wrap
1027 (lambda* (#:key inputs outputs #:allow-other-keys)
1028 (let* ((awesome (assoc-ref outputs "out"))
1029 (cairo (string-append (assoc-ref inputs "cairo") "/lib"))
1030 (lua-version ,(version-major+minor (package-version lua)))
1031 (lua-lgi (assoc-ref inputs "lua-lgi")))
1032 (wrap-program (string-append awesome "/bin/awesome")
1033 `("LUA_PATH" ";" suffix
1034 (,(format #f "~a/share/lua/~a/?.lua" lua-lgi lua-version)))
1035 `("LUA_CPATH" ";" suffix
1036 (,(format #f "~a/lib/lua/~a/?.so" lua-lgi lua-version)))
1037 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))
1038 `("LD_LIBRARY_PATH" suffix (,cairo)))
1040 (home-page "https://awesomewm.org/")
1041 (synopsis "Highly configurable window manager")
1043 "Awesome has been designed as a framework window manager. It is fast, small,
1044 dynamic and extensible using the Lua programming language.")
1045 (license license:gpl2+)))
1047 (define-public menumaker
1054 (uri (string-append "mirror://sourceforge/menumaker/"
1055 "menumaker-" version ".tar.gz"))
1057 (base32 "034v5204bsgkzzk6zfa5ia63q95gln47f7hwf96yvad5hrhmd8z3"))))
1058 (build-system gnu-build-system)
1060 `(("python" ,python)))
1061 (synopsis "Heuristics-driven menu generator")
1063 "MenuMaker is a menu generation utility for a number of X window
1064 managers and desktop environments. It is capable of finding lots of
1065 installed programs and generating a root menu consistent across all
1066 supported window managers, so one will get (almost) the same menu in
1067 all of them. Currently supported window managers include:
1079 (home-page "http://menumaker.sourceforge.net/")
1080 (license license:bsd-2)))
1082 (define-public keybinder
1089 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1090 "/releases/download/v" version "/keybinder-"
1092 (file-name (string-append name "-" version ".tar.gz"))
1095 "0h52hj3ay8mfhwvmfxbxlfyq74hifdk8wxgxp7fr4iy6189hg7w7"))))
1096 (build-system gnu-build-system)
1098 `(("python-2" ,python-2)
1099 ("gtk+-2" ,gtk+-2)))
1101 `(("python2-pygtk" ,python2-pygtk)
1102 ("gtk-doc" ,gtk-doc)
1103 ("pkg-config" ,pkg-config)))
1104 (synopsis "Library for registering global keyboard shortcuts")
1106 "Keybinder is a library for registering global keyboard shortcuts.
1107 Keybinder works with GTK-based applications using the X Window System.")
1108 (home-page "https://github.com/kupferlauncher/keybinder")
1109 (license license:gpl2+)))
1111 (define-public keybinder-3.0
1113 (name "keybinder-3.0")
1118 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1119 "/releases/download/" name "-v" version "/" name "-"
1121 (file-name (string-append name "-" version ".tar.gz"))
1124 "0830ihwnalw59pp1xzrp37dn58n8vwb8zasnm4a1h81v3x7dxqz6"))))
1125 (build-system gnu-build-system)
1128 ("gobject-introspection" ,gobject-introspection)))
1130 `(("gtk-doc" ,gtk-doc)
1131 ("pkg-config" ,pkg-config)))
1132 (synopsis "Library for registering global keyboard shortcuts, Gtk3 version")
1134 "Keybinder is a library for registering global keyboard shortcuts.
1135 Keybinder works with GTK-based applications using the X Window System.")
1136 (home-page "https://github.com/kupferlauncher/keybinder")
1137 (license license:x11)))
1139 (define-public spectrwm
1147 (url "https://github.com/conformal/spectrwm")
1149 (string-append "SPECTRWM_"
1150 (string-join (string-split version #\.) "_")))))
1151 (file-name (git-file-name name version))
1153 (base32 "1dfqy5f0s1nv6rqkz9lj006vypmp4rwxd5vczfk3ndzqgnh19kw6"))))
1154 (build-system gnu-build-system)
1156 `(#:make-flags (let ((pkg-config (lambda (flag)
1158 "$(shell pkg-config " flag " "
1159 "xft fontconfig x11 libpng)"))))
1162 (string-append "PREFIX=" %output)
1163 (string-append "INCS=-I. " (pkg-config "--cflags"))
1164 (string-append "LIBS=" (pkg-config "--libs") " -lm")))
1165 #:tests? #f ;no test suite
1167 (modify-phases %standard-phases
1168 (add-before 'build 'change-dir
1170 (chdir "linux") #t))
1171 (add-after 'change-dir 'patch-makefile
1173 (substitute* "Makefile"
1175 (delete 'configure)))) ;no 'configure' exists
1177 `(("freetype" ,freetype)
1178 ("fontconfig" ,fontconfig)
1180 ("libxcursor" ,libxcursor)
1181 ("libxrandr" ,libxrandr)
1182 ("libxtst" ,libxtst)
1184 ("xcb-util" ,xcb-util)
1185 ("xcb-util-wm" ,xcb-util-wm)
1186 ("xcb-util-keysyms" ,xcb-util-keysyms)))
1189 ("pkg-config" ,pkg-config)))
1190 (synopsis "Minimalistic automatic tiling window manager")
1192 "Spectrwm is a small dynamic tiling and reparenting window manager for X11.
1193 It is inspired by Xmonad and dwm. Its major features include:
1196 @item Navigation anywhere on all screens with either the keyboard or mouse
1197 @item Customizable status bar
1198 @item Restartable without losing state
1199 @item Quick launch menu
1200 @item Many screen layouts possible with a few simple key strokes
1201 @item Move/resize floating windows
1202 @item Extended Window Manager Hints (@dfn{EWMH}) support
1203 @item Configurable tiling
1204 @item Adjustable tile gap allows for a true one pixel border
1205 @item Customizable colors and border width
1207 (home-page "https://github.com/conformal/spectrwm")
1208 (license license:isc)))
1217 (uri (string-append "https://leahneukirchen.org/releases/cwm-"
1220 (base32 "022zld29qawd8gl700g4m24qa89il3aks397zkhh66wvzssdblzx"))))
1221 (build-system gnu-build-system)
1223 `(#:make-flags (list (string-append "CC=" ,(cc-for-target))
1224 (string-append "PREFIX=" %output))
1227 (modify-phases %standard-phases
1229 (add-after 'build 'install-xsession
1230 (lambda* (#:key outputs #:allow-other-keys)
1231 ;; Add a .desktop file to xsessions.
1232 (let* ((output (assoc-ref outputs "out"))
1233 (xsessions (string-append output "/share/xsessions")))
1235 (with-output-to-file
1236 (string-append xsessions "/cwm.desktop")
1241 Comment=OpenBSD Calm Window Manager fork~@
1243 TryExec=~@*~a/bin/cwm~@
1249 `(("libxft" ,libxft)
1250 ("libxrandr" ,libxrandr)
1251 ("libxinerama" ,libxinerama)))
1253 `(("pkg-config" ,pkg-config)
1255 (home-page "https://github.com/leahneukirchen/cwm")
1256 (synopsis "OpenBSD fork of the calmwm window manager")
1257 (description "Cwm is a stacking window manager for X11. It is an OpenBSD
1258 project derived from the original Calm Window Manager.")
1259 (license license:isc)))
1261 (define-public nitrogen
1267 (uri (string-append "http://github.com/l3ib/nitrogen/"
1268 "releases/download/" version "/"
1269 name "-" version ".tar.gz"))
1272 "0zc3fl1mbhq0iyndy4ysmy8vv5c7xwf54rbgamzfhfvsgdq160pl"))))
1273 (build-system gnu-build-system)
1278 ("glibmm" ,glibmm)))
1280 `(("pkg-config" ,pkg-config)))
1281 (home-page "http://projects.l3ib.org/nitrogen/")
1282 (synopsis "Background browser and setter for X windows")
1284 "This package is a background browser and setter for X windows. It's
1288 @item Multihead and Xinerama aware
1289 @item Recall mode to used via startup script
1290 @item Uses freedesktop.org standard for thumbnails
1291 @item Can set GNOME background
1292 @item Command lie set modes for script use
1293 @item Inotify monitoring of browse directory
1294 @item Lazy loading of thumbnails - conserves memory
1295 @item \"Automatic\" set mode - determines best mode to set an image based on
1297 @item Display preview images in a tiled icon layout
1299 (license license:gpl2+)))
1301 (define-public polybar
1308 (uri (string-append "https://github.com/polybar/polybar/releases/"
1309 "download/" version "/polybar-" version ".tar"))
1311 (base32 "0bw22qvbcdvyd0qv3ax48r34rnclbbb6dyb8h8zljq1r3lf15vfl"))))
1312 (build-system cmake-build-system)
1314 ;; Test is disabled because it requires downloading googletest from the
1318 `(("alsa-lib" ,alsa-lib)
1321 ("jsoncpp" ,jsoncpp)
1322 ("libmpdclient" ,libmpdclient)
1325 ("pulseaudio" ,pulseaudio)
1326 ("xcb-proto" ,xcb-proto)
1327 ("xcb-util" ,xcb-util)
1328 ("xcb-util-cursor" ,xcb-util-cursor)
1329 ("xcb-util-image" ,xcb-util-image)
1330 ("xcb-util-wm" ,xcb-util-wm)
1331 ("xcb-util-xrm" ,xcb-util-xrm)))
1333 `(("pkg-config" ,pkg-config)
1334 ("python-sphinx" ,python-sphinx) ; for the manual
1335 ;; XXX: "python" input must be located after "python-2", or the package
1336 ;; fails to build with "missing required python module: xcbgen".
1337 ("python-2" ,python-2) ; lib/xpp depends on python 2
1338 ("python" ,python))) ; xcb-proto depends on python 3
1339 (home-page "https://polybar.github.io/")
1340 (synopsis "Fast and easy-to-use status bar")
1341 (description "Polybar aims to help users build beautiful and highly
1342 customizable status bars for their desktop environment. It has built-in
1343 functionality to display information about the most commonly used services.")
1344 (license license:expat)))
1346 (define-public wlroots
1354 (url "https://github.com/swaywm/wlroots")
1356 (file-name (git-file-name name version))
1358 (base32 "01j38lmgs2c6fq68v8b75pkilia2wsgzgp46ivfbi9hhx47kgcfn"))))
1359 (build-system meson-build-system)
1361 `(#:configure-flags '("-Dlogind-provider=elogind")
1364 (modify-phases %standard-phases
1365 (add-before 'configure 'hardcode-paths
1366 (lambda* (#:key inputs #:allow-other-keys)
1367 (substitute* "xwayland/server.c"
1368 (("Xwayland") (string-append (assoc-ref inputs
1369 "xorg-server-xwayland")
1373 `(;; As required by wlroots.pc.
1374 ("elogind" ,elogind)
1376 ("libinput" ,libinput)
1377 ("libxkbcommon" ,libxkbcommon)
1380 ("wayland" ,wayland)
1381 ("xcb-util-errors" ,xcb-util-errors)
1382 ("xcb-util-wm" ,xcb-util-wm)
1383 ("xorg-server-xwayland" ,xorg-server-xwayland)))
1385 `(("pkg-config" ,pkg-config)
1386 ("wayland-protocols" ,wayland-protocols)))
1387 (home-page "https://github.com/swaywm/wlroots")
1388 (synopsis "Pluggable, composable, unopinionated modules for building a
1389 Wayland compositor")
1390 (description "wlroots is a set of pluggable, composable, unopinionated
1391 modules for building a Wayland compositor.")
1392 (license license:expat))) ; MIT license
1402 (url "https://github.com/swaywm/sway")
1404 (file-name (git-file-name name version))
1406 (base32 "1xsa3h8zhf29p0mi90baxpr76jkd9pd1gr97ky8cnjbcs4isj9j0"))))
1407 (build-system meson-build-system)
1410 (modify-phases %standard-phases
1411 (add-before 'configure 'hardcode-paths
1412 (lambda* (#:key inputs #:allow-other-keys)
1413 ;; Hardcode path to swaybg.
1414 (substitute* "sway/config.c"
1415 (("strdup..swaybg..")
1416 (string-append "strdup(\"" (assoc-ref inputs "swaybg")
1418 ;; Hardcode path to scdoc.
1419 (substitute* "meson.build"
1420 (("scdoc.get_pkgconfig_variable..scdoc..")
1421 (string-append "'" (assoc-ref inputs "scdoc")
1424 (inputs `(("cairo" ,cairo)
1425 ("elogind" ,elogind)
1426 ("gdk-pixbuf" ,gdk-pixbuf)
1428 ("libevdev" ,libevdev)
1429 ("libinput" ,libinput)
1430 ("libxkbcommon" ,libxkbcommon)
1433 ("wayland" ,wayland)
1434 ("wlroots" ,wlroots)))
1436 `(("linux-pam" ,linux-pam)
1438 ("pkg-config" ,pkg-config)
1440 ("wayland-protocols" ,wayland-protocols)))
1441 (home-page "https://github.com/swaywm/sway")
1442 (synopsis "Wayland compositor compatible with i3")
1443 (description "Sway is a i3-compatible Wayland compositor.")
1444 (license license:expat)))
1446 (define-public swayidle
1454 (url "https://github.com/swaywm/swayidle")
1456 (file-name (git-file-name name version))
1458 (base32 "1nd3v8r9549lykdwh4krldfl59lzaspmmai5k1icy7dvi6kkr18r"))))
1459 (build-system meson-build-system)
1461 `(#:configure-flags '("-Dlogind-provider=elogind")))
1462 (inputs `(("elogind" ,elogind)
1463 ("wayland" ,wayland)))
1464 (native-inputs `(("pkg-config" ,pkg-config)
1466 ("wayland-protocols" ,wayland-protocols)))
1467 (home-page "https://github.com/swaywm/sway")
1468 (synopsis "Idle management daemon for Wayland compositors")
1469 (description "Swayidle is a idle management daemon for Wayland compositors.")
1470 (license license:expat))) ; MIT license
1472 (define-public swaylock
1480 (url "https://github.com/swaywm/swaylock")
1482 (file-name (git-file-name name version))
1484 (base32 "0r95p4w11dwm5ra614vddz83r8j7z6gd120z2vcchy7m9b0f15kf"))))
1485 (build-system meson-build-system)
1486 (inputs `(("cairo" ,cairo)
1487 ("gdk-pixbuf" ,gdk-pixbuf)
1488 ("libxkbcommon" ,libxkbcommon)
1489 ;("linux-pam" ,linux-pam) ; FIXME: Doesn't work.
1490 ("wayland" ,wayland)))
1491 (native-inputs `(("pango" ,pango)
1492 ("pkg-config" ,pkg-config)
1494 ("wayland-protocols" ,wayland-protocols)))
1495 (home-page "https://github.com/swaywm/sway")
1496 (synopsis "Screen locking utility for Wayland compositors")
1497 (description "Swaylock is a screen locking utility for Wayland compositors.")
1498 (license license:expat))) ; MIT license
1500 (define-public swaybg
1508 (url "https://github.com/swaywm/swaybg")
1510 (file-name (git-file-name name version))
1512 (base32 "1lmqz5bmig90gq2m7lwf02d2g7z4hzf8fhqz78c8vk92c6p4xwbc"))))
1513 (build-system meson-build-system)
1514 (inputs `(("cairo" ,cairo)
1515 ("gdk-pixbuf" ,gdk-pixbuf)
1516 ("wayland" ,wayland)))
1517 (native-inputs `(("pkg-config" ,pkg-config)
1519 ("wayland-protocols" ,wayland-protocols)))
1520 (home-page "https://github.com/swaywm/sway")
1521 (synopsis "Screen wallpaper utility for Wayland compositors")
1522 (description "Swaybg is a wallpaper utility for Wayland compositors.")
1523 (license license:expat))) ; MIT license
1525 (define-public waybar
1533 (url "https://github.com/Alexays/Waybar")
1535 (file-name (git-file-name name version))
1537 (base32 "038vnma7y7z81caywp45yr364bc1aq8d01j5vycyiyfv33nm76fy"))))
1538 (build-system meson-build-system)
1539 (inputs `(("date" ,date)
1541 ("gtk-layer-shell" ,gtk-layer-shell)
1543 ("jsoncpp" ,jsoncpp)
1544 ("libdbusmenu" ,libdbusmenu)
1545 ("libinput" ,libinput)
1546 ("libmpdclent" ,libmpdclient)
1548 ("pulseaudio" ,pulseaudio)
1550 ("wayland" ,wayland)))
1552 `(("gcc" ,gcc-8) ; for #include <filesystem>
1553 ("glib:bin" ,glib "bin")
1554 ("pkg-config" ,pkg-config)
1556 ("wayland-protocols" ,wayland-protocols)))
1557 (home-page "https://github.com/Alexays/Waybar")
1558 (synopsis "Wayland bar for Sway and Wlroots based compositors")
1559 (description "Waybar is a highly customisable Wayland bar for Sway and
1560 Wlroots based compositors.")
1561 (license license:expat))) ; MIT license
1563 (define-public wlr-randr
1571 (url "https://github.com/emersion/wlr-randr")
1572 (commit (string-append "v" version))))
1573 (file-name (git-file-name name version))
1575 (base32 "10c8zzp78s5bw34vvjhilipa28bsdx3jbyhnxgp8f8kawh3cvgsc"))))
1576 (build-system meson-build-system)
1577 (inputs `(("wayland" ,wayland)))
1578 (native-inputs `(("pkg-config" ,pkg-config)))
1579 (home-page "https://github.com/emersion/wlr-randr")
1580 (synopsis "Utility to manage Wayland compositor outputs")
1581 (description "wlr-randr is a utility to manage outputs of a Wayland compositor.")
1582 (license license:expat))) ; MIT license
1592 (url "https://github.com/emersion/mako")
1593 (commit (string-append "v" version))))
1594 (file-name (git-file-name name version))
1596 (base32 "0hwvibpnrximb628w9dsfjpi30b5jy7nfkm4d94z5vhp78p43vxh"))))
1597 (build-system meson-build-system)
1598 (inputs `(("cairo" ,cairo)
1599 ("elogind" ,elogind)
1600 ("gdk-pixbuf" ,gdk-pixbuf)
1602 ("wayland" ,wayland)))
1603 (native-inputs `(("pkg-config" ,pkg-config)
1605 ("wayland-protocols" ,wayland-protocols)))
1606 (home-page "https://wayland.emersion.fr/mako")
1607 (synopsis "Lightweight Wayland notification daemon")
1608 (description "Mako is a lightweight notification daemon for Wayland
1609 compositors that support the layer-shell protocol.")
1610 (license license:expat))) ; MIT license
1612 (define-public kanshi
1620 (url "https://github.com/emersion/kanshi")
1621 (commit (string-append "v" version))))
1622 (file-name (git-file-name name version))
1624 (base32 "0nbpgm8qnn7ljsg9vgs35kl8l4rrk542vdcbx8wrn9r909ld3x92"))))
1625 (build-system meson-build-system)
1626 (inputs `(("wayland" ,wayland)))
1627 (native-inputs `(("pkg-config" ,pkg-config)
1629 (home-page "https://wayland.emersion.fr/kanshi")
1630 (synopsis "Hotswappable output profiles for Wayland")
1631 (description "Kanshi allows you to define output profiles that are
1632 automatically enabled and disabled on hotplug. Kanshi can be used with
1633 Wayland compositors supporting the wlr-output-management protocol.")
1634 (license license:expat))) ; MIT license
1636 (define-public stumpwm
1644 (url "https://github.com/stumpwm/stumpwm")
1646 (file-name (git-file-name "stumpwm" version))
1648 (base32 "1ghs6ihvmb3bz4q4ys1d3h6rdi96xyiw7l2ip7jh54c25049aymf"))))
1649 (build-system asdf-build-system/sbcl)
1650 (native-inputs `(("fiasco" ,sbcl-fiasco)
1651 ("texinfo" ,texinfo)
1653 ;; To build the manual.
1654 ("autoconf" ,autoconf)
1655 ("automake" ,automake)))
1656 (inputs `(("cl-ppcre" ,sbcl-cl-ppcre)
1658 ("alexandria" ,sbcl-alexandria)))
1659 (outputs '("out" "lib"))
1661 '(#:asd-systems '("stumpwm")
1663 (modify-phases %standard-phases
1664 (add-after 'create-asdf-configuration 'build-program
1665 (lambda* (#:key outputs #:allow-other-keys)
1667 (string-append (assoc-ref outputs "out") "/bin/stumpwm")
1669 #:entry-program '((stumpwm:stumpwm) 0))))
1670 (add-after 'build-program 'create-desktop-file
1671 (lambda* (#:key outputs #:allow-other-keys)
1672 (let* ((out (assoc-ref outputs "out"))
1673 (xsessions (string-append out "/share/xsessions")))
1675 (call-with-output-file
1676 (string-append xsessions "/stumpwm.desktop")
1681 Comment=The Stump Window Manager~@
1682 Exec=~a/bin/stumpwm~@
1683 TryExec=~@*~a/bin/stumpwm~@
1688 (add-after 'install 'install-manual
1689 (lambda* (#:key (make-flags '()) outputs #:allow-other-keys)
1690 (let* ((out (assoc-ref outputs "out"))
1691 (info (string-append out "/share/info")))
1692 (invoke "./autogen.sh")
1693 (invoke "sh" "./configure" "SHELL=sh")
1694 (apply invoke "make" "stumpwm.info" make-flags)
1695 (install-file "stumpwm.info" info)
1697 (synopsis "Window manager written in Common Lisp")
1698 (description "Stumpwm is a window manager written entirely in Common Lisp.
1699 It attempts to be highly customizable while relying entirely on the keyboard
1700 for input. These design decisions reflect the growing popularity of
1701 productive, customizable lisp based systems.")
1702 (home-page "https://github.com/stumpwm/stumpwm")
1703 (license license:gpl2+)
1704 (properties `((cl-source-variant . ,(delay cl-stumpwm))))))
1706 (define-public sbcl-stumpwm
1707 (deprecated-package "sbcl-stumpwm" stumpwm))
1709 (define-public cl-stumpwm
1711 (inherit (sbcl-package->cl-source-package stumpwm))
1712 (name "cl-stumpwm")))
1714 (define-public stumpwm+slynk
1717 (name "stumpwm-with-slynk")
1720 `(("stumpwm" ,stumpwm "lib")
1721 ("slynk" ,sbcl-slynk)))
1723 (substitute-keyword-arguments (package-arguments stumpwm)
1725 `(modify-phases ,phases
1726 (replace 'build-program
1727 (lambda* (#:key inputs outputs #:allow-other-keys)
1728 (let* ((out (assoc-ref outputs "out"))
1729 (program (string-append out "/bin/stumpwm")))
1730 (setenv "HOME" "/tmp")
1731 (build-program program outputs
1732 #:entry-program '((stumpwm:stumpwm) 0)
1733 #:dependencies '("stumpwm" "slynk")
1734 #:dependency-prefixes
1735 (map (lambda (input) (assoc-ref inputs input))
1736 '("stumpwm" "slynk")))
1738 (delete 'copy-source)
1741 (delete 'cleanup)))))))
1743 (define stumpwm-contrib
1744 (let ((commit "920f8fc1488f7953f205e1dda4c2ecbbbda56d63")
1747 (name "stumpwm-contrib")
1748 (version (git-version "0.0.1" revision commit)) ;no upstream release
1753 (url "https://github.com/stumpwm/stumpwm-contrib")
1755 (file-name (git-file-name name version))
1757 (base32 "0giac390bq95ag41xkxqp8jjrhfx1wpgglz7jg5rkm0wjhcwmyml"))))
1758 (build-system asdf-build-system/sbcl)
1760 `(("stumpwm" ,stumpwm "lib")))
1761 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1762 (synopsis "StumpWM interactive shell")
1763 (description "This package provides a StumpWM interactive shell.")
1764 (license (list license:gpl2+ license:gpl3+ license:bsd-2)))))
1766 (define-public stumpish
1768 (inherit stumpwm-contrib)
1774 (build-system trivial-build-system)
1776 '(#:modules ((guix build utils))
1779 (use-modules (guix build utils))
1780 (copy-recursively (assoc-ref %build-inputs "source") ".")
1781 (chdir "util/stumpish")
1782 (substitute* "stumpish"
1783 (("rlwrap") (string-append (assoc-ref %build-inputs "rlwrap")
1785 (("xprop") (string-append (assoc-ref %build-inputs "xprop")
1787 (("/bin/sh") (string-append (assoc-ref %build-inputs "bash")
1789 (install-file "stumpish" (string-append %output "/bin")))))
1790 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1791 (synopsis "StumpWM interactive shell")
1792 (description "This package provides a StumpWM interactive shell.")
1793 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1795 (define-public sbcl-stumpwm+slynk
1796 (deprecated-package "sbcl-stumpwm-with-slynk" stumpwm+slynk))
1798 (define-public sbcl-stumpwm-ttf-fonts
1800 (inherit stumpwm-contrib)
1801 (name "sbcl-stumpwm-ttf-fonts")
1803 `(("stumpwm" ,stumpwm "lib")
1804 ("clx-truetype" ,sbcl-clx-truetype)))
1806 '(#:asd-systems '("ttf-fonts")
1809 (modify-phases %standard-phases
1810 (add-after 'unpack 'chdir
1811 (lambda _ (chdir "util/ttf-fonts") #t)))))
1812 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1813 (synopsis "Implementation of TTF font rendering for Lisp")
1814 (description "This package provides a Lisp implementation of TTF font
1816 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1818 (define-public sbcl-stumpwm-pass
1820 (inherit stumpwm-contrib)
1821 (name "sbcl-stumpwm-pass")
1823 '(#:asd-systems '("pass")
1826 (modify-phases %standard-phases
1827 (add-after 'unpack 'chdir
1828 (lambda _ (chdir "util/pass") #t)))))
1829 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1830 (synopsis "Integrate @code{pass} with StumpWM")
1831 (description "This package provides an interface which integrates
1832 password-store into StumpWM.")
1833 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1835 (define-public sbcl-stumpwm-globalwindows
1837 (inherit stumpwm-contrib)
1838 (name "sbcl-stumpwm-globalwindows")
1840 '(#:asd-systems '("globalwindows")
1843 (modify-phases %standard-phases
1844 (add-after 'unpack 'chdir
1845 (lambda _ (chdir "util/globalwindows") #t)))))
1846 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1847 (synopsis "Manipulate all windows in the current X session")
1848 (description "This package provides a StumpWM module to manipulate all
1849 windows in the current X session.")
1850 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1852 (define-public sbcl-stumpwm-swm-gaps
1854 (inherit stumpwm-contrib)
1855 (name "sbcl-stumpwm-swm-gaps")
1857 '(#:asd-systems '("swm-gaps")
1860 (modify-phases %standard-phases
1861 (add-after 'unpack 'chdir
1862 (lambda _ (chdir "util/swm-gaps") #t)))))
1863 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1864 (synopsis "Gaps between windows for StumpWM")
1865 (description "This package provides a StumpWM module which adds gaps
1867 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1869 (define-public sbcl-stumpwm-net
1871 (inherit stumpwm-contrib)
1872 (name "sbcl-stumpwm-net")
1874 '(#:asd-systems '("net")
1877 (modify-phases %standard-phases
1878 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/net") #t)))))
1880 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/net")
1881 (synopsis "Modeline support for network connectivity")
1882 (description "Modeline support for network connectivity.")
1884 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1885 (license license:gpl3+)))
1887 (define-public sbcl-stumpwm-wifi
1889 (inherit stumpwm-contrib)
1890 (name "sbcl-stumpwm-wifi")
1892 '(#:asd-systems '("wifi")
1895 (modify-phases %standard-phases
1896 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/wifi") #t)))))
1898 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/wifi")
1899 (synopsis "Modeline support for wifi connectivity")
1900 (description "Modeline support for wifi connectivity.")
1902 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1903 (license license:gpl3+)))
1905 (define-public sbcl-stumpwm-stumptray
1907 (inherit stumpwm-contrib)
1908 (name "sbcl-stumpwm-stumptray")
1910 '(#:asd-systems '("stumptray")
1913 (modify-phases %standard-phases
1914 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/stumptray") #t)))))
1916 `(("stumpwm" ,stumpwm "lib")
1917 ("xembed" ,sbcl-clx-xembed)
1918 ("alexandria" ,sbcl-alexandria)))
1920 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/stumptray")
1921 (synopsis "Modeline support for stumptray connectivity")
1922 (description "Modeline support for stumptray connectivity.")
1924 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1925 (license license:gpl3+)))
1927 (define-public sbcl-stumpwm-kbd-layouts
1929 (inherit stumpwm-contrib)
1930 (name "sbcl-stumpwm-kbd-layouts")
1932 '(#:asd-systems '("kbd-layouts")
1935 (modify-phases %standard-phases
1936 (add-after 'unpack 'chdir (lambda _ (chdir "util/kbd-layouts") #t)))))
1938 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/kbd-layouts")
1939 (synopsis "Keyboard layout switcher for StumpWM")
1940 (description "Keyboard layout switcher for StumpWM")
1941 (license license:gpl3+)))
1943 (define-public sbcl-stumpwm-numpad-layouts
1945 (inherit stumpwm-contrib)
1946 (name "sbcl-stumpwm-numpad-layouts")
1948 '(#:asd-systems '("numpad-layouts")
1951 (modify-phases %standard-phases
1952 (add-after 'unpack 'chdir
1954 (chdir "util/numpad-layouts"))))))
1956 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/numpad-layouts")
1957 (synopsis "Keyboard numpad layouts for StumpWM")
1958 (description "This is a module for handling different keyboards numpad
1959 layouts in StumpWM.")
1960 (license license:gpl3+)))
1962 (define-public sbcl-stumpwm-cpu
1964 (inherit stumpwm-contrib)
1965 (name "sbcl-stumpwm-cpu")
1967 '(#:asd-systems '("cpu")
1970 (modify-phases %standard-phases
1971 (add-after 'unpack 'chdir
1973 (chdir "modeline/cpu"))))))
1975 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/cpu")
1976 (synopsis "Modeline support for CPU info")
1977 (description "Modeline support for CPU info.")
1978 (license license:gpl3+)))
1980 (define-public sbcl-stumpwm-mem
1982 (inherit stumpwm-contrib)
1983 (name "sbcl-stumpwm-mem")
1985 '(#:asd-systems '("mem")
1988 (modify-phases %standard-phases
1989 (add-after 'unpack 'chdir
1991 (chdir "modeline/mem"))))))
1993 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/mem")
1994 (synopsis "Modeline support for memory info")
1995 (description "Modeline support for memory info.")
1996 (license license:gpl3+)))
1998 (define-public sbcl-stumpwm-winner-mode
2000 (inherit stumpwm-contrib)
2001 (name "sbcl-stumpwm-winner-mode")
2003 '(#:asd-systems '("winner-mode")
2006 (modify-phases %standard-phases
2007 (add-after 'unpack 'chdir
2009 (chdir "util/winner-mode"))))))
2011 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/winner-mode")
2012 (synopsis "Emacs' winner-mode for StumpWM")
2013 (description "This module provides a winner-mode for StumpWM similar to the
2015 (license license:gpl3+)))
2017 (define-public sbcl-stumpwm-screenshot
2019 (inherit stumpwm-contrib)
2020 (name "sbcl-stumpwm-screenshot")
2022 `(("stumpwm" ,stumpwm "lib")
2023 ("zpng" ,sbcl-zpng)))
2025 '(#:asd-systems '("screenshot")
2028 (modify-phases %standard-phases
2029 (add-after 'unpack 'chdir
2031 (chdir "util/screenshot")))
2032 (add-after 'chdir 'fix-build
2034 (substitute* "screenshot.asd"
2036 "#:stumpwm #:zpng")))))))
2038 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/screenshot")
2039 (synopsis "Screenshots for StumpWM")
2040 (description "This StumpWM module can take screenshots and store them as
2042 (license license:gpl3+)))
2044 (define-public lemonbar
2045 (let ((commit "35183ab81d2128dbb7b6d8e119cc57846bcefdb4")
2049 (version (git-version "1.3" revision commit))
2053 (url "https://github.com/LemonBoy/bar")
2055 (file-name (git-file-name name version))
2058 "1wwqbph392iwz8skaqxb0xpklb1l6yganqz80g4x1fhrnz7idmlh"))))
2059 (build-system gnu-build-system)
2061 `(#:tests? #f ; no test suite
2063 (list ,(string-append "CC=" (cc-for-target))
2064 (string-append "PREFIX=" %output))
2066 (modify-phases %standard-phases
2067 (delete 'configure))))
2069 `(("libxcb" ,libxcb)))
2072 (home-page "https://github.com/LemonBoy/bar")
2073 (synopsis "Featherweight status bar")
2075 "@code{lemonbar} (formerly known as @code{bar}) is a lightweight
2076 bar entirely based on XCB. Provides full UTF-8 support, basic
2077 formatting, RandR and Xinerama support and EWMH compliance without
2078 wasting your precious memory.")
2079 (license license:x11))))
2081 (define-public lemonbar-xft
2082 ;; Upstream v2.0 tag is several years behind HEAD
2083 (let ((commit "481e12363e2a0fe0ddd2176a8e003392be90ed02"))
2086 (name "lemonbar-xft")
2087 (version (string-append "2.0." (string-take commit 7)))
2091 (url "https://github.com/drscream/lemonbar-xft")
2093 (file-name (git-file-name name version))
2096 "0588g37h18lv50h7w8vfbwhvc3iajh7sdr53848spaif99nh3mh4"))))
2098 `(("freetype" ,freetype)
2101 ,@(package-inputs lemonbar)))
2103 (substitute-keyword-arguments (package-arguments lemonbar)
2104 ((#:make-flags make-flags)
2107 (list (string-append
2110 (list (string-append
2111 "-I" (assoc-ref %build-inputs "freetype")
2112 "/include/freetype2")
2115 (format #f "'~s'" ,version))))))))))
2116 (home-page "https://github.com/drscream/lemonbar-xft")
2119 (package-synopsis lemonbar)
2120 " with fontconfig support"))
2123 (package-description lemonbar)
2124 "This is a fork of the @code{lemonbar} package that adds fontconfig
2125 support, for easier unicode usage.")))))
2127 (define-public xclickroot
2134 (url "https://github.com/phillbush/xclickroot")
2135 (commit (string-append "v" version))))
2136 (file-name (git-file-name name version))
2139 "1nd5qz0qz5j7gx2jsbcp234giwaa0xmg42vrcjrcf587q9ivakfl"))))
2140 (build-system gnu-build-system)
2142 `(("libx11" ,libx11)))
2144 `(#:tests? #f ;no test suite
2146 (list ,(string-append "CC=" (cc-for-target))
2147 (string-append "PREFIX=" %output))
2149 (modify-phases %standard-phases
2150 (delete 'configure))))
2151 (home-page "https://github.com/phillbush/xclickroot")
2152 (synopsis "Run a command when a mouse button is pressed on the root window")
2153 (description "@code{xclickroot} runs a command every time a given mouse
2154 button is pressed on the root window.")
2155 (license license:public-domain)))
2157 (define-public xmenu
2164 (url "https://github.com/phillbush/xmenu")
2165 (commit (string-append "v" version))))
2166 (file-name (git-file-name name version))
2169 "1s70zvsaqnsjqs298vw3py0vcvia68xlks1wcz37pb88bwligz1x"))))
2170 (build-system gnu-build-system)
2172 `(("libx11" ,libx11)
2173 ("libxinerama" ,libxinerama)
2175 ("freetype" ,freetype)
2176 ("imlib2" ,imlib2)))
2178 `(#:tests? #f ;no test suite
2180 (list (string-append "CC=" ,(cc-for-target))
2181 (string-append "PREFIX=" %output)
2182 (string-append "CFLAGS="
2183 "-I" (assoc-ref %build-inputs "freetype")
2184 "/include/freetype2"))
2186 (modify-phases %standard-phases
2187 (delete 'configure))))
2188 (home-page "https://github.com/phillbush/xmenu")
2189 (synopsis "Menu utility for X")
2190 (description "@code{xmenu} receives a menu specification in stdin, shows
2191 a menu for the user to select one of the options, and outputs the option
2192 selected to stdout. It can be controlled both via mouse and via keyboard.")
2193 (license license:public-domain)))
2195 (define-public idesk
2203 "mirror://sourceforge/idesk/idesk/idesk-" version
2204 "/idesk-" version ".tar.bz2"))
2207 "1lxk2yvgysxwl514zc82lwr1dwc8cd62slgr5lzdhjbdrxfymdyl"))
2208 (modules '((guix build utils)
2211 '(let* ((file "src/DesktopConfig.cpp")
2212 (template (string-append file ".XXXXXX"))
2213 (out (mkstemp! template))
2215 (mode (stat:mode st)))
2216 (call-with-ascii-input-file file
2218 (format out "~{~a~%~}" '("#include <unistd.h>"
2219 "#include <sys/stat.h>"
2220 "#include <sys/types.h>"))
2223 (chmod template mode)
2224 (rename-file template file)
2226 (build-system gnu-build-system)
2228 `(("libx11" ,libx11)
2232 ("freetype" ,freetype)
2236 `(("pkg-config" ,pkg-config)))
2238 `(#:tests? #f)) ;no test suite
2239 (home-page "https://sourceforge.net/projects/idesk/")
2240 (synopsis "Add icons on X desktop and set background image for wallpaper")
2241 (description "Idesk is program that draws desktop icons. Each icon will
2242 execute a shell command on a configurable action. The icons can be moved on
2243 the desktop by dragging them, and the icons will remember their positions on
2245 (license license:bsd-3)))
2247 (define-public xnotify
2254 (url "https://github.com/phillbush/xnotify")
2256 (file-name (git-file-name name version))
2259 "09s29m8z4x3mc3wja2587ik3f6zg16b40adr3nllnpyy1mqnprq5"))))
2260 (build-system gnu-build-system)
2262 `(("libx11" ,libx11)
2264 ("libxinerama" ,libxinerama)
2265 ("imlib2" ,imlib2)))
2268 (list (string-append "CC=" ,(cc-for-target))
2269 (string-append "PREFIX=" %output)
2270 (string-append "CFLAGS="
2271 "-I" (assoc-ref %build-inputs "freetype")
2272 "/include/freetype2"))
2273 #:tests? #f ;no test suite
2275 (modify-phases %standard-phases
2276 (delete 'configure))))
2277 (home-page "https://github.com/phillbush/xnotify")
2278 (synopsis "Displays a notification on the screen")
2279 (description "XNotify receives a notification specification in stdin and
2280 shows a notification for the user on the screen.")
2281 (license license:expat)))