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>
11 ;;; This file is part of GNU Guix.
13 ;;; GNU Guix is free software; you can redistribute it and/or modify it
14 ;;; under the terms of the GNU General Public License as published by
15 ;;; the Free Software Foundation; either version 3 of the License, or (at
16 ;;; your option) any later version.
18 ;;; GNU Guix is distributed in the hope that it will be useful, but
19 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;;; GNU General Public License for more details.
23 ;;; You should have received a copy of the GNU General Public License
24 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
26 (define-module (gnu packages wm)
27 #:use-module ((guix licenses) #:prefix license:)
28 #:use-module (guix packages)
29 #:use-module (gnu packages)
30 #:use-module (gnu packages linux)
31 #:use-module (guix build-system gnu)
32 #:use-module (guix build-system haskell)
33 #:use-module (gnu packages haskell)
34 #:use-module (gnu packages base)
35 #:use-module (gnu packages pkg-config)
36 #:use-module (gnu packages perl)
37 #:use-module (gnu packages pulseaudio)
38 #:use-module (gnu packages xorg)
39 #:use-module (gnu packages xdisorg)
40 #:use-module (gnu packages documentation)
41 #:use-module (gnu packages xml)
42 #:use-module (gnu packages m4)
43 #:use-module (gnu packages docbook)
44 #:use-module (gnu packages image)
45 #:use-module (gnu packages pcre)
46 #:use-module (gnu packages gtk)
47 #:use-module (gnu packages libevent)
48 #:use-module (gnu packages fribidi)
49 #:use-module (gnu packages maths)
50 #:use-module (gnu packages web)
51 #:use-module (gnu packages fontutils)
52 #:use-module (guix download)
53 #:use-module (guix git-download))
55 (define-public libconfuse
61 (uri (string-append "http://savannah.nongnu.org/download/confuse/"
62 "confuse-" version ".tar.gz"))
65 "0y47r2ashz44wvnxdb18ivpmj8nxhw3y9bf7v9w0g5byhgyp89g3"))))
66 (build-system gnu-build-system)
67 (home-page "http://www.nongnu.org/confuse/")
68 (synopsis "Configuration file parser library")
69 (description "libconfuse is a configuration file parser library. It
70 supports sections and (lists of) values (strings, integers, floats, booleans
71 or other sections), as well as some other features (such as
72 single/double-quoted strings, environment variable expansion, functions and
73 nested include statements).")
74 (license license:isc)))
82 (file-name (string-append name "-" version ".tar.gz"))
85 "https://github.com/baskerville/bspwm/archive/"
89 "1pig0h2jk8wipyz90j69c4bk37bfyq60asnn0v0bqld2p2vjvyqy"))))
90 (build-system gnu-build-system)
93 ("libxinerama" ,libxinerama)
95 ("xcb-util" ,xcb-util)
96 ("xcb-util-keysyms" ,xcb-util-keysyms)
97 ("xcb-util-wm" ,xcb-util-wm)))
99 '(#:phases (alist-delete 'configure %standard-phases)
100 #:tests? #f ; no check target
101 #:make-flags (list "CC=gcc"
102 (string-append "PREFIX=" %output))))
103 (home-page "https://github.com/baskerville/bspwm")
104 (synopsis "Tiling window manager based on binary space partitioning")
105 (description "bspwm is a tiling window manager that represents windows as
106 the leaves of a full binary tree.")
107 (license license:bsd-2)))
109 (define-public i3status
115 (uri (string-append "https://i3wm.org/i3status/i3status-"
119 "1497dsvb32z9xljmxz95dnyvsbayn188ilm3l4ys8m5h25vd1xfs"))))
120 (build-system gnu-build-system)
122 `(#:make-flags (list "CC=gcc" (string-append "PREFIX=" %output))
124 (modify-phases %standard-phases
126 #:tests? #f)) ; no test suite
128 `(("openlibm" ,openlibm)
129 ("libconfuse" ,libconfuse)
131 ("alsa-lib" ,alsa-lib)
132 ("pulseaudio" ,pulseaudio)
135 ("asciidoc" ,asciidoc)))
137 `(("pkg-config" ,pkg-config)))
138 (home-page "https://i3wm.org/i3status/")
139 (synopsis "Status bar for i3bar, dzen2, xmobar or similar programs")
140 (description "i3status is a small program for generating a status bar for
141 i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient
142 by issuing a very small number of system calls, as one generally wants to
143 update such a status line every second. This ensures that even under high
144 load, your status bar is updated correctly. Also, it saves a bit of energy by
145 not hogging your CPU as much as spawning the corresponding amount of shell
147 (license license:bsd-3)))
155 (uri (string-append "https://i3wm.org/downloads/i3-"
159 "1d3q3lgpjbkmcwzjhp0dfr0jq847silcfg087slcnj95ikh1r7p1"))))
160 (build-system gnu-build-system)
162 `(#:make-flags (list "CC=gcc" (string-append "PREFIX=" %output))
164 (modify-phases %standard-phases
166 #:tests? #f)) ; no test suite
169 ("xcb-util" ,xcb-util)
170 ("xcb-util-cursor" ,xcb-util-cursor)
171 ("xcb-util-keysyms" ,xcb-util-keysyms)
172 ("xcb-util-wm" ,xcb-util-wm)
173 ("libxkbcommon" ,libxkbcommon)
176 ("asciidoc" ,asciidoc)
178 ("perl-pod-simple" ,perl-pod-simple)
179 ("docbook-xml" ,docbook-xml)
182 ("startup-notification" ,startup-notification)
188 ("pkg-config" ,pkg-config)))
189 (home-page "https://i3wm.org/")
190 (synopsis "Improved tiling window manager")
191 (description "A tiling window manager, completely written
192 from scratch. i3 is primarily targeted at advanced users and
194 (license license:bsd-3)))
196 (define-public xmonad
200 (synopsis "Tiling window manager")
203 (uri (string-append "http://hackage.haskell.org/package/xmonad/"
204 name "-" version ".tar.gz"))
207 "1pfjssamiwpwjp1qqkm9m9p9s35pv381m0cwg6jxg0ppglibzq1r"))
208 (modules '((guix build utils)))
210 ;; Here we update the constraints on the utf8-string package in
211 ;; the Cabal file. We allow a newer version which is compatible
212 ;; with GHC 7.10.2. The same change is applied on Hackage. See
213 ;; <https://hackage.haskell.org/package/xmonad-0.11.1/revisions/>.
214 '(substitute* "xmonad.cabal"
215 (("utf8-string >= 0.3 && < 0.4")
216 "utf8-string >= 0.3 && < 1.1")))))
217 (build-system haskell-build-system)
219 `(("ghc-mtl" ,ghc-mtl)
220 ("ghc-utf8-string" ,ghc-utf8-string)
221 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
222 ("ghc-x11" ,ghc-x11)))
225 (modify-phases %standard-phases
227 'install 'install-xsession
229 (let* ((xsessions (string-append %output "/share/xsessions")))
231 (call-with-output-file
232 (string-append xsessions "/xmonad.desktop")
239 Type=Application~%" ,name ,synopsis %output)))))))))
240 (home-page "http://xmonad.org")
242 "Xmonad is a tiling window manager for X. Windows are arranged
243 automatically to tile the screen without gaps or overlap, maximising screen
244 use. All features of the window manager are accessible from the keyboard: a
245 mouse is strictly optional. Xmonad is written and extensible in Haskell.
246 Custom layout algorithms, and other extensions, may be written by the user in
247 config files. Layouts are applied dynamically, and different layouts may be
248 used on each workspace. Xinerama is fully supported, allowing windows to be
249 tiled on several screens.")
250 (license license:bsd-3)))
252 (define-public ghc-xmonad-contrib
254 (name "ghc-xmonad-contrib")
259 (uri (string-append "http://hackage.haskell.org/package/xmonad-contrib/"
260 "xmonad-contrib-" version ".tar.gz"))
263 "1g5cw9vvnfbiyi599fngk02zlmdhrf82x0bndhypkn6kybab6yd3"))))
264 (build-system haskell-build-system)
266 `(("ghc-mtl" ,ghc-mtl)
267 ("ghc-old-time" ,ghc-old-time)
268 ("ghc-random" ,ghc-random)
269 ("ghc-utf8-string" ,ghc-utf8-string)
270 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
272 ("ghc-x11-xft" ,ghc-x11-xft)
274 (home-page "http://xmonad.org")
275 (synopsis "Third party extensions for xmonad")
277 "Third party tiling algorithms, configurations, and scripts to Xmonad, a
278 tiling window manager for X.")
279 (license license:bsd-3)))
281 (define-public evilwm
288 (uri (string-append "http://www.6809.org.uk/evilwm/evilwm-"
292 "0ak0yajzk3v4dg5wmaghv6acf7v02a4iw8qxmq5yw5ard8lrqn3r"))
293 (patches (search-patches "evilwm-lost-focus-bug.patch"))))
294 (build-system gnu-build-system)
298 ("libxrandr" ,libxrandr)))
300 `(#:modules ((srfi srfi-26)
302 (guix build gnu-build-system))
303 #:make-flags (let ((inputs (map (cut assoc-ref %build-inputs <>)
304 '("libx11" "libxext" "libxrandr")))
305 (join (lambda (proc strs)
306 (string-join (map proc strs) " ")))
307 (dash-I (cut string-append "-I" <> "/include"))
308 (dash-L (cut string-append "-L" <> "/lib")))
309 `("desktopfilesdir=$(prefix)/share/xsessions"
310 ,(string-append "prefix=" (assoc-ref %outputs "out"))
311 ,(string-append "CPPFLAGS=" (join dash-I inputs))
312 ,(string-append "LDFLAGS=" (join dash-L inputs))))
313 #:tests? #f ;no tests
314 #:phases (modify-phases %standard-phases
315 (delete 'configure)))) ;no configure script
316 (home-page "http://www.6809.org.uk/evilwm/")
317 (synopsis "Minimalist window manager for the X Window System")
319 "evilwm is a minimalist window manager based on aewm, extended to feature
320 many keyboard controls with repositioning and maximize toggles, solid window
321 drags, snap-to-border support, and virtual desktops.")
322 (license (license:x11-style "file:///README"))))
324 (define-public fluxbox
328 (synopsis "Small and fast window manager")
331 (uri (string-append "mirror://sourceforge/fluxbox/"
332 version "/fluxbox-" version ".tar.xz"))
335 "1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w"))))
336 (build-system gnu-build-system)
338 `(#:make-flags '("CPPFLAGS=-U__TIME__") ;ugly, but for reproducibility
340 (modify-phases %standard-phases
342 'install 'install-xsession
344 (let ((xsessions (string-append %output "/share/xsessions")))
346 (call-with-output-file
347 (string-append xsessions "/fluxbox.desktop")
353 Exec=~a/bin/startfluxbox~@
354 Type=Application~%" ,name ,synopsis %output)))))))))
356 `(("pkg-config" ,pkg-config)))
358 `(("freetype" ,freetype)
364 ("libxinerama" ,libxinerama)
366 ("libxrandr" ,libxrandr)
367 ("libxrender" ,libxrender)))
368 (description "Fluxbox is a window manager. It is light on resources
369 and easy to handle yet full of features to make an easy and fast desktop
371 (home-page "http://fluxbox.org/")
372 (license license:expat)))