Correct name and email address for ng0.
[jackhill/guix/guix.git] / gnu / packages / wm.scm
CommitLineData
bda2ded6
ED
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
6e38c4be 3;;; Copyright © 2015 Siniša Biđin <sinisa@bidin.eu>
0ede252b 4;;; Copyright © 2015, 2016 Eric Bavier <bavier@member.fsf.org>
1268e52d 5;;; Copyright © 2015 xd1le <elisp.vim@gmail.com>
ca80b8ba 6;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
0ede252b 7;;; Copyright © 2016 Danny Milosavljevic <dannym@scratchpost.org>
37f7853e 8;;; Copyright © 2016, 2019 Efraim Flashner <efraim@flashner.co.il>
766a22fb 9;;; Copyright © 2016 Al McElrath <hello@yrns.org>
3d1240aa 10;;; Copyright © 2016 Carlo Zancanaro <carlo@zancanaro.id.au>
189be331 11;;; Copyright © 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
47956fa0 12;;; Copyright © 2016, 2017, 2018 ng0 <ng0@n0.is>
22037a32 13;;; Copyright © 2016 doncatnip <gnopap@gmail.com>
37356e0b 14;;; Copyright © 2016 Ivan Vilata i Balaguer <ivan@selidor.net>
174b091f 15;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com>
3e7cb70a 16;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
6e864d00 17;;; Copyright © 2017 Oleg Pykhalov <go.wigust@gmail.com>
ebd2ae18 18;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
70024cfa 19;;; Copyright © 2018 Pierre-Antoine Rouby <contact@parouby.fr>
bc83b2e2 20;;; Copyright © 2018 Meiyo Peng <meiyo.peng@gmail.com>
eea969cf 21;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
bda2ded6
ED
22;;;
23;;; This file is part of GNU Guix.
24;;;
25;;; GNU Guix is free software; you can redistribute it and/or modify it
26;;; under the terms of the GNU General Public License as published by
27;;; the Free Software Foundation; either version 3 of the License, or (at
28;;; your option) any later version.
29;;;
30;;; GNU Guix is distributed in the hope that it will be useful, but
31;;; WITHOUT ANY WARRANTY; without even the implied warranty of
32;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33;;; GNU General Public License for more details.
34;;;
35;;; You should have received a copy of the GNU General Public License
36;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
37
38(define-module (gnu packages wm)
0ede252b 39 #:use-module ((guix licenses) #:prefix license:)
bda2ded6 40 #:use-module (guix packages)
c595cd47 41 #:use-module (gnu packages)
bda2ded6 42 #:use-module (gnu packages linux)
3d1240aa 43 #:use-module (guix build-system cmake)
bda2ded6 44 #:use-module (guix build-system gnu)
6e38c4be 45 #:use-module (guix build-system haskell)
eea969cf 46 #:use-module (guix build-system meson)
3e7cb70a 47 #:use-module (guix build-system perl)
c165591d 48 #:use-module (guix build-system python)
6e38c4be 49 #:use-module (gnu packages haskell)
a06b9b50 50 #:use-module (gnu packages haskell-check)
44b7374a 51 #:use-module (gnu packages haskell-web)
4b563b34 52 #:use-module (gnu packages autotools)
b4cb9308 53 #:use-module (gnu packages bison)
b0a2dc72 54 #:use-module (gnu packages gawk)
bda2ded6
ED
55 #:use-module (gnu packages base)
56 #:use-module (gnu packages pkg-config)
57 #:use-module (gnu packages perl)
766a22fb 58 #:use-module (gnu packages pulseaudio)
bda2ded6
ED
59 #:use-module (gnu packages xorg)
60 #:use-module (gnu packages xdisorg)
99828fa7 61 #:use-module (gnu packages documentation)
bda2ded6
ED
62 #:use-module (gnu packages xml)
63 #:use-module (gnu packages m4)
64 #:use-module (gnu packages docbook)
0ede252b 65 #:use-module (gnu packages image)
bda2ded6 66 #:use-module (gnu packages pcre)
395751c0 67 #:use-module (gnu packages python)
bda2ded6
ED
68 #:use-module (gnu packages gtk)
69 #:use-module (gnu packages libevent)
0ede252b 70 #:use-module (gnu packages fribidi)
bda2ded6
ED
71 #:use-module (gnu packages maths)
72 #:use-module (gnu packages web)
0ede252b 73 #:use-module (gnu packages fontutils)
3d1240aa
CZ
74 #:use-module (gnu packages freedesktop)
75 #:use-module (gnu packages glib)
76 #:use-module (gnu packages gperf)
77 #:use-module (gnu packages imagemagick)
78 #:use-module (gnu packages lua)
4b563b34 79 #:use-module (gnu packages linux)
37356e0b 80 #:use-module (gnu packages suckless)
d8dcbcc9 81 #:use-module (gnu packages mpd)
eea969cf
RH
82 #:use-module (gnu packages gl)
83 #:use-module (gnu packages video)
2ff844f0
RH
84 #:use-module (gnu packages version-control)
85 #:use-module (gnu packages man)
205df739 86 #:use-module (gnu packages textutils)
bda2ded6
ED
87 #:use-module (guix download)
88 #:use-module (guix git-download))
89
1268e52d 90(define-public bspwm
91 (package
92 (name "bspwm")
aa0551c2 93 (version "0.9.5")
1268e52d 94 (source
95 (origin
782b1224
TGR
96 (method git-fetch)
97 (uri (git-reference
98 (url "https://github.com/baskerville/bspwm.git")
99 (commit version)))
100 (file-name (git-file-name name version))
1268e52d 101 (sha256
782b1224 102 (base32 "09h3g1rxxjyw861mk32lj774nmwkx8cwxq4wfgmf4dpbizymvhhr"))))
1268e52d 103 (build-system gnu-build-system)
104 (inputs
105 `(("libxcb" ,libxcb)
106 ("libxinerama" ,libxinerama)
107 ("sxhkd" ,sxhkd)
108 ("xcb-util" ,xcb-util)
109 ("xcb-util-keysyms" ,xcb-util-keysyms)
110 ("xcb-util-wm" ,xcb-util-wm)))
111 (arguments
aa0551c2
TGR
112 '(#:phases
113 (modify-phases %standard-phases
114 (delete 'configure)) ; no configure script
115 #:tests? #f ; no check target
116 #:make-flags
117 (list "CC=gcc"
118 (string-append "PREFIX=" %output))))
1268e52d 119 (home-page "https://github.com/baskerville/bspwm")
120 (synopsis "Tiling window manager based on binary space partitioning")
121 (description "bspwm is a tiling window manager that represents windows as
122the leaves of a full binary tree.")
0ede252b 123 (license license:bsd-2)))
1268e52d 124
63b1bdbc
ED
125(define-public i3status
126 (package
127 (name "i3status")
8c2ab742 128 (version "2.12")
63b1bdbc
ED
129 (source (origin
130 (method url-fetch)
fdad1f3c 131 (uri (string-append "https://i3wm.org/i3status/i3status-"
63b1bdbc
ED
132 version ".tar.bz2"))
133 (sha256
134 (base32
8c2ab742 135 "06krpbijv4yi33nypg6qcn4hilcrdyarsdpd9fmr2cq46qaqiikg"))))
63b1bdbc
ED
136 (build-system gnu-build-system)
137 (arguments
138 `(#:make-flags (list "CC=gcc" (string-append "PREFIX=" %output))
139 #:phases
140 (modify-phases %standard-phases
141 (delete 'configure))
142 #:tests? #f)) ; no test suite
143 (inputs
144 `(("openlibm" ,openlibm)
145 ("libconfuse" ,libconfuse)
146 ("libyajl" ,libyajl)
147 ("alsa-lib" ,alsa-lib)
766a22fb
AM
148 ("pulseaudio" ,pulseaudio)
149 ("libnl" ,libnl)
63b1bdbc
ED
150 ("libcap" ,libcap)
151 ("asciidoc" ,asciidoc)))
766a22fb
AM
152 (native-inputs
153 `(("pkg-config" ,pkg-config)))
fdad1f3c 154 (home-page "https://i3wm.org/i3status/")
63b1bdbc
ED
155 (synopsis "Status bar for i3bar, dzen2, xmobar or similar programs")
156 (description "i3status is a small program for generating a status bar for
157i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient
158by issuing a very small number of system calls, as one generally wants to
159update such a status line every second. This ensures that even under high
160load, your status bar is updated correctly. Also, it saves a bit of energy by
161not hogging your CPU as much as spawning the corresponding amount of shell
162commands would.")
0ede252b 163 (license license:bsd-3)))
63b1bdbc 164
bda2ded6
ED
165(define-public i3-wm
166 (package
167 (name "i3-wm")
7c56237b 168 (version "4.16.1")
bda2ded6
ED
169 (source (origin
170 (method url-fetch)
8658d403 171 (uri (string-append "https://i3wm.org/downloads/i3-"
bda2ded6
ED
172 version ".tar.bz2"))
173 (sha256
174 (base32
7c56237b 175 "0xl56y196vxv001gvx35xwfr25zah8m3xwizp9ycdgdc0rfc4rdb"))))
bda2ded6
ED
176 (build-system gnu-build-system)
177 (arguments
ebd2ae18 178 `(#:configure-flags
4bd391f5
LF
179 ;; The build system tries to build in a separate directory, but that
180 ;; seems to be unnecessary.
ebd2ae18
TGR
181 (list "--disable-builddir")
182
183 ;; The test suite requires the unpackaged Xephyr X server.
4bd391f5 184 #:tests? #f))
bda2ded6
ED
185 (inputs
186 `(("libxcb" ,libxcb)
187 ("xcb-util" ,xcb-util)
188 ("xcb-util-cursor" ,xcb-util-cursor)
189 ("xcb-util-keysyms" ,xcb-util-keysyms)
190 ("xcb-util-wm" ,xcb-util-wm)
4bd391f5 191 ("xcb-util-xrm" ,xcb-util-xrm)
bda2ded6
ED
192 ("libxkbcommon" ,libxkbcommon)
193 ("libev" ,libev)
194 ("libyajl" ,libyajl)
195 ("asciidoc" ,asciidoc)
196 ("xmlto" ,xmlto)
197 ("perl-pod-simple" ,perl-pod-simple)
bda2ded6
ED
198 ("libx11" ,libx11)
199 ("pcre" ,pcre)
200 ("startup-notification" ,startup-notification)
201 ("pango" ,pango)
202 ("cairo" ,cairo)))
203 (native-inputs
204 `(("which" ,which)
205 ("perl" ,perl)
4bd391f5
LF
206 ("pkg-config" ,pkg-config)
207 ;; For building the documentation.
4b0e6367 208 ("libxml2" ,libxml2)
4bd391f5 209 ("docbook-xsl" ,docbook-xsl)))
8658d403 210 (home-page "https://i3wm.org/")
71a5da8e
TGR
211 (synopsis "Tiling window manager")
212 (description "i3 is a tiling X11 window manager that dynamically manages
213tiled, stacked, and tabbed window layouts.
214
215i3 primarily targets advanced users. Windows are managed manually and organised
216inside containers, which can be split vertically or horizontally, and optionally
217resized.
218
219i3 uses a plain-text configuration file, and can be extended and controlled from
220many programming languages.")
0ede252b 221 (license license:bsd-3)))
6e38c4be 222
bc83b2e2
MP
223(define-public i3blocks
224 (let ((commit "37f23805ff886639163fbef8aedba71c8071eff8")
225 (revision "1"))
226 (package
227 (name "i3blocks")
228 (version (string-append "1.4-" revision "."
229 (string-take commit 7)))
230 (source (origin
231 (method git-fetch)
232 (uri (git-reference
233 (url "https://github.com/vivien/i3blocks.git")
234 (commit commit)))
235 (sha256
236 (base32
237 "15rnrcajzyrmhlz1a21qqsjlj3dkib70806dlb386fliylc2kisb"))
d64e5147 238 (file-name (git-file-name name version))))
bc83b2e2
MP
239 (build-system gnu-build-system)
240 (arguments
241 `(#:make-flags (list "CC=gcc" (string-append "PREFIX=" %output))
242 #:phases (modify-phases %standard-phases
243 (add-after 'unpack 'autogen
244 (lambda _ (invoke "sh" "autogen.sh")))
245 (add-after 'install 'install-doc
246 (lambda* (#:key outputs #:allow-other-keys)
247 (let* ((out (assoc-ref outputs "out"))
248 (man1 (string-append out "/share/man/man1")))
249 (install-file "docs/i3blocks.1" man1)
250 #t))))))
251 (native-inputs
252 `(("autoconf" ,autoconf)
253 ("automake" ,automake)
254 ("pkg-config" ,pkg-config)))
255 (home-page "https://github.com/vivien/i3blocks")
256 (synopsis "Minimalist scheduler for status bar scripts")
257 (description "i3blocks executes your command lines and generates a
258status line from their output. The generated line is meant to be displayed by
259the i3 window manager through its i3bar component, as an alternative to
260i3status.")
261 (license license:gpl3+))))
262
3e7cb70a
MB
263(define-public perl-anyevent-i3
264 (package
265 (name "perl-anyevent-i3")
ec5c986e 266 (version "0.17")
3e7cb70a
MB
267 (source (origin
268 (method url-fetch)
269 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTPLBG/"
270 "AnyEvent-I3-" version ".tar.gz"))
271 (sha256
272 (base32
ec5c986e 273 "0qvd9bq16jyy7v3ma82qcnvz9j503bw0mh7h55gkjf7ir62ck0jk"))))
3e7cb70a
MB
274 (build-system perl-build-system)
275 (propagated-inputs
276 `(("perl-anyevent" ,perl-anyevent)
277 ("perl-json-xs" ,perl-json-xs)))
9aba9b12 278 (home-page "https://metacpan.org/release/AnyEvent-I3")
3e7cb70a
MB
279 (synopsis
280 "Communicate with the i3 window manager through perl")
281 (description
282 "This module connects to the i3 window manager using the UNIX socket
283based IPC interface it provides (if enabled in the configuration file).
284You can then subscribe to events or send messages and receive their replies.")
285 ;; Can be used with either license.
2f3108ad 286 (license (list license:gpl3+ license:perl-license))))
3e7cb70a 287
c165591d
IVB
288(define-public python-i3-py
289 (package
290 (name "python-i3-py")
291 (version "0.6.5")
292 (source
293 (origin
294 ;; The latest release is not tagged in Git nor has an entry in PyPi,
295 ;; but there is still a clear commit for it, and it's been the last one
296 ;; for years.
297 (method git-fetch)
298 (uri (git-reference
299 (url "https://github.com/ziberna/i3-py.git")
300 (commit "27f88a616e9ecc340e7d041d3d00782f8a1964c1")))
301 (sha256
302 (base32
303 "1nm719dc2xqlll7vj4c4m7mpjb27lpn3bg3c66gajvnrz2x1nmxs"))
304 (file-name (string-append name "-" version "-checkout"))))
305 (build-system python-build-system)
306 (arguments
307 `(#:tests? #f ; no tests yet
308 #:phases (modify-phases %standard-phases
309 (add-after 'install 'install-doc
310 ;; Copy readme file to documentation directory.
311 (lambda* (#:key outputs #:allow-other-keys)
312 (let ((doc (string-append (assoc-ref outputs "out")
313 "/share/doc/" ,name)))
314 (install-file "README.md" doc)
315 ;; Avoid unspecified return value.
316 #t))))))
317 (propagated-inputs
318 `(("i3-wm" ,i3-wm)))
319 (home-page "https://github.com/ziberna/i3-py")
320 (synopsis "Python interface to the i3 window manager")
321 (description "This package allows you to interact from a Python program
322with the i3 window manager via its IPC socket. It can send commands and other
323kinds of messages to i3, select the affected containers, filter results and
324subscribe to events.")
325 (license license:gpl3+)))
326
327(define-public python2-i3-py
328 (package-with-python2 python-i3-py))
329
37356e0b
IVB
330(define-public quickswitch-i3
331 (let ((commit "ed692b1e8f43b95bd907ced26238ce8ccb2ed28f")
332 (revision "1")) ; Guix package revision
333 (package
334 (name "quickswitch-i3")
335 (version (string-append "2.2-" revision "."
336 (string-take commit 7)))
337 (source
338 (origin
339 ;; The latest commit is a few years old and just a couple commits
340 ;; after the last tagged release, so we use that latest commit
341 ;; instead of the release.
342 (method git-fetch)
343 (uri (git-reference
344 (url "https://github.com/proxypoke/quickswitch-for-i3.git")
345 (commit commit)))
346 (sha256
347 (base32
348 "0447077sama80jcdg5p64zjsvafmz5rbdrirhm1adcdjhkh6iqc5"))
349 (patches (search-patches "quickswitch-fix-dmenu-check.patch"))
350 (file-name (string-append name "-" version "-checkout"))))
351 (build-system python-build-system)
352 (arguments
353 `(#:tests? #f ; no tests yet
354 #:phases (modify-phases %standard-phases
355 (add-after 'install 'install-doc
356 ;; Copy readme file to documentation directory.
357 (lambda* (#:key outputs #:allow-other-keys)
358 (let ((doc (string-append (assoc-ref outputs "out")
359 "/share/doc/" ,name)))
360 (install-file "README.rst" doc)
361 ;; Avoid unspecified return value.
362 #t))))))
363 (inputs
364 `(("python-i3-py" ,python-i3-py)
365 ("dmenu" ,dmenu)))
366 (home-page "https://github.com/proxypoke/quickswitch-for-i3")
367 (synopsis "Quickly change to and locate windows in the i3 window manager")
368 (description
369 "This utility for the i3 window manager allows you to quickly switch to
370and locate windows on all your workspaces, using an interactive dmenu
371prompt.")
372 (license (license:non-copyleft "http://www.wtfpl.net/txt/copying/")))))
373
4b563b34 374(define-public i3lock-color
375 (package
376 (name "i3lock-color")
7969751f 377 (version "2.12.c")
4b563b34 378 (source
379 (origin
f45cc966
TGR
380 (method git-fetch)
381 (uri (git-reference
382 (url "https://github.com/PandorasFox/i3lock-color.git")
383 (commit version)))
384 (file-name (git-file-name name version))
4b563b34 385 (sha256
7969751f 386 (base32 "08fhnchf187b73h52xgzb86g6byzxz085zs9galsvl687g5zxk34"))))
4b563b34 387 (build-system gnu-build-system)
388 (arguments
f45cc966 389 `(#:tests? #f)) ; no tests included
4b563b34 390 (inputs
fa2886b7
TGR
391 `(("cairo" ,cairo)
392 ("libev" ,libev)
3dc77d40 393 ("libjpeg" ,libjpeg-turbo)
4b563b34 394 ("libxcb" ,libxcb)
4b563b34 395 ("libxkbcommon" ,libxkbcommon)
fa2886b7
TGR
396 ("linux-pam" ,linux-pam)
397 ("xcb-util" ,xcb-util)
7969751f
TGR
398 ("xcb-util-image" ,xcb-util-image)
399 ("xcb-util-xrm" ,xcb-util-xrm)))
4b563b34 400 (native-inputs
fa2886b7
TGR
401 `(("autoconf" ,autoconf)
402 ("automake" ,automake)
403 ("pkg-config" ,pkg-config)))
4b563b34 404 (home-page "https://github.com/PandorasFox/i3lock-color")
405 (synopsis "Screen locker with color configuration support")
406 (description
407 "i3lock-color is a simpler X11 screen locker derived from i3lock.
408Features include:
409
410@enumerate
411@item forking process, the locked screen is preserved when you suspend to RAM;
412@item specify background color or image to be displayed in the lock screen;
413@item many additional color options.
414@end enumerate")
415 (license license:bsd-3)))
416
b0a2dc72 417(define-public i3lock-fancy
418 (package
419 (name "i3lock-fancy")
420 (version "0.2")
421 (source
422 (origin
a48db08a
TGR
423 (method git-fetch)
424 (uri (git-reference
425 (url "https://github.com/meskarune/i3lock-fancy.git")
426 (commit version)))
427 (file-name (git-file-name name version))
b0a2dc72 428 (sha256
a48db08a 429 (base32 "11g2kkim33ra38d1m897sq1ifajw17iyw9mr7sg1q8i2ibl4lfsi"))))
b0a2dc72 430 (build-system gnu-build-system)
431 (arguments
a48db08a 432 `(#:tests? #f ; no tests included
b0a2dc72 433 #:phases
434 (modify-phases %standard-phases
435 (replace 'configure
436 (lambda* (#:key inputs outputs #:allow-other-keys)
437 (let* ((out (assoc-ref outputs "out"))
438 (icons (string-append out "/share/i3lock-fancy/icons/"))
439 (wmctrl (string-append (assoc-ref inputs "wmctrl")
440 "/bin/wmctrl"))
441 (mconvert (string-append (assoc-ref inputs "imagemagick")
442 "/bin/convert"))
443 (mimport (string-append (assoc-ref inputs "imagemagick")
444 "/bin/import"))
445 (awk (string-append (assoc-ref inputs "gawk")
446 "/bin/gawk")))
447
448 (substitute* "lock"
449 (("$(which wmctrl)") wmctrl)
450 (("convert") mconvert)
451 (("shot=\\(import") (string-append "shot=\(" mimport))
452 (("awk -F") (string-append awk " -F"))
453 ((" awk") awk)
454 (("\\$scriptpath/icons/") icons))
455 #t)))
456 (delete 'build)
457 (replace 'install
458 (lambda* (#:key inputs outputs #:allow-other-keys)
459 (let* ((out (assoc-ref outputs "out"))
460 (bin (string-append out "/bin"))
461 (icons (string-append out "/share/i3lock-fancy/icons/")))
462
463 (install-file "lock" bin)
464 (rename-file (string-append bin "/lock")
465 (string-append bin "/i3lock-fancy"))
466 (copy-recursively "icons" icons)
467 #t))))))
468 (native-inputs
469 `(("imagemagick" ,imagemagick)
470 ("wmctrl" ,wmctrl)
471 ("gawk" ,gawk)))
472 (home-page "https://github.com/meskarune/i3lock-fancy")
473 (synopsis "Screen locker with screenshot function")
474 (description
475 "@code{i3lock-fancy} is a Bash script that takes a screenshot of
476the desktop, blurs the background and adds a lock icon and text.
477It requires @code{i3lock-color} or @code{i3lock} and can optionally
478be passed any screenshot util like @code{scrot}.
479This screen locker can be used with any window manager or
480desktop environment.")
481 (license license:expat)))
482
6e38c4be
SB
483(define-public xmonad
484 (package
485 (name "xmonad")
de98b915 486 (version "0.15")
6e38c4be
SB
487 (synopsis "Tiling window manager")
488 (source (origin
489 (method url-fetch)
966a543b 490 (uri (string-append "mirror://hackage/package/xmonad/"
ec9299d0 491 "xmonad-" version ".tar.gz"))
6e38c4be
SB
492 (sha256
493 (base32
de98b915 494 "0a7rh21k9y6g8fwkggxdxjns2grvvsd5hi2ls4klmqz5xvk4hyaa"))))
6e38c4be
SB
495 (build-system haskell-build-system)
496 (inputs
174b091f 497 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
174b091f 498 ("ghc-quickcheck" ,ghc-quickcheck)
dd821380 499 ("ghc-semigroups" ,ghc-semigroups)
174b091f
MM
500 ("ghc-setlocale" ,ghc-setlocale)
501 ("ghc-utf8-string" ,ghc-utf8-string)
502 ("ghc-x11" ,ghc-x11)))
6e38c4be
SB
503 (arguments
504 `(#:phases
505 (modify-phases %standard-phases
506 (add-after
507 'install 'install-xsession
508 (lambda _
509 (let* ((xsessions (string-append %output "/share/xsessions")))
510 (mkdir-p xsessions)
511 (call-with-output-file
512 (string-append xsessions "/xmonad.desktop")
513 (lambda (port)
514 (format port "~
515 [Desktop Entry]~@
516 Name=~a~@
517 Comment=~a~@
518 Exec=~a/bin/xmonad~@
519 Type=Application~%" ,name ,synopsis %output)))))))))
8c0be00a 520 (home-page "https://xmonad.org")
6e38c4be
SB
521 (description
522 "Xmonad is a tiling window manager for X. Windows are arranged
523automatically to tile the screen without gaps or overlap, maximising screen
524use. All features of the window manager are accessible from the keyboard: a
525mouse is strictly optional. Xmonad is written and extensible in Haskell.
526Custom layout algorithms, and other extensions, may be written by the user in
527config files. Layouts are applied dynamically, and different layouts may be
528used on each workspace. Xinerama is fully supported, allowing windows to be
529tiled on several screens.")
0ede252b 530 (license license:bsd-3)))
78edf44c 531
6e864d00
OP
532(define-public xmobar
533 (package
534 (name "xmobar")
ccd4fd3f 535 (version "0.28")
6e864d00
OP
536 (source (origin
537 (method url-fetch)
538 (uri (string-append "mirror://hackage/package/xmobar/"
539 name "-" version ".tar.gz"))
540 (sha256
541 (base32
ccd4fd3f 542 "1xh87asg8y35srvp7d3gyyy4bkxsw122liihxgzgm8pqv2z3h4zd"))))
6e864d00 543 (build-system haskell-build-system)
800e4fd8
TGR
544 (native-inputs
545 `(("ghc-hspec" ,ghc-hspec)
546 ("hspec-discover" ,hspec-discover)))
6e864d00 547 (inputs
d2ea8064
TGR
548 `(("ghc-hinotify" ,ghc-hinotify)
549 ("ghc-http" ,ghc-http)
550 ("ghc-iwlib" ,ghc-iwlib)
6e864d00 551 ("ghc-parsec" ,ghc-parsec)
d877e0d8 552 ("ghc-parsec-numbers" ,ghc-parsec-numbers)
6e864d00
OP
553 ("ghc-regex-compat" ,ghc-regex-compat)
554 ("ghc-stm" ,ghc-stm)
555 ("ghc-x11-xft" ,ghc-x11-xft)
d2ea8064 556 ("libxpm" ,libxpm)))
6e864d00
OP
557 (arguments
558 `(#:configure-flags
d2ea8064
TGR
559 (list (string-append "--flags="
560 (string-join (list "with_inotify"
561 "with_iwlib"
562 "with_utf8"
563 "with_weather"
564 "with_xft"
565 "with_xpm")
566 " ")))))
6e864d00
OP
567 (home-page "http://xmobar.org")
568 (synopsis "Minimalistic text based status bar")
569 (description
570 "@code{xmobar} is a lightweight, text-based, status bar written in
571Haskell. It was originally designed to be used together with Xmonad, but it
572is also usable with any other window manager. While xmobar is written in
573Haskell, no knowledge of the language is required to install and use it.")
574 (license license:bsd-3)))
575
78edf44c
SB
576(define-public ghc-xmonad-contrib
577 (package
578 (name "ghc-xmonad-contrib")
7e148c20 579 (version "0.15")
78edf44c
SB
580 (source
581 (origin
582 (method url-fetch)
966a543b 583 (uri (string-append "mirror://hackage/package/xmonad-contrib/"
78edf44c
SB
584 "xmonad-contrib-" version ".tar.gz"))
585 (sha256
7e148c20 586 (base32 "0r9yzgy67j4mi3dyxx714f0ssk5qzca5kh4zw0fhiz1pf008cxms"))))
78edf44c
SB
587 (build-system haskell-build-system)
588 (propagated-inputs
f54f0475 589 `(("ghc-old-time" ,ghc-old-time)
78edf44c
SB
590 ("ghc-random" ,ghc-random)
591 ("ghc-utf8-string" ,ghc-utf8-string)
592 ("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
b42b5afd 593 ("ghc-semigroups" ,ghc-semigroups)
78edf44c
SB
594 ("ghc-x11" ,ghc-x11)
595 ("ghc-x11-xft" ,ghc-x11-xft)
596 ("xmonad" ,xmonad)))
8c0be00a 597 (home-page "https://xmonad.org")
78edf44c
SB
598 (synopsis "Third party extensions for xmonad")
599 (description
600 "Third party tiling algorithms, configurations, and scripts to Xmonad, a
601tiling window manager for X.")
0ede252b 602 (license license:bsd-3)))
45e10968
EB
603
604(define-public evilwm
605 (package
606 (name "evilwm")
607 (version "1.1.1")
608 (source
609 (origin
610 (method url-fetch)
611 (uri (string-append "http://www.6809.org.uk/evilwm/evilwm-"
612 version ".tar.gz"))
613 (sha256
614 (base32
c595cd47 615 "0ak0yajzk3v4dg5wmaghv6acf7v02a4iw8qxmq5yw5ard8lrqn3r"))
fc1adab1 616 (patches (search-patches "evilwm-lost-focus-bug.patch"))))
45e10968
EB
617 (build-system gnu-build-system)
618 (inputs
619 `(("libx11" ,libx11)
620 ("libxext" ,libxext)
621 ("libxrandr" ,libxrandr)))
622 (arguments
623 `(#:modules ((srfi srfi-26)
624 (guix build utils)
625 (guix build gnu-build-system))
626 #:make-flags (let ((inputs (map (cut assoc-ref %build-inputs <>)
627 '("libx11" "libxext" "libxrandr")))
628 (join (lambda (proc strs)
629 (string-join (map proc strs) " ")))
630 (dash-I (cut string-append "-I" <> "/include"))
631 (dash-L (cut string-append "-L" <> "/lib")))
632 `("desktopfilesdir=$(prefix)/share/xsessions"
633 ,(string-append "prefix=" (assoc-ref %outputs "out"))
634 ,(string-append "CPPFLAGS=" (join dash-I inputs))
635 ,(string-append "LDFLAGS=" (join dash-L inputs))))
636 #:tests? #f ;no tests
637 #:phases (modify-phases %standard-phases
638 (delete 'configure)))) ;no configure script
639 (home-page "http://www.6809.org.uk/evilwm/")
640 (synopsis "Minimalist window manager for the X Window System")
641 (description
642 "evilwm is a minimalist window manager based on aewm, extended to feature
643many keyboard controls with repositioning and maximize toggles, solid window
644drags, snap-to-border support, and virtual desktops.")
0ede252b
DM
645 (license (license:x11-style "file:///README"))))
646
647(define-public fluxbox
648 (package
649 (name "fluxbox")
650 (version "1.3.7")
651 (synopsis "Small and fast window manager")
652 (source (origin
653 (method url-fetch)
de67e922 654 (uri (string-append "mirror://sourceforge/fluxbox/fluxbox/"
0ede252b
DM
655 version "/fluxbox-" version ".tar.xz"))
656 (sha256
657 (base32
658 "1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w"))))
659 (build-system gnu-build-system)
660 (arguments
661 `(#:make-flags '("CPPFLAGS=-U__TIME__") ;ugly, but for reproducibility
662 #:phases
663 (modify-phases %standard-phases
37f7853e
EF
664 (add-after 'install 'install-vim-files
665 (lambda* (#:key outputs #:allow-other-keys)
666 (let* ((out (assoc-ref outputs "out"))
667 (syntax (string-append out "/share/vim/vimfiles/syntax")))
668 (copy-recursively "3rd/vim/vim/syntax" syntax)
669 #t)))
4ee3b309
EF
670 (add-after 'install 'install-xsession
671 (lambda* (#:key outputs #:allow-other-keys)
672 (let* ((out (assoc-ref outputs "out"))
673 (xsessions (string-append out "/share/xsessions")))
674 (mkdir-p xsessions)
675 (call-with-output-file
676 (string-append xsessions "/fluxbox.desktop")
677 (lambda (port)
678 (format port "~
679 [Desktop Entry]~@
680 Name=~a~@
681 Comment=~a~@
682 Exec=~a/bin/startfluxbox~@
683 Type=Application~%" ,name ,synopsis out)))
684 #t))))))
0ede252b
DM
685 (native-inputs
686 `(("pkg-config" ,pkg-config)))
687 (inputs
688 `(("freetype" ,freetype)
689 ("fribidi" ,fribidi)
690 ("imlib2" ,imlib2)
691 ("libx11" ,libx11)
692 ("libxext" ,libxext)
693 ("libxft" ,libxft)
694 ("libxinerama" ,libxinerama)
695 ("libxpm" ,libxpm)
696 ("libxrandr" ,libxrandr)
697 ("libxrender" ,libxrender)))
698 (description "Fluxbox is a window manager. It is light on resources
699and easy to handle yet full of features to make an easy and fast desktop
700experience.")
701 (home-page "http://fluxbox.org/")
702 (license license:expat)))
3d1240aa
CZ
703
704(define-public awesome
705 (package
706 (name "awesome")
db0164b2 707 (version "4.2")
3d1240aa
CZ
708 (source
709 (origin (method url-fetch)
710 (uri (string-append
91426243 711 "https://github.com/awesomeWM/awesome-releases/raw/"
712 "master/awesome-" version ".tar.xz"))
3d1240aa
CZ
713 (sha256
714 (base32
db0164b2 715 "0kwpbls9h1alxcmvxh5g9qb995fds5b2ngcr44w0ibazkyls2pdc"))
3d1240aa
CZ
716 (modules '((guix build utils)
717 (srfi srfi-19)))
6cbee49d
MW
718 (snippet '(begin
719 ;; Remove non-reproducible timestamp and use the date
720 ;; of the source file instead.
721 (substitute* "common/version.c"
722 (("__DATE__ \" \" __TIME__")
723 (date->string
724 (time-utc->date
725 (make-time time-utc 0
726 (stat:mtime (stat "awesome.c"))))
727 "\"~c\"")))
728 #t))
3d1240aa
CZ
729 (patches (search-patches "awesome-reproducible-png.patch"))))
730 (build-system cmake-build-system)
731 (native-inputs `(("asciidoc" ,asciidoc)
732 ("docbook-xsl" ,docbook-xsl)
733 ("doxygen" ,doxygen)
734 ("gperf" ,gperf)
735 ("imagemagick" ,imagemagick)
736 ("libxml2" ,libxml2) ;for XML_CATALOG_FILES
737 ("pkg-config" ,pkg-config)
738 ("xmlto" ,xmlto)))
739 (inputs `(("cairo" ,cairo)
740 ("dbus" ,dbus)
741 ("gdk-pixbuf" ,gdk-pixbuf)
742 ("glib" ,glib)
22037a32 743 ("gobject-introspection" ,gobject-introspection)
3d1240aa
CZ
744 ("imlib2" ,imlib2)
745 ("libev" ,libev)
746 ("libxcb" ,libxcb)
747 ("libxcursor" ,libxcursor)
748 ("libxdg-basedir" ,libxdg-basedir)
91426243 749 ("libxkbcommon" ,libxkbcommon)
22037a32 750 ("lua" ,lua)
c695fb76 751 ("lua-lgi" ,lua-lgi)
3d1240aa
CZ
752 ("pango" ,pango)
753 ("startup-notification" ,startup-notification)
754 ("xcb-util" ,xcb-util)
755 ("xcb-util-cursor" ,xcb-util-cursor)
756 ("xcb-util-image" ,xcb-util-image)
757 ("xcb-util-keysyms" ,xcb-util-keysyms)
758 ("xcb-util-renderutil" ,xcb-util-renderutil)
91426243 759 ("xcb-util-xrm" ,xcb-util-xrm)
3d1240aa
CZ
760 ("xcb-util-wm" ,xcb-util-wm)))
761 (arguments
762 `(;; Let compression happen in our 'compress-documentation' phase so that
763 ;; '--no-name' is used, which removes timestamps from gzip output.
764 #:configure-flags '("-DCOMPRESS_MANPAGES=off")
765
db0164b2 766 ;; Building awesome in its source dir is no longer supported.
767 #:out-of-source? #t
768
22037a32 769 #:phases
770 (modify-phases %standard-phases
771 (add-before 'build 'xmlto-skip-validation
772 (lambda _
773 ;; We can't download the necessary schema, so so skip
774 ;; validation and assume they're valid.
775 (substitute* "../build/CMakeFiles/man.dir/build.make"
776 (("/xmlto")
777 (string-append "/xmlto --skip-validation")))
778 #t))
779 (add-before 'configure 'set-lua-paths
780 (lambda* (#:key inputs #:allow-other-keys)
781 ;; The build process needs to load cairo dynamically.
782 (let* ((cairo (string-append
783 (assoc-ref inputs "cairo") "/lib" ))
784 (lua-lgi (assoc-ref inputs "lua-lgi") ))
785 (setenv "LD_LIBRARY_PATH" cairo )
786 (setenv "LUA_PATH" (string-append lua-lgi
787 "/share/lua/5.2/?.lua"))
788 (setenv "LUA_CPATH" (string-append lua-lgi
789 "/lib/lua/5.2/?.so"))
790 #t)))
791 (replace 'check
792 (lambda _
793 ;; There aren't any tests, so just make sure the binary
794 ;; gets built and can be run successfully.
b5e70d92 795 (invoke "../build/awesome" "-v")))
22037a32 796 (add-after 'install 'wrap
797 (lambda* (#:key inputs outputs #:allow-other-keys)
798 (let* ((awesome (assoc-ref outputs "out"))
799 (cairo (string-append
800 (assoc-ref inputs "cairo") "/lib" ))
801 (lua-lgi (assoc-ref inputs "lua-lgi") ))
802 (wrap-program (string-append awesome "/bin/awesome")
803 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))
804 `("LD_LIBRARY_PATH" suffix (, cairo))
805 `("LUA_PATH" suffix (,(string-append lua-lgi
806 "/share/lua/5.2/?.lua")))
807 `("LUA_CPATH" suffix (,(string-append
808 lua-lgi "/lib/lua/5.2/?.so"))))))))))
3d1240aa
CZ
809 (synopsis "Highly configurable window manager")
810 (description
c4dd0def 811 "Awesome has been designed as a framework window manager. It is fast, small,
812dynamic and extensible using the Lua programming language.")
3d1240aa
CZ
813 (license license:gpl2+)
814 (home-page "https://awesome.naquadah.org/")))
395751c0 815
816(define-public menumaker
817 (package
818 (name "menumaker")
819 (version "0.99.10")
820 (source
821 (origin
822 (method url-fetch)
823 (uri (string-append "mirror://sourceforge/menumaker/"
824 "menumaker-" version ".tar.gz"))
825 (sha256
826 (base32
827 "1mm4cvg3kphkkd8nwrhcg6d9nm5ar7mgc0wf6fxk6zck1l7xn8ky"))))
828 (build-system gnu-build-system)
829 (inputs
830 `(("python" ,python)))
831 (synopsis "Heuristics-driven menu generator")
832 (description
833 "MenuMaker is a menu generation utility for a number of X window
834managers and desktop environments. It is capable of finding lots of
835installed programs and generating a root menu consistent across all
836supported window managers, so one will get (almost) the same menu in
837all of them. Currently supported window managers include:
838
839@enumerate
840@item BlackBox
841@item Deskmenu
842@item FluxBox
843@item IceWM
844@item OpenBox
845@item PekWM
846@item WindowMaker
847@item XFCE
848@end enumerate\n")
849 (home-page "http://menumaker.sourceforge.net/")
850 (license license:bsd-2)))
dbf544f9 851
852(define-public keybinder
853 (package
854 (name "keybinder")
855 (version "0.3.1")
856 (source
857 (origin
858 (method url-fetch)
6d688b6e
TGR
859 (uri (string-append "https://github.com/kupferlauncher/keybinder"
860 "/releases/download/v" version "/keybinder-"
dbf544f9 861 version ".tar.gz"))
862 (file-name (string-append name "-" version ".tar.gz"))
863 (sha256
864 (base32
865 "0h52hj3ay8mfhwvmfxbxlfyq74hifdk8wxgxp7fr4iy6189hg7w7"))))
866 (build-system gnu-build-system)
867 (inputs
868 `(("python-2" ,python-2)
869 ("gtk+-2" ,gtk+-2)))
870 (native-inputs
871 `(("python2-pygtk" ,python2-pygtk)
872 ("gtk-doc" ,gtk-doc)
873 ("pkg-config" ,pkg-config)))
874 (synopsis "Library for registering global keyboard shortcuts")
875 (description
876 "Keybinder is a library for registering global keyboard shortcuts.
877Keybinder works with GTK-based applications using the X Window System.")
6d688b6e 878 (home-page "https://github.com/kupferlauncher/keybinder")
dbf544f9 879 (license license:gpl2+)))
78dfc9e2 880
881(define-public spectrwm
882 (package
883 (name "spectrwm")
f6c8a97a 884 (version "3.2.0")
78dfc9e2 885 (source
886 (origin
887 (method url-fetch)
888 (uri (let ((version-with-underscores
889 (string-join (string-split version #\.) "_")))
890 (string-append "https://github.com/conformal/spectrwm/archive/"
891 "SPECTRWM_" version-with-underscores ".tar.gz")))
892 (file-name (string-append name "-" version ".tar.gz"))
893 (sha256
894 (base32
f6c8a97a 895 "0z7gjmp1x6y8q3dnw6swvbv8x2wd4ykzjvi3ibk2sxhgc910907v"))))
78dfc9e2 896 (build-system gnu-build-system)
897 (arguments
898 `(#:make-flags (let ((pkg-config (lambda (flag)
899 (string-append
900 "$(shell pkg-config " flag " "
901 "xft fontconfig x11 libpng)"))))
902 (list
903 "CC=gcc"
904 (string-append "PREFIX=" %output)
905 (string-append "INCS=-I. " (pkg-config "--cflags"))
906 (string-append "LIBS=" (pkg-config "--libs") " -lm")))
f6c8a97a 907 #:tests? #f ;no test suite
78dfc9e2 908 #:phases
909 (modify-phases %standard-phases
910 (add-before 'build 'change-dir
911 (lambda _
912 (chdir "linux") #t))
913 (add-after 'change-dir 'patch-makefile
914 (lambda _
915 (substitute* "Makefile"
916 (("-g") ""))))
f6c8a97a 917 (delete 'configure)))) ;no 'configure' exists
78dfc9e2 918 (inputs
919 `(("freetype" ,freetype)
920 ("fontconfig" ,fontconfig)
921 ("libx11" ,libx11)
922 ("libxcursor" ,libxcursor)
923 ("libxrandr" ,libxrandr)
924 ("libxtst" ,libxtst)
925 ("libxft" ,libxft)
926 ("xcb-util" ,xcb-util)
927 ("xcb-util-wm" ,xcb-util-wm)
928 ("xcb-util-keysyms" ,xcb-util-keysyms)))
929 (native-inputs
930 `(("libxt" ,libxt)
931 ("pkg-config" ,pkg-config)))
932 (synopsis "Minimalistic automatic tiling window manager")
933 (description
934 "Spectrwm is a small dynamic tiling and reparenting window manager for X11.
935It is inspired by Xmonad and dwm. Its major features include:
936
937@itemize
938@item Navigation anywhere on all screens with either the keyboard or mouse
939@item Customizable status bar
940@item Restartable without losing state
941@item Quick launch menu
942@item Many screen layouts possible with a few simple key strokes
943@item Move/resize floating windows
32008a75
TGR
944@item Extended Window Manager Hints (@dfn{EWMH}) support
945@item Configurable tiling
78dfc9e2 946@item Adjustable tile gap allows for a true one pixel border
947@item Customizable colors and border width
948@end itemize\n")
949 (home-page "https://github.com/conformal/spectrwm")
950 (license license:isc)))
b4cb9308 951
952(define-public cwm
953 (package
954 (name "cwm")
e352a153 955 (version "6.3")
b4cb9308 956 (source
957 (origin
958 (method url-fetch)
959 (uri (string-append "http://chneukirchen.org/releases/cwm-"
960 version ".tar.gz"))
961 (sha256
962 (base32
e352a153 963 "17pdp9cfgh2n3n3905l4rl9qk7b722i8psnarhlc2h98qzx7zmac"))))
b4cb9308 964 (build-system gnu-build-system)
965 (arguments
966 `(#:make-flags (list "CC=gcc"
967 (string-append "PREFIX=" %output))
968 #:tests? #f
969 #:phases
970 (modify-phases %standard-phases
971 (delete 'configure)
972 (add-after 'build 'install-xsession
973 (lambda* (#:key outputs #:allow-other-keys)
974 ;; Add a .desktop file to xsessions.
975 (let* ((output (assoc-ref outputs "out"))
976 (xsessions (string-append output "/share/xsessions")))
977 (mkdir-p xsessions)
978 (with-output-to-file
979 (string-append xsessions "/cwm.desktop")
980 (lambda _
981 (format #t
982 "[Desktop Entry]~@
983 Name=cwm~@
984 Comment=OpenBSD Calm Window Manager fork~@
985 Exec=~a/bin/cwm~@
986 TryExec=~@*~a/bin/cwm~@
987 Icon=~@
988 Type=Application~%"
989 output)))
990 #t))))))
991 (inputs
992 `(("libxft" ,libxft)
993 ("libxrandr" ,libxrandr)
994 ("libxinerama" ,libxinerama)))
995 (native-inputs
996 `(("pkg-config" ,pkg-config)
997 ("bison" ,bison)))
998 (home-page "https://github.com/chneukirchen/cwm")
999 (synopsis "OpenBSD fork of the calmwm window manager")
1000 (description "Cwm is a stacking window manager for X11. It is an OpenBSD
1001project derived from the original Calm Window Manager.")
1002 (license license:isc)))
70024cfa
PAR
1003
1004(define-public nitrogen
1005 (package
1006 (name "nitrogen")
1007 (version "1.6.1")
1008 (source (origin
1009 (method url-fetch)
1010 (uri (string-append "http://github.com/l3ib/nitrogen/"
1011 "releases/download/" version "/"
1012 name "-" version ".tar.gz"))
1013 (sha256
1014 (base32
1015 "0zc3fl1mbhq0iyndy4ysmy8vv5c7xwf54rbgamzfhfvsgdq160pl"))))
1016 (build-system gnu-build-system)
1017 (inputs
1018 `(("gtk+" ,gtk+-2)
1019 ("gtkmm" ,gtkmm-2)
1020 ("glib" ,glib)
1021 ("glibmm" ,glibmm)))
1022 (native-inputs
de99ba7e 1023 `(("pkg-config" ,pkg-config)))
70024cfa
PAR
1024 (arguments
1025 `(#:configure-flags (list
1026 (string-append "--prefix=" %output)
1027 "CXXFLAGS=-std=c++11")))
1028 (home-page "http://projects.l3ib.org/nitrogen/")
1029 (synopsis "Background browser and setter for X windows")
1030 (description
1031 "This package is a background browser and setter for X windows. It's
1032features are:
1033
1034@itemize
1035@item Multihead and Xinerama aware
1036@item Recall mode to used via startup script
1037@item Uses freedesktop.org standard for thumbnails
1038@item Can set GNOME background
1039@item Command lie set modes for script use
1040@item Inotify monitoring of browse directory
1041@item Lazy loading of thumbnails - conserves memory
1042@item \"Automatic\" set mode - determines best mode to set an image based on
1043its size
1044@item Display preview images in a tiled icon layout
1045@end itemize")
1046 (license license:gpl2+)))
d8dcbcc9
MP
1047
1048(define-public polybar
1049 (package
1050 (name "polybar")
1051 (version "3.3.0")
1052 (source
1053 (origin
1054 (method url-fetch)
1055 (uri (string-append "https://github.com/jaagr/polybar/releases/"
1056 "download/" version "/polybar.tar"))
1057 (sha256
1058 (base32 "0sjh3xmf11g09spi88zj7xsc3a3vv78kixab6n5i7436py7xwzb4"))
1059 (file-name (string-append name "-" version ".tar"))))
1060 (build-system cmake-build-system)
1061 (arguments
1062 ;; Test is disabled because it requires downloading googletest from the
1063 ;; Internet.
1064 '(#:tests? #f))
1065 (inputs
1066 `(("alsa-lib" ,alsa-lib)
1067 ("cairo" ,cairo)
1068 ("i3-wm" ,i3-wm)
1069 ("libmpdclient" ,libmpdclient)
1070 ("libnl" ,libnl)
1071 ("libxcb" ,libxcb)
1072 ("pulseaudio" ,pulseaudio)
1073 ("xcb-proto" ,xcb-proto)
1074 ("xcb-util" ,xcb-util)
1075 ("xcb-util-cursor" ,xcb-util-cursor)
1076 ("xcb-util-image" ,xcb-util-image)
1077 ("xcb-util-wm" ,xcb-util-wm)
1078 ("xcb-util-xrm" ,xcb-util-xrm)))
1079 (native-inputs
1080 `(("pkg-config" ,pkg-config)
1081 ("python-2" ,python-2) ; lib/xpp depends on python 2
1082 ("python" ,python))) ; xcb-proto depends on python 3
1083 (home-page "https://polybar.github.io/")
1084 (synopsis "Fast and easy-to-use status bar")
1085 (description "Polybar aims to help users build beautiful and highly
1086customizable status bars for their desktop environment. It has built-in
1087functionality to display information about the most commonly used services.")
1088 (license license:expat)))
eea969cf
RH
1089
1090(define-public wlroots
1091 (package
1092 (name "wlroots")
1093 (version "0.5.0")
1094 (source
1095 (origin
1096 (method git-fetch)
1097 (uri (git-reference
1098 (url "https://github.com/swaywm/wlroots.git")
1099 (commit version)))
1100 (file-name (git-file-name name version))
1101 (sha256
1102 (base32 "1phiidyddzgaxy4gbqwmykxn0y8za6y5mp66l9dpd9i6fml153yq"))))
1103 (build-system meson-build-system)
1104 (arguments
1105 `(#:configure-flags '("-Dlogind-provider=elogind")
1106 #:phases
1107 (modify-phases %standard-phases
1108 (add-before 'configure 'hardcode-paths
1109 (lambda* (#:key inputs #:allow-other-keys)
1110 (substitute* "xwayland/xwayland.c"
1111 (("Xwayland") (string-append (assoc-ref inputs
1112 "xorg-server-xwayland")
1113 "/bin/Xwayland")))
1114 #t)))))
1115 (inputs `(("elogind" ,elogind)
1116 ("eudev" ,eudev)
1117 ("libinput" ,libinput)
1118 ("libxkbcommon" ,libxkbcommon)
1119 ("mesa" ,mesa)
1120 ("pixman" ,pixman)
1121 ("wayland" ,wayland)
1122 ("xorg-server-xwayland" ,xorg-server-xwayland)))
1123 (native-inputs `(("ffmpeg" ,ffmpeg)
1124 ("libcap" ,libcap)
1125 ("libpng" ,libpng)
1126 ("pkg-config" ,pkg-config)
1127 ("wayland-protocols" ,wayland-protocols)))
1128 (home-page "https://github.com/swaywm/wlroots")
1129 (synopsis "Pluggable, composable, unopinionated modules for building a
1130Wayland compositor")
1131 (description "wlroots is a set of pluggable, composable, unopinionated
1132modules for building a Wayland compositor.")
1133 (license license:expat))) ; MIT license
2ff844f0
RH
1134
1135(define-public sway
1136 (package
1137 (name "sway")
1138 (version "1.0")
1139 (source
1140 (origin
1141 (method git-fetch)
1142 (uri (git-reference
1143 (url "https://github.com/swaywm/sway.git")
1144 (commit version)))
1145 (file-name (git-file-name name version))
1146 (sha256
1147 (base32 "09cndc2nl39d3l7g5634xp0pxcz60pvc5277mfw89r22mh0j78rx"))))
1148 (build-system meson-build-system)
1149 (arguments
1150 `(#:phases
1151 (modify-phases %standard-phases
1152 (add-before 'configure 'hardcode-paths
1153 (lambda* (#:key inputs #:allow-other-keys)
1154 (substitute* "meson.build"
1155 (("scdoc.get_pkgconfig_variable..scdoc..")
1156 (string-append "'" (assoc-ref inputs "scdoc")
1157 "/bin/scdoc'")))
1158 #t)))))
1159 (inputs `(("cairo" ,cairo)
1160 ("elogind" ,elogind)
1161 ("gdk-pixbuf" ,gdk-pixbuf)
1162 ("json-c" ,json-c)
1163 ("libinput" ,libinput)
1164 ("libxkbcommon" ,libxkbcommon)
1165 ("pango" ,pango)
1166 ("wayland" ,wayland)
1167 ("wlroots" ,wlroots)))
1168 (native-inputs `(("git" ,git)
1169 ("libcap" ,libcap)
1170 ("linux-pam" ,linux-pam)
1171 ("mesa" ,mesa)
1172 ("pkg-config" ,pkg-config)
1173 ("scdoc" ,scdoc)
1174 ("wayland-protocols" ,wayland-protocols)))
1175 (home-page "https://github.com/swaywm/sway")
1176 (synopsis "Wayland compositor compatible with i3")
1177 (description "Sway is a i3-compatible Wayland compositor.")
1178 (license license:expat))) ; MIT license
06ae5efc
RH
1179
1180(define-public swayidle
1181 (package
1182 (name "swayidle")
1183 (version "1.2")
1184 (source
1185 (origin
1186 (method git-fetch)
1187 (uri (git-reference
1188 (url "https://github.com/swaywm/swayidle.git")
1189 (commit version)))
1190 (file-name (git-file-name name version))
1191 (sha256
1192 (base32 "0b65flajwn2i6k2kdxxgw25w7ikzzmm595f4j5x1wac1rb0yah9w"))))
1193 (build-system meson-build-system)
1194 (inputs `(("wayland" ,wayland)))
1195 (native-inputs `(("pkg-config" ,pkg-config)
1196 ("scdoc" ,scdoc)
1197 ("wayland-protocols" ,wayland-protocols)))
1198 (home-page "https://github.com/swaywm/sway")
1199 (synopsis "Idle management daemon for Wayland compositors")
1200 (description "Swayidle is a idle management daemon for Wayland compositors.")
1201 (license license:expat))) ; MIT license
b0805973
RH
1202
1203(define-public swaylock
1204 (package
1205 (name "swaylock")
1206 (version "1.3")
1207 (source
1208 (origin
1209 (method git-fetch)
1210 (uri (git-reference
1211 (url "https://github.com/swaywm/swaylock.git")
1212 (commit version)))
1213 (file-name (git-file-name name version))
1214 (sha256
1215 (base32 "093nv1y9wyg48rfxhd36qdljjry57v1vkzrlc38mkf6zvsq8j7wb"))))
1216 (build-system meson-build-system)
1217 (inputs `(("cairo" ,cairo)
1218 ("gdk-pixbuf" ,gdk-pixbuf)
1219 ("libxkbcommon" ,libxkbcommon)
1220 ;("linux-pam" ,linux-pam) ; FIXME: Doesn't work.
1221 ("wayland" ,wayland)))
7959ccac 1222 (native-inputs `(("git" ,git)
b0805973
RH
1223 ("pango" ,pango)
1224 ("pkg-config" ,pkg-config)
1225 ("scdoc" ,scdoc)
1226 ("wayland-protocols" ,wayland-protocols)))
1227 (home-page "https://github.com/swaywm/sway")
1228 (synopsis "Screen locking utility for Wayland compositors")
1229 (description "Swaylock is a screen locking utility for Wayland compositors.")
1230 (license license:expat))) ; MIT license