gnu: guile-studio: Update to 0.0.4-2.e9f2b46.
[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>
a8360892 8;;; Copyright © 2016, 2019, 2020 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>
9593caff 12;;; Copyright © 2016, 2017, 2018, 2020 Nikita <nikita@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>
f5fb52f1 16;;; Copyright © 2017, 2019, 2020 Marius Bakke <marius@gnu.org>
65051fdc 17;;; Copyright © 2017, 2020 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>
d4842a7c 33;;; Copyright © 2019, 2020 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>
138896e1 36;;; Copyright © 2020 Boris A. Dekshteyn <harlequin78@gmail.com>
fd65311c 37;;; Copyright © 2020 Marcin Karpezo <sirmacik@wioo.waw.pl>
9c814c33 38;;; Copyright © 2020 EuAndreh <eu@euandre.org>
48b00a4c 39;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
dfb85d1e 40;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
8e2aad26 41;;; Copyright © 2020 B. Wilson <elaexuotee@wilsonb.com>
3138e4a7 42;; Copyright © 2020 Niklas Eklund <niklas.eklund@posteo.net>
f49746c3 43;;; Copyright © 2020 Robert Smith <robertsmith@posteo.net>
bda2ded6
ED
44;;;
45;;; This file is part of GNU Guix.
46;;;
47;;; GNU Guix is free software; you can redistribute it and/or modify it
48;;; under the terms of the GNU General Public License as published by
49;;; the Free Software Foundation; either version 3 of the License, or (at
50;;; your option) any later version.
51;;;
52;;; GNU Guix is distributed in the hope that it will be useful, but
53;;; WITHOUT ANY WARRANTY; without even the implied warranty of
54;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
55;;; GNU General Public License for more details.
56;;;
57;;; You should have received a copy of the GNU General Public License
58;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
59
60(define-module (gnu packages wm)
0ede252b 61 #:use-module ((guix licenses) #:prefix license:)
bda2ded6 62 #:use-module (guix packages)
40cad6b9
EF
63 #:use-module (guix download)
64 #:use-module (guix git-download)
88f06fd0 65 #:use-module (guix build-system asdf)
3d1240aa 66 #:use-module (guix build-system cmake)
bda2ded6 67 #:use-module (guix build-system gnu)
6e38c4be 68 #:use-module (guix build-system haskell)
eea969cf 69 #:use-module (guix build-system meson)
3e7cb70a 70 #:use-module (guix build-system perl)
c165591d 71 #:use-module (guix build-system python)
9a12243c 72 #:use-module (guix build-system trivial)
88f06fd0 73 #:use-module (guix utils)
40cad6b9 74 #:use-module (gnu packages)
9a12243c 75 #:use-module (gnu packages bash)
4b563b34 76 #:use-module (gnu packages autotools)
bda2ded6 77 #:use-module (gnu packages base)
40cad6b9 78 #:use-module (gnu packages bison)
f5fb52f1 79 #:use-module (gnu packages build-tools) ;for meson-0.55
5e78a87b 80 #:use-module (gnu packages calendar)
bda2ded6 81 #:use-module (gnu packages docbook)
40cad6b9 82 #:use-module (gnu packages documentation)
0ede252b 83 #:use-module (gnu packages fontutils)
3d1240aa 84 #:use-module (gnu packages freedesktop)
40cad6b9
EF
85 #:use-module (gnu packages fribidi)
86 #:use-module (gnu packages gawk)
80817888 87 #:use-module (gnu packages gcc)
40cad6b9 88 #:use-module (gnu packages gl)
3d1240aa
CZ
89 #:use-module (gnu packages glib)
90 #:use-module (gnu packages gperf)
40cad6b9
EF
91 #:use-module (gnu packages gtk)
92 #:use-module (gnu packages haskell-check)
93 #:use-module (gnu packages haskell-web)
94 #:use-module (gnu packages haskell-xyz)
95 #:use-module (gnu packages image)
3d1240aa 96 #:use-module (gnu packages imagemagick)
40cad6b9 97 #:use-module (gnu packages libevent)
4b563b34 98 #:use-module (gnu packages linux)
88f06fd0 99 #:use-module (gnu packages lisp-xyz)
40cad6b9
EF
100 #:use-module (gnu packages logging)
101 #:use-module (gnu packages lua)
102 #:use-module (gnu packages m4)
2ff844f0 103 #:use-module (gnu packages man)
40cad6b9
EF
104 #:use-module (gnu packages maths)
105 #:use-module (gnu packages mpd)
106 #:use-module (gnu packages pcre)
107 #:use-module (gnu packages perl)
108 #:use-module (gnu packages pkg-config)
7a1d6a77 109 #:use-module (gnu packages pretty-print)
40cad6b9
EF
110 #:use-module (gnu packages pulseaudio)
111 #:use-module (gnu packages python)
9a12243c 112 #:use-module (gnu packages readline)
7a1d6a77 113 #:use-module (gnu packages serialization)
47560aa2 114 #:use-module (gnu packages sphinx)
40cad6b9 115 #:use-module (gnu packages suckless)
88f06fd0 116 #:use-module (gnu packages texinfo)
40cad6b9 117 #:use-module (gnu packages textutils)
40cad6b9
EF
118 #:use-module (gnu packages video)
119 #:use-module (gnu packages web)
120 #:use-module (gnu packages xdisorg)
121 #:use-module (gnu packages xml)
122 #:use-module (gnu packages xorg))
bda2ded6 123
1268e52d 124(define-public bspwm
125 (package
126 (name "bspwm")
336b6d3c 127 (version "0.9.10")
1268e52d 128 (source
129 (origin
782b1224
TGR
130 (method git-fetch)
131 (uri (git-reference
b0e7b699 132 (url "https://github.com/baskerville/bspwm")
782b1224
TGR
133 (commit version)))
134 (file-name (git-file-name name version))
1268e52d 135 (sha256
336b6d3c 136 (base32 "0qlv7b4c2mmjfd65y100d11x8iqyg5f6lfiws3cgmpjidhdygnxc"))))
1268e52d 137 (build-system gnu-build-system)
138 (inputs
139 `(("libxcb" ,libxcb)
140 ("libxinerama" ,libxinerama)
141 ("sxhkd" ,sxhkd)
142 ("xcb-util" ,xcb-util)
143 ("xcb-util-keysyms" ,xcb-util-keysyms)
144 ("xcb-util-wm" ,xcb-util-wm)))
145 (arguments
aa0551c2
TGR
146 '(#:phases
147 (modify-phases %standard-phases
148 (delete 'configure)) ; no configure script
149 #:tests? #f ; no check target
150 #:make-flags
151 (list "CC=gcc"
152 (string-append "PREFIX=" %output))))
1268e52d 153 (home-page "https://github.com/baskerville/bspwm")
154 (synopsis "Tiling window manager based on binary space partitioning")
155 (description "bspwm is a tiling window manager that represents windows as
156the leaves of a full binary tree.")
0ede252b 157 (license license:bsd-2)))
1268e52d 158
1d25447e
KA
159(define-public herbstluftwm
160 (package
161 (name "herbstluftwm")
d87c9fc5 162 (version "0.8.3")
1d25447e
KA
163 (source
164 (origin
165 (method url-fetch)
166 (uri (string-append "https://herbstluftwm.org/tarballs/herbstluftwm-"
167 version ".tar.gz"))
168 (sha256
d87c9fc5 169 (base32 "1qmb4pjf2f6g0dvcg11cw9njwmxblhqzd70ai8qnlgqw1iz3nkm1"))
1d25447e 170 (file-name (string-append "herbstluftwm-" version ".tar.gz"))))
138896e1 171 (build-system cmake-build-system)
1d25447e
KA
172 (inputs
173 `(("dzen" ,dzen)
174 ("dmenu" ,dmenu)
175 ("glib" ,glib)
176 ("glibmm" ,glibmm)
177 ("xterm" ,xterm)
178 ("xsetroot" ,xsetroot)
179 ("libx11" ,libx11)
180 ("libxext" ,libxext)
138896e1
BD
181 ("libxinerama" ,libxinerama)
182 ("libxrandr" ,libxrandr)))
1d25447e 183 (native-inputs
138896e1
BD
184 `(("asciidoc" ,asciidoc)
185 ("pkg-config" ,pkg-config)))
1d25447e 186 (arguments
138896e1
BD
187 '(#:tests? #f
188 #:configure-flags
189 (let ((out (assoc-ref %outputs "out")))
190 (list "-DCC=gcc"
191 (string-append "-DCMAKE_INSTALL_SYSCONF_PREFIX=" out "/etc")
192 (string-append "-DBASHCOMPLETIONDIR=" out "/etc/bash_completion.d")))
193 #:phases
1d25447e 194 (modify-phases %standard-phases
1d25447e
KA
195 (add-after 'install 'install-xsession
196 (lambda* (#:key outputs #:allow-other-keys)
197 (let* ((out (assoc-ref outputs "out"))
198 (xsessions (string-append out "/share/xsessions")))
199 (mkdir-p xsessions)
200 (call-with-output-file
201 (string-append xsessions "/herbstluftwm.desktop")
202 (lambda (port)
203 (format port "~
204 [Desktop Entry]~@
205 Name=herbstluftwm~@
206 Comment=Manual tiling window manager~@
207 Exec=~a/bin/herbstluftwm~@
208 Type=XSession~%" out)))
138896e1 209 #t))))))
1d25447e
KA
210 (synopsis "Tiling window manager for X11")
211 (description "herbstluftwm is a manual tiling window manager for X11 using
212Xlib and GLib. Its main features are:
213
214@itemize
215@item
216The layout is based on splitting frames into subframes which can be split
217again or can be filled with windows (similar to i3 or musca).
218
219@item
220Tags (or workspaces or virtual desktops or …) can be added/removed at runtime.
221Each tag contains an own layout.
222
223@item
224Exactly one tag is viewed on each monitor. The tags are monitor independent
225(similar to Xmonad).
226
227@item
228It is configured at runtime via IPC calls from @command{herbstclient}. So the
229configuration file is just a script which is run on startup (similar to wmii
230or musca).
231
232@end itemize")
233 (home-page "https://herbstluftwm.org")
234 (license license:bsd-2)))
235
63b1bdbc
ED
236(define-public i3status
237 (package
238 (name "i3status")
cb96d239 239 (version "2.13")
63b1bdbc
ED
240 (source (origin
241 (method url-fetch)
fdad1f3c 242 (uri (string-append "https://i3wm.org/i3status/i3status-"
63b1bdbc
ED
243 version ".tar.bz2"))
244 (sha256
245 (base32
cb96d239 246 "0rhlzb96mw64z2jnhwz9nibc7pxg549626lz5642xxk5hpzwk2ff"))))
63b1bdbc
ED
247 (build-system gnu-build-system)
248 (arguments
cb96d239
MB
249 `(;; XXX: Do an "out of source" build to work around
250 ;; <https://github.com/i3/i3status/issues/339>.
251 #:out-of-source? #t
63b1bdbc
ED
252 #:tests? #f)) ; no test suite
253 (inputs
254 `(("openlibm" ,openlibm)
255 ("libconfuse" ,libconfuse)
256 ("libyajl" ,libyajl)
257 ("alsa-lib" ,alsa-lib)
766a22fb
AM
258 ("pulseaudio" ,pulseaudio)
259 ("libnl" ,libnl)
63b1bdbc
ED
260 ("libcap" ,libcap)
261 ("asciidoc" ,asciidoc)))
766a22fb 262 (native-inputs
cb96d239
MB
263 `(("pkg-config" ,pkg-config)
264 ("docbook-xsl" ,docbook-xsl)
265 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
266 ("xmlto" ,xmlto)))
fdad1f3c 267 (home-page "https://i3wm.org/i3status/")
63b1bdbc
ED
268 (synopsis "Status bar for i3bar, dzen2, xmobar or similar programs")
269 (description "i3status is a small program for generating a status bar for
270i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient
271by issuing a very small number of system calls, as one generally wants to
272update such a status line every second. This ensures that even under high
273load, your status bar is updated correctly. Also, it saves a bit of energy by
274not hogging your CPU as much as spawning the corresponding amount of shell
275commands would.")
0ede252b 276 (license license:bsd-3)))
63b1bdbc 277
bda2ded6
ED
278(define-public i3-wm
279 (package
280 (name "i3-wm")
1434f2b0 281 (version "4.18.3")
bda2ded6
ED
282 (source (origin
283 (method url-fetch)
8658d403 284 (uri (string-append "https://i3wm.org/downloads/i3-"
bda2ded6
ED
285 version ".tar.bz2"))
286 (sha256
287 (base32
1434f2b0 288 "03dijnwv2n8ak9jq59fhq0rc80m5wjc9d54fslqaivnnz81pkbjk"))))
bda2ded6
ED
289 (build-system gnu-build-system)
290 (arguments
ebd2ae18 291 `(#:configure-flags
4bd391f5
LF
292 ;; The build system tries to build in a separate directory, but that
293 ;; seems to be unnecessary.
ebd2ae18
TGR
294 (list "--disable-builddir")
295
296 ;; The test suite requires the unpackaged Xephyr X server.
aa7cdc57
TS
297 #:tests? #f
298 #:phases
299 (modify-phases %standard-phases
300 (add-after 'install 'patch-session-file
301 (lambda* (#:key outputs #:allow-other-keys)
302 (let* ((out (assoc-ref outputs "out"))
303 (i3 (string-append out "/bin/i3"))
304 (i3-with-shmlog (string-append out "/bin/i3-with-shmlog")))
305 (substitute* (string-append out "/share/xsessions/i3.desktop")
306 (("Exec=i3") (string-append "Exec=" i3)))
307 (substitute* (string-append out "/share/xsessions/i3-with-shmlog.desktop")
308 (("Exec=i3-with-shmlog") (string-append "Exec=" i3-with-shmlog)))
309 #t))))))
bda2ded6
ED
310 (inputs
311 `(("libxcb" ,libxcb)
312 ("xcb-util" ,xcb-util)
313 ("xcb-util-cursor" ,xcb-util-cursor)
314 ("xcb-util-keysyms" ,xcb-util-keysyms)
315 ("xcb-util-wm" ,xcb-util-wm)
4bd391f5 316 ("xcb-util-xrm" ,xcb-util-xrm)
bda2ded6
ED
317 ("libxkbcommon" ,libxkbcommon)
318 ("libev" ,libev)
319 ("libyajl" ,libyajl)
320 ("asciidoc" ,asciidoc)
321 ("xmlto" ,xmlto)
322 ("perl-pod-simple" ,perl-pod-simple)
bda2ded6
ED
323 ("libx11" ,libx11)
324 ("pcre" ,pcre)
325 ("startup-notification" ,startup-notification)
326 ("pango" ,pango)
327 ("cairo" ,cairo)))
328 (native-inputs
329 `(("which" ,which)
330 ("perl" ,perl)
4bd391f5
LF
331 ("pkg-config" ,pkg-config)
332 ;; For building the documentation.
4b0e6367 333 ("libxml2" ,libxml2)
4bd391f5 334 ("docbook-xsl" ,docbook-xsl)))
8658d403 335 (home-page "https://i3wm.org/")
71a5da8e
TGR
336 (synopsis "Tiling window manager")
337 (description "i3 is a tiling X11 window manager that dynamically manages
338tiled, stacked, and tabbed window layouts.
339
340i3 primarily targets advanced users. Windows are managed manually and organised
341inside containers, which can be split vertically or horizontally, and optionally
342resized.
343
344i3 uses a plain-text configuration file, and can be extended and controlled from
345many programming languages.")
0ede252b 346 (license license:bsd-3)))
6e38c4be 347
88c94080
ASM
348(define-public i3-gaps
349 (package (inherit i3-wm)
350 (name "i3-gaps")
831365c6 351 (version "4.18.3")
88c94080
ASM
352 (source (origin
353 (method url-fetch)
354 (uri (string-append
355 "https://github.com/Airblader/i3/releases/download/"
356 version "/i3-" version ".tar.bz2"))
357 (sha256
358 (base32
831365c6 359 "1hcakwyz78lgp8mhqv7pw86jlb3m415pfql1q19rkijnhm3fn3ci"))))
88c94080
ASM
360 (home-page "https://github.com/Airblader/i3")
361 (synopsis "Tiling window manager with gaps")
362 (description "i3-gaps is a fork of i3wm, a tiling window manager
363for X11. It is kept up to date with upstream, adding a few additional
364features such as gaps between windows.
365
366i3 is a tiling X11 window manager that dynamically manages tiled, stacked,
367and tabbed window layouts.
368
369i3 primarily targets advanced users. Windows are managed manually and
370organised inside containers, which can be split vertically or horizontally,
371and optionally resized.
372
373i3 uses a plain-text configuration file, and can be extended and controlled
374from many programming languages.")
375 (license license:bsd-3)))
376
b6afc350
MB
377(define-public i3lock
378 (package
379 (name "i3lock")
380 (version "2.11.1")
381 (source (origin
382 (method url-fetch)
383 (uri (string-append "https://i3wm.org/i3lock/i3lock-"
384 version ".tar.bz2"))
385 (sha256
386 (base32
387 "015dn534m7cxjvqdncpvaq9p8b2r4w5hp1yanbdy2abmhbcc7a7j"))))
388 (build-system gnu-build-system)
389 (native-inputs
390 `(("pkg-config" ,pkg-config)))
391 (inputs
392 `(("cairo" ,cairo)
393 ("libev" ,libev)
394 ("linux-pam" ,linux-pam)
395 ("libxcb" ,libxcb)
396 ("libxkbcommon" ,libxkbcommon)
397 ("xcb-util" ,xcb-util)
398 ("xcb-util-image" ,xcb-util-image)
399 ("xcb-util-xrm" ,xcb-util-xrm)))
400 (home-page "https://i3wm.org/i3lock/")
401 (synopsis "Lightweight screen locker")
402 (description
403 "i3lock is a simple X11 screen locker developed alongside the i3 project.
404Despite the name it should work with any X11 window manager.")
405 (license license:bsd-3)))
406
bc83b2e2 407(define-public i3blocks
97e036ca
TGR
408 (package
409 (name "i3blocks")
410 (version "1.5")
411 (source (origin
412 (method git-fetch)
413 (uri (git-reference
b0e7b699 414 (url "https://github.com/vivien/i3blocks")
97e036ca
TGR
415 (commit version)))
416 (sha256
417 (base32
418 "0v8mwnm8qzpv6xnqvrk43s4b9iyld4naqzbaxk4ldq1qkhai0wsv"))
419 (file-name (git-file-name name version))))
420 (build-system gnu-build-system)
421 (native-inputs
422 `(("autoconf" ,autoconf)
423 ("automake" ,automake)
424 ("pkg-config" ,pkg-config)))
425 (home-page "https://github.com/vivien/i3blocks")
426 (synopsis "Minimalist scheduler for status bar scripts")
427 (description "i3blocks executes your command lines and generates a
bc83b2e2
MP
428status line from their output. The generated line is meant to be displayed by
429the i3 window manager through its i3bar component, as an alternative to
430i3status.")
97e036ca 431 (license license:gpl3+)))
bc83b2e2 432
3e7cb70a
MB
433(define-public perl-anyevent-i3
434 (package
435 (name "perl-anyevent-i3")
ec5c986e 436 (version "0.17")
3e7cb70a
MB
437 (source (origin
438 (method url-fetch)
439 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTPLBG/"
440 "AnyEvent-I3-" version ".tar.gz"))
441 (sha256
442 (base32
ec5c986e 443 "0qvd9bq16jyy7v3ma82qcnvz9j503bw0mh7h55gkjf7ir62ck0jk"))))
3e7cb70a
MB
444 (build-system perl-build-system)
445 (propagated-inputs
446 `(("perl-anyevent" ,perl-anyevent)
447 ("perl-json-xs" ,perl-json-xs)))
9aba9b12 448 (home-page "https://metacpan.org/release/AnyEvent-I3")
3e7cb70a
MB
449 (synopsis
450 "Communicate with the i3 window manager through perl")
451 (description
452 "This module connects to the i3 window manager using the UNIX socket
453based IPC interface it provides (if enabled in the configuration file).
454You can then subscribe to events or send messages and receive their replies.")
455 ;; Can be used with either license.
2f3108ad 456 (license (list license:gpl3+ license:perl-license))))
3e7cb70a 457
c165591d
IVB
458(define-public python-i3-py
459 (package
460 (name "python-i3-py")
461 (version "0.6.5")
462 (source
463 (origin
464 ;; The latest release is not tagged in Git nor has an entry in PyPi,
465 ;; but there is still a clear commit for it, and it's been the last one
466 ;; for years.
467 (method git-fetch)
468 (uri (git-reference
b0e7b699 469 (url "https://github.com/ziberna/i3-py")
c165591d
IVB
470 (commit "27f88a616e9ecc340e7d041d3d00782f8a1964c1")))
471 (sha256
472 (base32
473 "1nm719dc2xqlll7vj4c4m7mpjb27lpn3bg3c66gajvnrz2x1nmxs"))
474 (file-name (string-append name "-" version "-checkout"))))
475 (build-system python-build-system)
476 (arguments
477 `(#:tests? #f ; no tests yet
478 #:phases (modify-phases %standard-phases
479 (add-after 'install 'install-doc
480 ;; Copy readme file to documentation directory.
481 (lambda* (#:key outputs #:allow-other-keys)
482 (let ((doc (string-append (assoc-ref outputs "out")
483 "/share/doc/" ,name)))
484 (install-file "README.md" doc)
485 ;; Avoid unspecified return value.
486 #t))))))
487 (propagated-inputs
488 `(("i3-wm" ,i3-wm)))
489 (home-page "https://github.com/ziberna/i3-py")
490 (synopsis "Python interface to the i3 window manager")
491 (description "This package allows you to interact from a Python program
492with the i3 window manager via its IPC socket. It can send commands and other
493kinds of messages to i3, select the affected containers, filter results and
494subscribe to events.")
495 (license license:gpl3+)))
496
497(define-public python2-i3-py
498 (package-with-python2 python-i3-py))
499
37356e0b
IVB
500(define-public quickswitch-i3
501 (let ((commit "ed692b1e8f43b95bd907ced26238ce8ccb2ed28f")
502 (revision "1")) ; Guix package revision
503 (package
504 (name "quickswitch-i3")
505 (version (string-append "2.2-" revision "."
506 (string-take commit 7)))
507 (source
508 (origin
509 ;; The latest commit is a few years old and just a couple commits
510 ;; after the last tagged release, so we use that latest commit
511 ;; instead of the release.
512 (method git-fetch)
513 (uri (git-reference
b0e7b699 514 (url "https://github.com/proxypoke/quickswitch-for-i3")
37356e0b
IVB
515 (commit commit)))
516 (sha256
517 (base32
518 "0447077sama80jcdg5p64zjsvafmz5rbdrirhm1adcdjhkh6iqc5"))
519 (patches (search-patches "quickswitch-fix-dmenu-check.patch"))
520 (file-name (string-append name "-" version "-checkout"))))
521 (build-system python-build-system)
522 (arguments
523 `(#:tests? #f ; no tests yet
524 #:phases (modify-phases %standard-phases
525 (add-after 'install 'install-doc
526 ;; Copy readme file to documentation directory.
527 (lambda* (#:key outputs #:allow-other-keys)
528 (let ((doc (string-append (assoc-ref outputs "out")
529 "/share/doc/" ,name)))
530 (install-file "README.rst" doc)
531 ;; Avoid unspecified return value.
532 #t))))))
533 (inputs
534 `(("python-i3-py" ,python-i3-py)
535 ("dmenu" ,dmenu)))
536 (home-page "https://github.com/proxypoke/quickswitch-for-i3")
537 (synopsis "Quickly change to and locate windows in the i3 window manager")
538 (description
539 "This utility for the i3 window manager allows you to quickly switch to
540and locate windows on all your workspaces, using an interactive dmenu
541prompt.")
5d6bab9e 542 (license license:wtfpl2))))
37356e0b 543
4b563b34 544(define-public i3lock-color
545 (package
546 (name "i3lock-color")
7969751f 547 (version "2.12.c")
4b563b34 548 (source
549 (origin
f45cc966
TGR
550 (method git-fetch)
551 (uri (git-reference
b0e7b699 552 (url "https://github.com/PandorasFox/i3lock-color")
f45cc966
TGR
553 (commit version)))
554 (file-name (git-file-name name version))
4b563b34 555 (sha256
7969751f 556 (base32 "08fhnchf187b73h52xgzb86g6byzxz085zs9galsvl687g5zxk34"))))
4b563b34 557 (build-system gnu-build-system)
558 (arguments
f45cc966 559 `(#:tests? #f)) ; no tests included
4b563b34 560 (inputs
fa2886b7
TGR
561 `(("cairo" ,cairo)
562 ("libev" ,libev)
3dc77d40 563 ("libjpeg" ,libjpeg-turbo)
4b563b34 564 ("libxcb" ,libxcb)
4b563b34 565 ("libxkbcommon" ,libxkbcommon)
fa2886b7
TGR
566 ("linux-pam" ,linux-pam)
567 ("xcb-util" ,xcb-util)
7969751f
TGR
568 ("xcb-util-image" ,xcb-util-image)
569 ("xcb-util-xrm" ,xcb-util-xrm)))
4b563b34 570 (native-inputs
fa2886b7
TGR
571 `(("autoconf" ,autoconf)
572 ("automake" ,automake)
573 ("pkg-config" ,pkg-config)))
4b563b34 574 (home-page "https://github.com/PandorasFox/i3lock-color")
575 (synopsis "Screen locker with color configuration support")
576 (description
577 "i3lock-color is a simpler X11 screen locker derived from i3lock.
578Features include:
579
580@enumerate
581@item forking process, the locked screen is preserved when you suspend to RAM;
582@item specify background color or image to be displayed in the lock screen;
583@item many additional color options.
584@end enumerate")
585 (license license:bsd-3)))
586
b0a2dc72 587(define-public i3lock-fancy
588 (package
589 (name "i3lock-fancy")
590 (version "0.2")
591 (source
592 (origin
a48db08a
TGR
593 (method git-fetch)
594 (uri (git-reference
b0e7b699 595 (url "https://github.com/meskarune/i3lock-fancy")
a48db08a
TGR
596 (commit version)))
597 (file-name (git-file-name name version))
b0a2dc72 598 (sha256
a48db08a 599 (base32 "11g2kkim33ra38d1m897sq1ifajw17iyw9mr7sg1q8i2ibl4lfsi"))))
b0a2dc72 600 (build-system gnu-build-system)
601 (arguments
a48db08a 602 `(#:tests? #f ; no tests included
b0a2dc72 603 #:phases
604 (modify-phases %standard-phases
605 (replace 'configure
606 (lambda* (#:key inputs outputs #:allow-other-keys)
607 (let* ((out (assoc-ref outputs "out"))
608 (icons (string-append out "/share/i3lock-fancy/icons/"))
609 (wmctrl (string-append (assoc-ref inputs "wmctrl")
610 "/bin/wmctrl"))
611 (mconvert (string-append (assoc-ref inputs "imagemagick")
612 "/bin/convert"))
613 (mimport (string-append (assoc-ref inputs "imagemagick")
614 "/bin/import"))
615 (awk (string-append (assoc-ref inputs "gawk")
616 "/bin/gawk")))
617
618 (substitute* "lock"
184598a4 619 (("\\$\\(command -V wmctrl\\)") wmctrl)
b0a2dc72 620 (("convert") mconvert)
621 (("shot=\\(import") (string-append "shot=\(" mimport))
622 (("awk -F") (string-append awk " -F"))
623 ((" awk") awk)
624 (("\\$scriptpath/icons/") icons))
625 #t)))
626 (delete 'build)
627 (replace 'install
628 (lambda* (#:key inputs outputs #:allow-other-keys)
629 (let* ((out (assoc-ref outputs "out"))
630 (bin (string-append out "/bin"))
631 (icons (string-append out "/share/i3lock-fancy/icons/")))
632
633 (install-file "lock" bin)
634 (rename-file (string-append bin "/lock")
635 (string-append bin "/i3lock-fancy"))
636 (copy-recursively "icons" icons)
637 #t))))))
1aa765fd 638 (inputs
b0a2dc72 639 `(("imagemagick" ,imagemagick)
640 ("wmctrl" ,wmctrl)
641 ("gawk" ,gawk)))
642 (home-page "https://github.com/meskarune/i3lock-fancy")
643 (synopsis "Screen locker with screenshot function")
644 (description
645 "@code{i3lock-fancy} is a Bash script that takes a screenshot of
646the desktop, blurs the background and adds a lock icon and text.
647It requires @code{i3lock-color} or @code{i3lock} and can optionally
648be passed any screenshot util like @code{scrot}.
649This screen locker can be used with any window manager or
650desktop environment.")
651 (license license:expat)))
652
6e38c4be
SB
653(define-public xmonad
654 (package
655 (name "xmonad")
de98b915 656 (version "0.15")
6e38c4be
SB
657 (synopsis "Tiling window manager")
658 (source (origin
659 (method url-fetch)
966a543b 660 (uri (string-append "mirror://hackage/package/xmonad/"
ec9299d0 661 "xmonad-" version ".tar.gz"))
6e38c4be
SB
662 (sha256
663 (base32
57983029
TS
664 "0a7rh21k9y6g8fwkggxdxjns2grvvsd5hi2ls4klmqz5xvk4hyaa"))
665 (patches (search-patches "xmonad-dynamic-linking.patch"))))
6e38c4be
SB
666 (build-system haskell-build-system)
667 (inputs
174b091f 668 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
174b091f 669 ("ghc-quickcheck" ,ghc-quickcheck)
dd821380 670 ("ghc-semigroups" ,ghc-semigroups)
174b091f
MM
671 ("ghc-setlocale" ,ghc-setlocale)
672 ("ghc-utf8-string" ,ghc-utf8-string)
673 ("ghc-x11" ,ghc-x11)))
6e38c4be
SB
674 (arguments
675 `(#:phases
676 (modify-phases %standard-phases
677 (add-after
678 'install 'install-xsession
679 (lambda _
680 (let* ((xsessions (string-append %output "/share/xsessions")))
681 (mkdir-p xsessions)
682 (call-with-output-file
683 (string-append xsessions "/xmonad.desktop")
684 (lambda (port)
685 (format port "~
686 [Desktop Entry]~@
687 Name=~a~@
688 Comment=~a~@
689 Exec=~a/bin/xmonad~@
690 Type=Application~%" ,name ,synopsis %output)))))))))
8c0be00a 691 (home-page "https://xmonad.org")
6e38c4be
SB
692 (description
693 "Xmonad is a tiling window manager for X. Windows are arranged
694automatically to tile the screen without gaps or overlap, maximising screen
695use. All features of the window manager are accessible from the keyboard: a
696mouse is strictly optional. Xmonad is written and extensible in Haskell.
697Custom layout algorithms, and other extensions, may be written by the user in
698config files. Layouts are applied dynamically, and different layouts may be
699used on each workspace. Xinerama is fully supported, allowing windows to be
700tiled on several screens.")
0ede252b 701 (license license:bsd-3)))
78edf44c 702
6e864d00
OP
703(define-public xmobar
704 (package
705 (name "xmobar")
ccc960bb 706 (version "0.34")
6e864d00
OP
707 (source (origin
708 (method url-fetch)
709 (uri (string-append "mirror://hackage/package/xmobar/"
079db056 710 "xmobar-" version ".tar.gz"))
6e864d00
OP
711 (sha256
712 (base32
ccc960bb 713 "0x09xbz7y9ay0046j1xpr9jjk5jqivqi06vm3q6mhcrgc4y922rx"))))
6e864d00 714 (build-system haskell-build-system)
800e4fd8
TGR
715 (native-inputs
716 `(("ghc-hspec" ,ghc-hspec)
717 ("hspec-discover" ,hspec-discover)))
6e864d00 718 (inputs
b066ad89
JS
719 `(("ghc-alsa-core" ,ghc-alsa-core)
720 ("ghc-alsa-mixer" ,ghc-alsa-mixer)
721 ("ghc-dbus" ,ghc-dbus)
722 ("ghc-hinotify" ,ghc-hinotify)
d2ea8064 723 ("ghc-http" ,ghc-http)
b066ad89
JS
724 ("ghc-http-conduit" ,ghc-http-conduit)
725 ("ghc-http-types" ,ghc-http-types)
d2ea8064 726 ("ghc-iwlib" ,ghc-iwlib)
b066ad89
JS
727 ("ghc-libmpd" ,ghc-libmpd)
728 ("ghc-old-locale" ,ghc-old-locale)
d877e0d8 729 ("ghc-parsec-numbers" ,ghc-parsec-numbers)
6e864d00 730 ("ghc-regex-compat" ,ghc-regex-compat)
b066ad89
JS
731 ("ghc-temporary" ,ghc-temporary)
732 ("ghc-timezone-olson" ,ghc-timezone-olson)
733 ("ghc-x11" ,ghc-x11)
6e864d00 734 ("ghc-x11-xft" ,ghc-x11-xft)
d2ea8064 735 ("libxpm" ,libxpm)))
6e864d00 736 (arguments
b066ad89
JS
737 `(#:configure-flags (list "--flags=all_extensions")
738 #:phases
739 (modify-phases %standard-phases
740 (add-before 'build 'patch-test-shebang
741 (lambda* (#:key inputs #:allow-other-keys)
742 (substitute* "test/Xmobar/Plugins/Monitors/AlsaSpec.hs"
743 (("/bin/bash") (which "bash")))
744 #t)))))
680e803d 745 (home-page "https://xmobar.org")
6e864d00
OP
746 (synopsis "Minimalistic text based status bar")
747 (description
748 "@code{xmobar} is a lightweight, text-based, status bar written in
749Haskell. It was originally designed to be used together with Xmonad, but it
750is also usable with any other window manager. While xmobar is written in
751Haskell, no knowledge of the language is required to install and use it.")
752 (license license:bsd-3)))
753
9c814c33
EG
754(define-public yeganesh
755 (package
756 (name "yeganesh")
757 (version "2.4")
758 (source
759 (origin
760
761 (method url-fetch)
762 (uri (string-append "http://dmwit.com/yeganesh/yeganesh-" version ".tar.gz"))
763 (sha256
764 (base32 "04djfyjab3c5y9z9x8zd0xcx0jyy35zq7cl9ddr4ppf6k5ky6iky"))))
765 (build-system haskell-build-system)
766 (inputs
767 `(("ghc-strict" ,ghc-strict)
768 ("ghc-xdg-basedir" ,ghc-xdg-basedir)))
769 (home-page "http://dmwit.com/yeganesh/")
770 (synopsis "Small wrapper around dmenu")
771 (description "@code{yeganesh} is a small wrapper around demnu. Like
772dmenu, it accepts input on stdin and writes the chosen result on stdout.
773Unlike dmenu, it mangles the input before it presents its choices. In
774particular, it displays commonly-chosen options before uncommon ones.")
775 (license license:bsd-3)))
776
78edf44c
SB
777(define-public ghc-xmonad-contrib
778 (package
779 (name "ghc-xmonad-contrib")
3cbf3f74 780 (version "0.16")
78edf44c
SB
781 (source
782 (origin
783 (method url-fetch)
966a543b 784 (uri (string-append "mirror://hackage/package/xmonad-contrib/"
78edf44c
SB
785 "xmonad-contrib-" version ".tar.gz"))
786 (sha256
3cbf3f74 787 (base32 "1pddgkvnbww28wykncc7j0yb0lv15bk7xnnhdcbrwkxzw66w6wmd"))))
78edf44c
SB
788 (build-system haskell-build-system)
789 (propagated-inputs
f54f0475 790 `(("ghc-old-time" ,ghc-old-time)
78edf44c
SB
791 ("ghc-random" ,ghc-random)
792 ("ghc-utf8-string" ,ghc-utf8-string)
793 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
b42b5afd 794 ("ghc-semigroups" ,ghc-semigroups)
78edf44c
SB
795 ("ghc-x11" ,ghc-x11)
796 ("ghc-x11-xft" ,ghc-x11-xft)
797 ("xmonad" ,xmonad)))
8c0be00a 798 (home-page "https://xmonad.org")
78edf44c
SB
799 (synopsis "Third party extensions for xmonad")
800 (description
801 "Third party tiling algorithms, configurations, and scripts to Xmonad, a
802tiling window manager for X.")
0ede252b 803 (license license:bsd-3)))
45e10968
EB
804
805(define-public evilwm
806 (package
807 (name "evilwm")
808 (version "1.1.1")
809 (source
810 (origin
811 (method url-fetch)
812 (uri (string-append "http://www.6809.org.uk/evilwm/evilwm-"
813 version ".tar.gz"))
814 (sha256
815 (base32
c595cd47 816 "0ak0yajzk3v4dg5wmaghv6acf7v02a4iw8qxmq5yw5ard8lrqn3r"))
fc1adab1 817 (patches (search-patches "evilwm-lost-focus-bug.patch"))))
45e10968
EB
818 (build-system gnu-build-system)
819 (inputs
820 `(("libx11" ,libx11)
821 ("libxext" ,libxext)
822 ("libxrandr" ,libxrandr)))
823 (arguments
824 `(#:modules ((srfi srfi-26)
825 (guix build utils)
826 (guix build gnu-build-system))
827 #:make-flags (let ((inputs (map (cut assoc-ref %build-inputs <>)
828 '("libx11" "libxext" "libxrandr")))
829 (join (lambda (proc strs)
830 (string-join (map proc strs) " ")))
831 (dash-I (cut string-append "-I" <> "/include"))
832 (dash-L (cut string-append "-L" <> "/lib")))
833 `("desktopfilesdir=$(prefix)/share/xsessions"
834 ,(string-append "prefix=" (assoc-ref %outputs "out"))
835 ,(string-append "CPPFLAGS=" (join dash-I inputs))
836 ,(string-append "LDFLAGS=" (join dash-L inputs))))
837 #:tests? #f ;no tests
838 #:phases (modify-phases %standard-phases
839 (delete 'configure)))) ;no configure script
840 (home-page "http://www.6809.org.uk/evilwm/")
841 (synopsis "Minimalist window manager for the X Window System")
842 (description
843 "evilwm is a minimalist window manager based on aewm, extended to feature
844many keyboard controls with repositioning and maximize toggles, solid window
845drags, snap-to-border support, and virtual desktops.")
0ede252b
DM
846 (license (license:x11-style "file:///README"))))
847
848(define-public fluxbox
849 (package
850 (name "fluxbox")
851 (version "1.3.7")
852 (synopsis "Small and fast window manager")
853 (source (origin
854 (method url-fetch)
de67e922 855 (uri (string-append "mirror://sourceforge/fluxbox/fluxbox/"
0ede252b
DM
856 version "/fluxbox-" version ".tar.xz"))
857 (sha256
858 (base32
859 "1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w"))))
860 (build-system gnu-build-system)
861 (arguments
862 `(#:make-flags '("CPPFLAGS=-U__TIME__") ;ugly, but for reproducibility
863 #:phases
864 (modify-phases %standard-phases
37f7853e
EF
865 (add-after 'install 'install-vim-files
866 (lambda* (#:key outputs #:allow-other-keys)
867 (let* ((out (assoc-ref outputs "out"))
868 (syntax (string-append out "/share/vim/vimfiles/syntax")))
869 (copy-recursively "3rd/vim/vim/syntax" syntax)
870 #t)))
4ee3b309
EF
871 (add-after 'install 'install-xsession
872 (lambda* (#:key outputs #:allow-other-keys)
873 (let* ((out (assoc-ref outputs "out"))
874 (xsessions (string-append out "/share/xsessions")))
875 (mkdir-p xsessions)
876 (call-with-output-file
877 (string-append xsessions "/fluxbox.desktop")
878 (lambda (port)
879 (format port "~
880 [Desktop Entry]~@
881 Name=~a~@
882 Comment=~a~@
883 Exec=~a/bin/startfluxbox~@
884 Type=Application~%" ,name ,synopsis out)))
885 #t))))))
0ede252b
DM
886 (native-inputs
887 `(("pkg-config" ,pkg-config)))
888 (inputs
889 `(("freetype" ,freetype)
890 ("fribidi" ,fribidi)
891 ("imlib2" ,imlib2)
892 ("libx11" ,libx11)
893 ("libxext" ,libxext)
894 ("libxft" ,libxft)
895 ("libxinerama" ,libxinerama)
896 ("libxpm" ,libxpm)
897 ("libxrandr" ,libxrandr)
898 ("libxrender" ,libxrender)))
899 (description "Fluxbox is a window manager. It is light on resources
900and easy to handle yet full of features to make an easy and fast desktop
901experience.")
902 (home-page "http://fluxbox.org/")
903 (license license:expat)))
3d1240aa
CZ
904
905(define-public awesome
906 (package
907 (name "awesome")
c0c1811f 908 (version "4.3")
3d1240aa 909 (source
c0c1811f
NG
910 (origin
911 (method url-fetch)
912 (uri (string-append
913 "https://github.com/awesomeWM/awesome-releases/raw/master/"
914 "awesome-" version ".tar.xz"))
915 (sha256
916 (base32 "0lqpw401mkkmp9wgbvrmm45bqq2j9357l4irwdqv6l1305pls9kq"))
917 (modules '((guix build utils)
918 (srfi srfi-19)))
919 (snippet
920 '(begin
921 ;; Remove non-reproducible timestamp and use the date of
922 ;; the source file instead.
923 (substitute* "common/version.c"
924 (("__DATE__ \" \" __TIME__")
925 (date->string
926 (time-utc->date
927 (make-time time-utc 0 (stat:mtime (stat "awesome.c"))))
928 "\"~c\"")))
929 #t))
930 (patches
931 (search-patches "awesome-reproducible-png.patch"))))
3d1240aa 932 (build-system cmake-build-system)
c0c1811f
NG
933 (native-inputs
934 `(("asciidoc" ,asciidoc)
935 ("docbook-xsl" ,docbook-xsl)
936 ("doxygen" ,doxygen)
937 ("gperf" ,gperf)
938 ("imagemagick" ,imagemagick)
939 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
940 ("lua-ldoc" ,lua-ldoc)
941 ("pkg-config" ,pkg-config)
942 ("xmlto" ,xmlto)))
943 (inputs
944 `(("cairo" ,cairo)
945 ("dbus" ,dbus)
946 ("gdk-pixbuf" ,gdk-pixbuf)
947 ("glib" ,glib)
948 ("gobject-introspection" ,gobject-introspection)
949 ("imlib2" ,imlib2)
950 ("libev" ,libev)
951 ("libxcb" ,libxcb)
952 ("libxcursor" ,libxcursor)
953 ("libxdg-basedir" ,libxdg-basedir)
954 ("libxkbcommon" ,libxkbcommon)
955 ("lua" ,lua)
956 ("lua-lgi" ,lua-lgi)
957 ("pango" ,pango)
958 ("startup-notification" ,startup-notification)
959 ("xcb-util" ,xcb-util)
960 ("xcb-util-cursor" ,xcb-util-cursor)
961 ("xcb-util-image" ,xcb-util-image)
962 ("xcb-util-keysyms" ,xcb-util-keysyms)
963 ("xcb-util-renderutil" ,xcb-util-renderutil)
964 ("xcb-util-xrm" ,xcb-util-xrm)
965 ("xcb-util-wm" ,xcb-util-wm)))
3d1240aa 966 (arguments
c0c1811f
NG
967 `(#:modules ((guix build cmake-build-system)
968 (guix build utils)
969 (ice-9 match))
970 ;; Let compression happen in our 'compress-documentation' phase
971 ;; so that '--no-name' is used, which removes timestamps from
972 ;; gzip output.
973 #:configure-flags
974 '("-DCOMPRESS_MANPAGES=off")
975 ;; Building awesome in its source directory is no longer
976 ;; supported.
db0164b2 977 #:out-of-source? #t
22037a32 978 #:phases
979 (modify-phases %standard-phases
c0c1811f 980 (add-before 'configure 'set-paths
22037a32 981 (lambda* (#:key inputs #:allow-other-keys)
1af5e57d
IK
982 (substitute* "lib/awful/completion.lua"
983 (("/usr/bin/env")
984 ""))
c0c1811f
NG
985 ;; The build process needs to load Cairo dynamically.
986 (let* ((cairo (string-append (assoc-ref inputs "cairo") "/lib"))
987 (lua-version ,(version-major+minor (package-version lua)))
988 (lua-dependencies
989 (filter (match-lambda
990 ((label . _) (string-prefix? "lua-" label)))
991 inputs))
992 (lua-path
993 (string-join
994 (map (match-lambda
995 ((_ . dir)
996 (string-append
997 dir "/share/lua/" lua-version "/?.lua;"
998 dir "/share/lua/" lua-version "/?/?.lua")))
999 lua-dependencies)
1000 ";"))
1001 (lua-cpath
1002 (string-join
1003 (map (match-lambda
1004 ((_ . dir)
1005 (string-append
1006 dir "/lib/lua/" lua-version "/?.so;"
1007 dir "/lib/lua/" lua-version "/?/?.so")))
1008 lua-dependencies)
1009 ";")))
1010 (setenv "LD_LIBRARY_PATH" cairo)
1011 (setenv "LUA_PATH" (string-append "?.lua;" lua-path))
1012 (setenv "LUA_CPATH" lua-cpath)
22037a32 1013 #t)))
1014 (replace 'check
1015 (lambda _
1016 ;; There aren't any tests, so just make sure the binary
1017 ;; gets built and can be run successfully.
b5e70d92 1018 (invoke "../build/awesome" "-v")))
4ec42524
TS
1019 (add-after 'install 'patch-session-file
1020 (lambda* (#:key outputs #:allow-other-keys)
1021 (let* ((out (assoc-ref outputs "out"))
1022 (awesome (string-append out "/bin/awesome")))
1023 (substitute* (string-append out "/share/xsessions/awesome.desktop")
1024 (("Exec=awesome") (string-append "Exec=" awesome)))
1025 #t)))
22037a32 1026 (add-after 'install 'wrap
1027 (lambda* (#:key inputs outputs #:allow-other-keys)
1028 (let* ((awesome (assoc-ref outputs "out"))
c0c1811f
NG
1029 (cairo (string-append (assoc-ref inputs "cairo") "/lib"))
1030 (lua-version ,(version-major+minor (package-version lua)))
1031 (lua-lgi (assoc-ref inputs "lua-lgi")))
22037a32 1032 (wrap-program (string-append awesome "/bin/awesome")
1af5e57d 1033 `("LUA_PATH" ";" suffix
c0c1811f 1034 (,(format #f "~a/share/lua/~a/?.lua" lua-lgi lua-version)))
1af5e57d 1035 `("LUA_CPATH" ";" suffix
c0c1811f 1036 (,(format #f "~a/lib/lua/~a/?.so" lua-lgi lua-version)))
22037a32 1037 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))
c0c1811f
NG
1038 `("LD_LIBRARY_PATH" suffix (,cairo)))
1039 #t))))))
1040 (home-page "https://awesomewm.org/")
3d1240aa
CZ
1041 (synopsis "Highly configurable window manager")
1042 (description
c4dd0def 1043 "Awesome has been designed as a framework window manager. It is fast, small,
1044dynamic and extensible using the Lua programming language.")
c0c1811f 1045 (license license:gpl2+)))
395751c0 1046
1047(define-public menumaker
1048 (package
1049 (name "menumaker")
1c217fc3 1050 (version "0.99.12")
395751c0 1051 (source
1052 (origin
1053 (method url-fetch)
1054 (uri (string-append "mirror://sourceforge/menumaker/"
1055 "menumaker-" version ".tar.gz"))
1056 (sha256
1c217fc3 1057 (base32 "034v5204bsgkzzk6zfa5ia63q95gln47f7hwf96yvad5hrhmd8z3"))))
395751c0 1058 (build-system gnu-build-system)
1059 (inputs
1060 `(("python" ,python)))
1061 (synopsis "Heuristics-driven menu generator")
1062 (description
1063 "MenuMaker is a menu generation utility for a number of X window
1064managers and desktop environments. It is capable of finding lots of
1065installed programs and generating a root menu consistent across all
1066supported window managers, so one will get (almost) the same menu in
1067all of them. Currently supported window managers include:
1068
1069@enumerate
1070@item BlackBox
1071@item Deskmenu
1072@item FluxBox
1073@item IceWM
1074@item OpenBox
1075@item PekWM
1076@item WindowMaker
1077@item XFCE
1078@end enumerate\n")
1079 (home-page "http://menumaker.sourceforge.net/")
1080 (license license:bsd-2)))
dbf544f9 1081
1082(define-public keybinder
1083 (package
1084 (name "keybinder")
1085 (version "0.3.1")
1086 (source
1087 (origin
1088 (method url-fetch)
6d688b6e
TGR
1089 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1090 "/releases/download/v" version "/keybinder-"
dbf544f9 1091 version ".tar.gz"))
1092 (file-name (string-append name "-" version ".tar.gz"))
1093 (sha256
1094 (base32
1095 "0h52hj3ay8mfhwvmfxbxlfyq74hifdk8wxgxp7fr4iy6189hg7w7"))))
1096 (build-system gnu-build-system)
1097 (inputs
1098 `(("python-2" ,python-2)
1099 ("gtk+-2" ,gtk+-2)))
1100 (native-inputs
1101 `(("python2-pygtk" ,python2-pygtk)
1102 ("gtk-doc" ,gtk-doc)
1103 ("pkg-config" ,pkg-config)))
1104 (synopsis "Library for registering global keyboard shortcuts")
1105 (description
1106 "Keybinder is a library for registering global keyboard shortcuts.
1107Keybinder works with GTK-based applications using the X Window System.")
6d688b6e 1108 (home-page "https://github.com/kupferlauncher/keybinder")
dbf544f9 1109 (license license:gpl2+)))
78dfc9e2 1110
8c765a3b
IR
1111(define-public keybinder-3.0
1112 (package
1113 (name "keybinder-3.0")
1114 (version "0.3.2")
1115 (source
1116 (origin
1117 (method url-fetch)
1118 (uri (string-append "https://github.com/kupferlauncher/keybinder"
1119 "/releases/download/" name "-v" version "/" name "-"
1120 version ".tar.gz"))
1121 (file-name (string-append name "-" version ".tar.gz"))
1122 (sha256
1123 (base32
1124 "0830ihwnalw59pp1xzrp37dn58n8vwb8zasnm4a1h81v3x7dxqz6"))))
1125 (build-system gnu-build-system)
1126 (inputs
1127 `(("gtk+" ,gtk+)
1128 ("gobject-introspection" ,gobject-introspection)))
1129 (native-inputs
1130 `(("gtk-doc" ,gtk-doc)
1131 ("pkg-config" ,pkg-config)))
1132 (synopsis "Library for registering global keyboard shortcuts, Gtk3 version")
1133 (description
1134 "Keybinder is a library for registering global keyboard shortcuts.
1135Keybinder works with GTK-based applications using the X Window System.")
1136 (home-page "https://github.com/kupferlauncher/keybinder")
1137 (license license:x11)))
1138
78dfc9e2 1139(define-public spectrwm
1140 (package
1141 (name "spectrwm")
f6c8a97a 1142 (version "3.2.0")
78dfc9e2 1143 (source
1144 (origin
b82bd90c
TGR
1145 (method git-fetch)
1146 (uri (git-reference
b0e7b699 1147 (url "https://github.com/conformal/spectrwm")
b82bd90c
TGR
1148 (commit
1149 (string-append "SPECTRWM_"
1150 (string-join (string-split version #\.) "_")))))
1151 (file-name (git-file-name name version))
78dfc9e2 1152 (sha256
b82bd90c 1153 (base32 "1dfqy5f0s1nv6rqkz9lj006vypmp4rwxd5vczfk3ndzqgnh19kw6"))))
78dfc9e2 1154 (build-system gnu-build-system)
1155 (arguments
1156 `(#:make-flags (let ((pkg-config (lambda (flag)
1157 (string-append
1158 "$(shell pkg-config " flag " "
1159 "xft fontconfig x11 libpng)"))))
1160 (list
1161 "CC=gcc"
1162 (string-append "PREFIX=" %output)
1163 (string-append "INCS=-I. " (pkg-config "--cflags"))
1164 (string-append "LIBS=" (pkg-config "--libs") " -lm")))
f6c8a97a 1165 #:tests? #f ;no test suite
78dfc9e2 1166 #:phases
1167 (modify-phases %standard-phases
1168 (add-before 'build 'change-dir
1169 (lambda _
1170 (chdir "linux") #t))
1171 (add-after 'change-dir 'patch-makefile
1172 (lambda _
1173 (substitute* "Makefile"
1174 (("-g") ""))))
f6c8a97a 1175 (delete 'configure)))) ;no 'configure' exists
78dfc9e2 1176 (inputs
1177 `(("freetype" ,freetype)
1178 ("fontconfig" ,fontconfig)
1179 ("libx11" ,libx11)
1180 ("libxcursor" ,libxcursor)
1181 ("libxrandr" ,libxrandr)
1182 ("libxtst" ,libxtst)
1183 ("libxft" ,libxft)
1184 ("xcb-util" ,xcb-util)
1185 ("xcb-util-wm" ,xcb-util-wm)
1186 ("xcb-util-keysyms" ,xcb-util-keysyms)))
1187 (native-inputs
1188 `(("libxt" ,libxt)
1189 ("pkg-config" ,pkg-config)))
1190 (synopsis "Minimalistic automatic tiling window manager")
1191 (description
1192 "Spectrwm is a small dynamic tiling and reparenting window manager for X11.
1193It is inspired by Xmonad and dwm. Its major features include:
1194
1195@itemize
1196@item Navigation anywhere on all screens with either the keyboard or mouse
1197@item Customizable status bar
1198@item Restartable without losing state
1199@item Quick launch menu
1200@item Many screen layouts possible with a few simple key strokes
1201@item Move/resize floating windows
32008a75
TGR
1202@item Extended Window Manager Hints (@dfn{EWMH}) support
1203@item Configurable tiling
78dfc9e2 1204@item Adjustable tile gap allows for a true one pixel border
1205@item Customizable colors and border width
1206@end itemize\n")
1207 (home-page "https://github.com/conformal/spectrwm")
1208 (license license:isc)))
b4cb9308 1209
1210(define-public cwm
1211 (package
1212 (name "cwm")
16634798 1213 (version "6.7")
b4cb9308 1214 (source
1215 (origin
1216 (method url-fetch)
9593caff 1217 (uri (string-append "https://leahneukirchen.org/releases/cwm-"
b4cb9308 1218 version ".tar.gz"))
1219 (sha256
16634798 1220 (base32 "022zld29qawd8gl700g4m24qa89il3aks397zkhh66wvzssdblzx"))))
b4cb9308 1221 (build-system gnu-build-system)
1222 (arguments
fa50a8bc 1223 `(#:make-flags (list (string-append "CC=" ,(cc-for-target))
b4cb9308 1224 (string-append "PREFIX=" %output))
1225 #:tests? #f
1226 #:phases
1227 (modify-phases %standard-phases
1228 (delete 'configure)
1229 (add-after 'build 'install-xsession
1230 (lambda* (#:key outputs #:allow-other-keys)
1231 ;; Add a .desktop file to xsessions.
1232 (let* ((output (assoc-ref outputs "out"))
1233 (xsessions (string-append output "/share/xsessions")))
1234 (mkdir-p xsessions)
1235 (with-output-to-file
1236 (string-append xsessions "/cwm.desktop")
1237 (lambda _
1238 (format #t
1239 "[Desktop Entry]~@
1240 Name=cwm~@
1241 Comment=OpenBSD Calm Window Manager fork~@
1242 Exec=~a/bin/cwm~@
1243 TryExec=~@*~a/bin/cwm~@
1244 Icon=~@
1245 Type=Application~%"
1246 output)))
1247 #t))))))
1248 (inputs
1249 `(("libxft" ,libxft)
1250 ("libxrandr" ,libxrandr)
1251 ("libxinerama" ,libxinerama)))
1252 (native-inputs
1253 `(("pkg-config" ,pkg-config)
1254 ("bison" ,bison)))
9593caff 1255 (home-page "https://github.com/leahneukirchen/cwm")
b4cb9308 1256 (synopsis "OpenBSD fork of the calmwm window manager")
1257 (description "Cwm is a stacking window manager for X11. It is an OpenBSD
1258project derived from the original Calm Window Manager.")
1259 (license license:isc)))
70024cfa
PAR
1260
1261(define-public nitrogen
1262 (package
1263 (name "nitrogen")
1264 (version "1.6.1")
1265 (source (origin
1266 (method url-fetch)
1267 (uri (string-append "http://github.com/l3ib/nitrogen/"
1268 "releases/download/" version "/"
1269 name "-" version ".tar.gz"))
1270 (sha256
1271 (base32
1272 "0zc3fl1mbhq0iyndy4ysmy8vv5c7xwf54rbgamzfhfvsgdq160pl"))))
1273 (build-system gnu-build-system)
1274 (inputs
1275 `(("gtk+" ,gtk+-2)
1276 ("gtkmm" ,gtkmm-2)
1277 ("glib" ,glib)
1278 ("glibmm" ,glibmm)))
1279 (native-inputs
de99ba7e 1280 `(("pkg-config" ,pkg-config)))
70024cfa
PAR
1281 (home-page "http://projects.l3ib.org/nitrogen/")
1282 (synopsis "Background browser and setter for X windows")
1283 (description
1284 "This package is a background browser and setter for X windows. It's
1285features are:
1286
1287@itemize
1288@item Multihead and Xinerama aware
1289@item Recall mode to used via startup script
1290@item Uses freedesktop.org standard for thumbnails
1291@item Can set GNOME background
1292@item Command lie set modes for script use
1293@item Inotify monitoring of browse directory
1294@item Lazy loading of thumbnails - conserves memory
1295@item \"Automatic\" set mode - determines best mode to set an image based on
1296its size
1297@item Display preview images in a tiled icon layout
1298@end itemize")
1299 (license license:gpl2+)))
d8dcbcc9
MP
1300
1301(define-public polybar
1302 (package
1303 (name "polybar")
99f80e5c 1304 (version "3.4.3")
d8dcbcc9
MP
1305 (source
1306 (origin
1307 (method url-fetch)
44b73520 1308 (uri (string-append "https://github.com/polybar/polybar/releases/"
4b9e4ac7 1309 "download/" version "/polybar-" version ".tar"))
d8dcbcc9 1310 (sha256
99f80e5c 1311 (base32 "0bw22qvbcdvyd0qv3ax48r34rnclbbb6dyb8h8zljq1r3lf15vfl"))))
d8dcbcc9
MP
1312 (build-system cmake-build-system)
1313 (arguments
1314 ;; Test is disabled because it requires downloading googletest from the
1315 ;; Internet.
1316 '(#:tests? #f))
1317 (inputs
1318 `(("alsa-lib" ,alsa-lib)
1319 ("cairo" ,cairo)
1320 ("i3-wm" ,i3-wm)
005c2ccf 1321 ("jsoncpp" ,jsoncpp)
d8dcbcc9
MP
1322 ("libmpdclient" ,libmpdclient)
1323 ("libnl" ,libnl)
1324 ("libxcb" ,libxcb)
1325 ("pulseaudio" ,pulseaudio)
1326 ("xcb-proto" ,xcb-proto)
1327 ("xcb-util" ,xcb-util)
1328 ("xcb-util-cursor" ,xcb-util-cursor)
1329 ("xcb-util-image" ,xcb-util-image)
1330 ("xcb-util-wm" ,xcb-util-wm)
1331 ("xcb-util-xrm" ,xcb-util-xrm)))
1332 (native-inputs
1333 `(("pkg-config" ,pkg-config)
47560aa2 1334 ("python-sphinx" ,python-sphinx) ; for the manual
e2684594
NG
1335 ;; XXX: "python" input must be located after "python-2", or the package
1336 ;; fails to build with "missing required python module: xcbgen".
d8dcbcc9
MP
1337 ("python-2" ,python-2) ; lib/xpp depends on python 2
1338 ("python" ,python))) ; xcb-proto depends on python 3
1339 (home-page "https://polybar.github.io/")
1340 (synopsis "Fast and easy-to-use status bar")
1341 (description "Polybar aims to help users build beautiful and highly
1342customizable status bars for their desktop environment. It has built-in
1343functionality to display information about the most commonly used services.")
1344 (license license:expat)))
eea969cf
RH
1345
1346(define-public wlroots
1347 (package
1348 (name "wlroots")
f5fb52f1 1349 (version "0.12.0")
eea969cf
RH
1350 (source
1351 (origin
1352 (method git-fetch)
1353 (uri (git-reference
b0e7b699 1354 (url "https://github.com/swaywm/wlroots")
eea969cf
RH
1355 (commit version)))
1356 (file-name (git-file-name name version))
1357 (sha256
f5fb52f1 1358 (base32 "01j38lmgs2c6fq68v8b75pkilia2wsgzgp46ivfbi9hhx47kgcfn"))))
eea969cf
RH
1359 (build-system meson-build-system)
1360 (arguments
1361 `(#:configure-flags '("-Dlogind-provider=elogind")
f5fb52f1 1362 #:meson ,meson-0.55
eea969cf
RH
1363 #:phases
1364 (modify-phases %standard-phases
1365 (add-before 'configure 'hardcode-paths
1366 (lambda* (#:key inputs #:allow-other-keys)
f5fb52f1 1367 (substitute* "xwayland/server.c"
eea969cf
RH
1368 (("Xwayland") (string-append (assoc-ref inputs
1369 "xorg-server-xwayland")
1370 "/bin/Xwayland")))
1371 #t)))))
f5fb52f1
MB
1372 (propagated-inputs
1373 `(;; As required by wlroots.pc.
1374 ("elogind" ,elogind)
1375 ("eudev" ,eudev)
1376 ("libinput" ,libinput)
1377 ("libxkbcommon" ,libxkbcommon)
1378 ("mesa" ,mesa)
1379 ("pixman" ,pixman)
1380 ("wayland" ,wayland)
1381 ("xcb-util-errors" ,xcb-util-errors)
1382 ("xcb-util-wm" ,xcb-util-wm)
1383 ("xorg-server-xwayland" ,xorg-server-xwayland)))
1384 (native-inputs
1385 `(("pkg-config" ,pkg-config)
1386 ("wayland-protocols" ,wayland-protocols)))
eea969cf
RH
1387 (home-page "https://github.com/swaywm/wlroots")
1388 (synopsis "Pluggable, composable, unopinionated modules for building a
1389Wayland compositor")
1390 (description "wlroots is a set of pluggable, composable, unopinionated
1391modules for building a Wayland compositor.")
1392 (license license:expat))) ; MIT license
2ff844f0
RH
1393
1394(define-public sway
1395 (package
1396 (name "sway")
7fc378aa 1397 (version "1.5.1")
2ff844f0
RH
1398 (source
1399 (origin
1400 (method git-fetch)
1401 (uri (git-reference
b0e7b699 1402 (url "https://github.com/swaywm/sway")
2ff844f0
RH
1403 (commit version)))
1404 (file-name (git-file-name name version))
1405 (sha256
7fc378aa 1406 (base32 "1xsa3h8zhf29p0mi90baxpr76jkd9pd1gr97ky8cnjbcs4isj9j0"))))
2ff844f0
RH
1407 (build-system meson-build-system)
1408 (arguments
1409 `(#:phases
1410 (modify-phases %standard-phases
1411 (add-before 'configure 'hardcode-paths
1412 (lambda* (#:key inputs #:allow-other-keys)
e23b6a68
MP
1413 ;; Hardcode path to swaybg.
1414 (substitute* "sway/config.c"
1415 (("strdup..swaybg..")
1416 (string-append "strdup(\"" (assoc-ref inputs "swaybg")
1417 "/bin/swaybg\")")))
1418 ;; Hardcode path to scdoc.
2ff844f0
RH
1419 (substitute* "meson.build"
1420 (("scdoc.get_pkgconfig_variable..scdoc..")
1421 (string-append "'" (assoc-ref inputs "scdoc")
1422 "/bin/scdoc'")))
1423 #t)))))
1424 (inputs `(("cairo" ,cairo)
1425 ("elogind" ,elogind)
1426 ("gdk-pixbuf" ,gdk-pixbuf)
1427 ("json-c" ,json-c)
aa07299f 1428 ("libevdev" ,libevdev)
2ff844f0
RH
1429 ("libinput" ,libinput)
1430 ("libxkbcommon" ,libxkbcommon)
1431 ("pango" ,pango)
e23b6a68 1432 ("swaybg" ,swaybg)
2ff844f0
RH
1433 ("wayland" ,wayland)
1434 ("wlroots" ,wlroots)))
7fc378aa
MB
1435 (native-inputs
1436 `(("linux-pam" ,linux-pam)
1437 ("mesa" ,mesa)
1438 ("pkg-config" ,pkg-config)
1439 ("scdoc" ,scdoc)
1440 ("wayland-protocols" ,wayland-protocols)))
2ff844f0
RH
1441 (home-page "https://github.com/swaywm/sway")
1442 (synopsis "Wayland compositor compatible with i3")
1443 (description "Sway is a i3-compatible Wayland compositor.")
7fc378aa 1444 (license license:expat)))
06ae5efc
RH
1445
1446(define-public swayidle
1447 (package
1448 (name "swayidle")
53d8e2c6 1449 (version "1.6")
06ae5efc
RH
1450 (source
1451 (origin
1452 (method git-fetch)
1453 (uri (git-reference
b0e7b699 1454 (url "https://github.com/swaywm/swayidle")
06ae5efc
RH
1455 (commit version)))
1456 (file-name (git-file-name name version))
1457 (sha256
53d8e2c6 1458 (base32 "1nd3v8r9549lykdwh4krldfl59lzaspmmai5k1icy7dvi6kkr18r"))))
06ae5efc 1459 (build-system meson-build-system)
ddd401d2
MP
1460 (arguments
1461 `(#:configure-flags '("-Dlogind-provider=elogind")))
1462 (inputs `(("elogind" ,elogind)
1463 ("wayland" ,wayland)))
06ae5efc
RH
1464 (native-inputs `(("pkg-config" ,pkg-config)
1465 ("scdoc" ,scdoc)
1466 ("wayland-protocols" ,wayland-protocols)))
1467 (home-page "https://github.com/swaywm/sway")
1468 (synopsis "Idle management daemon for Wayland compositors")
1469 (description "Swayidle is a idle management daemon for Wayland compositors.")
1470 (license license:expat))) ; MIT license
b0805973
RH
1471
1472(define-public swaylock
1473 (package
1474 (name "swaylock")
75d31a4c 1475 (version "1.5")
b0805973
RH
1476 (source
1477 (origin
1478 (method git-fetch)
1479 (uri (git-reference
b0e7b699 1480 (url "https://github.com/swaywm/swaylock")
b0805973
RH
1481 (commit version)))
1482 (file-name (git-file-name name version))
1483 (sha256
75d31a4c 1484 (base32 "0r95p4w11dwm5ra614vddz83r8j7z6gd120z2vcchy7m9b0f15kf"))))
b0805973
RH
1485 (build-system meson-build-system)
1486 (inputs `(("cairo" ,cairo)
1487 ("gdk-pixbuf" ,gdk-pixbuf)
1488 ("libxkbcommon" ,libxkbcommon)
1489 ;("linux-pam" ,linux-pam) ; FIXME: Doesn't work.
1490 ("wayland" ,wayland)))
bc552a0c 1491 (native-inputs `(("pango" ,pango)
b0805973
RH
1492 ("pkg-config" ,pkg-config)
1493 ("scdoc" ,scdoc)
1494 ("wayland-protocols" ,wayland-protocols)))
1495 (home-page "https://github.com/swaywm/sway")
1496 (synopsis "Screen locking utility for Wayland compositors")
1497 (description "Swaylock is a screen locking utility for Wayland compositors.")
1498 (license license:expat))) ; MIT license
bedb3457
SS
1499
1500(define-public swaybg
1501 (package
1502 (name "swaybg")
1503 (version "1.0")
1504 (source
1505 (origin
1506 (method git-fetch)
1507 (uri (git-reference
b0e7b699 1508 (url "https://github.com/swaywm/swaybg")
bedb3457
SS
1509 (commit version)))
1510 (file-name (git-file-name name version))
1511 (sha256
1512 (base32 "1lmqz5bmig90gq2m7lwf02d2g7z4hzf8fhqz78c8vk92c6p4xwbc"))))
1513 (build-system meson-build-system)
1514 (inputs `(("cairo" ,cairo)
1515 ("gdk-pixbuf" ,gdk-pixbuf)
1516 ("wayland" ,wayland)))
3e295e8d 1517 (native-inputs `(("pkg-config" ,pkg-config)
bedb3457
SS
1518 ("scdoc" ,scdoc)
1519 ("wayland-protocols" ,wayland-protocols)))
1520 (home-page "https://github.com/swaywm/sway")
1521 (synopsis "Screen wallpaper utility for Wayland compositors")
1522 (description "Swaybg is a wallpaper utility for Wayland compositors.")
1523 (license license:expat))) ; MIT license
7a1d6a77
GB
1524
1525(define-public waybar
1526 (package
1527 (name "waybar")
08014aed 1528 (version "0.9.4")
7a1d6a77
GB
1529 (source
1530 (origin
1531 (method git-fetch)
1532 (uri (git-reference
b0e7b699 1533 (url "https://github.com/Alexays/Waybar")
7a1d6a77
GB
1534 (commit version)))
1535 (file-name (git-file-name name version))
1536 (sha256
08014aed 1537 (base32 "038vnma7y7z81caywp45yr364bc1aq8d01j5vycyiyfv33nm76fy"))))
7a1d6a77 1538 (build-system meson-build-system)
5e78a87b 1539 (inputs `(("date" ,date)
a8360892 1540 ("fmt" ,fmt-6)
5e78a87b 1541 ("gtk-layer-shell" ,gtk-layer-shell)
7a1d6a77
GB
1542 ("gtkmm" ,gtkmm)
1543 ("jsoncpp" ,jsoncpp)
de2d14f2 1544 ("libdbusmenu" ,libdbusmenu)
7a1d6a77 1545 ("libinput" ,libinput)
de2d14f2
GB
1546 ("libmpdclent" ,libmpdclient)
1547 ("libnl" ,libnl)
1548 ("pulseaudio" ,pulseaudio)
8bcbbda0 1549 ("spdlog" ,spdlog-1.7)
7a1d6a77 1550 ("wayland" ,wayland)))
80817888
TGR
1551 (native-inputs
1552 `(("gcc" ,gcc-8) ; for #include <filesystem>
1553 ("glib:bin" ,glib "bin")
1554 ("pkg-config" ,pkg-config)
56c39a07 1555 ("scdoc" ,scdoc)
80817888 1556 ("wayland-protocols" ,wayland-protocols)))
7a1d6a77 1557 (home-page "https://github.com/Alexays/Waybar")
5e78a87b 1558 (synopsis "Wayland bar for Sway and Wlroots based compositors")
7a1d6a77
GB
1559 (description "Waybar is a highly customisable Wayland bar for Sway and
1560Wlroots based compositors.")
1561 (license license:expat))) ; MIT license
f49746c3
RS
1562
1563(define-public wlr-randr
1564 (package
1565 (name "wlr-randr")
1566 (version "0.1.0")
1567 (source
1568 (origin
1569 (method git-fetch)
1570 (uri (git-reference
1571 (url "https://github.com/emersion/wlr-randr")
1572 (commit (string-append "v" version))))
1573 (file-name (git-file-name name version))
1574 (sha256
1575 (base32 "10c8zzp78s5bw34vvjhilipa28bsdx3jbyhnxgp8f8kawh3cvgsc"))))
1576 (build-system meson-build-system)
1577 (inputs `(("wayland" ,wayland)))
1578 (native-inputs `(("pkg-config" ,pkg-config)))
1579 (home-page "https://github.com/emersion/wlr-randr")
1580 (synopsis "Utility to manage Wayland compositor outputs")
1581 (description "wlr-randr is a utility to manage outputs of a Wayland compositor.")
1582 (license license:expat))) ; MIT license
46dc940c
GB
1583
1584(define-public mako
1585 (package
1586 (name "mako")
9ca38df7 1587 (version "1.4.1")
46dc940c
GB
1588 (source
1589 (origin
1590 (method git-fetch)
1591 (uri (git-reference
b0e7b699 1592 (url "https://github.com/emersion/mako")
46dc940c
GB
1593 (commit (string-append "v" version))))
1594 (file-name (git-file-name name version))
1595 (sha256
9ca38df7 1596 (base32 "0hwvibpnrximb628w9dsfjpi30b5jy7nfkm4d94z5vhp78p43vxh"))))
46dc940c
GB
1597 (build-system meson-build-system)
1598 (inputs `(("cairo" ,cairo)
1599 ("elogind" ,elogind)
1600 ("gdk-pixbuf" ,gdk-pixbuf)
1601 ("pango" ,pango)
1602 ("wayland" ,wayland)))
1603 (native-inputs `(("pkg-config" ,pkg-config)
1604 ("scdoc" ,scdoc)
1605 ("wayland-protocols" ,wayland-protocols)))
1606 (home-page "https://wayland.emersion.fr/mako")
1607 (synopsis "Lightweight Wayland notification daemon")
1608 (description "Mako is a lightweight notification daemon for Wayland
1609compositors that support the layer-shell protocol.")
33859202
RS
1610 (license license:expat))) ; MIT license
1611
1612(define-public kanshi
1613 (package
1614 (name "kanshi")
1615 (version "1.1.0")
1616 (source
1617 (origin
1618 (method git-fetch)
1619 (uri (git-reference
1620 (url "https://github.com/emersion/kanshi")
1621 (commit (string-append "v" version))))
1622 (file-name (git-file-name name version))
1623 (sha256
1624 (base32 "0nbpgm8qnn7ljsg9vgs35kl8l4rrk542vdcbx8wrn9r909ld3x92"))))
1625 (build-system meson-build-system)
1626 (inputs `(("wayland" ,wayland)))
1627 (native-inputs `(("pkg-config" ,pkg-config)
1628 ("scdoc" ,scdoc)))
1629 (home-page "https://wayland.emersion.fr/kanshi")
1630 (synopsis "Hotswappable output profiles for Wayland")
1631 (description "Kanshi allows you to define output profiles that are
1632automatically enabled and disabled on hotplug. Kanshi can be used with
1633Wayland compositors supporting the wlr-output-management protocol.")
46dc940c 1634 (license license:expat))) ; MIT license
88f06fd0
PN
1635
1636(define-public stumpwm
1637 (package
1638 (name "stumpwm")
dfb85d1e 1639 (version "20.11")
88f06fd0
PN
1640 (source
1641 (origin
1642 (method git-fetch)
1643 (uri (git-reference
b0e7b699 1644 (url "https://github.com/stumpwm/stumpwm")
88f06fd0
PN
1645 (commit version)))
1646 (file-name (git-file-name "stumpwm" version))
1647 (sha256
dfb85d1e 1648 (base32 "1ghs6ihvmb3bz4q4ys1d3h6rdi96xyiw7l2ip7jh54c25049aymf"))))
88f06fd0
PN
1649 (build-system asdf-build-system/sbcl)
1650 (native-inputs `(("fiasco" ,sbcl-fiasco)
afed1b94
TGR
1651 ("texinfo" ,texinfo)
1652
1653 ;; To build the manual.
1654 ("autoconf" ,autoconf)
1655 ("automake" ,automake)))
88f06fd0
PN
1656 (inputs `(("cl-ppcre" ,sbcl-cl-ppcre)
1657 ("clx" ,sbcl-clx)
1658 ("alexandria" ,sbcl-alexandria)))
1659 (outputs '("out" "lib"))
1660 (arguments
2ff8b5ba 1661 '(#:asd-systems '("stumpwm")
88f06fd0
PN
1662 #:phases
1663 (modify-phases %standard-phases
2ff8b5ba 1664 (add-after 'create-asdf-configuration 'build-program
88f06fd0
PN
1665 (lambda* (#:key outputs #:allow-other-keys)
1666 (build-program
1667 (string-append (assoc-ref outputs "out") "/bin/stumpwm")
1668 outputs
1669 #:entry-program '((stumpwm:stumpwm) 0))))
1670 (add-after 'build-program 'create-desktop-file
1671 (lambda* (#:key outputs #:allow-other-keys)
1672 (let* ((out (assoc-ref outputs "out"))
1673 (xsessions (string-append out "/share/xsessions")))
1674 (mkdir-p xsessions)
1675 (call-with-output-file
1676 (string-append xsessions "/stumpwm.desktop")
1677 (lambda (file)
1678 (format file
1679 "[Desktop Entry]~@
1680 Name=stumpwm~@
1681 Comment=The Stump Window Manager~@
1682 Exec=~a/bin/stumpwm~@
1683 TryExec=~@*~a/bin/stumpwm~@
1684 Icon=~@
1685 Type=Application~%"
1686 out)))
1687 #t)))
1688 (add-after 'install 'install-manual
afed1b94 1689 (lambda* (#:key (make-flags '()) outputs #:allow-other-keys)
88f06fd0
PN
1690 (let* ((out (assoc-ref outputs "out"))
1691 (info (string-append out "/share/info")))
afed1b94
TGR
1692 (invoke "./autogen.sh")
1693 (invoke "sh" "./configure" "SHELL=sh")
1694 (apply invoke "make" "stumpwm.info" make-flags)
88f06fd0
PN
1695 (install-file "stumpwm.info" info)
1696 #t))))))
1697 (synopsis "Window manager written in Common Lisp")
1698 (description "Stumpwm is a window manager written entirely in Common Lisp.
1699It attempts to be highly customizable while relying entirely on the keyboard
1700for input. These design decisions reflect the growing popularity of
1701productive, customizable lisp based systems.")
1702 (home-page "https://github.com/stumpwm/stumpwm")
1703 (license license:gpl2+)
1704 (properties `((cl-source-variant . ,(delay cl-stumpwm))))))
1705
1706(define-public sbcl-stumpwm
1707 (deprecated-package "sbcl-stumpwm" stumpwm))
1708
1709(define-public cl-stumpwm
1710 (package
1711 (inherit (sbcl-package->cl-source-package stumpwm))
1712 (name "cl-stumpwm")))
1713
1714(define-public stumpwm+slynk
1715 (package
1716 (inherit stumpwm)
1717 (name "stumpwm-with-slynk")
1718 (outputs '("out"))
1719 (inputs
1720 `(("stumpwm" ,stumpwm "lib")
1721 ("slynk" ,sbcl-slynk)))
1722 (arguments
1723 (substitute-keyword-arguments (package-arguments stumpwm)
1724 ((#:phases phases)
1725 `(modify-phases ,phases
1726 (replace 'build-program
1727 (lambda* (#:key inputs outputs #:allow-other-keys)
1728 (let* ((out (assoc-ref outputs "out"))
1729 (program (string-append out "/bin/stumpwm")))
3138e4a7 1730 (setenv "HOME" "/tmp")
88f06fd0
PN
1731 (build-program program outputs
1732 #:entry-program '((stumpwm:stumpwm) 0)
2ff8b5ba 1733 #:dependencies '("stumpwm" "slynk")
88f06fd0
PN
1734 #:dependency-prefixes
1735 (map (lambda (input) (assoc-ref inputs input))
1736 '("stumpwm" "slynk")))
88f06fd0
PN
1737 #t)))
1738 (delete 'copy-source)
1739 (delete 'build)
1740 (delete 'check)
2ff8b5ba 1741 (delete 'cleanup)))))))
88f06fd0 1742
81b045e1
KCB
1743(define stumpwm-contrib
1744 (let ((commit "920f8fc1488f7953f205e1dda4c2ecbbbda56d63")
8b2a637d 1745 (revision "2"))
9a12243c 1746 (package
81b045e1 1747 (name "stumpwm-contrib")
9a12243c
OP
1748 (version (git-version "0.0.1" revision commit)) ;no upstream release
1749 (source
1750 (origin
1751 (method git-fetch)
1752 (uri (git-reference
b0e7b699 1753 (url "https://github.com/stumpwm/stumpwm-contrib")
9a12243c 1754 (commit commit)))
b9e1fc2f 1755 (file-name (git-file-name name version))
9a12243c 1756 (sha256
8b2a637d 1757 (base32 "0giac390bq95ag41xkxqp8jjrhfx1wpgglz7jg5rkm0wjhcwmyml"))))
81b045e1 1758 (build-system asdf-build-system/sbcl)
9a12243c 1759 (inputs
81b045e1 1760 `(("stumpwm" ,stumpwm "lib")))
9a12243c
OP
1761 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1762 (synopsis "StumpWM interactive shell")
1763 (description "This package provides a StumpWM interactive shell.")
1764 (license (list license:gpl2+ license:gpl3+ license:bsd-2)))))
1765
81b045e1
KCB
1766(define-public stumpish
1767 (package
1768 (inherit stumpwm-contrib)
1769 (name "stumpish")
1770 (inputs
1771 `(("bash" ,bash)
48b00a4c
MR
1772 ("rlwrap" ,rlwrap)
1773 ("xprop" ,xprop)))
81b045e1
KCB
1774 (build-system trivial-build-system)
1775 (arguments
1776 '(#:modules ((guix build utils))
81b045e1
KCB
1777 #:builder
1778 (begin
1779 (use-modules (guix build utils))
1780 (copy-recursively (assoc-ref %build-inputs "source") ".")
1781 (chdir "util/stumpish")
1782 (substitute* "stumpish"
1783 (("rlwrap") (string-append (assoc-ref %build-inputs "rlwrap")
1784 "/bin/rlwrap"))
48b00a4c
MR
1785 (("xprop") (string-append (assoc-ref %build-inputs "xprop")
1786 "/bin/xprop"))
81b045e1
KCB
1787 (("/bin/sh") (string-append (assoc-ref %build-inputs "bash")
1788 "/bin/bash")))
1789 (install-file "stumpish" (string-append %output "/bin")))))
1790 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1791 (synopsis "StumpWM interactive shell")
1792 (description "This package provides a StumpWM interactive shell.")
1793 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
1794
88f06fd0
PN
1795(define-public sbcl-stumpwm+slynk
1796 (deprecated-package "sbcl-stumpwm-with-slynk" stumpwm+slynk))
d4145638 1797
65051fdc 1798(define-public sbcl-stumpwm-ttf-fonts
81b045e1
KCB
1799 (package
1800 (inherit stumpwm-contrib)
1801 (name "sbcl-stumpwm-ttf-fonts")
1802 (inputs
1803 `(("stumpwm" ,stumpwm "lib")
1804 ("clx-truetype" ,sbcl-clx-truetype)))
1805 (arguments
2ff8b5ba 1806 '(#:asd-systems '("ttf-fonts")
81b045e1
KCB
1807 #:tests? #f
1808 #:phases
1809 (modify-phases %standard-phases
1810 (add-after 'unpack 'chdir
1811 (lambda _ (chdir "util/ttf-fonts") #t)))))
1812 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1813 (synopsis "Implementation of TTF font rendering for Lisp")
1814 (description "This package provides a Lisp implementation of TTF font
65051fdc 1815rendering.")
81b045e1 1816 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
65051fdc 1817
fd65311c 1818(define-public sbcl-stumpwm-pass
81b045e1
KCB
1819 (package
1820 (inherit stumpwm-contrib)
1821 (name "sbcl-stumpwm-pass")
1822 (arguments
2ff8b5ba 1823 '(#:asd-systems '("pass")
81b045e1
KCB
1824 #:tests? #f
1825 #:phases
1826 (modify-phases %standard-phases
1827 (add-after 'unpack 'chdir
1828 (lambda _ (chdir "util/pass") #t)))))
1829 (home-page "https://github.com/stumpwm/stumpwm-contrib")
4a1e3610 1830 (synopsis "Integrate @code{pass} with StumpWM")
81b045e1 1831 (description "This package provides an interface which integrates
fd65311c 1832password-store into StumpWM.")
81b045e1 1833 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
fd65311c 1834
396eb9e1 1835(define-public sbcl-stumpwm-globalwindows
81b045e1
KCB
1836 (package
1837 (inherit stumpwm-contrib)
1838 (name "sbcl-stumpwm-globalwindows")
1839 (arguments
2ff8b5ba 1840 '(#:asd-systems '("globalwindows")
81b045e1
KCB
1841 #:tests? #f
1842 #:phases
1843 (modify-phases %standard-phases
1844 (add-after 'unpack 'chdir
1845 (lambda _ (chdir "util/globalwindows") #t)))))
1846 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1847 (synopsis "Manipulate all windows in the current X session")
1848 (description "This package provides a StumpWM module to manipulate all
396eb9e1 1849windows in the current X session.")
81b045e1 1850 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
396eb9e1 1851
693d0fff 1852(define-public sbcl-stumpwm-swm-gaps
81b045e1
KCB
1853 (package
1854 (inherit stumpwm-contrib)
1855 (name "sbcl-stumpwm-swm-gaps")
1856 (arguments
2ff8b5ba 1857 '(#:asd-systems '("swm-gaps")
81b045e1
KCB
1858 #:tests? #f
1859 #:phases
1860 (modify-phases %standard-phases
1861 (add-after 'unpack 'chdir
1862 (lambda _ (chdir "util/swm-gaps") #t)))))
1863 (home-page "https://github.com/stumpwm/stumpwm-contrib")
1864 (synopsis "Gaps between windows for StumpWM")
1865 (description "This package provides a StumpWM module which adds gaps
693d0fff 1866between windows.")
81b045e1 1867 (license (list license:gpl2+ license:gpl3+ license:bsd-2))))
693d0fff 1868
ea94e4d3
KCB
1869(define-public sbcl-stumpwm-net
1870 (package
1871 (inherit stumpwm-contrib)
1872 (name "sbcl-stumpwm-net")
1873 (arguments
2ff8b5ba 1874 '(#:asd-systems '("net")
ea94e4d3
KCB
1875 #:tests? #f
1876 #:phases
1877 (modify-phases %standard-phases
1878 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/net") #t)))))
1879 (home-page
1880 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/net")
1881 (synopsis "Modeline support for network connectivity")
1882 (description "Modeline support for network connectivity.")
1883 (supported-systems
1884 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1885 (license license:gpl3+)))
1886
86ee8d15
KCB
1887(define-public sbcl-stumpwm-wifi
1888 (package
1889 (inherit stumpwm-contrib)
1890 (name "sbcl-stumpwm-wifi")
1891 (arguments
2ff8b5ba 1892 '(#:asd-systems '("wifi")
86ee8d15
KCB
1893 #:tests? #f
1894 #:phases
1895 (modify-phases %standard-phases
1896 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/wifi") #t)))))
1897 (home-page
1898 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/wifi")
1899 (synopsis "Modeline support for wifi connectivity")
1900 (description "Modeline support for wifi connectivity.")
1901 (supported-systems
1902 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1903 (license license:gpl3+)))
1904
1afe58e4
KCB
1905(define-public sbcl-stumpwm-stumptray
1906 (package
1907 (inherit stumpwm-contrib)
1908 (name "sbcl-stumpwm-stumptray")
1909 (arguments
2ff8b5ba 1910 '(#:asd-systems '("stumptray")
1afe58e4
KCB
1911 #:tests? #f
1912 #:phases
1913 (modify-phases %standard-phases
1914 (add-after 'unpack 'chdir (lambda _ (chdir "modeline/stumptray") #t)))))
1915 (inputs
1916 `(("stumpwm" ,stumpwm "lib")
1917 ("xembed" ,sbcl-clx-xembed)
1918 ("alexandria" ,sbcl-alexandria)))
1919 (home-page
1920 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/stumptray")
1921 (synopsis "Modeline support for stumptray connectivity")
1922 (description "Modeline support for stumptray connectivity.")
1923 (supported-systems
1924 (filter (lambda (a) (string-contains a "linux")) %supported-systems))
1925 (license license:gpl3+)))
1926
b70e612b
KCB
1927(define-public sbcl-stumpwm-kbd-layouts
1928 (package
1929 (inherit stumpwm-contrib)
1930 (name "sbcl-stumpwm-kbd-layouts")
1931 (arguments
2ff8b5ba 1932 '(#:asd-systems '("kbd-layouts")
b70e612b
KCB
1933 #:tests? #f
1934 #:phases
1935 (modify-phases %standard-phases
1936 (add-after 'unpack 'chdir (lambda _ (chdir "util/kbd-layouts") #t)))))
1937 (home-page
1938 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/kbd-layouts")
1939 (synopsis "Keyboard layout switcher for StumpWM")
1940 (description "Keyboard layout switcher for StumpWM")
1941 (license license:gpl3+)))
1942
680102aa
GLV
1943(define-public sbcl-stumpwm-numpad-layouts
1944 (package
1945 (inherit stumpwm-contrib)
1946 (name "sbcl-stumpwm-numpad-layouts")
1947 (arguments
1948 '(#:asd-systems '("numpad-layouts")
1949 #:tests? #f
1950 #:phases
1951 (modify-phases %standard-phases
1952 (add-after 'unpack 'chdir
1953 (lambda _
1954 (chdir "util/numpad-layouts"))))))
1955 (home-page
1956 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/numpad-layouts")
1957 (synopsis "Keyboard numpad layouts for StumpWM")
1958 (description "This is a module for handling different keyboards numpad
1959layouts in StumpWM.")
1960 (license license:gpl3+)))
1961
fba3e9e2
GLV
1962(define-public sbcl-stumpwm-cpu
1963 (package
1964 (inherit stumpwm-contrib)
1965 (name "sbcl-stumpwm-cpu")
1966 (arguments
1967 '(#:asd-systems '("cpu")
1968 #:tests? #f
1969 #:phases
1970 (modify-phases %standard-phases
1971 (add-after 'unpack 'chdir
1972 (lambda _
1973 (chdir "modeline/cpu"))))))
1974 (home-page
1975 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/cpu")
1976 (synopsis "Modeline support for CPU info")
1977 (description "Modeline support for CPU info.")
1978 (license license:gpl3+)))
1979
52828db0
GLV
1980(define-public sbcl-stumpwm-mem
1981 (package
1982 (inherit stumpwm-contrib)
1983 (name "sbcl-stumpwm-mem")
1984 (arguments
1985 '(#:asd-systems '("mem")
1986 #:tests? #f
1987 #:phases
1988 (modify-phases %standard-phases
1989 (add-after 'unpack 'chdir
1990 (lambda _
1991 (chdir "modeline/mem"))))))
1992 (home-page
1993 "https://github.com/stumpwm/stumpwm-contrib/tree/master/modeline/mem")
1994 (synopsis "Modeline support for memory info")
1995 (description "Modeline support for memory info.")
1996 (license license:gpl3+)))
1997
f6c827c1
GLV
1998(define-public sbcl-stumpwm-winner-mode
1999 (package
2000 (inherit stumpwm-contrib)
2001 (name "sbcl-stumpwm-winner-mode")
2002 (arguments
2003 '(#:asd-systems '("winner-mode")
2004 #:tests? #f
2005 #:phases
2006 (modify-phases %standard-phases
2007 (add-after 'unpack 'chdir
2008 (lambda _
2009 (chdir "util/winner-mode"))))))
2010 (home-page
2011 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/winner-mode")
2012 (synopsis "Emacs' winner-mode for StumpWM")
2013 (description "This module provides a winner-mode for StumpWM similar to the
2014one in Emacs.")
2015 (license license:gpl3+)))
2016
275fcffc
GLV
2017(define-public sbcl-stumpwm-screenshot
2018 (package
2019 (inherit stumpwm-contrib)
2020 (name "sbcl-stumpwm-screenshot")
2021 (inputs
2022 `(("stumpwm" ,stumpwm "lib")
2023 ("zpng" ,sbcl-zpng)))
2024 (arguments
2025 '(#:asd-systems '("screenshot")
2026 #:tests? #f
2027 #:phases
2028 (modify-phases %standard-phases
2029 (add-after 'unpack 'chdir
2030 (lambda _
2031 (chdir "util/screenshot")))
2032 (add-after 'chdir 'fix-build
2033 (lambda _
2034 (substitute* "screenshot.asd"
2035 (("#:zpng")
2036 "#:stumpwm #:zpng")))))))
2037 (home-page
2038 "https://github.com/stumpwm/stumpwm-contrib/tree/master/util/screenshot")
2039 (synopsis "Screenshots for StumpWM")
2040 (description "This StumpWM module can take screenshots and store them as
2041PNG files.")
2042 (license license:gpl3+)))
2043
d4145638
N
2044(define-public lemonbar
2045 (let ((commit "35183ab81d2128dbb7b6d8e119cc57846bcefdb4")
2046 (revision "1"))
2047 (package
2048 (name "lemonbar")
2049 (version (git-version "1.3" revision commit))
2050 (source (origin
2051 (method git-fetch)
2052 (uri (git-reference
2053 (url "https://github.com/LemonBoy/bar")
2054 (commit commit)))
2055 (file-name (git-file-name name version))
2056 (sha256
2057 (base32
2058 "1wwqbph392iwz8skaqxb0xpklb1l6yganqz80g4x1fhrnz7idmlh"))))
2059 (build-system gnu-build-system)
2060 (arguments
6978cb28
TGR
2061 `(#:tests? #f ; no test suite
2062 #:make-flags
2063 (list ,(string-append "CC=" (cc-for-target))
2064 (string-append "PREFIX=" %output))
d4145638
N
2065 #:phases
2066 (modify-phases %standard-phases
2067 (delete 'configure))))
2068 (inputs
2069 `(("libxcb" ,libxcb)))
2070 (native-inputs
2071 `(("perl" ,perl)))
2072 (home-page "https://github.com/LemonBoy/bar")
2073 (synopsis "Featherweight status bar")
2074 (description
2075 "@code{lemonbar} (formerly known as @code{bar}) is a lightweight
2076bar entirely based on XCB. Provides full UTF-8 support, basic
2077formatting, RandR and Xinerama support and EWMH compliance without
2078wasting your precious memory.")
2079 (license license:x11))))
ab751d53 2080
8e2aad26 2081(define-public lemonbar-xft
2082 ;; Upstream v2.0 tag is several years behind HEAD
2083 (let ((commit "481e12363e2a0fe0ddd2176a8e003392be90ed02"))
2084 (package
2085 (inherit lemonbar)
2086 (name "lemonbar-xft")
2087 (version (string-append "2.0." (string-take commit 7)))
2088 (source (origin
2089 (method git-fetch)
2090 (uri (git-reference
2091 (url "https://github.com/drscream/lemonbar-xft")
2092 (commit commit)))
2093 (file-name (git-file-name name version))
2094 (sha256
2095 (base32
2096 "0588g37h18lv50h7w8vfbwhvc3iajh7sdr53848spaif99nh3mh4"))))
2097 (inputs
2098 `(("freetype" ,freetype)
2099 ("libxft" ,libxft)
2100 ("libx11" ,libx11)
2101 ,@(package-inputs lemonbar)))
2102 (arguments
2103 (substitute-keyword-arguments (package-arguments lemonbar)
2104 ((#:make-flags make-flags)
2105 `(append
2106 ,make-flags
2107 (list (string-append
2108 "CFLAGS="
2109 (string-join
2110 (list (string-append
2111 "-I" (assoc-ref %build-inputs "freetype")
2112 "/include/freetype2")
2113 (string-append
2114 "-D" "VERSION="
2115 (format #f "'~s'" ,version))))))))))
2116 (home-page "https://github.com/drscream/lemonbar-xft")
2117 (synopsis
2118 (string-append
2119 (package-synopsis lemonbar)
2120 " with fontconfig support"))
2121 (description
2122 (string-append
2123 (package-description lemonbar)
2124 "This is a fork of the @code{lemonbar} package that adds fontconfig
2125support, for easier unicode usage.")))))
2126
ab751d53 2127(define-public xclickroot
8ff16233
OP
2128 (package
2129 (name "xclickroot")
2130 (version "1.2")
2131 (source (origin
2132 (method git-fetch)
2133 (uri (git-reference
2134 (url "https://github.com/phillbush/xclickroot")
2135 (commit (string-append "v" version))))
2136 (file-name (git-file-name name version))
2137 (sha256
2138 (base32
2139 "1nd5qz0qz5j7gx2jsbcp234giwaa0xmg42vrcjrcf587q9ivakfl"))))
2140 (build-system gnu-build-system)
2141 (inputs
2142 `(("libx11" ,libx11)))
2143 (arguments
2144 `(#:tests? #f ;no test suite
2145 #:make-flags
2146 (list ,(string-append "CC=" (cc-for-target))
2147 (string-append "PREFIX=" %output))
2148 #:phases
2149 (modify-phases %standard-phases
2150 (delete 'configure))))
2151 (home-page "https://github.com/phillbush/xclickroot")
2152 (synopsis "Run a command when a mouse button is pressed on the root window")
2153 (description "@code{xclickroot} runs a command every time a given mouse
ab751d53 2154button is pressed on the root window.")
8ff16233 2155 (license license:public-domain)))
6bd6b123
OP
2156
2157(define-public xmenu
2158 (package
2159 (name "xmenu")
bf822521 2160 (version "4.4.1")
6bd6b123
OP
2161 (source (origin
2162 (method git-fetch)
2163 (uri (git-reference
2164 (url "https://github.com/phillbush/xmenu")
2165 (commit (string-append "v" version))))
2166 (file-name (git-file-name name version))
2167 (sha256
2168 (base32
bf822521 2169 "1s70zvsaqnsjqs298vw3py0vcvia68xlks1wcz37pb88bwligz1x"))))
6bd6b123
OP
2170 (build-system gnu-build-system)
2171 (inputs
2172 `(("libx11" ,libx11)
bf822521 2173 ("libxinerama" ,libxinerama)
6bd6b123
OP
2174 ("libxft" ,libxft)
2175 ("freetype" ,freetype)
2176 ("imlib2" ,imlib2)))
2177 (arguments
2178 `(#:tests? #f ;no test suite
2179 #:make-flags
2180 (list (string-append "CC=" ,(cc-for-target))
2181 (string-append "PREFIX=" %output)
2182 (string-append "CFLAGS="
2183 "-I" (assoc-ref %build-inputs "freetype")
2184 "/include/freetype2"))
2185 #:phases
2186 (modify-phases %standard-phases
2187 (delete 'configure))))
2188 (home-page "https://github.com/phillbush/xmenu")
2189 (synopsis "Menu utility for X")
2190 (description "@code{xmenu} receives a menu specification in stdin, shows
2191a menu for the user to select one of the options, and outputs the option
2192selected to stdout. It can be controlled both via mouse and via keyboard.")
2193 (license license:public-domain)))
1db15d00
OP
2194
2195(define-public idesk
2196 (package
2197 (name "idesk")
2198 (version "0.7.5")
2199 (source
2200 (origin
2201 (method url-fetch)
2202 (uri (string-append
2203 "mirror://sourceforge/idesk/idesk/idesk-" version
2204 "/idesk-" version ".tar.bz2"))
2205 (sha256
2206 (base32
2207 "1lxk2yvgysxwl514zc82lwr1dwc8cd62slgr5lzdhjbdrxfymdyl"))
2208 (modules '((guix build utils)
2209 (ice-9 format)))
2210 (snippet
2211 '(let* ((file "src/DesktopConfig.cpp")
2212 (template (string-append file ".XXXXXX"))
2213 (out (mkstemp! template))
2214 (st (stat file))
2215 (mode (stat:mode st)))
2216 (call-with-ascii-input-file file
2217 (lambda (p)
2218 (format out "~{~a~%~}" '("#include <unistd.h>"
2219 "#include <sys/stat.h>"
2220 "#include <sys/types.h>"))
2221 (dump-port p out)
2222 (close out)
2223 (chmod template mode)
2224 (rename-file template file)
2225 #t))))))
2226 (build-system gnu-build-system)
2227 (inputs
2228 `(("libx11" ,libx11)
2229 ("libxft" ,libxft)
2230 ("libxpm" ,libxpm)
2231 ("libpng" ,libpng)
2232 ("freetype" ,freetype)
2233 ("imlib2" ,imlib2)
2234 ("sed" ,sed)))
2235 (native-inputs
2236 `(("pkg-config" ,pkg-config)))
2237 (arguments
2238 `(#:tests? #f)) ;no test suite
2239 (home-page "https://sourceforge.net/projects/idesk/")
2240 (synopsis "Add icons on X desktop and set background image for wallpaper")
2241 (description "Idesk is program that draws desktop icons. Each icon will
2242execute a shell command on a configurable action. The icons can be moved on
2243the desktop by dragging them, and the icons will remember their positions on
2244start-up.")
2245 (license license:bsd-3)))
2aa39332
OP
2246
2247(define-public xnotify
2248 (package
2249 (name "xnotify")
2a72cb7b 2250 (version "0.7.3")
2aa39332
OP
2251 (source (origin
2252 (method git-fetch)
2253 (uri (git-reference
2254 (url "https://github.com/phillbush/xnotify")
2a72cb7b 2255 (commit version)))
2aa39332
OP
2256 (file-name (git-file-name name version))
2257 (sha256
2258 (base32
2a72cb7b 2259 "09s29m8z4x3mc3wja2587ik3f6zg16b40adr3nllnpyy1mqnprq5"))))
2aa39332
OP
2260 (build-system gnu-build-system)
2261 (inputs
2262 `(("libx11" ,libx11)
2263 ("libxft" ,libxft)
2264 ("libxinerama" ,libxinerama)
2265 ("imlib2" ,imlib2)))
2266 (arguments
2267 `(#:make-flags
2268 (list (string-append "CC=" ,(cc-for-target))
2269 (string-append "PREFIX=" %output)
2270 (string-append "CFLAGS="
2271 "-I" (assoc-ref %build-inputs "freetype")
2272 "/include/freetype2"))
2273 #:tests? #f ;no test suite
2274 #:phases
2275 (modify-phases %standard-phases
2276 (delete 'configure))))
2277 (home-page "https://github.com/phillbush/xnotify")
2278 (synopsis "Displays a notification on the screen")
2279 (description "XNotify receives a notification specification in stdin and
2280shows a notification for the user on the screen.")
2281 (license license:expat)))