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