gnu: chromium.scm: Remove use of CADR.
[jackhill/guix/guix.git] / gnu / packages / wm.scm
CommitLineData
bda2ded6
ED
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
6e38c4be 3;;; Copyright © 2015 Siniša Biđin <sinisa@bidin.eu>
0ede252b 4;;; Copyright © 2015, 2016 Eric Bavier <bavier@member.fsf.org>
1268e52d 5;;; Copyright © 2015 xd1le <elisp.vim@gmail.com>
ca80b8ba 6;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
0ede252b 7;;; Copyright © 2016 Danny Milosavljevic <dannym@scratchpost.org>
37f7853e 8;;; Copyright © 2016, 2019 Efraim Flashner <efraim@flashner.co.il>
766a22fb 9;;; Copyright © 2016 Al McElrath <hello@yrns.org>
3d1240aa 10;;; Copyright © 2016 Carlo Zancanaro <carlo@zancanaro.id.au>
a0158c26 11;;; Copyright © 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
47956fa0 12;;; Copyright © 2016, 2017, 2018 ng0 <ng0@n0.is>
22037a32 13;;; Copyright © 2016 doncatnip <gnopap@gmail.com>
37356e0b 14;;; Copyright © 2016 Ivan Vilata i Balaguer <ivan@selidor.net>
174b091f 15;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com>
b6afc350 16;;; Copyright © 2017, 2019 Marius Bakke <mbakke@fastmail.com>
6e864d00 17;;; Copyright © 2017 Oleg Pykhalov <go.wigust@gmail.com>
553199c5 18;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
70024cfa 19;;; Copyright © 2018 Pierre-Antoine Rouby <contact@parouby.fr>
e23b6a68 20;;; Copyright © 2018, 2019 Meiyo Peng <meiyo@riseup.net>
eea969cf 21;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
4ec42524 22;;; Copyright © 2019 Timothy Sample <samplet@ngyro.com>
7a1d6a77 23;;; Copyright © 2019 Gábor Boskovits <boskovits@gmail.com>
1d25447e 24;;; Copyright © 2019 Kyle Andrews <kyle.c.andrews@gmail.com>
8c765a3b 25;;; Copyright © 2019 Ingo Ruhnke <grumbel@gmail.com>
d5329de9 26;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
b066ad89 27;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
88f06fd0
PN
28;;; Copyright © 2018, 2019 Pierre Langlois <pierre.langlois@gmx.com>
29;;; Copyright © 2016, 2017 Andy Patterson <ajpatter@uwaterloo.ca>
59198ba1 30;;; Copyright © 2019 Evan Straw <evan.straw99@gmail.com>
4b3ff362 31;;; Copyright © 2019 Brett Gilio <brettg@gnu.org>
d4145638 32;;; Copyright © 2019 Noodles! <nnoodle@chiru.no>
88c94080 33;;; Copyright © 2019 Alexandru-Sergiu Marton <brown121407@member.fsf.org>
c0c1811f 34;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
47560aa2 35;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
bda2ded6
ED
36;;;
37;;; This file is part of GNU Guix.
38;;;
39;;; GNU Guix is free software; you can redistribute it and/or modify it
40;;; under the terms of the GNU General Public License as published by
41;;; the Free Software Foundation; either version 3 of the License, or (at
42;;; your option) any later version.
43;;;
44;;; GNU Guix is distributed in the hope that it will be useful, but
45;;; WITHOUT ANY WARRANTY; without even the implied warranty of
46;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47;;; GNU General Public License for more details.
48;;;
49;;; You should have received a copy of the GNU General Public License
50;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
51
52(define-module (gnu packages wm)
0ede252b 53 #:use-module ((guix licenses) #:prefix license:)
bda2ded6 54 #:use-module (guix packages)
40cad6b9
EF
55 #:use-module (guix download)
56 #:use-module (guix git-download)
88f06fd0 57 #:use-module (guix build-system asdf)
3d1240aa 58 #:use-module (guix build-system cmake)
bda2ded6 59 #:use-module (guix build-system gnu)
6e38c4be 60 #:use-module (guix build-system haskell)
eea969cf 61 #:use-module (guix build-system meson)
3e7cb70a 62 #:use-module (guix build-system perl)
c165591d 63 #:use-module (guix build-system python)
88f06fd0 64 #:use-module (guix utils)
40cad6b9 65 #:use-module (gnu packages)
4b563b34 66 #:use-module (gnu packages autotools)
bda2ded6 67 #:use-module (gnu packages base)
40cad6b9 68 #:use-module (gnu packages bison)
bda2ded6 69 #:use-module (gnu packages docbook)
40cad6b9 70 #:use-module (gnu packages documentation)
0ede252b 71 #:use-module (gnu packages fontutils)
3d1240aa 72 #:use-module (gnu packages freedesktop)
40cad6b9
EF
73 #:use-module (gnu packages fribidi)
74 #:use-module (gnu packages gawk)
75 #:use-module (gnu packages gl)
3d1240aa
CZ
76 #:use-module (gnu packages glib)
77 #:use-module (gnu packages gperf)
40cad6b9
EF
78 #:use-module (gnu packages gtk)
79 #:use-module (gnu packages haskell-check)
80 #:use-module (gnu packages haskell-web)
81 #:use-module (gnu packages haskell-xyz)
82 #:use-module (gnu packages image)
3d1240aa 83 #:use-module (gnu packages imagemagick)
40cad6b9 84 #:use-module (gnu packages libevent)
4b563b34 85 #:use-module (gnu packages linux)
88f06fd0 86 #:use-module (gnu packages lisp-xyz)
40cad6b9
EF
87 #:use-module (gnu packages logging)
88 #:use-module (gnu packages lua)
89 #:use-module (gnu packages m4)
2ff844f0 90 #:use-module (gnu packages man)
40cad6b9
EF
91 #:use-module (gnu packages maths)
92 #:use-module (gnu packages mpd)
93 #:use-module (gnu packages pcre)
94 #:use-module (gnu packages perl)
95 #:use-module (gnu packages pkg-config)
7a1d6a77 96 #:use-module (gnu packages pretty-print)
40cad6b9
EF
97 #:use-module (gnu packages pulseaudio)
98 #:use-module (gnu packages python)
7a1d6a77 99 #:use-module (gnu packages serialization)
47560aa2 100 #:use-module (gnu packages sphinx)
40cad6b9 101 #:use-module (gnu packages suckless)
88f06fd0 102 #:use-module (gnu packages texinfo)
40cad6b9
EF
103 #:use-module (gnu packages textutils)
104 #:use-module (gnu packages version-control)
105 #:use-module (gnu packages video)
106 #:use-module (gnu packages web)
107 #:use-module (gnu packages xdisorg)
108 #:use-module (gnu packages xml)
109 #:use-module (gnu packages xorg))
bda2ded6 110
1268e52d 111(define-public bspwm
112 (package
113 (name "bspwm")
9610a422 114 (version "0.9.9")
1268e52d 115 (source
116 (origin
782b1224
TGR
117 (method git-fetch)
118 (uri (git-reference
119 (url "https://github.com/baskerville/bspwm.git")
120 (commit version)))
121 (file-name (git-file-name name version))
1268e52d 122 (sha256
9610a422 123 (base32 "1i7crmljk1vra1r6alxvj6lqqailjjcv0llyg7a0gm23rbv4a42g"))))
1268e52d 124 (build-system gnu-build-system)
125 (inputs
126 `(("libxcb" ,libxcb)
127 ("libxinerama" ,libxinerama)
128 ("sxhkd" ,sxhkd)
129 ("xcb-util" ,xcb-util)
130 ("xcb-util-keysyms" ,xcb-util-keysyms)
131 ("xcb-util-wm" ,xcb-util-wm)))
132 (arguments
aa0551c2
TGR
133 '(#:phases
134 (modify-phases %standard-phases
135 (delete 'configure)) ; no configure script
136 #:tests? #f ; no check target
137 #:make-flags
138 (list "CC=gcc"
139 (string-append "PREFIX=" %output))))
1268e52d 140 (home-page "https://github.com/baskerville/bspwm")
141 (synopsis "Tiling window manager based on binary space partitioning")
142 (description "bspwm is a tiling window manager that represents windows as
143the leaves of a full binary tree.")
0ede252b 144 (license license:bsd-2)))
1268e52d 145
1d25447e
KA
146(define-public herbstluftwm
147 (package
148 (name "herbstluftwm")
149 (version "0.7.2")
150 (source
151 (origin
152 (method url-fetch)
153 (uri (string-append "https://herbstluftwm.org/tarballs/herbstluftwm-"
154 version ".tar.gz"))
155 (sha256
156 (base32
157 "1kc18aj9j3nfz6fj4qxg9s3gg4jvn6kzi3ii24hfm0vqdpy17xnz"))
158 (file-name (string-append "herbstluftwm-" version ".tar.gz"))))
159 (build-system gnu-build-system)
160 (inputs
161 `(("dzen" ,dzen)
162 ("dmenu" ,dmenu)
163 ("glib" ,glib)
164 ("glibmm" ,glibmm)
165 ("xterm" ,xterm)
166 ("xsetroot" ,xsetroot)
167 ("libx11" ,libx11)
168 ("libxext" ,libxext)
169 ("libxinerama" ,libxinerama)))
170 (native-inputs
171 `(("pkg-config" ,pkg-config)))
172 (arguments
173 '(#:phases
174 (modify-phases %standard-phases
175 (delete 'configure)
176 (delete 'check)
177 (add-after 'install 'install-xsession
178 (lambda* (#:key outputs #:allow-other-keys)
179 (let* ((out (assoc-ref outputs "out"))
180 (xsessions (string-append out "/share/xsessions")))
181 (mkdir-p xsessions)
182 (call-with-output-file
183 (string-append xsessions "/herbstluftwm.desktop")
184 (lambda (port)
185 (format port "~
186 [Desktop Entry]~@
187 Name=herbstluftwm~@
188 Comment=Manual tiling window manager~@
189 Exec=~a/bin/herbstluftwm~@
190 Type=XSession~%" out)))
191 #t))))
192 #:tests? #f
193 #:make-flags
194 (let ((out (assoc-ref %outputs "out")))
195 (list "CC=gcc"
196 (string-append "PREFIX=''")
197 (string-append "DESTDIR=" out)
198 (string-append "BASHCOMPLETIONDIR=" out
199 "/etc/bash_completion.d")))))
200 (synopsis "Tiling window manager for X11")
201 (description "herbstluftwm is a manual tiling window manager for X11 using
202Xlib and GLib. Its main features are:
203
204@itemize
205@item
206The layout is based on splitting frames into subframes which can be split
207again or can be filled with windows (similar to i3 or musca).
208
209@item
210Tags (or workspaces or virtual desktops or …) can be added/removed at runtime.
211Each tag contains an own layout.
212
213@item
214Exactly one tag is viewed on each monitor. The tags are monitor independent
215(similar to Xmonad).
216
217@item
218It is configured at runtime via IPC calls from @command{herbstclient}. So the
219configuration file is just a script which is run on startup (similar to wmii
220or musca).
221
222@end itemize")
223 (home-page "https://herbstluftwm.org")
224 (license license:bsd-2)))
225
63b1bdbc
ED
226(define-public i3status
227 (package
228 (name "i3status")
cb96d239 229 (version "2.13")
63b1bdbc
ED
230 (source (origin
231 (method url-fetch)
fdad1f3c 232 (uri (string-append "https://i3wm.org/i3status/i3status-"
63b1bdbc
ED
233 version ".tar.bz2"))
234 (sha256
235 (base32
cb96d239 236 "0rhlzb96mw64z2jnhwz9nibc7pxg549626lz5642xxk5hpzwk2ff"))))
63b1bdbc
ED
237 (build-system gnu-build-system)
238 (arguments
cb96d239
MB
239 `(;; XXX: Do an "out of source" build to work around
240 ;; <https://github.com/i3/i3status/issues/339>.
241 #:out-of-source? #t
63b1bdbc
ED
242 #:tests? #f)) ; no test suite
243 (inputs
244 `(("openlibm" ,openlibm)
245 ("libconfuse" ,libconfuse)
246 ("libyajl" ,libyajl)
247 ("alsa-lib" ,alsa-lib)
766a22fb
AM
248 ("pulseaudio" ,pulseaudio)
249 ("libnl" ,libnl)
63b1bdbc
ED
250 ("libcap" ,libcap)
251 ("asciidoc" ,asciidoc)))
766a22fb 252 (native-inputs
cb96d239
MB
253 `(("pkg-config" ,pkg-config)
254 ("docbook-xsl" ,docbook-xsl)
255 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
256 ("xmlto" ,xmlto)))
fdad1f3c 257 (home-page "https://i3wm.org/i3status/")
63b1bdbc
ED
258 (synopsis "Status bar for i3bar, dzen2, xmobar or similar programs")
259 (description "i3status is a small program for generating a status bar for
260i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient
261by issuing a very small number of system calls, as one generally wants to
262update such a status line every second. This ensures that even under high
263load, your status bar is updated correctly. Also, it saves a bit of energy by
264not hogging your CPU as much as spawning the corresponding amount of shell
265commands would.")
0ede252b 266 (license license:bsd-3)))
63b1bdbc 267
bda2ded6
ED
268(define-public i3-wm
269 (package
270 (name "i3-wm")
5706fd79 271 (version "4.17.1")
bda2ded6
ED
272 (source (origin
273 (method url-fetch)
8658d403 274 (uri (string-append "https://i3wm.org/downloads/i3-"
bda2ded6
ED
275 version ".tar.bz2"))
276 (sha256
277 (base32
5706fd79 278 "0iazv2i2rgmakzh95pgj6iapyzn7bdpcbcd35a79mhlml4ry33qy"))))
bda2ded6
ED
279 (build-system gnu-build-system)
280 (arguments
ebd2ae18 281 `(#:configure-flags
4bd391f5
LF
282 ;; The build system tries to build in a separate directory, but that
283 ;; seems to be unnecessary.
ebd2ae18
TGR
284 (list "--disable-builddir")
285
286 ;; The test suite requires the unpackaged Xephyr X server.
aa7cdc57
TS
287 #:tests? #f
288 #:phases
289 (modify-phases %standard-phases
290 (add-after 'install 'patch-session-file
291 (lambda* (#:key outputs #:allow-other-keys)
292 (let* ((out (assoc-ref outputs "out"))
293 (i3 (string-append out "/bin/i3"))
294 (i3-with-shmlog (string-append out "/bin/i3-with-shmlog")))
295 (substitute* (string-append out "/share/xsessions/i3.desktop")
296 (("Exec=i3") (string-append "Exec=" i3)))
297 (substitute* (string-append out "/share/xsessions/i3-with-shmlog.desktop")
298 (("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog)))
299 #t))))))
bda2ded6
ED
300 (inputs
301 `(("libxcb" ,libxcb)
302 ("xcb-util" ,xcb-util)
303 ("xcb-util-cursor" ,xcb-util-cursor)
304 ("xcb-util-keysyms" ,xcb-util-keysyms)
305 ("xcb-util-wm" ,xcb-util-wm)
4bd391f5 306 ("xcb-util-xrm" ,xcb-util-xrm)
bda2ded6
ED
307 ("libxkbcommon" ,libxkbcommon)
308 ("libev" ,libev)
309 ("libyajl" ,libyajl)
310 ("asciidoc" ,asciidoc)
311 ("xmlto" ,xmlto)
312 ("perl-pod-simple" ,perl-pod-simple)
bda2ded6
ED
313 ("libx11" ,libx11)
314 ("pcre" ,pcre)
315 ("startup-notification" ,startup-notification)
316 ("pango" ,pango)
317 ("cairo" ,cairo)))
318 (native-inputs
319 `(("which" ,which)
320 ("perl" ,perl)
4bd391f5
LF
321 ("pkg-config" ,pkg-config)
322 ;; For building the documentation.
4b0e6367 323 ("libxml2" ,libxml2)
4bd391f5 324 ("docbook-xsl" ,docbook-xsl)))
8658d403 325 (home-page "https://i3wm.org/")
71a5da8e
TGR
326 (synopsis "Tiling window manager")
327 (description "i3 is a tiling X11 window manager that dynamically manages
328tiled, stacked, and tabbed window layouts.
329
330i3 primarily targets advanced users. Windows are managed manually and organised
331inside containers, which can be split vertically or horizontally, and optionally
332resized.
333
334i3 uses a plain-text configuration file, and can be extended and controlled from
335many programming languages.")
0ede252b 336 (license license:bsd-3)))
6e38c4be 337
88c94080
ASM
338(define-public i3-gaps
339 (package (inherit i3-wm)
340 (name "i3-gaps")
341 (version "4.17.1")
342 (source (origin
343 (method url-fetch)
344 (uri (string-append
345 "https://github.com/Airblader/i3/releases/download/"
346 version "/i3-" version ".tar.bz2"))
347 (sha256
348 (base32
3ebaa635 349 "0gqcr6s53dk3f2y9h6cna00rnwnh4yymk96li7lbym3d84cxjzrs"))))
88c94080
ASM
350 (home-page "https://github.com/Airblader/i3")
351 (synopsis "Tiling window manager with gaps")
352 (description "i3-gaps is a fork of i3wm, a tiling window manager
353for X11. It is kept up to date with upstream, adding a few additional
354features such as gaps between windows.
355
356i3 is a tiling X11 window manager that dynamically manages tiled, stacked,
357and tabbed window layouts.
358
359i3 primarily targets advanced users. Windows are managed manually and
360organised inside containers, which can be split vertically or horizontally,
361and optionally resized.
362
363i3 uses a plain-text configuration file, and can be extended and controlled
364from many programming languages.")
365 (license license:bsd-3)))
366
b6afc350
MB
367(define-public i3lock
368 (package
369 (name "i3lock")
370 (version "2.11.1")
371 (source (origin
372 (method url-fetch)
373 (uri (string-append "https://i3wm.org/i3lock/i3lock-"
374 version ".tar.bz2"))
375 (sha256
376 (base32
377 "015dn534m7cxjvqdncpvaq9p8b2r4w5hp1yanbdy2abmhbcc7a7j"))))
378 (build-system gnu-build-system)
379 (native-inputs
380 `(("pkg-config" ,pkg-config)))
381 (inputs
382 `(("cairo" ,cairo)
383 ("libev" ,libev)
384 ("linux-pam" ,linux-pam)
385 ("libxcb" ,libxcb)
386 ("libxkbcommon" ,libxkbcommon)
387 ("xcb-util" ,xcb-util)
388 ("xcb-util-image" ,xcb-util-image)
389 ("xcb-util-xrm" ,xcb-util-xrm)))
390 (home-page "https://i3wm.org/i3lock/")
391 (synopsis "Lightweight screen locker")
392 (description
393 "i3lock is a simple X11 screen locker developed alongside the i3 project.
394Despite the name it should work with any X11 window manager.")
395 (license license:bsd-3)))
396
bc83b2e2 397(define-public i3blocks
97e036ca
TGR
398 (package
399 (name "i3blocks")
400 (version "1.5")
401 (source (origin
402 (method git-fetch)
403 (uri (git-reference
404 (url "https://github.com/vivien/i3blocks.git")
405 (commit version)))
406 (sha256
407 (base32
408 "0v8mwnm8qzpv6xnqvrk43s4b9iyld4naqzbaxk4ldq1qkhai0wsv"))
409 (file-name (git-file-name name version))))
410 (build-system gnu-build-system)
411 (native-inputs
412 `(("autoconf" ,autoconf)
413 ("automake" ,automake)
414 ("pkg-config" ,pkg-config)))
415 (home-page "https://github.com/vivien/i3blocks")
416 (synopsis "Minimalist scheduler for status bar scripts")
417 (description "i3blocks executes your command lines and generates a
bc83b2e2
MP
418status line from their output. The generated line is meant to be displayed by
419the i3 window manager through its i3bar component, as an alternative to
420i3status.")
97e036ca 421 (license license:gpl3+)))
bc83b2e2 422
3e7cb70a
MB
423(define-public perl-anyevent-i3
424 (package
425 (name "perl-anyevent-i3")
ec5c986e 426 (version "0.17")
3e7cb70a
MB
427 (source (origin
428 (method url-fetch)
429 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTPLBG/"
430 "AnyEvent-I3-" version ".tar.gz"))
431 (sha256
432 (base32
ec5c986e 433 "0qvd9bq16jyy7v3ma82qcnvz9j503bw0mh7h55gkjf7ir62ck0jk"))))
3e7cb70a
MB
434 (build-system perl-build-system)
435 (propagated-inputs
436 `(("perl-anyevent" ,perl-anyevent)
437 ("perl-json-xs" ,perl-json-xs)))
9aba9b12 438 (home-page "https://metacpan.org/release/AnyEvent-I3")
3e7cb70a
MB
439 (synopsis
440 "Communicate with the i3 window manager through perl")
441 (description
442 "This module connects to the i3 window manager using the UNIX socket
443based IPC interface it provides (if enabled in the configuration file).
444You can then subscribe to events or send messages and receive their replies.")
445 ;; Can be used with either license.
2f3108ad 446 (license (list license:gpl3+ license:perl-license))))
3e7cb70a 447
c165591d
IVB
448(define-public python-i3-py
449 (package
450 (name "python-i3-py")
451 (version "0.6.5")
452 (source
453 (origin
454 ;; The latest release is not tagged in Git nor has an entry in PyPi,
455 ;; but there is still a clear commit for it, and it's been the last one
456 ;; for years.
457 (method git-fetch)
458 (uri (git-reference
459 (url "https://github.com/ziberna/i3-py.git")
460 (commit "27f88a616e9ecc340e7d041d3d00782f8a1964c1")))
461 (sha256
462 (base32
463 "1nm719dc2xqlll7vj4c4m7mpjb27lpn3bg3c66gajvnrz2x1nmxs"))
464 (file-name (string-append name "-" version "-checkout"))))
465 (build-system python-build-system)
466 (arguments
467 `(#:tests? #f ; no tests yet
468 #:phases (modify-phases %standard-phases
469 (add-after 'install 'install-doc
470 ;; Copy readme file to documentation directory.
471 (lambda* (#:key outputs #:allow-other-keys)
472 (let ((doc (string-append (assoc-ref outputs "out")
473 "/share/doc/" ,name)))
474 (install-file "README.md" doc)
475 ;; Avoid unspecified return value.
476 #t))))))
477 (propagated-inputs
478 `(("i3-wm" ,i3-wm)))
479 (home-page "https://github.com/ziberna/i3-py")
480 (synopsis "Python interface to the i3 window manager")
481 (description "This package allows you to interact from a Python program
482with the i3 window manager via its IPC socket. It can send commands and other
483kinds of messages to i3, select the affected containers, filter results and
484subscribe to events.")
485 (license license:gpl3+)))
486
487(define-public python2-i3-py
488 (package-with-python2 python-i3-py))
489
37356e0b
IVB
490(define-public quickswitch-i3
491 (let ((commit "ed692b1e8f43b95bd907ced26238ce8ccb2ed28f")
492 (revision "1")) ; Guix package revision
493 (package
494 (name "quickswitch-i3")
495 (version (string-append "2.2-" revision "."
496 (string-take commit 7)))
497 (source
498 (origin
499 ;; The latest commit is a few years old and just a couple commits
500 ;; after the last tagged release, so we use that latest commit
501 ;; instead of the release.
502 (method git-fetch)
503 (uri (git-reference
504 (url "https://github.com/proxypoke/quickswitch-for-i3.git")
505 (commit commit)))
506 (sha256
507 (base32
508 "0447077sama80jcdg5p64zjsvafmz5rbdrirhm1adcdjhkh6iqc5"))
509 (patches (search-patches "quickswitch-fix-dmenu-check.patch"))
510 (file-name (string-append name "-" version "-checkout"))))
511 (build-system python-build-system)
512 (arguments
513 `(#:tests? #f ; no tests yet
514 #:phases (modify-phases %standard-phases
515 (add-after 'install 'install-doc
516 ;; Copy readme file to documentation directory.
517 (lambda* (#:key outputs #:allow-other-keys)
518 (let ((doc (string-append (assoc-ref outputs "out")
519 "/share/doc/" ,name)))
520 (install-file "README.rst" doc)
521 ;; Avoid unspecified return value.
522 #t))))))
523 (inputs
524 `(("python-i3-py" ,python-i3-py)
525 ("dmenu" ,dmenu)))
526 (home-page "https://github.com/proxypoke/quickswitch-for-i3")
527 (synopsis "Quickly change to and locate windows in the i3 window manager")
528 (description
529 "This utility for the i3 window manager allows you to quickly switch to
530and locate windows on all your workspaces, using an interactive dmenu
531prompt.")
5d6bab9e 532 (license license:wtfpl2))))
37356e0b 533
4b563b34 534(define-public i3lock-color
535 (package
536 (name "i3lock-color")
7969751f 537 (version "2.12.c")
4b563b34 538 (source
539 (origin
f45cc966
TGR
540 (method git-fetch)
541 (uri (git-reference
542 (url "https://github.com/PandorasFox/i3lock-color.git")
543 (commit version)))
544 (file-name (git-file-name name version))
4b563b34 545 (sha256
7969751f 546 (base32 "08fhnchf187b73h52xgzb86g6byzxz085zs9galsvl687g5zxk34"))))
4b563b34 547 (build-system gnu-build-system)
548 (arguments
f45cc966 549 `(#:tests? #f)) ; no tests included
4b563b34 550 (inputs
fa2886b7
TGR
551 `(("cairo" ,cairo)
552 ("libev" ,libev)
3dc77d40 553 ("libjpeg" ,libjpeg-turbo)
4b563b34 554 ("libxcb" ,libxcb)
4b563b34 555 ("libxkbcommon" ,libxkbcommon)
fa2886b7
TGR
556 ("linux-pam" ,linux-pam)
557 ("xcb-util" ,xcb-util)
7969751f
TGR
558 ("xcb-util-image" ,xcb-util-image)
559 ("xcb-util-xrm" ,xcb-util-xrm)))
4b563b34 560 (native-inputs
fa2886b7
TGR
561 `(("autoconf" ,autoconf)
562 ("automake" ,automake)
563 ("pkg-config" ,pkg-config)))
4b563b34 564 (home-page "https://github.com/PandorasFox/i3lock-color")
565 (synopsis "Screen locker with color configuration support")
566 (description
567 "i3lock-color is a simpler X11 screen locker derived from i3lock.
568Features include:
569
570@enumerate
571@item forking process, the locked screen is preserved when you suspend to RAM;
572@item specify background color or image to be displayed in the lock screen;
573@item many additional color options.
574@end enumerate")
575 (license license:bsd-3)))
576
b0a2dc72 577(define-public i3lock-fancy
578 (package
579 (name "i3lock-fancy")
580 (version "0.2")
581 (source
582 (origin
a48db08a
TGR
583 (method git-fetch)
584 (uri (git-reference
585 (url "https://github.com/meskarune/i3lock-fancy.git")
586 (commit version)))
587 (file-name (git-file-name name version))
b0a2dc72 588 (sha256
a48db08a 589 (base32 "11g2kkim33ra38d1m897sq1ifajw17iyw9mr7sg1q8i2ibl4lfsi"))))
b0a2dc72 590 (build-system gnu-build-system)
591 (arguments
a48db08a 592 `(#:tests? #f ; no tests included
b0a2dc72 593 #:phases
594 (modify-phases %standard-phases
595 (replace 'configure
596 (lambda* (#:key inputs outputs #:allow-other-keys)
597 (let* ((out (assoc-ref outputs "out"))
598 (icons (string-append out "/share/i3lock-fancy/icons/"))
599 (wmctrl (string-append (assoc-ref inputs "wmctrl")
600 "/bin/wmctrl"))
601 (mconvert (string-append (assoc-ref inputs "imagemagick")
602 "/bin/convert"))
603 (mimport (string-append (assoc-ref inputs "imagemagick")
604 "/bin/import"))
605 (awk (string-append (assoc-ref inputs "gawk")
606 "/bin/gawk")))
607
608 (substitute* "lock"
609 (("$(which wmctrl)") wmctrl)
610 (("convert") mconvert)
611 (("shot=\\(import") (string-append "shot=\(" mimport))
612 (("awk -F") (string-append awk " -F"))
613 ((" awk") awk)
614 (("\\$scriptpath/icons/") icons))
615 #t)))
616 (delete 'build)
617 (replace 'install
618 (lambda* (#:key inputs outputs #:allow-other-keys)
619 (let* ((out (assoc-ref outputs "out"))
620 (bin (string-append out "/bin"))
621 (icons (string-append out "/share/i3lock-fancy/icons/")))
622
623 (install-file "lock" bin)
624 (rename-file (string-append bin "/lock")
625 (string-append bin "/i3lock-fancy"))
626 (copy-recursively "icons" icons)
627 #t))))))
628 (native-inputs
629 `(("imagemagick" ,imagemagick)
630 ("wmctrl" ,wmctrl)
631 ("gawk" ,gawk)))
632 (home-page "https://github.com/meskarune/i3lock-fancy")
633 (synopsis "Screen locker with screenshot function")
634 (description
635 "@code{i3lock-fancy} is a Bash script that takes a screenshot of
636the desktop, blurs the background and adds a lock icon and text.
637It requires @code{i3lock-color} or @code{i3lock} and can optionally
638be passed any screenshot util like @code{scrot}.
639This screen locker can be used with any window manager or
640desktop environment.")
641 (license license:expat)))
642
6e38c4be
SB
643(define-public xmonad
644 (package
645 (name "xmonad")
de98b915 646 (version "0.15")
6e38c4be
SB
647 (synopsis "Tiling window manager")
648 (source (origin
649 (method url-fetch)
966a543b 650 (uri (string-append "mirror://hackage/package/xmonad/"
ec9299d0 651 "xmonad-" version ".tar.gz"))
6e38c4be
SB
652 (sha256
653 (base32
de98b915 654 "0a7rh21k9y6g8fwkggxdxjns2grvvsd5hi2ls4klmqz5xvk4hyaa"))))
6e38c4be
SB
655 (build-system haskell-build-system)
656 (inputs
174b091f 657 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
174b091f 658 ("ghc-quickcheck" ,ghc-quickcheck)
dd821380 659 ("ghc-semigroups" ,ghc-semigroups)
174b091f
MM
660 ("ghc-setlocale" ,ghc-setlocale)
661 ("ghc-utf8-string" ,ghc-utf8-string)
662 ("ghc-x11" ,ghc-x11)))
6e38c4be
SB
663 (arguments
664 `(#:phases
665 (modify-phases %standard-phases
666 (add-after
667 'install 'install-xsession
668 (lambda _
669 (let* ((xsessions (string-append %output "/share/xsessions")))
670 (mkdir-p xsessions)
671 (call-with-output-file
672 (string-append xsessions "/xmonad.desktop")
673 (lambda (port)
674 (format port "~
675 [Desktop Entry]~@
676 Name=~a~@
677 Comment=~a~@
678 Exec=~a/bin/xmonad~@
679 Type=Application~%" ,name ,synopsis %output)))))))))
8c0be00a 680 (home-page "https://xmonad.org")
6e38c4be
SB
681 (description
682 "Xmonad is a tiling window manager for X. Windows are arranged
683automatically to tile the screen without gaps or overlap, maximising screen
684use. All features of the window manager are accessible from the keyboard: a
685mouse is strictly optional. Xmonad is written and extensible in Haskell.
686Custom layout algorithms, and other extensions, may be written by the user in
687config files. Layouts are applied dynamically, and different layouts may be
688used on each workspace. Xinerama is fully supported, allowing windows to be
689tiled on several screens.")
0ede252b 690 (license license:bsd-3)))
78edf44c 691
6e864d00
OP
692(define-public xmobar
693 (package
694 (name "xmobar")
f77cecc1 695 (version "0.32")
6e864d00
OP
696 (source (origin
697 (method url-fetch)
698 (uri (string-append "mirror://hackage/package/xmobar/"
079db056 699 "xmobar-" version ".tar.gz"))
6e864d00
OP
700 (sha256
701 (base32
f77cecc1 702 "0x2ki3v0pmhl4bva3qi1xx21axayc4sx1nkzhmk2ap4l0cj52jrd"))))
6e864d00 703 (build-system haskell-build-system)
800e4fd8
TGR
704 (native-inputs
705 `(("ghc-hspec" ,ghc-hspec)
706 ("hspec-discover" ,hspec-discover)))
6e864d00 707 (inputs
b066ad89
JS
708 `(("ghc-alsa-core" ,ghc-alsa-core)
709 ("ghc-alsa-mixer" ,ghc-alsa-mixer)
710 ("ghc-dbus" ,ghc-dbus)
711 ("ghc-hinotify" ,ghc-hinotify)
d2ea8064 712 ("ghc-http" ,ghc-http)
b066ad89
JS
713 ("ghc-http-conduit" ,ghc-http-conduit)
714 ("ghc-http-types" ,ghc-http-types)
d2ea8064 715 ("ghc-iwlib" ,ghc-iwlib)
b066ad89
JS
716 ("ghc-libmpd" ,ghc-libmpd)
717 ("ghc-old-locale" ,ghc-old-locale)
d877e0d8 718 ("ghc-parsec-numbers" ,ghc-parsec-numbers)
6e864d00 719 ("ghc-regex-compat" ,ghc-regex-compat)
b066ad89
JS
720 ("ghc-temporary" ,ghc-temporary)
721 ("ghc-timezone-olson" ,ghc-timezone-olson)
722 ("ghc-x11" ,ghc-x11)
6e864d00 723 ("ghc-x11-xft" ,ghc-x11-xft)
d2ea8064 724 ("libxpm" ,libxpm)))
6e864d00 725 (arguments
b066ad89
JS
726 `(#:configure-flags (list "--flags=all_extensions")
727 #:phases
728 (modify-phases %standard-phases
729 (add-before 'build 'patch-test-shebang
730 (lambda* (#:key inputs #:allow-other-keys)
731 (substitute* "test/Xmobar/Plugins/Monitors/AlsaSpec.hs"
732 (("/bin/bash") (which "bash")))
733 #t)))))
6e864d00
OP
734 (home-page "http://xmobar.org")
735 (synopsis "Minimalistic text based status bar")
736 (description
737 "@code{xmobar} is a lightweight, text-based, status bar written in
738Haskell. It was originally designed to be used together with Xmonad, but it
739is also usable with any other window manager. While xmobar is written in
740Haskell, no knowledge of the language is required to install and use it.")
741 (license license:bsd-3)))
742
78edf44c
SB
743(define-public ghc-xmonad-contrib
744 (package
745 (name "ghc-xmonad-contrib")
3cbf3f74 746 (version "0.16")
78edf44c
SB
747 (source
748 (origin
749 (method url-fetch)
966a543b 750 (uri (string-append "mirror://hackage/package/xmonad-contrib/"
78edf44c
SB
751 "xmonad-contrib-" version ".tar.gz"))
752 (sha256
3cbf3f74 753 (base32 "1pddgkvnbww28wykncc7j0yb0lv15bk7xnnhdcbrwkxzw66w6wmd"))))
78edf44c
SB
754 (build-system haskell-build-system)
755 (propagated-inputs
f54f0475 756 `(("ghc-old-time" ,ghc-old-time)
78edf44c
SB
757 ("ghc-random" ,ghc-random)
758 ("ghc-utf8-string" ,ghc-utf8-string)
759 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
b42b5afd 760 ("ghc-semigroups" ,ghc-semigroups)
78edf44c
SB
761 ("ghc-x11" ,ghc-x11)
762 ("ghc-x11-xft" ,ghc-x11-xft)
763 ("xmonad" ,xmonad)))
8c0be00a 764 (home-page "https://xmonad.org")
78edf44c
SB
765 (synopsis "Third party extensions for xmonad")
766 (description
767 "Third party tiling algorithms, configurations, and scripts to Xmonad, a
768tiling window manager for X.")
0ede252b 769 (license license:bsd-3)))
45e10968
EB
770
771(define-public evilwm
772 (package
773 (name "evilwm")
774 (version "1.1.1")
775 (source
776 (origin
777 (method url-fetch)
778 (uri (string-append "http://www.6809.org.uk/evilwm/evilwm-"
779 version ".tar.gz"))
780 (sha256
781 (base32
c595cd47 782 "0ak0yajzk3v4dg5wmaghv6acf7v02a4iw8qxmq5yw5ard8lrqn3r"))
fc1adab1 783 (patches (search-patches "evilwm-lost-focus-bug.patch"))))
45e10968
EB
784 (build-system gnu-build-system)
785 (inputs
786 `(("libx11" ,libx11)
787 ("libxext" ,libxext)
788 ("libxrandr" ,libxrandr)))
789 (arguments
790 `(#:modules ((srfi srfi-26)
791 (guix build utils)
792 (guix build gnu-build-system))
793 #:make-flags (let ((inputs (map (cut assoc-ref %build-inputs <>)
794 '("libx11" "libxext" "libxrandr")))
795 (join (lambda (proc strs)
796 (string-join (map proc strs) " ")))
797 (dash-I (cut string-append "-I" <> "/include"))
798 (dash-L (cut string-append "-L" <> "/lib")))
799 `("desktopfilesdir=$(prefix)/share/xsessions"
800 ,(string-append "prefix=" (assoc-ref %outputs "out"))
801 ,(string-append "CPPFLAGS=" (join dash-I inputs))
802 ,(string-append "LDFLAGS=" (join dash-L inputs))))
803 #:tests? #f ;no tests
804 #:phases (modify-phases %standard-phases
805 (delete 'configure)))) ;no configure script
806 (home-page "http://www.6809.org.uk/evilwm/")
807 (synopsis "Minimalist window manager for the X Window System")
808 (description
809 "evilwm is a minimalist window manager based on aewm, extended to feature
810many keyboard controls with repositioning and maximize toggles, solid window
811drags, snap-to-border support, and virtual desktops.")
0ede252b
DM
812 (license (license:x11-style "file:///README"))))
813
814(define-public fluxbox
815 (package
816 (name "fluxbox")
817 (version "1.3.7")
818 (synopsis "Small and fast window manager")
819 (source (origin
820 (method url-fetch)
de67e922 821 (uri (string-append "mirror://sourceforge/fluxbox/fluxbox/"
0ede252b
DM
822 version "/fluxbox-" version ".tar.xz"))
823 (sha256
824 (base32
825 "1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w"))))
826 (build-system gnu-build-system)
827 (arguments
828 `(#:make-flags '("CPPFLAGS=-U__TIME__") ;ugly, but for reproducibility
829 #:phases
830 (modify-phases %standard-phases
37f7853e
EF
831 (add-after 'install 'install-vim-files
832 (lambda* (#:key outputs #:allow-other-keys)
833 (let* ((out (assoc-ref outputs "out"))
834 (syntax (string-append out "/share/vim/vimfiles/syntax")))
835 (copy-recursively "3rd/vim/vim/syntax" syntax)
836 #t)))
4ee3b309
EF
837 (add-after 'install 'install-xsession
838 (lambda* (#:key outputs #:allow-other-keys)
839 (let* ((out (assoc-ref outputs "out"))
840 (xsessions (string-append out "/share/xsessions")))
841 (mkdir-p xsessions)
842 (call-with-output-file
843 (string-append xsessions "/fluxbox.desktop")
844 (lambda (port)
845 (format port "~
846 [Desktop Entry]~@
847 Name=~a~@
848 Comment=~a~@
849 Exec=~a/bin/startfluxbox~@
850 Type=Application~%" ,name ,synopsis out)))
851 #t))))))
0ede252b
DM
852 (native-inputs
853 `(("pkg-config" ,pkg-config)))
854 (inputs
855 `(("freetype" ,freetype)
856 ("fribidi" ,fribidi)
857 ("imlib2" ,imlib2)
858 ("libx11" ,libx11)
859 ("libxext" ,libxext)
860 ("libxft" ,libxft)
861 ("libxinerama" ,libxinerama)
862 ("libxpm" ,libxpm)
863 ("libxrandr" ,libxrandr)
864 ("libxrender" ,libxrender)))
865 (description "Fluxbox is a window manager. It is light on resources
866and easy to handle yet full of features to make an easy and fast desktop
867experience.")
868 (home-page "http://fluxbox.org/")
869 (license license:expat)))
3d1240aa
CZ
870
871(define-public awesome
872 (package
873 (name "awesome")
c0c1811f 874 (version "4.3")
3d1240aa 875 (source
c0c1811f
NG
876 (origin
877 (method url-fetch)
878 (uri (string-append
879 "https://github.com/awesomeWM/awesome-releases/raw/master/"
880 "awesome-" version ".tar.xz"))
881 (sha256
882 (base32 "0lqpw401mkkmp9wgbvrmm45bqq2j9357l4irwdqv6l1305pls9kq"))
883 (modules '((guix build utils)
884 (srfi srfi-19)))
885 (snippet
886 '(begin
887 ;; Remove non-reproducible timestamp and use the date of
888 ;; the source file instead.
889 (substitute* "common/version.c"
890 (("__DATE__ \" \" __TIME__")
891 (date->string
892 (time-utc->date
893 (make-time time-utc 0 (stat:mtime (stat "awesome.c"))))
894 "\"~c\"")))
895 #t))
896 (patches
897 (search-patches "awesome-reproducible-png.patch"))))
3d1240aa 898 (build-system cmake-build-system)
c0c1811f
NG
899 (native-inputs
900 `(("asciidoc" ,asciidoc)
901 ("docbook-xsl" ,docbook-xsl)
902 ("doxygen" ,doxygen)
903 ("gperf" ,gperf)
904 ("imagemagick" ,imagemagick)
905 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
906 ("lua-ldoc" ,lua-ldoc)
907 ("pkg-config" ,pkg-config)
908 ("xmlto" ,xmlto)))
909 (inputs
910 `(("cairo" ,cairo)
911 ("dbus" ,dbus)
912 ("gdk-pixbuf" ,gdk-pixbuf)
913 ("glib" ,glib)
914 ("gobject-introspection" ,gobject-introspection)
915 ("imlib2" ,imlib2)
916 ("libev" ,libev)
917 ("libxcb" ,libxcb)
918 ("libxcursor" ,libxcursor)
919 ("libxdg-basedir" ,libxdg-basedir)
920 ("libxkbcommon" ,libxkbcommon)
921 ("lua" ,lua)
922 ("lua-lgi" ,lua-lgi)
923 ("pango" ,pango)
924 ("startup-notification" ,startup-notification)
925 ("xcb-util" ,xcb-util)
926 ("xcb-util-cursor" ,xcb-util-cursor)
927 ("xcb-util-image" ,xcb-util-image)
928 ("xcb-util-keysyms" ,xcb-util-keysyms)
929 ("xcb-util-renderutil" ,xcb-util-renderutil)
930 ("xcb-util-xrm" ,xcb-util-xrm)
931 ("xcb-util-wm" ,xcb-util-wm)))
3d1240aa 932 (arguments
c0c1811f
NG
933 `(#:modules ((guix build cmake-build-system)
934 (guix build utils)
935 (ice-9 match))
936 ;; Let compression happen in our 'compress-documentation' phase
937 ;; so that '--no-name' is used, which removes timestamps from
938 ;; gzip output.
939 #:configure-flags
940 '("-DCOMPRESS_MANPAGES=off")
941 ;; Building awesome in its source directory is no longer
942 ;; supported.
db0164b2 943 #:out-of-source? #t
22037a32 944 #:phases
945 (modify-phases %standard-phases
c0c1811f 946 (add-before 'configure 'set-paths
22037a32 947 (lambda* (#:key inputs #:allow-other-keys)
c0c1811f
NG
948 ;; The build process needs to load Cairo dynamically.
949 (let* ((cairo (string-append (assoc-ref inputs "cairo") "/lib"))
950 (lua-version ,(version-major+minor (package-version lua)))
951 (lua-dependencies
952 (filter (match-lambda
953 ((label . _) (string-prefix? "lua-" label)))
954 inputs))
955 (lua-path
956 (string-join
957 (map (match-lambda
958 ((_ . dir)
959 (string-append
960 dir "/share/lua/" lua-version "/?.lua;"
961 dir "/share/lua/" lua-version "/?/?.lua")))
962 lua-dependencies)
963 ";"))
964 (lua-cpath
965 (string-join
966 (map (match-lambda
967 ((_ . dir)
968 (string-append
969 dir "/lib/lua/" lua-version "/?.so;"
970 dir "/lib/lua/" lua-version "/?/?.so")))
971 lua-dependencies)
972 ";")))
973 (setenv "LD_LIBRARY_PATH" cairo)
974 (setenv "LUA_PATH" (string-append "?.lua;" lua-path))
975 (setenv "LUA_CPATH" lua-cpath)
22037a32 976 #t)))
977 (replace 'check
978 (lambda _
979 ;; There aren't any tests, so just make sure the binary
980 ;; gets built and can be run successfully.
b5e70d92 981 (invoke "../build/awesome" "-v")))
4ec42524
TS
982 (add-after 'install 'patch-session-file
983 (lambda* (#:key outputs #:allow-other-keys)
984 (let* ((out (assoc-ref outputs "out"))
985 (awesome (string-append out "/bin/awesome")))
986 (substitute* (string-append out "/share/xsessions/awesome.desktop")
987 (("Exec=awesome") (string-append "Exec=" awesome)))
988 #t)))
22037a32 989 (add-after 'install 'wrap
990 (lambda* (#:key inputs outputs #:allow-other-keys)
991 (let* ((awesome (assoc-ref outputs "out"))
c0c1811f
NG
992 (cairo (string-append (assoc-ref inputs "cairo") "/lib"))
993 (lua-version ,(version-major+minor (package-version lua)))
994 (lua-lgi (assoc-ref inputs "lua-lgi")))
22037a32 995 (wrap-program (string-append awesome "/bin/awesome")
c0c1811f
NG
996 `("LUA_PATH" suffix
997 (,(format #f "~a/share/lua/~a/?.lua" lua-lgi lua-version)))
998 `("LUA_CPATH" suffix
999 (,(format #f "~a/lib/lua/~a/?.so" lua-lgi lua-version)))
22037a32 1000 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))
c0c1811f
NG
1001 `("LD_LIBRARY_PATH" suffix (,cairo)))
1002 #t))))))
1003 (home-page "https://awesomewm.org/")
3d1240aa
CZ
1004 (synopsis "Highly configurable window manager")
1005 (description
c4dd0def 1006 "Awesome has been designed as a framework window manager. It is fast, small,
1007dynamic and extensible using the Lua programming language.")
c0c1811f 1008 (license license:gpl2+)))
395751c0 1009
1010(define-public menumaker
1011 (package
1012 (name "menumaker")
ea4c1e0b 1013 (version "0.99.11")
395751c0 1014 (source
1015 (origin
1016 (method url-fetch)
1017 (uri (string-append "mirror://sourceforge/menumaker/"
1018 "menumaker-" version ".tar.gz"))
1019 (sha256
ea4c1e0b 1020 (base32 "0dprndnhwm7b803zkp4pisiq06ic9iv8vr42in5is47jmvdim0wx"))))
395751c0 1021 (build-system gnu-build-system)
1022 (inputs
1023 `(("python" ,python)))
1024 (synopsis "Heuristics-driven menu generator")
1025 (description
1026 "MenuMaker is a menu generation utility for a number of X window
1027managers and desktop environments. It is capable of finding lots of
1028installed programs and generating a root menu consistent across all
1029supported window managers, so one will get (almost) the same menu in
1030all of them. Currently supported window managers include:
1031
1032@enumerate
1033@item BlackBox
1034@item Deskmenu
1035@item FluxBox
1036@item IceWM
1037@item OpenBox
1038@item PekWM
1039@item WindowMaker
1040@item XFCE
1041@end enumerate\n")
1042 (home-page "http://menumaker.sourceforge.net/")
1043 (license license:bsd-2)))
dbf544f9 1044
1045(define-public keybinder
1046 (package
1047 (name "keybinder")
1048 (version "0.3.1")
1049 (source
1050 (origin
1051 (method url-fetch)
6d688b6e
TGR
1052 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1053 "/releases/download/v" version "/keybinder-"
dbf544f9 1054 version ".tar.gz"))
1055 (file-name (string-append name "-" version ".tar.gz"))
1056 (sha256
1057 (base32
1058 "0h52hj3ay8mfhwvmfxbxlfyq74hifdk8wxgxp7fr4iy6189hg7w7"))))
1059 (build-system gnu-build-system)
1060 (inputs
1061 `(("python-2" ,python-2)
1062 ("gtk+-2" ,gtk+-2)))
1063 (native-inputs
1064 `(("python2-pygtk" ,python2-pygtk)
1065 ("gtk-doc" ,gtk-doc)
1066 ("pkg-config" ,pkg-config)))
1067 (synopsis "Library for registering global keyboard shortcuts")
1068 (description
1069 "Keybinder is a library for registering global keyboard shortcuts.
1070Keybinder works with GTK-based applications using the X Window System.")
6d688b6e 1071 (home-page "https://github.com/kupferlauncher/keybinder")
dbf544f9 1072 (license license:gpl2+)))
78dfc9e2 1073
8c765a3b
IR
1074(define-public keybinder-3.0
1075 (package
1076 (name "keybinder-3.0")
1077 (version "0.3.2")
1078 (source
1079 (origin
1080 (method url-fetch)
1081 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1082 "/releases/download/" name "-v" version "/" name "-"
1083 version ".tar.gz"))
1084 (file-name (string-append name "-" version ".tar.gz"))
1085 (sha256
1086 (base32
1087 "0830ihwnalw59pp1xzrp37dn58n8vwb8zasnm4a1h81v3x7dxqz6"))))
1088 (build-system gnu-build-system)
1089 (inputs
1090 `(("gtk+" ,gtk+)
1091 ("gobject-introspection" ,gobject-introspection)))
1092 (native-inputs
1093 `(("gtk-doc" ,gtk-doc)
1094 ("pkg-config" ,pkg-config)))
1095 (synopsis "Library for registering global keyboard shortcuts, Gtk3 version")
1096 (description
1097 "Keybinder is a library for registering global keyboard shortcuts.
1098Keybinder works with GTK-based applications using the X Window System.")
1099 (home-page "https://github.com/kupferlauncher/keybinder")
1100 (license license:x11)))
1101
78dfc9e2 1102(define-public spectrwm
1103 (package
1104 (name "spectrwm")
f6c8a97a 1105 (version "3.2.0")
78dfc9e2 1106 (source
1107 (origin
b82bd90c
TGR
1108 (method git-fetch)
1109 (uri (git-reference
1110 (url "https://github.com/conformal/spectrwm.git")
1111 (commit
1112 (string-append "SPECTRWM_"
1113 (string-join (string-split version #\.) "_")))))
1114 (file-name (git-file-name name version))
78dfc9e2 1115 (sha256
b82bd90c 1116 (base32 "1dfqy5f0s1nv6rqkz9lj006vypmp4rwxd5vczfk3ndzqgnh19kw6"))))
78dfc9e2 1117 (build-system gnu-build-system)
1118 (arguments
1119 `(#:make-flags (let ((pkg-config (lambda (flag)
1120 (string-append
1121 "$(shell pkg-config " flag " "
1122 "xft fontconfig x11 libpng)"))))
1123 (list
1124 "CC=gcc"
1125 (string-append "PREFIX=" %output)
1126 (string-append "INCS=-I. " (pkg-config "--cflags"))
1127 (string-append "LIBS=" (pkg-config "--libs") " -lm")))
f6c8a97a 1128 #:tests? #f ;no test suite
78dfc9e2 1129 #:phases
1130 (modify-phases %standard-phases
1131 (add-before 'build 'change-dir
1132 (lambda _
1133 (chdir "linux") #t))
1134 (add-after 'change-dir 'patch-makefile
1135 (lambda _
1136 (substitute* "Makefile"
1137 (("-g") ""))))
f6c8a97a 1138 (delete 'configure)))) ;no 'configure' exists
78dfc9e2 1139 (inputs
1140 `(("freetype" ,freetype)
1141 ("fontconfig" ,fontconfig)
1142 ("libx11" ,libx11)
1143 ("libxcursor" ,libxcursor)
1144 ("libxrandr" ,libxrandr)
1145 ("libxtst" ,libxtst)
1146 ("libxft" ,libxft)
1147 ("xcb-util" ,xcb-util)
1148 ("xcb-util-wm" ,xcb-util-wm)
1149 ("xcb-util-keysyms" ,xcb-util-keysyms)))
1150 (native-inputs
1151 `(("libxt" ,libxt)
1152 ("pkg-config" ,pkg-config)))
1153 (synopsis "Minimalistic automatic tiling window manager")
1154 (description
1155 "Spectrwm is a small dynamic tiling and reparenting window manager for X11.
1156It is inspired by Xmonad and dwm. Its major features include:
1157
1158@itemize
1159@item Navigation anywhere on all screens with either the keyboard or mouse
1160@item Customizable status bar
1161@item Restartable without losing state
1162@item Quick launch menu
1163@item Many screen layouts possible with a few simple key strokes
1164@item Move/resize floating windows
32008a75
TGR
1165@item Extended Window Manager Hints (@dfn{EWMH}) support
1166@item Configurable tiling
78dfc9e2 1167@item Adjustable tile gap allows for a true one pixel border
1168@item Customizable colors and border width
1169@end itemize\n")
1170 (home-page "https://github.com/conformal/spectrwm")
1171 (license license:isc)))
b4cb9308 1172
1173(define-public cwm
1174 (package
1175 (name "cwm")
e352a153 1176 (version "6.3")
b4cb9308 1177 (source
1178 (origin
1179 (method url-fetch)
1180 (uri (string-append "http://chneukirchen.org/releases/cwm-"
1181 version ".tar.gz"))
1182 (sha256
1183 (base32
e352a153 1184 "17pdp9cfgh2n3n3905l4rl9qk7b722i8psnarhlc2h98qzx7zmac"))))
b4cb9308 1185 (build-system gnu-build-system)
1186 (arguments
1187 `(#:make-flags (list "CC=gcc"
1188 (string-append "PREFIX=" %output))
1189 #:tests? #f
1190 #:phases
1191 (modify-phases %standard-phases
1192 (delete 'configure)
1193 (add-after 'build 'install-xsession
1194 (lambda* (#:key outputs #:allow-other-keys)
1195 ;; Add a .desktop file to xsessions.
1196 (let* ((output (assoc-ref outputs "out"))
1197 (xsessions (string-append output "/share/xsessions")))
1198 (mkdir-p xsessions)
1199 (with-output-to-file
1200 (string-append xsessions "/cwm.desktop")
1201 (lambda _
1202 (format #t
1203 "[Desktop Entry]~@
1204 Name=cwm~@
1205 Comment=OpenBSD Calm Window Manager fork~@
1206 Exec=~a/bin/cwm~@
1207 TryExec=~@*~a/bin/cwm~@
1208 Icon=~@
1209 Type=Application~%"
1210 output)))
1211 #t))))))
1212 (inputs
1213 `(("libxft" ,libxft)
1214 ("libxrandr" ,libxrandr)
1215 ("libxinerama" ,libxinerama)))
1216 (native-inputs
1217 `(("pkg-config" ,pkg-config)
1218 ("bison" ,bison)))
1219 (home-page "https://github.com/chneukirchen/cwm")
1220 (synopsis "OpenBSD fork of the calmwm window manager")
1221 (description "Cwm is a stacking window manager for X11. It is an OpenBSD
1222project derived from the original Calm Window Manager.")
1223 (license license:isc)))
70024cfa
PAR
1224
1225(define-public nitrogen
1226 (package
1227 (name "nitrogen")
1228 (version "1.6.1")
1229 (source (origin
1230 (method url-fetch)
1231 (uri (string-append "http://github.com/l3ib/nitrogen/"
1232 "releases/download/" version "/"
1233 name "-" version ".tar.gz"))
1234 (sha256
1235 (base32
1236 "0zc3fl1mbhq0iyndy4ysmy8vv5c7xwf54rbgamzfhfvsgdq160pl"))))
1237 (build-system gnu-build-system)
1238 (inputs
1239 `(("gtk+" ,gtk+-2)
1240 ("gtkmm" ,gtkmm-2)
1241 ("glib" ,glib)
1242 ("glibmm" ,glibmm)))
1243 (native-inputs
de99ba7e 1244 `(("pkg-config" ,pkg-config)))
70024cfa
PAR
1245 (home-page "http://projects.l3ib.org/nitrogen/")
1246 (synopsis "Background browser and setter for X windows")
1247 (description
1248 "This package is a background browser and setter for X windows. It's
1249features are:
1250
1251@itemize
1252@item Multihead and Xinerama aware
1253@item Recall mode to used via startup script
1254@item Uses freedesktop.org standard for thumbnails
1255@item Can set GNOME background
1256@item Command lie set modes for script use
1257@item Inotify monitoring of browse directory
1258@item Lazy loading of thumbnails - conserves memory
1259@item \"Automatic\" set mode - determines best mode to set an image based on
1260its size
1261@item Display preview images in a tiled icon layout
1262@end itemize")
1263 (license license:gpl2+)))
d8dcbcc9
MP
1264
1265(define-public polybar
1266 (package
1267 (name "polybar")
553199c5 1268 (version "3.4.2")
d8dcbcc9
MP
1269 (source
1270 (origin
1271 (method url-fetch)
44b73520 1272 (uri (string-append "https://github.com/polybar/polybar/releases/"
4b9e4ac7 1273 "download/" version "/polybar-" version ".tar"))
d8dcbcc9 1274 (sha256
553199c5 1275 (base32 "0fmnviz4b01aw50nkv4yibm8ykc5ff860ynw3xb1ymlsjrvwj8jd"))))
d8dcbcc9
MP
1276 (build-system cmake-build-system)
1277 (arguments
1278 ;; Test is disabled because it requires downloading googletest from the
1279 ;; Internet.
1280 '(#:tests? #f))
1281 (inputs
1282 `(("alsa-lib" ,alsa-lib)
1283 ("cairo" ,cairo)
1284 ("i3-wm" ,i3-wm)
005c2ccf 1285 ("jsoncpp" ,jsoncpp)
d8dcbcc9
MP
1286 ("libmpdclient" ,libmpdclient)
1287 ("libnl" ,libnl)
1288 ("libxcb" ,libxcb)
1289 ("pulseaudio" ,pulseaudio)
1290 ("xcb-proto" ,xcb-proto)
1291 ("xcb-util" ,xcb-util)
1292 ("xcb-util-cursor" ,xcb-util-cursor)
1293 ("xcb-util-image" ,xcb-util-image)
1294 ("xcb-util-wm" ,xcb-util-wm)
1295 ("xcb-util-xrm" ,xcb-util-xrm)))
1296 (native-inputs
1297 `(("pkg-config" ,pkg-config)
47560aa2 1298 ("python-sphinx" ,python-sphinx) ; for the manual
e2684594
NG
1299 ;; XXX: "python" input must be located after "python-2", or the package
1300 ;; fails to build with "missing required python module: xcbgen".
d8dcbcc9
MP
1301 ("python-2" ,python-2) ; lib/xpp depends on python 2
1302 ("python" ,python))) ; xcb-proto depends on python 3
1303 (home-page "https://polybar.github.io/")
1304 (synopsis "Fast and easy-to-use status bar")
1305 (description "Polybar aims to help users build beautiful and highly
1306customizable status bars for their desktop environment. It has built-in
1307functionality to display information about the most commonly used services.")
1308 (license license:expat)))
eea969cf
RH
1309
1310(define-public wlroots
1311 (package
1312 (name "wlroots")
06947252 1313 (version "0.7.0")
eea969cf
RH
1314 (source
1315 (origin
1316 (method git-fetch)
1317 (uri (git-reference
1318 (url "https://github.com/swaywm/wlroots.git")
1319 (commit version)))
1320 (file-name (git-file-name name version))
1321 (sha256
06947252 1322 (base32 "0jzxa6psbc7ddxli7rbfqxmv1svxnis51l1vch4hb9fdixqm284a"))))
eea969cf
RH
1323 (build-system meson-build-system)
1324 (arguments
1325 `(#:configure-flags '("-Dlogind-provider=elogind")
1326 #:phases
1327 (modify-phases %standard-phases
1328 (add-before 'configure 'hardcode-paths
1329 (lambda* (#:key inputs #:allow-other-keys)
1330 (substitute* "xwayland/xwayland.c"
1331 (("Xwayland") (string-append (assoc-ref inputs
1332 "xorg-server-xwayland")
1333 "/bin/Xwayland")))
1334 #t)))))
1335 (inputs `(("elogind" ,elogind)
1336 ("eudev" ,eudev)
1337 ("libinput" ,libinput)
1338 ("libxkbcommon" ,libxkbcommon)
1339 ("mesa" ,mesa)
1340 ("pixman" ,pixman)
1341 ("wayland" ,wayland)
1342 ("xorg-server-xwayland" ,xorg-server-xwayland)))
1343 (native-inputs `(("ffmpeg" ,ffmpeg)
1344 ("libcap" ,libcap)
1345 ("libpng" ,libpng)
1346 ("pkg-config" ,pkg-config)
1347 ("wayland-protocols" ,wayland-protocols)))
1348 (home-page "https://github.com/swaywm/wlroots")
1349 (synopsis "Pluggable, composable, unopinionated modules for building a
1350Wayland compositor")
1351 (description "wlroots is a set of pluggable, composable, unopinionated
1352modules for building a Wayland compositor.")
1353 (license license:expat))) ; MIT license
2ff844f0
RH
1354
1355(define-public sway
1356 (package
1357 (name "sway")
498448eb 1358 (version "1.2")
2ff844f0
RH
1359 (source
1360 (origin
1361 (method git-fetch)
1362 (uri (git-reference
1363 (url "https://github.com/swaywm/sway.git")
1364 (commit version)))
1365 (file-name (git-file-name name version))
1366 (sha256
498448eb 1367 (base32 "0vch2zm5afc76ia78p3vg71zr2fyda67l9hd2h0x1jq3mnvfbxnd"))))
2ff844f0
RH
1368 (build-system meson-build-system)
1369 (arguments
1370 `(#:phases
1371 (modify-phases %standard-phases
1372 (add-before 'configure 'hardcode-paths
1373 (lambda* (#:key inputs #:allow-other-keys)
e23b6a68
MP
1374 ;; Hardcode path to swaybg.
1375 (substitute* "sway/config.c"
1376 (("strdup..swaybg..")
1377 (string-append "strdup(\"" (assoc-ref inputs "swaybg")
1378 "/bin/swaybg\")")))
1379 ;; Hardcode path to scdoc.
2ff844f0
RH
1380 (substitute* "meson.build"
1381 (("scdoc.get_pkgconfig_variable..scdoc..")
1382 (string-append "'" (assoc-ref inputs "scdoc")
1383 "/bin/scdoc'")))
1384 #t)))))
1385 (inputs `(("cairo" ,cairo)
1386 ("elogind" ,elogind)
1387 ("gdk-pixbuf" ,gdk-pixbuf)
1388 ("json-c" ,json-c)
aa07299f 1389 ("libevdev" ,libevdev)
2ff844f0
RH
1390 ("libinput" ,libinput)
1391 ("libxkbcommon" ,libxkbcommon)
1392 ("pango" ,pango)
e23b6a68 1393 ("swaybg" ,swaybg)
2ff844f0
RH
1394 ("wayland" ,wayland)
1395 ("wlroots" ,wlroots)))
1396 (native-inputs `(("git" ,git)
1397 ("libcap" ,libcap)
1398 ("linux-pam" ,linux-pam)
1399 ("mesa" ,mesa)
1400 ("pkg-config" ,pkg-config)
1401 ("scdoc" ,scdoc)
1402 ("wayland-protocols" ,wayland-protocols)))
1403 (home-page "https://github.com/swaywm/sway")
1404 (synopsis "Wayland compositor compatible with i3")
1405 (description "Sway is a i3-compatible Wayland compositor.")
1406 (license license:expat))) ; MIT license
06ae5efc
RH
1407
1408(define-public swayidle
1409 (package
1410 (name "swayidle")
e6bd575a 1411 (version "1.5")
06ae5efc
RH
1412 (source
1413 (origin
1414 (method git-fetch)
1415 (uri (git-reference
1416 (url "https://github.com/swaywm/swayidle.git")
1417 (commit version)))
1418 (file-name (git-file-name name version))
1419 (sha256
e6bd575a 1420 (base32 "05qi96j58xqxjiighay1d39rfanxcpn6vlynj23mb5dymxvlaq9n"))))
06ae5efc 1421 (build-system meson-build-system)
ddd401d2
MP
1422 (arguments
1423 `(#:configure-flags '("-Dlogind-provider=elogind")))
1424 (inputs `(("elogind" ,elogind)
1425 ("wayland" ,wayland)))
06ae5efc
RH
1426 (native-inputs `(("pkg-config" ,pkg-config)
1427 ("scdoc" ,scdoc)
1428 ("wayland-protocols" ,wayland-protocols)))
1429 (home-page "https://github.com/swaywm/sway")
1430 (synopsis "Idle management daemon for Wayland compositors")
1431 (description "Swayidle is a idle management daemon for Wayland compositors.")
1432 (license license:expat))) ; MIT license
b0805973
RH
1433
1434(define-public swaylock
1435 (package
1436 (name "swaylock")
11bca533 1437 (version "1.4")
b0805973
RH
1438 (source
1439 (origin
1440 (method git-fetch)
1441 (uri (git-reference
1442 (url "https://github.com/swaywm/swaylock.git")
1443 (commit version)))
1444 (file-name (git-file-name name version))
1445 (sha256
11bca533 1446 (base32 "1ii9ql1mxkk2z69dv6bg1x22nl3a46iww764wqjiv78x08xpk982"))))
b0805973
RH
1447 (build-system meson-build-system)
1448 (inputs `(("cairo" ,cairo)
1449 ("gdk-pixbuf" ,gdk-pixbuf)
1450 ("libxkbcommon" ,libxkbcommon)
1451 ;("linux-pam" ,linux-pam) ; FIXME: Doesn't work.
1452 ("wayland" ,wayland)))
7959ccac 1453 (native-inputs `(("git" ,git)
b0805973
RH
1454 ("pango" ,pango)
1455 ("pkg-config" ,pkg-config)
1456 ("scdoc" ,scdoc)
1457 ("wayland-protocols" ,wayland-protocols)))
1458 (home-page "https://github.com/swaywm/sway")
1459 (synopsis "Screen locking utility for Wayland compositors")
1460 (description "Swaylock is a screen locking utility for Wayland compositors.")
1461 (license license:expat))) ; MIT license
bedb3457
SS
1462
1463(define-public swaybg
1464 (package
1465 (name "swaybg")
1466 (version "1.0")
1467 (source
1468 (origin
1469 (method git-fetch)
1470 (uri (git-reference
1471 (url "https://github.com/swaywm/swaybg.git")
1472 (commit version)))
1473 (file-name (git-file-name name version))
1474 (sha256
1475 (base32 "1lmqz5bmig90gq2m7lwf02d2g7z4hzf8fhqz78c8vk92c6p4xwbc"))))
1476 (build-system meson-build-system)
1477 (inputs `(("cairo" ,cairo)
1478 ("gdk-pixbuf" ,gdk-pixbuf)
1479 ("wayland" ,wayland)))
1480 (native-inputs `(("git" ,git)
1481 ("pkg-config" ,pkg-config)
1482 ("scdoc" ,scdoc)
1483 ("wayland-protocols" ,wayland-protocols)))
1484 (home-page "https://github.com/swaywm/sway")
1485 (synopsis "Screen wallpaper utility for Wayland compositors")
1486 (description "Swaybg is a wallpaper utility for Wayland compositors.")
1487 (license license:expat))) ; MIT license
7a1d6a77
GB
1488
1489(define-public waybar
1490 (package
1491 (name "waybar")
6792908d 1492 (version "0.8.0")
7a1d6a77
GB
1493 (source
1494 (origin
1495 (method git-fetch)
1496 (uri (git-reference
1497 (url "https://github.com/Alexays/Waybar.git")
1498 (commit version)))
1499 (file-name (git-file-name name version))
1500 (sha256
6792908d 1501 (base32 "0s8ck7qxka0l91ayma6amp9sc8cidi43byqgzcavi3a6id983r1z"))))
7a1d6a77
GB
1502 (build-system meson-build-system)
1503 (arguments
1504 `(#:configure-flags
b80dd5e3 1505 (list (string-append "-Dout=" (assoc-ref %outputs "out")))))
7a1d6a77
GB
1506 (inputs `(("fmt" ,fmt)
1507 ("gtkmm" ,gtkmm)
1508 ("jsoncpp" ,jsoncpp)
de2d14f2 1509 ("libdbusmenu" ,libdbusmenu)
7a1d6a77 1510 ("libinput" ,libinput)
de2d14f2
GB
1511 ("libmpdclent" ,libmpdclient)
1512 ("libnl" ,libnl)
1513 ("pulseaudio" ,pulseaudio)
7a1d6a77
GB
1514 ("spdlog" ,spdlog)
1515 ("wayland" ,wayland)))
b80dd5e3 1516 (native-inputs `(("glib:bin" ,glib "bin")
7a1d6a77
GB
1517 ("pkg-config" ,pkg-config)
1518 ("wayland-protocols" ,wayland-protocols)))
1519 (home-page "https://github.com/Alexays/Waybar")
1520 (synopsis "Wayland bar for Sway and Wlroots based compositors.")
1521 (description "Waybar is a highly customisable Wayland bar for Sway and
1522Wlroots based compositors.")
1523 (license license:expat))) ; MIT license
46dc940c
GB
1524
1525(define-public mako
1526 (package
1527 (name "mako")
b60ffcee 1528 (version "1.4")
46dc940c
GB
1529 (source
1530 (origin
1531 (method git-fetch)
1532 (uri (git-reference
1533 (url "https://github.com/emersion/mako.git")
1534 (commit (string-append "v" version))))
1535 (file-name (git-file-name name version))
1536 (sha256
b60ffcee 1537 (base32 "11ymiq6cr2ma0iva1mqybn3j6k73bsc6lv6pcbdq7hkhd4f9b7j9"))))
46dc940c
GB
1538 (build-system meson-build-system)
1539 (inputs `(("cairo" ,cairo)
1540 ("elogind" ,elogind)
1541 ("gdk-pixbuf" ,gdk-pixbuf)
1542 ("pango" ,pango)
1543 ("wayland" ,wayland)))
1544 (native-inputs `(("pkg-config" ,pkg-config)
1545 ("scdoc" ,scdoc)
1546 ("wayland-protocols" ,wayland-protocols)))
1547 (home-page "https://wayland.emersion.fr/mako")
1548 (synopsis "Lightweight Wayland notification daemon")
1549 (description "Mako is a lightweight notification daemon for Wayland
1550compositors that support the layer-shell protocol.")
1551 (license license:expat))) ; MIT license
88f06fd0
PN
1552
1553(define-public stumpwm
1554 (package
1555 (name "stumpwm")
59198ba1 1556 (version "19.11")
88f06fd0
PN
1557 (source
1558 (origin
1559 (method git-fetch)
1560 (uri (git-reference
1561 (url "https://github.com/stumpwm/stumpwm.git")
1562 (commit version)))
1563 (file-name (git-file-name "stumpwm" version))
1564 (sha256
59198ba1 1565 (base32 "1ha8803ll7472kqxsy2xz0v5d4sv8apmc9z631d67m31q0z1m9rz"))))
88f06fd0
PN
1566 (build-system asdf-build-system/sbcl)
1567 (native-inputs `(("fiasco" ,sbcl-fiasco)
1568 ("texinfo" ,texinfo)))
1569 (inputs `(("cl-ppcre" ,sbcl-cl-ppcre)
1570 ("clx" ,sbcl-clx)
1571 ("alexandria" ,sbcl-alexandria)))
1572 (outputs '("out" "lib"))
1573 (arguments
1574 '(#:asd-system-name "stumpwm"
1575 #:phases
1576 (modify-phases %standard-phases
1577 (add-after 'create-symlinks 'build-program
1578 (lambda* (#:key outputs #:allow-other-keys)
1579 (build-program
1580 (string-append (assoc-ref outputs "out") "/bin/stumpwm")
1581 outputs
1582 #:entry-program '((stumpwm:stumpwm) 0))))
1583 (add-after 'build-program 'create-desktop-file
1584 (lambda* (#:key outputs #:allow-other-keys)
1585 (let* ((out (assoc-ref outputs "out"))
1586 (xsessions (string-append out "/share/xsessions")))
1587 (mkdir-p xsessions)
1588 (call-with-output-file
1589 (string-append xsessions "/stumpwm.desktop")
1590 (lambda (file)
1591 (format file
1592 "[Desktop Entry]~@
1593 Name=stumpwm~@
1594 Comment=The Stump Window Manager~@
1595 Exec=~a/bin/stumpwm~@
1596 TryExec=~@*~a/bin/stumpwm~@
1597 Icon=~@
1598 Type=Application~%"
1599 out)))
1600 #t)))
1601 (add-after 'install 'install-manual
1602 (lambda* (#:key outputs #:allow-other-keys)
1603 ;; The proper way to the manual is bootstrapping a full autotools
1604 ;; build system and running ‘./configure && make stumpwm.info’ to
1605 ;; do some macro substitution. We can get away with much less.
1606 (let* ((out (assoc-ref outputs "out"))
1607 (info (string-append out "/share/info")))
1608 (invoke "makeinfo" "stumpwm.texi.in")
1609 (install-file "stumpwm.info" info)
1610 #t))))))
1611 (synopsis "Window manager written in Common Lisp")
1612 (description "Stumpwm is a window manager written entirely in Common Lisp.
1613It attempts to be highly customizable while relying entirely on the keyboard
1614for input. These design decisions reflect the growing popularity of
1615productive, customizable lisp based systems.")
1616 (home-page "https://github.com/stumpwm/stumpwm")
1617 (license license:gpl2+)
1618 (properties `((cl-source-variant . ,(delay cl-stumpwm))))))
1619
1620(define-public sbcl-stumpwm
1621 (deprecated-package "sbcl-stumpwm" stumpwm))
1622
1623(define-public cl-stumpwm
1624 (package
1625 (inherit (sbcl-package->cl-source-package stumpwm))
1626 (name "cl-stumpwm")))
1627
1628(define-public stumpwm+slynk
1629 (package
1630 (inherit stumpwm)
1631 (name "stumpwm-with-slynk")
1632 (outputs '("out"))
1633 (inputs
1634 `(("stumpwm" ,stumpwm "lib")
1635 ("slynk" ,sbcl-slynk)))
1636 (arguments
1637 (substitute-keyword-arguments (package-arguments stumpwm)
1638 ((#:phases phases)
1639 `(modify-phases ,phases
1640 (replace 'build-program
1641 (lambda* (#:key inputs outputs #:allow-other-keys)
1642 (let* ((out (assoc-ref outputs "out"))
1643 (program (string-append out "/bin/stumpwm")))
1644 (build-program program outputs
1645 #:entry-program '((stumpwm:stumpwm) 0)
1646 #:dependencies '("stumpwm"
1647 ,@(@@ (gnu packages lisp-xyz) slynk-systems))
1648 #:dependency-prefixes
1649 (map (lambda (input) (assoc-ref inputs input))
1650 '("stumpwm" "slynk")))
1651 ;; Remove unneeded file.
1652 (delete-file (string-append out "/bin/stumpwm-exec.fasl"))
1653 #t)))
1654 (delete 'copy-source)
1655 (delete 'build)
1656 (delete 'check)
1657 (delete 'create-asd-file)
1658 (delete 'cleanup)
1659 (delete 'create-symlinks)))))))
1660
1661(define-public sbcl-stumpwm+slynk
1662 (deprecated-package "sbcl-stumpwm-with-slynk" stumpwm+slynk))
d4145638
N
1663
1664(define-public lemonbar
1665 (let ((commit "35183ab81d2128dbb7b6d8e119cc57846bcefdb4")
1666 (revision "1"))
1667 (package
1668 (name "lemonbar")
1669 (version (git-version "1.3" revision commit))
1670 (source (origin
1671 (method git-fetch)
1672 (uri (git-reference
1673 (url "https://github.com/LemonBoy/bar")
1674 (commit commit)))
1675 (file-name (git-file-name name version))
1676 (sha256
1677 (base32
1678 "1wwqbph392iwz8skaqxb0xpklb1l6yganqz80g4x1fhrnz7idmlh"))))
1679 (build-system gnu-build-system)
1680 (arguments
1681 '(#:tests? #f ; no test suite
1682 #:make-flags (list "CC=gcc"
1683 (string-append "PREFIX=" %output))
1684 #:phases
1685 (modify-phases %standard-phases
1686 (delete 'configure))))
1687 (inputs
1688 `(("libxcb" ,libxcb)))
1689 (native-inputs
1690 `(("perl" ,perl)))
1691 (home-page "https://github.com/LemonBoy/bar")
1692 (synopsis "Featherweight status bar")
1693 (description
1694 "@code{lemonbar} (formerly known as @code{bar}) is a lightweight
1695bar entirely based on XCB. Provides full UTF-8 support, basic
1696formatting, RandR and Xinerama support and EWMH compliance without
1697wasting your precious memory.")
1698 (license license:x11))))