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 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 Ludovic Courtès <ludo@gnu.org>
12 ;;; Copyright © 2016, 2017 ng0 <ng0@infotropique.org>
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 Marius Bakke <mbakke@fastmail.com>
17 ;;; Copyright © 2017 Oleg Pykhalov <go.wigust@gmail.com>
19 ;;; This file is part of GNU Guix.
21 ;;; GNU Guix is free software; you can redistribute it and/or modify it
22 ;;; under the terms of the GNU General Public License as published by
23 ;;; the Free Software Foundation; either version 3 of the License, or (at
24 ;;; your option) any later version.
26 ;;; GNU Guix is distributed in the hope that it will be useful, but
27 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
28 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 ;;; GNU General Public License for more details.
31 ;;; You should have received a copy of the GNU General Public License
32 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
34 (define-module (gnu packages wm)
35 #:use-module ((guix licenses) #:prefix license:)
36 #:use-module (guix packages)
37 #:use-module (gnu packages)
38 #:use-module (gnu packages linux)
39 #:use-module (guix build-system cmake)
40 #:use-module (guix build-system gnu)
41 #:use-module (guix build-system haskell)
42 #:use-module (guix build-system perl)
43 #:use-module (guix build-system python)
44 #:use-module (gnu packages haskell)
45 #:use-module (gnu packages base)
46 #:use-module (gnu packages pkg-config)
47 #:use-module (gnu packages perl)
48 #:use-module (gnu packages pulseaudio)
49 #:use-module (gnu packages xorg)
50 #:use-module (gnu packages xdisorg)
51 #:use-module (gnu packages documentation)
52 #:use-module (gnu packages xml)
53 #:use-module (gnu packages m4)
54 #:use-module (gnu packages docbook)
55 #:use-module (gnu packages image)
56 #:use-module (gnu packages pcre)
57 #:use-module (gnu packages python)
58 #:use-module (gnu packages gtk)
59 #:use-module (gnu packages libevent)
60 #:use-module (gnu packages fribidi)
61 #:use-module (gnu packages maths)
62 #:use-module (gnu packages web)
63 #:use-module (gnu packages fontutils)
64 #:use-module (gnu packages freedesktop)
65 #:use-module (gnu packages glib)
66 #:use-module (gnu packages gperf)
67 #:use-module (gnu packages imagemagick)
68 #:use-module (gnu packages lua)
69 #:use-module (gnu packages suckless)
70 #:use-module (guix download)
71 #:use-module (guix git-download))
73 (define-public libconfuse
79 (uri (string-append "https://github.com/martinh/libconfuse/"
80 "releases/download/v" version
81 "/confuse-" version ".tar.xz"))
84 "0pnjmlj9i0alp407qd7c0vq83sz7gpsjrbdgpcn4xvzjp9r35ii3"))))
85 (build-system gnu-build-system)
86 (home-page "https://github.com/martinh/libconfuse")
87 (synopsis "Configuration file parser library")
88 (description "libconfuse is a configuration file parser library. It
89 supports sections and (lists of) values (strings, integers, floats, booleans
90 or other sections), as well as some other features (such as
91 single/double-quoted strings, environment variable expansion, functions and
92 nested include statements).")
93 (license license:isc)))
101 (file-name (string-append name "-" version ".tar.gz"))
104 "https://github.com/baskerville/bspwm/archive/"
108 "17dwj7w16cdj7g4s2y2f96lgj5msq1s4543dnfa3rijlazzy6mmk"))))
109 (build-system gnu-build-system)
112 ("libxinerama" ,libxinerama)
114 ("xcb-util" ,xcb-util)
115 ("xcb-util-keysyms" ,xcb-util-keysyms)
116 ("xcb-util-wm" ,xcb-util-wm)))
118 '(#:phases (modify-phases %standard-phases (delete 'configure))
119 #:tests? #f ; no check target
120 #:make-flags (list "CC=gcc"
121 (string-append "PREFIX=" %output))))
122 (home-page "https://github.com/baskerville/bspwm")
123 (synopsis "Tiling window manager based on binary space partitioning")
124 (description "bspwm is a tiling window manager that represents windows as
125 the leaves of a full binary tree.")
126 (license license:bsd-2)))
128 (define-public i3status
134 (uri (string-append "https://i3wm.org/i3status/i3status-"
138 "0pwcy599fw8by1a1sf91crkqba7679qhvhbacpmhis8c1xrpxnwq"))))
139 (build-system gnu-build-system)
141 `(#:make-flags (list "CC=gcc" (string-append "PREFIX=" %output))
143 (modify-phases %standard-phases
145 #:tests? #f)) ; no test suite
147 `(("openlibm" ,openlibm)
148 ("libconfuse" ,libconfuse)
150 ("alsa-lib" ,alsa-lib)
151 ("pulseaudio" ,pulseaudio)
154 ("asciidoc" ,asciidoc)))
156 `(("pkg-config" ,pkg-config)))
157 (home-page "https://i3wm.org/i3status/")
158 (synopsis "Status bar for i3bar, dzen2, xmobar or similar programs")
159 (description "i3status is a small program for generating a status bar for
160 i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient
161 by issuing a very small number of system calls, as one generally wants to
162 update such a status line every second. This ensures that even under high
163 load, your status bar is updated correctly. Also, it saves a bit of energy by
164 not hogging your CPU as much as spawning the corresponding amount of shell
166 (license license:bsd-3)))
174 (uri (string-append "https://i3wm.org/downloads/i3-"
178 "1cazmfbbx6n8c81h6x6pdayq3mxs2ml3adz165z8vapkc72kl1nh"))))
179 (build-system gnu-build-system)
183 (string-append "PREFIX=" %output)
184 ;; This works around the following error:
185 ;; 'error: ‘for’ loop initial declarations are only allowed in C99
188 ;; The build system tries to build in a separate directory, but that
189 ;; seems to be unnecessary.
190 #:configure-flags '("--disable-builddir")
191 ;; The test suite appears to require the unpackaged Perl module AnyEvent.
195 ("xcb-util" ,xcb-util)
196 ("xcb-util-cursor" ,xcb-util-cursor)
197 ("xcb-util-keysyms" ,xcb-util-keysyms)
198 ("xcb-util-wm" ,xcb-util-wm)
199 ("xcb-util-xrm" ,xcb-util-xrm)
200 ("libxkbcommon" ,libxkbcommon)
203 ("asciidoc" ,asciidoc)
205 ("perl-pod-simple" ,perl-pod-simple)
208 ("startup-notification" ,startup-notification)
214 ("pkg-config" ,pkg-config)
215 ;; For building the documentation.
217 ("docbook-xsl" ,docbook-xsl)))
218 (home-page "https://i3wm.org/")
219 (synopsis "Improved tiling window manager")
220 (description "A tiling window manager, completely written
221 from scratch. i3 is primarily targeted at advanced users and
223 (license license:bsd-3)))
225 (define-public perl-anyevent-i3
227 (name "perl-anyevent-i3")
231 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTPLBG/"
232 "AnyEvent-I3-" version ".tar.gz"))
235 "0qvd9bq16jyy7v3ma82qcnvz9j503bw0mh7h55gkjf7ir62ck0jk"))))
236 (build-system perl-build-system)
238 `(("perl-anyevent" ,perl-anyevent)
239 ("perl-json-xs" ,perl-json-xs)))
240 (home-page "http://search.cpan.org/dist/AnyEvent-I3")
242 "Communicate with the i3 window manager through perl")
244 "This module connects to the i3 window manager using the UNIX socket
245 based IPC interface it provides (if enabled in the configuration file).
246 You can then subscribe to events or send messages and receive their replies.")
247 ;; Can be used with either license.
248 (license (list license:gpl3+ license:perl-license))))
250 (define-public python-i3-py
252 (name "python-i3-py")
256 ;; The latest release is not tagged in Git nor has an entry in PyPi,
257 ;; but there is still a clear commit for it, and it's been the last one
261 (url "https://github.com/ziberna/i3-py.git")
262 (commit "27f88a616e9ecc340e7d041d3d00782f8a1964c1")))
265 "1nm719dc2xqlll7vj4c4m7mpjb27lpn3bg3c66gajvnrz2x1nmxs"))
266 (file-name (string-append name "-" version "-checkout"))))
267 (build-system python-build-system)
269 `(#:tests? #f ; no tests yet
270 #:phases (modify-phases %standard-phases
271 (add-after 'install 'install-doc
272 ;; Copy readme file to documentation directory.
273 (lambda* (#:key outputs #:allow-other-keys)
274 (let ((doc (string-append (assoc-ref outputs "out")
275 "/share/doc/" ,name)))
276 (install-file "README.md" doc)
277 ;; Avoid unspecified return value.
281 (home-page "https://github.com/ziberna/i3-py")
282 (synopsis "Python interface to the i3 window manager")
283 (description "This package allows you to interact from a Python program
284 with the i3 window manager via its IPC socket. It can send commands and other
285 kinds of messages to i3, select the affected containers, filter results and
286 subscribe to events.")
287 (license license:gpl3+)))
289 (define-public python2-i3-py
290 (package-with-python2 python-i3-py))
292 (define-public quickswitch-i3
293 (let ((commit "ed692b1e8f43b95bd907ced26238ce8ccb2ed28f")
294 (revision "1")) ; Guix package revision
296 (name "quickswitch-i3")
297 (version (string-append "2.2-" revision "."
298 (string-take commit 7)))
301 ;; The latest commit is a few years old and just a couple commits
302 ;; after the last tagged release, so we use that latest commit
303 ;; instead of the release.
306 (url "https://github.com/proxypoke/quickswitch-for-i3.git")
310 "0447077sama80jcdg5p64zjsvafmz5rbdrirhm1adcdjhkh6iqc5"))
311 (patches (search-patches "quickswitch-fix-dmenu-check.patch"))
312 (file-name (string-append name "-" version "-checkout"))))
313 (build-system python-build-system)
315 `(#:tests? #f ; no tests yet
316 #:phases (modify-phases %standard-phases
317 (add-after 'install 'install-doc
318 ;; Copy readme file to documentation directory.
319 (lambda* (#:key outputs #:allow-other-keys)
320 (let ((doc (string-append (assoc-ref outputs "out")
321 "/share/doc/" ,name)))
322 (install-file "README.rst" doc)
323 ;; Avoid unspecified return value.
326 `(("python-i3-py" ,python-i3-py)
328 (home-page "https://github.com/proxypoke/quickswitch-for-i3")
329 (synopsis "Quickly change to and locate windows in the i3 window manager")
331 "This utility for the i3 window manager allows you to quickly switch to
332 and locate windows on all your workspaces, using an interactive dmenu
334 (license (license:non-copyleft "http://www.wtfpl.net/txt/copying/")))))
336 (define-public xmonad
340 (synopsis "Tiling window manager")
343 (uri (string-append "mirror://hackage/package/xmonad/"
344 name "-" version ".tar.gz"))
347 "1jh3lcs20qpna36fa5a0r174xqrsxhj10x1rm5vwf64zariipy7r"))))
348 (build-system haskell-build-system)
350 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
352 ("ghc-quickcheck" ,ghc-quickcheck)
353 ("ghc-setlocale" ,ghc-setlocale)
354 ("ghc-utf8-string" ,ghc-utf8-string)
355 ("ghc-directory" ,ghc-directory)
356 ("ghc-x11" ,ghc-x11)))
359 (modify-phases %standard-phases
361 'install 'install-xsession
363 (let* ((xsessions (string-append %output "/share/xsessions")))
365 (call-with-output-file
366 (string-append xsessions "/xmonad.desktop")
373 Type=Application~%" ,name ,synopsis %output)))))))))
374 (home-page "http://xmonad.org")
376 "Xmonad is a tiling window manager for X. Windows are arranged
377 automatically to tile the screen without gaps or overlap, maximising screen
378 use. All features of the window manager are accessible from the keyboard: a
379 mouse is strictly optional. Xmonad is written and extensible in Haskell.
380 Custom layout algorithms, and other extensions, may be written by the user in
381 config files. Layouts are applied dynamically, and different layouts may be
382 used on each workspace. Xinerama is fully supported, allowing windows to be
383 tiled on several screens.")
384 (license license:bsd-3)))
386 (define-public xmobar
392 (uri (string-append "mirror://hackage/package/xmobar/"
393 name "-" version ".tar.gz"))
396 "0sdzfj2wa4wpig1i2i5n9qpwm90jp88qifsmaa7j37yhhs6snfir"))))
397 (build-system haskell-build-system)
399 `(("ghc-http" ,ghc-http)
400 ("ghc-parsec" ,ghc-parsec)
401 ("ghc-regex-compat" ,ghc-regex-compat)
403 ("ghc-x11-xft" ,ghc-x11-xft)
404 ("ghc-hinotify" ,ghc-hinotify)
406 ("wireless-tools" ,wireless-tools)))
409 '("--flags=with_utf8 with_xft with_xpm with_inotify with_iwlib")))
410 (home-page "http://xmobar.org")
411 (synopsis "Minimalistic text based status bar")
413 "@code{xmobar} is a lightweight, text-based, status bar written in
414 Haskell. It was originally designed to be used together with Xmonad, but it
415 is also usable with any other window manager. While xmobar is written in
416 Haskell, no knowledge of the language is required to install and use it.")
417 (license license:bsd-3)))
419 (define-public ghc-xmonad-contrib
421 (name "ghc-xmonad-contrib")
426 (uri (string-append "mirror://hackage/package/xmonad-contrib/"
427 "xmonad-contrib-" version ".tar.gz"))
430 "0vj72jhfng6y7hv5frx2v99jvl3jn9rbpk2j7xw9vydiwmzq4q57"))))
431 (build-system haskell-build-system)
433 `(("ghc-mtl" ,ghc-mtl)
434 ("ghc-old-time" ,ghc-old-time)
435 ("ghc-random" ,ghc-random)
436 ("ghc-utf8-string" ,ghc-utf8-string)
437 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
439 ("ghc-x11-xft" ,ghc-x11-xft)
441 (home-page "http://xmonad.org")
442 (synopsis "Third party extensions for xmonad")
444 "Third party tiling algorithms, configurations, and scripts to Xmonad, a
445 tiling window manager for X.")
446 (license license:bsd-3)))
448 (define-public evilwm
455 (uri (string-append "http://www.6809.org.uk/evilwm/evilwm-"
459 "0ak0yajzk3v4dg5wmaghv6acf7v02a4iw8qxmq5yw5ard8lrqn3r"))
460 (patches (search-patches "evilwm-lost-focus-bug.patch"))))
461 (build-system gnu-build-system)
465 ("libxrandr" ,libxrandr)))
467 `(#:modules ((srfi srfi-26)
469 (guix build gnu-build-system))
470 #:make-flags (let ((inputs (map (cut assoc-ref %build-inputs <>)
471 '("libx11" "libxext" "libxrandr")))
472 (join (lambda (proc strs)
473 (string-join (map proc strs) " ")))
474 (dash-I (cut string-append "-I" <> "/include"))
475 (dash-L (cut string-append "-L" <> "/lib")))
476 `("desktopfilesdir=$(prefix)/share/xsessions"
477 ,(string-append "prefix=" (assoc-ref %outputs "out"))
478 ,(string-append "CPPFLAGS=" (join dash-I inputs))
479 ,(string-append "LDFLAGS=" (join dash-L inputs))))
480 #:tests? #f ;no tests
481 #:phases (modify-phases %standard-phases
482 (delete 'configure)))) ;no configure script
483 (home-page "http://www.6809.org.uk/evilwm/")
484 (synopsis "Minimalist window manager for the X Window System")
486 "evilwm is a minimalist window manager based on aewm, extended to feature
487 many keyboard controls with repositioning and maximize toggles, solid window
488 drags, snap-to-border support, and virtual desktops.")
489 (license (license:x11-style "file:///README"))))
491 (define-public fluxbox
495 (synopsis "Small and fast window manager")
498 (uri (string-append "mirror://sourceforge/fluxbox/fluxbox/"
499 version "/fluxbox-" version ".tar.xz"))
502 "1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w"))))
503 (build-system gnu-build-system)
505 `(#:make-flags '("CPPFLAGS=-U__TIME__") ;ugly, but for reproducibility
507 (modify-phases %standard-phases
509 'install 'install-xsession
511 (let ((xsessions (string-append %output "/share/xsessions")))
513 (call-with-output-file
514 (string-append xsessions "/fluxbox.desktop")
520 Exec=~a/bin/startfluxbox~@
521 Type=Application~%" ,name ,synopsis %output)))))))))
523 `(("pkg-config" ,pkg-config)))
525 `(("freetype" ,freetype)
531 ("libxinerama" ,libxinerama)
533 ("libxrandr" ,libxrandr)
534 ("libxrender" ,libxrender)))
535 (description "Fluxbox is a window manager. It is light on resources
536 and easy to handle yet full of features to make an easy and fast desktop
538 (home-page "http://fluxbox.org/")
539 (license license:expat)))
541 (define-public awesome
546 (origin (method url-fetch)
548 "https://github.com/awesomeWM/awesome-releases/raw/"
549 "master/awesome-" version ".tar.xz"))
552 "0czkcz67sab63gf5m2p2pgg05yinjx60hfb9rfyzdkkg28q9f02w"))
553 (modules '((guix build utils)
556 ;; Remove non-reproducible timestamp and use the date of the
557 ;; source file instead.
558 '(substitute* "common/version.c"
559 (("__DATE__ \" \" __TIME__")
562 (make-time time-utc 0
563 (stat:mtime (stat "awesome.c"))))
565 (patches (search-patches "awesome-reproducible-png.patch"))))
566 (build-system cmake-build-system)
567 (native-inputs `(("asciidoc" ,asciidoc)
568 ("docbook-xsl" ,docbook-xsl)
571 ("imagemagick" ,imagemagick)
572 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
573 ("pkg-config" ,pkg-config)
575 (inputs `(("cairo" ,cairo)
577 ("gdk-pixbuf" ,gdk-pixbuf)
579 ("gobject-introspection" ,gobject-introspection)
583 ("libxcursor" ,libxcursor)
584 ("libxdg-basedir" ,libxdg-basedir)
585 ("libxkbcommon" ,libxkbcommon)
589 ("startup-notification" ,startup-notification)
590 ("xcb-util" ,xcb-util)
591 ("xcb-util-cursor" ,xcb-util-cursor)
592 ("xcb-util-image" ,xcb-util-image)
593 ("xcb-util-keysyms" ,xcb-util-keysyms)
594 ("xcb-util-renderutil" ,xcb-util-renderutil)
595 ("xcb-util-xrm" ,xcb-util-xrm)
596 ("xcb-util-wm" ,xcb-util-wm)))
598 `(;; Let compression happen in our 'compress-documentation' phase so that
599 ;; '--no-name' is used, which removes timestamps from gzip output.
600 #:configure-flags '("-DCOMPRESS_MANPAGES=off")
603 (modify-phases %standard-phases
604 (add-before 'build 'xmlto-skip-validation
606 ;; We can't download the necessary schema, so so skip
607 ;; validation and assume they're valid.
608 (substitute* "../build/CMakeFiles/man.dir/build.make"
610 (string-append "/xmlto --skip-validation")))
612 (add-before 'configure 'set-lua-paths
613 (lambda* (#:key inputs #:allow-other-keys)
614 ;; The build process needs to load cairo dynamically.
615 (let* ((cairo (string-append
616 (assoc-ref inputs "cairo") "/lib" ))
617 (lua-lgi (assoc-ref inputs "lua-lgi") ))
618 (setenv "LD_LIBRARY_PATH" cairo )
619 (setenv "LUA_PATH" (string-append lua-lgi
620 "/share/lua/5.2/?.lua"))
621 (setenv "LUA_CPATH" (string-append lua-lgi
622 "/lib/lua/5.2/?.so"))
626 ;; There aren't any tests, so just make sure the binary
627 ;; gets built and can be run successfully.
628 (zero? (system* "../build/awesome" "-v"))))
629 (add-after 'install 'wrap
630 (lambda* (#:key inputs outputs #:allow-other-keys)
631 (let* ((awesome (assoc-ref outputs "out"))
632 (cairo (string-append
633 (assoc-ref inputs "cairo") "/lib" ))
634 (lua-lgi (assoc-ref inputs "lua-lgi") ))
635 (wrap-program (string-append awesome "/bin/awesome")
636 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))
637 `("LD_LIBRARY_PATH" suffix (, cairo))
638 `("LUA_PATH" suffix (,(string-append lua-lgi
639 "/share/lua/5.2/?.lua")))
640 `("LUA_CPATH" suffix (,(string-append
641 lua-lgi "/lib/lua/5.2/?.so"))))))))))
642 (synopsis "Highly configurable window manager")
644 "Awesome has been designed as a framework window manager. It is fast, small,
645 dynamic and extensible using the Lua programming language.")
646 (license license:gpl2+)
647 (home-page "https://awesome.naquadah.org/")))
649 (define-public menumaker
656 (uri (string-append "mirror://sourceforge/menumaker/"
657 "menumaker-" version ".tar.gz"))
660 "1mm4cvg3kphkkd8nwrhcg6d9nm5ar7mgc0wf6fxk6zck1l7xn8ky"))))
661 (build-system gnu-build-system)
663 `(("python" ,python)))
664 (synopsis "Heuristics-driven menu generator")
666 "MenuMaker is a menu generation utility for a number of X window
667 managers and desktop environments. It is capable of finding lots of
668 installed programs and generating a root menu consistent across all
669 supported window managers, so one will get (almost) the same menu in
670 all of them. Currently supported window managers include:
682 (home-page "http://menumaker.sourceforge.net/")
683 (license license:bsd-2)))
685 (define-public keybinder
692 (uri (string-append "https://github.com/engla/keybinder/releases/"
693 "download/v" version "/keybinder-"
695 (file-name (string-append name "-" version ".tar.gz"))
698 "0h52hj3ay8mfhwvmfxbxlfyq74hifdk8wxgxp7fr4iy6189hg7w7"))))
699 (build-system gnu-build-system)
701 `(("python-2" ,python-2)
704 `(("python2-pygtk" ,python2-pygtk)
706 ("pkg-config" ,pkg-config)))
707 (synopsis "Library for registering global keyboard shortcuts")
709 "Keybinder is a library for registering global keyboard shortcuts.
710 Keybinder works with GTK-based applications using the X Window System.")
711 (home-page "https://github.com/engla/keybinder")
712 (license license:gpl2+)))
714 (define-public spectrwm
721 (uri (let ((version-with-underscores
722 (string-join (string-split version #\.) "_")))
723 (string-append "https://github.com/conformal/spectrwm/archive/"
724 "SPECTRWM_" version-with-underscores ".tar.gz")))
725 (file-name (string-append name "-" version ".tar.gz"))
728 "065b7j8s0lxw3p58fyf3c1mr5203pdm0kww42v245rlx0f005kl2"))))
729 (build-system gnu-build-system)
731 `(#:make-flags (let ((pkg-config (lambda (flag)
733 "$(shell pkg-config " flag " "
734 "xft fontconfig x11 libpng)"))))
737 (string-append "PREFIX=" %output)
738 (string-append "INCS=-I. " (pkg-config "--cflags"))
739 (string-append "LIBS=" (pkg-config "--libs") " -lm")))
740 #:tests? #f ;No test suite
742 (modify-phases %standard-phases
743 (add-before 'build 'change-dir
746 (add-after 'change-dir 'patch-makefile
748 (substitute* "Makefile"
750 (add-after 'change-dir 'fix-freetype-include
752 (substitute* "Makefile"
753 (("/usr/include/freetype2")
754 (string-append (assoc-ref %build-inputs "freetype")
755 "/include/freetype2")))))
756 (delete 'configure)))) ;no 'configure' exists
758 `(("freetype" ,freetype)
759 ("fontconfig" ,fontconfig)
761 ("libxcursor" ,libxcursor)
762 ("libxrandr" ,libxrandr)
765 ("xcb-util" ,xcb-util)
766 ("xcb-util-wm" ,xcb-util-wm)
767 ("xcb-util-keysyms" ,xcb-util-keysyms)))
770 ("pkg-config" ,pkg-config)))
771 (synopsis "Minimalistic automatic tiling window manager")
773 "Spectrwm is a small dynamic tiling and reparenting window manager for X11.
774 It is inspired by Xmonad and dwm. Its major features include:
777 @item Navigation anywhere on all screens with either the keyboard or mouse
778 @item Customizable status bar
779 @item Restartable without losing state
780 @item Quick launch menu
781 @item Many screen layouts possible with a few simple key strokes
782 @item Move/resize floating windows
783 @item Extended Window Manager Hints (EWMH) support
784 @item Configureable tiling
785 @item Adjustable tile gap allows for a true one pixel border
786 @item Customizable colors and border width
788 (home-page "https://github.com/conformal/spectrwm")
789 (license license:isc)))