1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
3 ;;; Copyright © 2015 Siniša Biđin <sinisa@bidin.eu>
4 ;;; Copyright © 2015, 2016 Eric Bavier <bavier@member.fsf.org>
5 ;;; Copyright © 2015 xd1le <elisp.vim@gmail.com>
6 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
7 ;;; Copyright © 2016 Danny Milosavljevic <dannym@scratchpost.org>
8 ;;; Copyright © 2016, 2019 Efraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016 Al McElrath <hello@yrns.org>
10 ;;; Copyright © 2016 Carlo Zancanaro <carlo@zancanaro.id.au>
11 ;;; Copyright © 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
12 ;;; Copyright © 2016, 2017, 2018 ng0 <ng0@n0.is>
13 ;;; Copyright © 2016 doncatnip <gnopap@gmail.com>
14 ;;; Copyright © 2016 Ivan Vilata i Balaguer <ivan@selidor.net>
15 ;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com>
16 ;;; Copyright © 2017, 2019 Marius Bakke <mbakke@fastmail.com>
17 ;;; Copyright © 2017 Oleg Pykhalov <go.wigust@gmail.com>
18 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
19 ;;; Copyright © 2018 Pierre-Antoine Rouby <contact@parouby.fr>
20 ;;; Copyright © 2018 Meiyo Peng <meiyo.peng@gmail.com>
21 ;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
22 ;;; Copyright © 2019 Timothy Sample <samplet@ngyro.com>
24 ;;; This file is part of GNU Guix.
26 ;;; GNU Guix is free software; you can redistribute it and/or modify it
27 ;;; under the terms of the GNU General Public License as published by
28 ;;; the Free Software Foundation; either version 3 of the License, or (at
29 ;;; your option) any later version.
31 ;;; GNU Guix is distributed in the hope that it will be useful, but
32 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
33 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 ;;; GNU General Public License for more details.
36 ;;; You should have received a copy of the GNU General Public License
37 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
39 (define-module (gnu packages wm)
40 #:use-module ((guix licenses) #:prefix license:)
41 #:use-module (guix packages)
42 #:use-module (gnu packages)
43 #:use-module (gnu packages linux)
44 #:use-module (guix build-system cmake)
45 #:use-module (guix build-system gnu)
46 #:use-module (guix build-system haskell)
47 #:use-module (guix build-system meson)
48 #:use-module (guix build-system perl)
49 #:use-module (guix build-system python)
50 #:use-module (gnu packages haskell)
51 #:use-module (gnu packages haskell-check)
52 #:use-module (gnu packages haskell-web)
53 #:use-module (gnu packages autotools)
54 #:use-module (gnu packages bison)
55 #:use-module (gnu packages gawk)
56 #:use-module (gnu packages base)
57 #:use-module (gnu packages pkg-config)
58 #:use-module (gnu packages perl)
59 #:use-module (gnu packages pulseaudio)
60 #:use-module (gnu packages xorg)
61 #:use-module (gnu packages xdisorg)
62 #:use-module (gnu packages documentation)
63 #:use-module (gnu packages xml)
64 #:use-module (gnu packages m4)
65 #:use-module (gnu packages docbook)
66 #:use-module (gnu packages image)
67 #:use-module (gnu packages pcre)
68 #:use-module (gnu packages python)
69 #:use-module (gnu packages gtk)
70 #:use-module (gnu packages libevent)
71 #:use-module (gnu packages fribidi)
72 #:use-module (gnu packages maths)
73 #:use-module (gnu packages web)
74 #:use-module (gnu packages fontutils)
75 #:use-module (gnu packages freedesktop)
76 #:use-module (gnu packages glib)
77 #:use-module (gnu packages gperf)
78 #:use-module (gnu packages imagemagick)
79 #:use-module (gnu packages lua)
80 #:use-module (gnu packages linux)
81 #:use-module (gnu packages suckless)
82 #:use-module (gnu packages mpd)
83 #:use-module (gnu packages gl)
84 #:use-module (gnu packages video)
85 #:use-module (gnu packages version-control)
86 #:use-module (gnu packages man)
87 #:use-module (gnu packages textutils)
88 #:use-module (guix download)
89 #:use-module (guix git-download))
99 (url "https://github.com/baskerville/bspwm.git")
101 (file-name (git-file-name name version))
103 (base32 "09h3g1rxxjyw861mk32lj774nmwkx8cwxq4wfgmf4dpbizymvhhr"))))
104 (build-system gnu-build-system)
107 ("libxinerama" ,libxinerama)
109 ("xcb-util" ,xcb-util)
110 ("xcb-util-keysyms" ,xcb-util-keysyms)
111 ("xcb-util-wm" ,xcb-util-wm)))
114 (modify-phases %standard-phases
115 (delete 'configure)) ; no configure script
116 #:tests? #f ; no check target
119 (string-append "PREFIX=" %output))))
120 (home-page "https://github.com/baskerville/bspwm")
121 (synopsis "Tiling window manager based on binary space partitioning")
122 (description "bspwm is a tiling window manager that represents windows as
123 the leaves of a full binary tree.")
124 (license license:bsd-2)))
126 (define-public i3status
132 (uri (string-append "https://i3wm.org/i3status/i3status-"
136 "06krpbijv4yi33nypg6qcn4hilcrdyarsdpd9fmr2cq46qaqiikg"))))
137 (build-system gnu-build-system)
139 `(#:make-flags (list "CC=gcc" (string-append "PREFIX=" %output))
141 (modify-phases %standard-phases
143 #:tests? #f)) ; no test suite
145 `(("openlibm" ,openlibm)
146 ("libconfuse" ,libconfuse)
148 ("alsa-lib" ,alsa-lib)
149 ("pulseaudio" ,pulseaudio)
152 ("asciidoc" ,asciidoc)))
154 `(("pkg-config" ,pkg-config)))
155 (home-page "https://i3wm.org/i3status/")
156 (synopsis "Status bar for i3bar, dzen2, xmobar or similar programs")
157 (description "i3status is a small program for generating a status bar for
158 i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient
159 by issuing a very small number of system calls, as one generally wants to
160 update such a status line every second. This ensures that even under high
161 load, your status bar is updated correctly. Also, it saves a bit of energy by
162 not hogging your CPU as much as spawning the corresponding amount of shell
164 (license license:bsd-3)))
172 (uri (string-append "https://i3wm.org/downloads/i3-"
176 "0xl56y196vxv001gvx35xwfr25zah8m3xwizp9ycdgdc0rfc4rdb"))))
177 (build-system gnu-build-system)
180 ;; The build system tries to build in a separate directory, but that
181 ;; seems to be unnecessary.
182 (list "--disable-builddir")
184 ;; The test suite requires the unpackaged Xephyr X server.
187 (modify-phases %standard-phases
188 (add-after 'install 'patch-session-file
189 (lambda* (#:key outputs #:allow-other-keys)
190 (let* ((out (assoc-ref outputs "out"))
191 (i3 (string-append out "/bin/i3"))
192 (i3-with-shmlog (string-append out "/bin/i3-with-shmlog")))
193 (substitute* (string-append out "/share/xsessions/i3.desktop")
194 (("Exec=i3") (string-append "Exec=" i3)))
195 (substitute* (string-append out "/share/xsessions/i3-with-shmlog.desktop")
196 (("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog)))
200 ("xcb-util" ,xcb-util)
201 ("xcb-util-cursor" ,xcb-util-cursor)
202 ("xcb-util-keysyms" ,xcb-util-keysyms)
203 ("xcb-util-wm" ,xcb-util-wm)
204 ("xcb-util-xrm" ,xcb-util-xrm)
205 ("libxkbcommon" ,libxkbcommon)
208 ("asciidoc" ,asciidoc)
210 ("perl-pod-simple" ,perl-pod-simple)
213 ("startup-notification" ,startup-notification)
219 ("pkg-config" ,pkg-config)
220 ;; For building the documentation.
222 ("docbook-xsl" ,docbook-xsl)))
223 (home-page "https://i3wm.org/")
224 (synopsis "Tiling window manager")
225 (description "i3 is a tiling X11 window manager that dynamically manages
226 tiled, stacked, and tabbed window layouts.
228 i3 primarily targets advanced users. Windows are managed manually and organised
229 inside containers, which can be split vertically or horizontally, and optionally
232 i3 uses a plain-text configuration file, and can be extended and controlled from
233 many programming languages.")
234 (license license:bsd-3)))
236 (define-public i3lock
242 (uri (string-append "https://i3wm.org/i3lock/i3lock-"
246 "015dn534m7cxjvqdncpvaq9p8b2r4w5hp1yanbdy2abmhbcc7a7j"))))
247 (build-system gnu-build-system)
249 `(("pkg-config" ,pkg-config)))
253 ("linux-pam" ,linux-pam)
255 ("libxkbcommon" ,libxkbcommon)
256 ("xcb-util" ,xcb-util)
257 ("xcb-util-image" ,xcb-util-image)
258 ("xcb-util-xrm" ,xcb-util-xrm)))
259 (home-page "https://i3wm.org/i3lock/")
260 (synopsis "Lightweight screen locker")
262 "i3lock is a simple X11 screen locker developed alongside the i3 project.
263 Despite the name it should work with any X11 window manager.")
264 (license license:bsd-3)))
266 (define-public i3blocks
267 (let ((commit "37f23805ff886639163fbef8aedba71c8071eff8")
271 (version (string-append "1.4-" revision "."
272 (string-take commit 7)))
276 (url "https://github.com/vivien/i3blocks.git")
280 "15rnrcajzyrmhlz1a21qqsjlj3dkib70806dlb386fliylc2kisb"))
281 (file-name (git-file-name name version))))
282 (build-system gnu-build-system)
284 `(#:make-flags (list "CC=gcc" (string-append "PREFIX=" %output))
285 #:phases (modify-phases %standard-phases
286 (add-after 'unpack 'autogen
287 (lambda _ (invoke "sh" "autogen.sh")))
288 (add-after 'install 'install-doc
289 (lambda* (#:key outputs #:allow-other-keys)
290 (let* ((out (assoc-ref outputs "out"))
291 (man1 (string-append out "/share/man/man1")))
292 (install-file "docs/i3blocks.1" man1)
295 `(("autoconf" ,autoconf)
296 ("automake" ,automake)
297 ("pkg-config" ,pkg-config)))
298 (home-page "https://github.com/vivien/i3blocks")
299 (synopsis "Minimalist scheduler for status bar scripts")
300 (description "i3blocks executes your command lines and generates a
301 status line from their output. The generated line is meant to be displayed by
302 the i3 window manager through its i3bar component, as an alternative to
304 (license license:gpl3+))))
306 (define-public perl-anyevent-i3
308 (name "perl-anyevent-i3")
312 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTPLBG/"
313 "AnyEvent-I3-" version ".tar.gz"))
316 "0qvd9bq16jyy7v3ma82qcnvz9j503bw0mh7h55gkjf7ir62ck0jk"))))
317 (build-system perl-build-system)
319 `(("perl-anyevent" ,perl-anyevent)
320 ("perl-json-xs" ,perl-json-xs)))
321 (home-page "https://metacpan.org/release/AnyEvent-I3")
323 "Communicate with the i3 window manager through perl")
325 "This module connects to the i3 window manager using the UNIX socket
326 based IPC interface it provides (if enabled in the configuration file).
327 You can then subscribe to events or send messages and receive their replies.")
328 ;; Can be used with either license.
329 (license (list license:gpl3+ license:perl-license))))
331 (define-public python-i3-py
333 (name "python-i3-py")
337 ;; The latest release is not tagged in Git nor has an entry in PyPi,
338 ;; but there is still a clear commit for it, and it's been the last one
342 (url "https://github.com/ziberna/i3-py.git")
343 (commit "27f88a616e9ecc340e7d041d3d00782f8a1964c1")))
346 "1nm719dc2xqlll7vj4c4m7mpjb27lpn3bg3c66gajvnrz2x1nmxs"))
347 (file-name (string-append name "-" version "-checkout"))))
348 (build-system python-build-system)
350 `(#:tests? #f ; no tests yet
351 #:phases (modify-phases %standard-phases
352 (add-after 'install 'install-doc
353 ;; Copy readme file to documentation directory.
354 (lambda* (#:key outputs #:allow-other-keys)
355 (let ((doc (string-append (assoc-ref outputs "out")
356 "/share/doc/" ,name)))
357 (install-file "README.md" doc)
358 ;; Avoid unspecified return value.
362 (home-page "https://github.com/ziberna/i3-py")
363 (synopsis "Python interface to the i3 window manager")
364 (description "This package allows you to interact from a Python program
365 with the i3 window manager via its IPC socket. It can send commands and other
366 kinds of messages to i3, select the affected containers, filter results and
367 subscribe to events.")
368 (license license:gpl3+)))
370 (define-public python2-i3-py
371 (package-with-python2 python-i3-py))
373 (define-public quickswitch-i3
374 (let ((commit "ed692b1e8f43b95bd907ced26238ce8ccb2ed28f")
375 (revision "1")) ; Guix package revision
377 (name "quickswitch-i3")
378 (version (string-append "2.2-" revision "."
379 (string-take commit 7)))
382 ;; The latest commit is a few years old and just a couple commits
383 ;; after the last tagged release, so we use that latest commit
384 ;; instead of the release.
387 (url "https://github.com/proxypoke/quickswitch-for-i3.git")
391 "0447077sama80jcdg5p64zjsvafmz5rbdrirhm1adcdjhkh6iqc5"))
392 (patches (search-patches "quickswitch-fix-dmenu-check.patch"))
393 (file-name (string-append name "-" version "-checkout"))))
394 (build-system python-build-system)
396 `(#:tests? #f ; no tests yet
397 #:phases (modify-phases %standard-phases
398 (add-after 'install 'install-doc
399 ;; Copy readme file to documentation directory.
400 (lambda* (#:key outputs #:allow-other-keys)
401 (let ((doc (string-append (assoc-ref outputs "out")
402 "/share/doc/" ,name)))
403 (install-file "README.rst" doc)
404 ;; Avoid unspecified return value.
407 `(("python-i3-py" ,python-i3-py)
409 (home-page "https://github.com/proxypoke/quickswitch-for-i3")
410 (synopsis "Quickly change to and locate windows in the i3 window manager")
412 "This utility for the i3 window manager allows you to quickly switch to
413 and locate windows on all your workspaces, using an interactive dmenu
415 (license (license:non-copyleft "http://www.wtfpl.net/txt/copying/")))))
417 (define-public i3lock-color
419 (name "i3lock-color")
425 (url "https://github.com/PandorasFox/i3lock-color.git")
427 (file-name (git-file-name name version))
429 (base32 "08fhnchf187b73h52xgzb86g6byzxz085zs9galsvl687g5zxk34"))))
430 (build-system gnu-build-system)
432 `(#:tests? #f)) ; no tests included
436 ("libjpeg" ,libjpeg-turbo)
438 ("libxkbcommon" ,libxkbcommon)
439 ("linux-pam" ,linux-pam)
440 ("xcb-util" ,xcb-util)
441 ("xcb-util-image" ,xcb-util-image)
442 ("xcb-util-xrm" ,xcb-util-xrm)))
444 `(("autoconf" ,autoconf)
445 ("automake" ,automake)
446 ("pkg-config" ,pkg-config)))
447 (home-page "https://github.com/PandorasFox/i3lock-color")
448 (synopsis "Screen locker with color configuration support")
450 "i3lock-color is a simpler X11 screen locker derived from i3lock.
454 @item forking process, the locked screen is preserved when you suspend to RAM;
455 @item specify background color or image to be displayed in the lock screen;
456 @item many additional color options.
458 (license license:bsd-3)))
460 (define-public i3lock-fancy
462 (name "i3lock-fancy")
468 (url "https://github.com/meskarune/i3lock-fancy.git")
470 (file-name (git-file-name name version))
472 (base32 "11g2kkim33ra38d1m897sq1ifajw17iyw9mr7sg1q8i2ibl4lfsi"))))
473 (build-system gnu-build-system)
475 `(#:tests? #f ; no tests included
477 (modify-phases %standard-phases
479 (lambda* (#:key inputs outputs #:allow-other-keys)
480 (let* ((out (assoc-ref outputs "out"))
481 (icons (string-append out "/share/i3lock-fancy/icons/"))
482 (wmctrl (string-append (assoc-ref inputs "wmctrl")
484 (mconvert (string-append (assoc-ref inputs "imagemagick")
486 (mimport (string-append (assoc-ref inputs "imagemagick")
488 (awk (string-append (assoc-ref inputs "gawk")
492 (("$(which wmctrl)") wmctrl)
493 (("convert") mconvert)
494 (("shot=\\(import") (string-append "shot=\(" mimport))
495 (("awk -F") (string-append awk " -F"))
497 (("\\$scriptpath/icons/") icons))
501 (lambda* (#:key inputs outputs #:allow-other-keys)
502 (let* ((out (assoc-ref outputs "out"))
503 (bin (string-append out "/bin"))
504 (icons (string-append out "/share/i3lock-fancy/icons/")))
506 (install-file "lock" bin)
507 (rename-file (string-append bin "/lock")
508 (string-append bin "/i3lock-fancy"))
509 (copy-recursively "icons" icons)
512 `(("imagemagick" ,imagemagick)
515 (home-page "https://github.com/meskarune/i3lock-fancy")
516 (synopsis "Screen locker with screenshot function")
518 "@code{i3lock-fancy} is a Bash script that takes a screenshot of
519 the desktop, blurs the background and adds a lock icon and text.
520 It requires @code{i3lock-color} or @code{i3lock} and can optionally
521 be passed any screenshot util like @code{scrot}.
522 This screen locker can be used with any window manager or
523 desktop environment.")
524 (license license:expat)))
526 (define-public xmonad
530 (synopsis "Tiling window manager")
533 (uri (string-append "mirror://hackage/package/xmonad/"
534 "xmonad-" version ".tar.gz"))
537 "0a7rh21k9y6g8fwkggxdxjns2grvvsd5hi2ls4klmqz5xvk4hyaa"))))
538 (build-system haskell-build-system)
540 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
541 ("ghc-quickcheck" ,ghc-quickcheck)
542 ("ghc-semigroups" ,ghc-semigroups)
543 ("ghc-setlocale" ,ghc-setlocale)
544 ("ghc-utf8-string" ,ghc-utf8-string)
545 ("ghc-x11" ,ghc-x11)))
548 (modify-phases %standard-phases
550 'install 'install-xsession
552 (let* ((xsessions (string-append %output "/share/xsessions")))
554 (call-with-output-file
555 (string-append xsessions "/xmonad.desktop")
562 Type=Application~%" ,name ,synopsis %output)))))))))
563 (home-page "https://xmonad.org")
565 "Xmonad is a tiling window manager for X. Windows are arranged
566 automatically to tile the screen without gaps or overlap, maximising screen
567 use. All features of the window manager are accessible from the keyboard: a
568 mouse is strictly optional. Xmonad is written and extensible in Haskell.
569 Custom layout algorithms, and other extensions, may be written by the user in
570 config files. Layouts are applied dynamically, and different layouts may be
571 used on each workspace. Xinerama is fully supported, allowing windows to be
572 tiled on several screens.")
573 (license license:bsd-3)))
575 (define-public xmobar
581 (uri (string-append "mirror://hackage/package/xmobar/"
582 "xmobar-" version ".tar.gz"))
585 "1xh87asg8y35srvp7d3gyyy4bkxsw122liihxgzgm8pqv2z3h4zd"))))
586 (build-system haskell-build-system)
588 `(("ghc-hspec" ,ghc-hspec)
589 ("hspec-discover" ,hspec-discover)))
591 `(("ghc-hinotify" ,ghc-hinotify)
592 ("ghc-http" ,ghc-http)
593 ("ghc-iwlib" ,ghc-iwlib)
594 ("ghc-parsec" ,ghc-parsec)
595 ("ghc-parsec-numbers" ,ghc-parsec-numbers)
596 ("ghc-regex-compat" ,ghc-regex-compat)
598 ("ghc-x11-xft" ,ghc-x11-xft)
602 (list (string-append "--flags="
603 (string-join (list "with_inotify"
610 (home-page "http://xmobar.org")
611 (synopsis "Minimalistic text based status bar")
613 "@code{xmobar} is a lightweight, text-based, status bar written in
614 Haskell. It was originally designed to be used together with Xmonad, but it
615 is also usable with any other window manager. While xmobar is written in
616 Haskell, no knowledge of the language is required to install and use it.")
617 (license license:bsd-3)))
619 (define-public ghc-xmonad-contrib
621 (name "ghc-xmonad-contrib")
626 (uri (string-append "mirror://hackage/package/xmonad-contrib/"
627 "xmonad-contrib-" version ".tar.gz"))
629 (base32 "0r9yzgy67j4mi3dyxx714f0ssk5qzca5kh4zw0fhiz1pf008cxms"))))
630 (build-system haskell-build-system)
632 `(("ghc-old-time" ,ghc-old-time)
633 ("ghc-random" ,ghc-random)
634 ("ghc-utf8-string" ,ghc-utf8-string)
635 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
636 ("ghc-semigroups" ,ghc-semigroups)
638 ("ghc-x11-xft" ,ghc-x11-xft)
640 (home-page "https://xmonad.org")
641 (synopsis "Third party extensions for xmonad")
643 "Third party tiling algorithms, configurations, and scripts to Xmonad, a
644 tiling window manager for X.")
645 (license license:bsd-3)))
647 (define-public evilwm
654 (uri (string-append "http://www.6809.org.uk/evilwm/evilwm-"
658 "0ak0yajzk3v4dg5wmaghv6acf7v02a4iw8qxmq5yw5ard8lrqn3r"))
659 (patches (search-patches "evilwm-lost-focus-bug.patch"))))
660 (build-system gnu-build-system)
664 ("libxrandr" ,libxrandr)))
666 `(#:modules ((srfi srfi-26)
668 (guix build gnu-build-system))
669 #:make-flags (let ((inputs (map (cut assoc-ref %build-inputs <>)
670 '("libx11" "libxext" "libxrandr")))
671 (join (lambda (proc strs)
672 (string-join (map proc strs) " ")))
673 (dash-I (cut string-append "-I" <> "/include"))
674 (dash-L (cut string-append "-L" <> "/lib")))
675 `("desktopfilesdir=$(prefix)/share/xsessions"
676 ,(string-append "prefix=" (assoc-ref %outputs "out"))
677 ,(string-append "CPPFLAGS=" (join dash-I inputs))
678 ,(string-append "LDFLAGS=" (join dash-L inputs))))
679 #:tests? #f ;no tests
680 #:phases (modify-phases %standard-phases
681 (delete 'configure)))) ;no configure script
682 (home-page "http://www.6809.org.uk/evilwm/")
683 (synopsis "Minimalist window manager for the X Window System")
685 "evilwm is a minimalist window manager based on aewm, extended to feature
686 many keyboard controls with repositioning and maximize toggles, solid window
687 drags, snap-to-border support, and virtual desktops.")
688 (license (license:x11-style "file:///README"))))
690 (define-public fluxbox
694 (synopsis "Small and fast window manager")
697 (uri (string-append "mirror://sourceforge/fluxbox/fluxbox/"
698 version "/fluxbox-" version ".tar.xz"))
701 "1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w"))))
702 (build-system gnu-build-system)
704 `(#:make-flags '("CPPFLAGS=-U__TIME__") ;ugly, but for reproducibility
706 (modify-phases %standard-phases
707 (add-after 'install 'install-vim-files
708 (lambda* (#:key outputs #:allow-other-keys)
709 (let* ((out (assoc-ref outputs "out"))
710 (syntax (string-append out "/share/vim/vimfiles/syntax")))
711 (copy-recursively "3rd/vim/vim/syntax" syntax)
713 (add-after 'install 'install-xsession
714 (lambda* (#:key outputs #:allow-other-keys)
715 (let* ((out (assoc-ref outputs "out"))
716 (xsessions (string-append out "/share/xsessions")))
718 (call-with-output-file
719 (string-append xsessions "/fluxbox.desktop")
725 Exec=~a/bin/startfluxbox~@
726 Type=Application~%" ,name ,synopsis out)))
729 `(("pkg-config" ,pkg-config)))
731 `(("freetype" ,freetype)
737 ("libxinerama" ,libxinerama)
739 ("libxrandr" ,libxrandr)
740 ("libxrender" ,libxrender)))
741 (description "Fluxbox is a window manager. It is light on resources
742 and easy to handle yet full of features to make an easy and fast desktop
744 (home-page "http://fluxbox.org/")
745 (license license:expat)))
747 (define-public awesome
752 (origin (method url-fetch)
754 "https://github.com/awesomeWM/awesome-releases/raw/"
755 "master/awesome-" version ".tar.xz"))
758 "0kwpbls9h1alxcmvxh5g9qb995fds5b2ngcr44w0ibazkyls2pdc"))
759 (modules '((guix build utils)
762 ;; Remove non-reproducible timestamp and use the date
763 ;; of the source file instead.
764 (substitute* "common/version.c"
765 (("__DATE__ \" \" __TIME__")
768 (make-time time-utc 0
769 (stat:mtime (stat "awesome.c"))))
772 (patches (search-patches "awesome-reproducible-png.patch"))))
773 (build-system cmake-build-system)
774 (native-inputs `(("asciidoc" ,asciidoc)
775 ("docbook-xsl" ,docbook-xsl)
778 ("imagemagick" ,imagemagick)
779 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
780 ("pkg-config" ,pkg-config)
782 (inputs `(("cairo" ,cairo)
784 ("gdk-pixbuf" ,gdk-pixbuf)
786 ("gobject-introspection" ,gobject-introspection)
790 ("libxcursor" ,libxcursor)
791 ("libxdg-basedir" ,libxdg-basedir)
792 ("libxkbcommon" ,libxkbcommon)
796 ("startup-notification" ,startup-notification)
797 ("xcb-util" ,xcb-util)
798 ("xcb-util-cursor" ,xcb-util-cursor)
799 ("xcb-util-image" ,xcb-util-image)
800 ("xcb-util-keysyms" ,xcb-util-keysyms)
801 ("xcb-util-renderutil" ,xcb-util-renderutil)
802 ("xcb-util-xrm" ,xcb-util-xrm)
803 ("xcb-util-wm" ,xcb-util-wm)))
805 `(;; Let compression happen in our 'compress-documentation' phase so that
806 ;; '--no-name' is used, which removes timestamps from gzip output.
807 #:configure-flags '("-DCOMPRESS_MANPAGES=off")
809 ;; Building awesome in its source dir is no longer supported.
813 (modify-phases %standard-phases
814 (add-before 'build 'xmlto-skip-validation
816 ;; We can't download the necessary schema, so so skip
817 ;; validation and assume they're valid.
818 (substitute* "../build/CMakeFiles/man.dir/build.make"
820 (string-append "/xmlto --skip-validation")))
822 (add-before 'configure 'set-lua-paths
823 (lambda* (#:key inputs #:allow-other-keys)
824 ;; The build process needs to load cairo dynamically.
825 (let* ((cairo (string-append
826 (assoc-ref inputs "cairo") "/lib" ))
827 (lua-lgi (assoc-ref inputs "lua-lgi") ))
828 (setenv "LD_LIBRARY_PATH" cairo )
829 (setenv "LUA_PATH" (string-append lua-lgi
830 "/share/lua/5.2/?.lua"))
831 (setenv "LUA_CPATH" (string-append lua-lgi
832 "/lib/lua/5.2/?.so"))
836 ;; There aren't any tests, so just make sure the binary
837 ;; gets built and can be run successfully.
838 (invoke "../build/awesome" "-v")))
839 (add-after 'install 'patch-session-file
840 (lambda* (#:key outputs #:allow-other-keys)
841 (let* ((out (assoc-ref outputs "out"))
842 (awesome (string-append out "/bin/awesome")))
843 (substitute* (string-append out "/share/xsessions/awesome.desktop")
844 (("Exec=awesome") (string-append "Exec=" awesome)))
846 (add-after 'install 'wrap
847 (lambda* (#:key inputs outputs #:allow-other-keys)
848 (let* ((awesome (assoc-ref outputs "out"))
849 (cairo (string-append
850 (assoc-ref inputs "cairo") "/lib" ))
851 (lua-lgi (assoc-ref inputs "lua-lgi") ))
852 (wrap-program (string-append awesome "/bin/awesome")
853 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))
854 `("LD_LIBRARY_PATH" suffix (, cairo))
855 `("LUA_PATH" suffix (,(string-append lua-lgi
856 "/share/lua/5.2/?.lua")))
857 `("LUA_CPATH" suffix (,(string-append
858 lua-lgi "/lib/lua/5.2/?.so"))))))))))
859 (synopsis "Highly configurable window manager")
861 "Awesome has been designed as a framework window manager. It is fast, small,
862 dynamic and extensible using the Lua programming language.")
863 (license license:gpl2+)
864 (home-page "https://awesomewm.org/")))
866 (define-public menumaker
873 (uri (string-append "mirror://sourceforge/menumaker/"
874 "menumaker-" version ".tar.gz"))
877 "1mm4cvg3kphkkd8nwrhcg6d9nm5ar7mgc0wf6fxk6zck1l7xn8ky"))))
878 (build-system gnu-build-system)
880 `(("python" ,python)))
881 (synopsis "Heuristics-driven menu generator")
883 "MenuMaker is a menu generation utility for a number of X window
884 managers and desktop environments. It is capable of finding lots of
885 installed programs and generating a root menu consistent across all
886 supported window managers, so one will get (almost) the same menu in
887 all of them. Currently supported window managers include:
899 (home-page "http://menumaker.sourceforge.net/")
900 (license license:bsd-2)))
902 (define-public keybinder
909 (uri (string-append "https://github.com/kupferlauncher/keybinder"
910 "/releases/download/v" version "/keybinder-"
912 (file-name (string-append name "-" version ".tar.gz"))
915 "0h52hj3ay8mfhwvmfxbxlfyq74hifdk8wxgxp7fr4iy6189hg7w7"))))
916 (build-system gnu-build-system)
918 `(("python-2" ,python-2)
921 `(("python2-pygtk" ,python2-pygtk)
923 ("pkg-config" ,pkg-config)))
924 (synopsis "Library for registering global keyboard shortcuts")
926 "Keybinder is a library for registering global keyboard shortcuts.
927 Keybinder works with GTK-based applications using the X Window System.")
928 (home-page "https://github.com/kupferlauncher/keybinder")
929 (license license:gpl2+)))
931 (define-public spectrwm
938 (uri (let ((version-with-underscores
939 (string-join (string-split version #\.) "_")))
940 (string-append "https://github.com/conformal/spectrwm/archive/"
941 "SPECTRWM_" version-with-underscores ".tar.gz")))
942 (file-name (string-append name "-" version ".tar.gz"))
945 "0z7gjmp1x6y8q3dnw6swvbv8x2wd4ykzjvi3ibk2sxhgc910907v"))))
946 (build-system gnu-build-system)
948 `(#:make-flags (let ((pkg-config (lambda (flag)
950 "$(shell pkg-config " flag " "
951 "xft fontconfig x11 libpng)"))))
954 (string-append "PREFIX=" %output)
955 (string-append "INCS=-I. " (pkg-config "--cflags"))
956 (string-append "LIBS=" (pkg-config "--libs") " -lm")))
957 #:tests? #f ;no test suite
959 (modify-phases %standard-phases
960 (add-before 'build 'change-dir
963 (add-after 'change-dir 'patch-makefile
965 (substitute* "Makefile"
967 (delete 'configure)))) ;no 'configure' exists
969 `(("freetype" ,freetype)
970 ("fontconfig" ,fontconfig)
972 ("libxcursor" ,libxcursor)
973 ("libxrandr" ,libxrandr)
976 ("xcb-util" ,xcb-util)
977 ("xcb-util-wm" ,xcb-util-wm)
978 ("xcb-util-keysyms" ,xcb-util-keysyms)))
981 ("pkg-config" ,pkg-config)))
982 (synopsis "Minimalistic automatic tiling window manager")
984 "Spectrwm is a small dynamic tiling and reparenting window manager for X11.
985 It is inspired by Xmonad and dwm. Its major features include:
988 @item Navigation anywhere on all screens with either the keyboard or mouse
989 @item Customizable status bar
990 @item Restartable without losing state
991 @item Quick launch menu
992 @item Many screen layouts possible with a few simple key strokes
993 @item Move/resize floating windows
994 @item Extended Window Manager Hints (@dfn{EWMH}) support
995 @item Configurable tiling
996 @item Adjustable tile gap allows for a true one pixel border
997 @item Customizable colors and border width
999 (home-page "https://github.com/conformal/spectrwm")
1000 (license license:isc)))
1009 (uri (string-append "http://chneukirchen.org/releases/cwm-"
1013 "17pdp9cfgh2n3n3905l4rl9qk7b722i8psnarhlc2h98qzx7zmac"))))
1014 (build-system gnu-build-system)
1016 `(#:make-flags (list "CC=gcc"
1017 (string-append "PREFIX=" %output))
1020 (modify-phases %standard-phases
1022 (add-after 'build 'install-xsession
1023 (lambda* (#:key outputs #:allow-other-keys)
1024 ;; Add a .desktop file to xsessions.
1025 (let* ((output (assoc-ref outputs "out"))
1026 (xsessions (string-append output "/share/xsessions")))
1028 (with-output-to-file
1029 (string-append xsessions "/cwm.desktop")
1034 Comment=OpenBSD Calm Window Manager fork~@
1036 TryExec=~@*~a/bin/cwm~@
1042 `(("libxft" ,libxft)
1043 ("libxrandr" ,libxrandr)
1044 ("libxinerama" ,libxinerama)))
1046 `(("pkg-config" ,pkg-config)
1048 (home-page "https://github.com/chneukirchen/cwm")
1049 (synopsis "OpenBSD fork of the calmwm window manager")
1050 (description "Cwm is a stacking window manager for X11. It is an OpenBSD
1051 project derived from the original Calm Window Manager.")
1052 (license license:isc)))
1054 (define-public nitrogen
1060 (uri (string-append "http://github.com/l3ib/nitrogen/"
1061 "releases/download/" version "/"
1062 name "-" version ".tar.gz"))
1065 "0zc3fl1mbhq0iyndy4ysmy8vv5c7xwf54rbgamzfhfvsgdq160pl"))))
1066 (build-system gnu-build-system)
1071 ("glibmm" ,glibmm)))
1073 `(("pkg-config" ,pkg-config)))
1075 `(#:configure-flags (list
1076 (string-append "--prefix=" %output)
1077 "CXXFLAGS=-std=c++11")))
1078 (home-page "http://projects.l3ib.org/nitrogen/")
1079 (synopsis "Background browser and setter for X windows")
1081 "This package is a background browser and setter for X windows. It's
1085 @item Multihead and Xinerama aware
1086 @item Recall mode to used via startup script
1087 @item Uses freedesktop.org standard for thumbnails
1088 @item Can set GNOME background
1089 @item Command lie set modes for script use
1090 @item Inotify monitoring of browse directory
1091 @item Lazy loading of thumbnails - conserves memory
1092 @item \"Automatic\" set mode - determines best mode to set an image based on
1094 @item Display preview images in a tiled icon layout
1096 (license license:gpl2+)))
1098 (define-public polybar
1105 (uri (string-append "https://github.com/jaagr/polybar/releases/"
1106 "download/" version "/polybar-" version ".tar"))
1108 (base32 "0758na059vpgnsrcdrxmh9wsahs80wnmizb9g7bmixlrkxr2m65h"))
1109 (file-name (string-append name "-" version ".tar"))))
1110 (build-system cmake-build-system)
1112 ;; Test is disabled because it requires downloading googletest from the
1116 `(("alsa-lib" ,alsa-lib)
1119 ("libmpdclient" ,libmpdclient)
1122 ("pulseaudio" ,pulseaudio)
1123 ("xcb-proto" ,xcb-proto)
1124 ("xcb-util" ,xcb-util)
1125 ("xcb-util-cursor" ,xcb-util-cursor)
1126 ("xcb-util-image" ,xcb-util-image)
1127 ("xcb-util-wm" ,xcb-util-wm)
1128 ("xcb-util-xrm" ,xcb-util-xrm)))
1130 `(("pkg-config" ,pkg-config)
1131 ("python-2" ,python-2) ; lib/xpp depends on python 2
1132 ("python" ,python))) ; xcb-proto depends on python 3
1133 (home-page "https://polybar.github.io/")
1134 (synopsis "Fast and easy-to-use status bar")
1135 (description "Polybar aims to help users build beautiful and highly
1136 customizable status bars for their desktop environment. It has built-in
1137 functionality to display information about the most commonly used services.")
1138 (license license:expat)))
1140 (define-public wlroots
1148 (url "https://github.com/swaywm/wlroots.git")
1150 (file-name (git-file-name name version))
1152 (base32 "1phiidyddzgaxy4gbqwmykxn0y8za6y5mp66l9dpd9i6fml153yq"))))
1153 (build-system meson-build-system)
1155 `(#:configure-flags '("-Dlogind-provider=elogind")
1157 (modify-phases %standard-phases
1158 (add-before 'configure 'hardcode-paths
1159 (lambda* (#:key inputs #:allow-other-keys)
1160 (substitute* "xwayland/xwayland.c"
1161 (("Xwayland") (string-append (assoc-ref inputs
1162 "xorg-server-xwayland")
1165 (inputs `(("elogind" ,elogind)
1167 ("libinput" ,libinput)
1168 ("libxkbcommon" ,libxkbcommon)
1171 ("wayland" ,wayland)
1172 ("xorg-server-xwayland" ,xorg-server-xwayland)))
1173 (native-inputs `(("ffmpeg" ,ffmpeg)
1176 ("pkg-config" ,pkg-config)
1177 ("wayland-protocols" ,wayland-protocols)))
1178 (home-page "https://github.com/swaywm/wlroots")
1179 (synopsis "Pluggable, composable, unopinionated modules for building a
1180 Wayland compositor")
1181 (description "wlroots is a set of pluggable, composable, unopinionated
1182 modules for building a Wayland compositor.")
1183 (license license:expat))) ; MIT license
1193 (url "https://github.com/swaywm/sway.git")
1195 (file-name (git-file-name name version))
1197 (base32 "09cndc2nl39d3l7g5634xp0pxcz60pvc5277mfw89r22mh0j78rx"))))
1198 (build-system meson-build-system)
1201 (modify-phases %standard-phases
1202 (add-before 'configure 'hardcode-paths
1203 (lambda* (#:key inputs #:allow-other-keys)
1204 (substitute* "meson.build"
1205 (("scdoc.get_pkgconfig_variable..scdoc..")
1206 (string-append "'" (assoc-ref inputs "scdoc")
1209 (inputs `(("cairo" ,cairo)
1210 ("elogind" ,elogind)
1211 ("gdk-pixbuf" ,gdk-pixbuf)
1213 ("libevdev" ,libevdev)
1214 ("libinput" ,libinput)
1215 ("libxkbcommon" ,libxkbcommon)
1217 ("wayland" ,wayland)
1218 ("wlroots" ,wlroots)))
1219 (native-inputs `(("git" ,git)
1221 ("linux-pam" ,linux-pam)
1223 ("pkg-config" ,pkg-config)
1225 ("wayland-protocols" ,wayland-protocols)))
1226 (home-page "https://github.com/swaywm/sway")
1227 (synopsis "Wayland compositor compatible with i3")
1228 (description "Sway is a i3-compatible Wayland compositor.")
1229 (license license:expat))) ; MIT license
1231 (define-public swayidle
1239 (url "https://github.com/swaywm/swayidle.git")
1241 (file-name (git-file-name name version))
1243 (base32 "0b65flajwn2i6k2kdxxgw25w7ikzzmm595f4j5x1wac1rb0yah9w"))))
1244 (build-system meson-build-system)
1245 (inputs `(("wayland" ,wayland)))
1246 (native-inputs `(("pkg-config" ,pkg-config)
1248 ("wayland-protocols" ,wayland-protocols)))
1249 (home-page "https://github.com/swaywm/sway")
1250 (synopsis "Idle management daemon for Wayland compositors")
1251 (description "Swayidle is a idle management daemon for Wayland compositors.")
1252 (license license:expat))) ; MIT license
1254 (define-public swaylock
1262 (url "https://github.com/swaywm/swaylock.git")
1264 (file-name (git-file-name name version))
1266 (base32 "093nv1y9wyg48rfxhd36qdljjry57v1vkzrlc38mkf6zvsq8j7wb"))))
1267 (build-system meson-build-system)
1268 (inputs `(("cairo" ,cairo)
1269 ("gdk-pixbuf" ,gdk-pixbuf)
1270 ("libxkbcommon" ,libxkbcommon)
1271 ;("linux-pam" ,linux-pam) ; FIXME: Doesn't work.
1272 ("wayland" ,wayland)))
1273 (native-inputs `(("git" ,git)
1275 ("pkg-config" ,pkg-config)
1277 ("wayland-protocols" ,wayland-protocols)))
1278 (home-page "https://github.com/swaywm/sway")
1279 (synopsis "Screen locking utility for Wayland compositors")
1280 (description "Swaylock is a screen locking utility for Wayland compositors.")
1281 (license license:expat))) ; MIT license