Commit | Line | Data |
---|---|---|
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> |
560c0795 | 8 | ;;; Copyright © 2016 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> |
4b563b34 | 11 | ;;; Copyright © 2016, 2017 Ludovic Courtès <ludo@gnu.org> |
12 | ;;; Copyright © 2016, 2017 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> |
bda2ded6 ED |
18 | ;;; |
19 | ;;; This file is part of GNU Guix. | |
20 | ;;; | |
21 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
22 | ;;; under the terms of the GNU General Public License as published by | |
23 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
24 | ;;; your option) any later version. | |
25 | ;;; | |
26 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
27 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
28 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
29 | ;;; GNU General Public License for more details. | |
30 | ;;; | |
31 | ;;; You should have received a copy of the GNU General Public License | |
32 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
33 | ||
34 | (define-module (gnu packages wm) | |
0ede252b | 35 | #:use-module ((guix licenses) #:prefix license:) |
bda2ded6 | 36 | #:use-module (guix packages) |
c595cd47 | 37 | #:use-module (gnu packages) |
bda2ded6 | 38 | #:use-module (gnu packages linux) |
3d1240aa | 39 | #:use-module (guix build-system cmake) |
bda2ded6 | 40 | #:use-module (guix build-system gnu) |
6e38c4be | 41 | #:use-module (guix build-system haskell) |
3e7cb70a | 42 | #:use-module (guix build-system perl) |
c165591d | 43 | #:use-module (guix build-system python) |
6e38c4be | 44 | #:use-module (gnu packages haskell) |
a06b9b50 | 45 | #:use-module (gnu packages haskell-check) |
44b7374a | 46 | #:use-module (gnu packages haskell-web) |
4b563b34 | 47 | #:use-module (gnu packages autotools) |
b0a2dc72 | 48 | #:use-module (gnu packages gawk) |
bda2ded6 ED |
49 | #:use-module (gnu packages base) |
50 | #:use-module (gnu packages pkg-config) | |
51 | #:use-module (gnu packages perl) | |
766a22fb | 52 | #:use-module (gnu packages pulseaudio) |
bda2ded6 ED |
53 | #:use-module (gnu packages xorg) |
54 | #:use-module (gnu packages xdisorg) | |
99828fa7 | 55 | #:use-module (gnu packages documentation) |
bda2ded6 ED |
56 | #:use-module (gnu packages xml) |
57 | #:use-module (gnu packages m4) | |
58 | #:use-module (gnu packages docbook) | |
0ede252b | 59 | #:use-module (gnu packages image) |
bda2ded6 | 60 | #:use-module (gnu packages pcre) |
395751c0 | 61 | #:use-module (gnu packages python) |
bda2ded6 ED |
62 | #:use-module (gnu packages gtk) |
63 | #:use-module (gnu packages libevent) | |
0ede252b | 64 | #:use-module (gnu packages fribidi) |
bda2ded6 ED |
65 | #:use-module (gnu packages maths) |
66 | #:use-module (gnu packages web) | |
0ede252b | 67 | #:use-module (gnu packages fontutils) |
3d1240aa CZ |
68 | #:use-module (gnu packages freedesktop) |
69 | #:use-module (gnu packages glib) | |
70 | #:use-module (gnu packages gperf) | |
71 | #:use-module (gnu packages imagemagick) | |
72 | #:use-module (gnu packages lua) | |
4b563b34 | 73 | #:use-module (gnu packages linux) |
37356e0b | 74 | #:use-module (gnu packages suckless) |
bda2ded6 ED |
75 | #:use-module (guix download) |
76 | #:use-module (guix git-download)) | |
77 | ||
5c37126f ED |
78 | (define-public libconfuse |
79 | (package | |
80 | (name "libconfuse") | |
2c7321ea | 81 | (version "3.2.1") |
5c37126f ED |
82 | (source (origin |
83 | (method url-fetch) | |
631ced1b TGR |
84 | (uri (string-append "https://github.com/martinh/libconfuse/" |
85 | "releases/download/v" version | |
86 | "/confuse-" version ".tar.xz")) | |
5c37126f ED |
87 | (sha256 |
88 | (base32 | |
2c7321ea | 89 | "0pnjmlj9i0alp407qd7c0vq83sz7gpsjrbdgpcn4xvzjp9r35ii3")))) |
5c37126f | 90 | (build-system gnu-build-system) |
631ced1b | 91 | (home-page "https://github.com/martinh/libconfuse") |
5c37126f ED |
92 | (synopsis "Configuration file parser library") |
93 | (description "libconfuse is a configuration file parser library. It | |
94 | supports sections and (lists of) values (strings, integers, floats, booleans | |
95 | or other sections), as well as some other features (such as | |
96 | single/double-quoted strings, environment variable expansion, functions and | |
97 | nested include statements).") | |
0ede252b | 98 | (license license:isc))) |
5c37126f | 99 | |
1268e52d | 100 | (define-public bspwm |
101 | (package | |
102 | (name "bspwm") | |
c62d1a6e | 103 | (version "0.9.3") |
1268e52d | 104 | (source |
105 | (origin | |
106 | (file-name (string-append name "-" version ".tar.gz")) | |
107 | (method url-fetch) | |
108 | (uri (string-append | |
109 | "https://github.com/baskerville/bspwm/archive/" | |
110 | version ".tar.gz")) | |
111 | (sha256 | |
112 | (base32 | |
c62d1a6e | 113 | "17dwj7w16cdj7g4s2y2f96lgj5msq1s4543dnfa3rijlazzy6mmk")))) |
1268e52d | 114 | (build-system gnu-build-system) |
115 | (inputs | |
116 | `(("libxcb" ,libxcb) | |
117 | ("libxinerama" ,libxinerama) | |
118 | ("sxhkd" ,sxhkd) | |
119 | ("xcb-util" ,xcb-util) | |
120 | ("xcb-util-keysyms" ,xcb-util-keysyms) | |
121 | ("xcb-util-wm" ,xcb-util-wm))) | |
122 | (arguments | |
dc1d3cde | 123 | '(#:phases (modify-phases %standard-phases (delete 'configure)) |
1268e52d | 124 | #:tests? #f ; no check target |
125 | #:make-flags (list "CC=gcc" | |
126 | (string-append "PREFIX=" %output)))) | |
127 | (home-page "https://github.com/baskerville/bspwm") | |
128 | (synopsis "Tiling window manager based on binary space partitioning") | |
129 | (description "bspwm is a tiling window manager that represents windows as | |
130 | the leaves of a full binary tree.") | |
0ede252b | 131 | (license license:bsd-2))) |
1268e52d | 132 | |
63b1bdbc ED |
133 | (define-public i3status |
134 | (package | |
135 | (name "i3status") | |
358dae16 | 136 | (version "2.11") |
63b1bdbc ED |
137 | (source (origin |
138 | (method url-fetch) | |
fdad1f3c | 139 | (uri (string-append "https://i3wm.org/i3status/i3status-" |
63b1bdbc ED |
140 | version ".tar.bz2")) |
141 | (sha256 | |
142 | (base32 | |
358dae16 | 143 | "0pwcy599fw8by1a1sf91crkqba7679qhvhbacpmhis8c1xrpxnwq")))) |
63b1bdbc ED |
144 | (build-system gnu-build-system) |
145 | (arguments | |
146 | `(#:make-flags (list "CC=gcc" (string-append "PREFIX=" %output)) | |
147 | #:phases | |
148 | (modify-phases %standard-phases | |
149 | (delete 'configure)) | |
150 | #:tests? #f)) ; no test suite | |
151 | (inputs | |
152 | `(("openlibm" ,openlibm) | |
153 | ("libconfuse" ,libconfuse) | |
154 | ("libyajl" ,libyajl) | |
155 | ("alsa-lib" ,alsa-lib) | |
766a22fb AM |
156 | ("pulseaudio" ,pulseaudio) |
157 | ("libnl" ,libnl) | |
63b1bdbc ED |
158 | ("libcap" ,libcap) |
159 | ("asciidoc" ,asciidoc))) | |
766a22fb AM |
160 | (native-inputs |
161 | `(("pkg-config" ,pkg-config))) | |
fdad1f3c | 162 | (home-page "https://i3wm.org/i3status/") |
63b1bdbc ED |
163 | (synopsis "Status bar for i3bar, dzen2, xmobar or similar programs") |
164 | (description "i3status is a small program for generating a status bar for | |
165 | i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient | |
166 | by issuing a very small number of system calls, as one generally wants to | |
167 | update such a status line every second. This ensures that even under high | |
168 | load, your status bar is updated correctly. Also, it saves a bit of energy by | |
169 | not hogging your CPU as much as spawning the corresponding amount of shell | |
170 | commands would.") | |
0ede252b | 171 | (license license:bsd-3))) |
63b1bdbc | 172 | |
bda2ded6 ED |
173 | (define-public i3-wm |
174 | (package | |
175 | (name "i3-wm") | |
edd38aa8 | 176 | (version "4.14.1") |
bda2ded6 ED |
177 | (source (origin |
178 | (method url-fetch) | |
8658d403 | 179 | (uri (string-append "https://i3wm.org/downloads/i3-" |
bda2ded6 ED |
180 | version ".tar.bz2")) |
181 | (sha256 | |
182 | (base32 | |
edd38aa8 | 183 | "1cazmfbbx6n8c81h6x6pdayq3mxs2ml3adz165z8vapkc72kl1nh")))) |
bda2ded6 ED |
184 | (build-system gnu-build-system) |
185 | (arguments | |
4bd391f5 | 186 | `(#:make-flags |
4b0e6367 KK |
187 | (list "CC=gcc" |
188 | (string-append "PREFIX=" %output) | |
189 | ;; This works around the following error: | |
190 | ;; 'error: ‘for’ loop initial declarations are only allowed in C99 | |
191 | ;; or C11 mode' | |
192 | "CFLAGS=-std=c11") | |
4bd391f5 LF |
193 | ;; The build system tries to build in a separate directory, but that |
194 | ;; seems to be unnecessary. | |
195 | #:configure-flags '("--disable-builddir") | |
196 | ;; The test suite appears to require the unpackaged Perl module AnyEvent. | |
197 | #:tests? #f)) | |
bda2ded6 ED |
198 | (inputs |
199 | `(("libxcb" ,libxcb) | |
200 | ("xcb-util" ,xcb-util) | |
201 | ("xcb-util-cursor" ,xcb-util-cursor) | |
202 | ("xcb-util-keysyms" ,xcb-util-keysyms) | |
203 | ("xcb-util-wm" ,xcb-util-wm) | |
4bd391f5 | 204 | ("xcb-util-xrm" ,xcb-util-xrm) |
bda2ded6 ED |
205 | ("libxkbcommon" ,libxkbcommon) |
206 | ("libev" ,libev) | |
207 | ("libyajl" ,libyajl) | |
208 | ("asciidoc" ,asciidoc) | |
209 | ("xmlto" ,xmlto) | |
210 | ("perl-pod-simple" ,perl-pod-simple) | |
bda2ded6 ED |
211 | ("libx11" ,libx11) |
212 | ("pcre" ,pcre) | |
213 | ("startup-notification" ,startup-notification) | |
214 | ("pango" ,pango) | |
215 | ("cairo" ,cairo))) | |
216 | (native-inputs | |
217 | `(("which" ,which) | |
218 | ("perl" ,perl) | |
4bd391f5 LF |
219 | ("pkg-config" ,pkg-config) |
220 | ;; For building the documentation. | |
4b0e6367 | 221 | ("libxml2" ,libxml2) |
4bd391f5 | 222 | ("docbook-xsl" ,docbook-xsl))) |
8658d403 | 223 | (home-page "https://i3wm.org/") |
bda2ded6 | 224 | (synopsis "Improved tiling window manager") |
a124bbd2 | 225 | (description "A tiling window manager, completely written |
bda2ded6 ED |
226 | from scratch. i3 is primarily targeted at advanced users and |
227 | developers.") | |
0ede252b | 228 | (license license:bsd-3))) |
6e38c4be | 229 | |
3e7cb70a MB |
230 | (define-public perl-anyevent-i3 |
231 | (package | |
232 | (name "perl-anyevent-i3") | |
ec5c986e | 233 | (version "0.17") |
3e7cb70a MB |
234 | (source (origin |
235 | (method url-fetch) | |
236 | (uri (string-append "mirror://cpan/authors/id/M/MS/MSTPLBG/" | |
237 | "AnyEvent-I3-" version ".tar.gz")) | |
238 | (sha256 | |
239 | (base32 | |
ec5c986e | 240 | "0qvd9bq16jyy7v3ma82qcnvz9j503bw0mh7h55gkjf7ir62ck0jk")))) |
3e7cb70a MB |
241 | (build-system perl-build-system) |
242 | (propagated-inputs | |
243 | `(("perl-anyevent" ,perl-anyevent) | |
244 | ("perl-json-xs" ,perl-json-xs))) | |
245 | (home-page "http://search.cpan.org/dist/AnyEvent-I3") | |
246 | (synopsis | |
247 | "Communicate with the i3 window manager through perl") | |
248 | (description | |
249 | "This module connects to the i3 window manager using the UNIX socket | |
250 | based IPC interface it provides (if enabled in the configuration file). | |
251 | You can then subscribe to events or send messages and receive their replies.") | |
252 | ;; Can be used with either license. | |
2f3108ad | 253 | (license (list license:gpl3+ license:perl-license)))) |
3e7cb70a | 254 | |
c165591d IVB |
255 | (define-public python-i3-py |
256 | (package | |
257 | (name "python-i3-py") | |
258 | (version "0.6.5") | |
259 | (source | |
260 | (origin | |
261 | ;; The latest release is not tagged in Git nor has an entry in PyPi, | |
262 | ;; but there is still a clear commit for it, and it's been the last one | |
263 | ;; for years. | |
264 | (method git-fetch) | |
265 | (uri (git-reference | |
266 | (url "https://github.com/ziberna/i3-py.git") | |
267 | (commit "27f88a616e9ecc340e7d041d3d00782f8a1964c1"))) | |
268 | (sha256 | |
269 | (base32 | |
270 | "1nm719dc2xqlll7vj4c4m7mpjb27lpn3bg3c66gajvnrz2x1nmxs")) | |
271 | (file-name (string-append name "-" version "-checkout")))) | |
272 | (build-system python-build-system) | |
273 | (arguments | |
274 | `(#:tests? #f ; no tests yet | |
275 | #:phases (modify-phases %standard-phases | |
276 | (add-after 'install 'install-doc | |
277 | ;; Copy readme file to documentation directory. | |
278 | (lambda* (#:key outputs #:allow-other-keys) | |
279 | (let ((doc (string-append (assoc-ref outputs "out") | |
280 | "/share/doc/" ,name))) | |
281 | (install-file "README.md" doc) | |
282 | ;; Avoid unspecified return value. | |
283 | #t)))))) | |
284 | (propagated-inputs | |
285 | `(("i3-wm" ,i3-wm))) | |
286 | (home-page "https://github.com/ziberna/i3-py") | |
287 | (synopsis "Python interface to the i3 window manager") | |
288 | (description "This package allows you to interact from a Python program | |
289 | with the i3 window manager via its IPC socket. It can send commands and other | |
290 | kinds of messages to i3, select the affected containers, filter results and | |
291 | subscribe to events.") | |
292 | (license license:gpl3+))) | |
293 | ||
294 | (define-public python2-i3-py | |
295 | (package-with-python2 python-i3-py)) | |
296 | ||
37356e0b IVB |
297 | (define-public quickswitch-i3 |
298 | (let ((commit "ed692b1e8f43b95bd907ced26238ce8ccb2ed28f") | |
299 | (revision "1")) ; Guix package revision | |
300 | (package | |
301 | (name "quickswitch-i3") | |
302 | (version (string-append "2.2-" revision "." | |
303 | (string-take commit 7))) | |
304 | (source | |
305 | (origin | |
306 | ;; The latest commit is a few years old and just a couple commits | |
307 | ;; after the last tagged release, so we use that latest commit | |
308 | ;; instead of the release. | |
309 | (method git-fetch) | |
310 | (uri (git-reference | |
311 | (url "https://github.com/proxypoke/quickswitch-for-i3.git") | |
312 | (commit commit))) | |
313 | (sha256 | |
314 | (base32 | |
315 | "0447077sama80jcdg5p64zjsvafmz5rbdrirhm1adcdjhkh6iqc5")) | |
316 | (patches (search-patches "quickswitch-fix-dmenu-check.patch")) | |
317 | (file-name (string-append name "-" version "-checkout")))) | |
318 | (build-system python-build-system) | |
319 | (arguments | |
320 | `(#:tests? #f ; no tests yet | |
321 | #:phases (modify-phases %standard-phases | |
322 | (add-after 'install 'install-doc | |
323 | ;; Copy readme file to documentation directory. | |
324 | (lambda* (#:key outputs #:allow-other-keys) | |
325 | (let ((doc (string-append (assoc-ref outputs "out") | |
326 | "/share/doc/" ,name))) | |
327 | (install-file "README.rst" doc) | |
328 | ;; Avoid unspecified return value. | |
329 | #t)))))) | |
330 | (inputs | |
331 | `(("python-i3-py" ,python-i3-py) | |
332 | ("dmenu" ,dmenu))) | |
333 | (home-page "https://github.com/proxypoke/quickswitch-for-i3") | |
334 | (synopsis "Quickly change to and locate windows in the i3 window manager") | |
335 | (description | |
336 | "This utility for the i3 window manager allows you to quickly switch to | |
337 | and locate windows on all your workspaces, using an interactive dmenu | |
338 | prompt.") | |
339 | (license (license:non-copyleft "http://www.wtfpl.net/txt/copying/"))))) | |
340 | ||
4b563b34 | 341 | (define-public i3lock-color |
342 | (package | |
343 | (name "i3lock-color") | |
344 | (version "2.10.1c") | |
345 | (source | |
346 | (origin | |
347 | (method url-fetch) | |
348 | (uri (string-append "https://github.com/PandorasFox/i3lock-color/" | |
349 | "archive/" version ".tar.gz")) | |
350 | (file-name (string-append name "-" version ".tar.gz")) | |
351 | (sha256 | |
352 | (base32 | |
353 | "119xvdm4r6irqk0mar80hx6s8ydw26y35h7712rd7nbg7pb7i053")))) | |
354 | (build-system gnu-build-system) | |
355 | (arguments | |
356 | `(#:tests? #f ;No tests included. | |
357 | #:phases | |
358 | (modify-phases %standard-phases | |
359 | (add-after 'unpack 'bootstrap | |
360 | (lambda _ | |
361 | (zero? (system* "autoreconf" "-vfi"))))))) | |
362 | (inputs | |
363 | `(("xcb-util-image" ,xcb-util-image) | |
364 | ("xcb-util" ,xcb-util) | |
365 | ("libxcb" ,libxcb) | |
366 | ("linux-pam" ,linux-pam) | |
367 | ("libxkbcommon" ,libxkbcommon) | |
368 | ("libev" ,libev) | |
369 | ("cairo" ,cairo))) | |
370 | (native-inputs | |
371 | `(("pkg-config" ,pkg-config) | |
372 | ("autoconf" ,autoconf) | |
373 | ("automake" ,automake))) | |
374 | (home-page "https://github.com/PandorasFox/i3lock-color") | |
375 | (synopsis "Screen locker with color configuration support") | |
376 | (description | |
377 | "i3lock-color is a simpler X11 screen locker derived from i3lock. | |
378 | Features include: | |
379 | ||
380 | @enumerate | |
381 | @item forking process, the locked screen is preserved when you suspend to RAM; | |
382 | @item specify background color or image to be displayed in the lock screen; | |
383 | @item many additional color options. | |
384 | @end enumerate") | |
385 | (license license:bsd-3))) | |
386 | ||
b0a2dc72 | 387 | (define-public i3lock-fancy |
388 | (package | |
389 | (name "i3lock-fancy") | |
390 | (version "0.2") | |
391 | (source | |
392 | (origin | |
393 | (method url-fetch) | |
394 | (uri (string-append "https://github.com/meskarune/i3lock-fancy/archive/" | |
395 | version ".tar.gz")) | |
396 | (file-name (string-append name "-" version ".tar.gz")) | |
397 | (sha256 | |
398 | (base32 | |
399 | "020m7mnfq5cvir7p9v3hkb7cvb4cai33wppxl2zdwscwwjnchc5y")))) | |
400 | (build-system gnu-build-system) | |
401 | (arguments | |
402 | `(#:tests? #f ;No tests included | |
403 | #:phases | |
404 | (modify-phases %standard-phases | |
405 | (replace 'configure | |
406 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
407 | (let* ((out (assoc-ref outputs "out")) | |
408 | (icons (string-append out "/share/i3lock-fancy/icons/")) | |
409 | (wmctrl (string-append (assoc-ref inputs "wmctrl") | |
410 | "/bin/wmctrl")) | |
411 | (mconvert (string-append (assoc-ref inputs "imagemagick") | |
412 | "/bin/convert")) | |
413 | (mimport (string-append (assoc-ref inputs "imagemagick") | |
414 | "/bin/import")) | |
415 | (awk (string-append (assoc-ref inputs "gawk") | |
416 | "/bin/gawk"))) | |
417 | ||
418 | (substitute* "lock" | |
419 | (("$(which wmctrl)") wmctrl) | |
420 | (("convert") mconvert) | |
421 | (("shot=\\(import") (string-append "shot=\(" mimport)) | |
422 | (("awk -F") (string-append awk " -F")) | |
423 | ((" awk") awk) | |
424 | (("\\$scriptpath/icons/") icons)) | |
425 | #t))) | |
426 | (delete 'build) | |
427 | (replace 'install | |
428 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
429 | (let* ((out (assoc-ref outputs "out")) | |
430 | (bin (string-append out "/bin")) | |
431 | (icons (string-append out "/share/i3lock-fancy/icons/"))) | |
432 | ||
433 | (install-file "lock" bin) | |
434 | (rename-file (string-append bin "/lock") | |
435 | (string-append bin "/i3lock-fancy")) | |
436 | (copy-recursively "icons" icons) | |
437 | #t)))))) | |
438 | (native-inputs | |
439 | `(("imagemagick" ,imagemagick) | |
440 | ("wmctrl" ,wmctrl) | |
441 | ("gawk" ,gawk))) | |
442 | (home-page "https://github.com/meskarune/i3lock-fancy") | |
443 | (synopsis "Screen locker with screenshot function") | |
444 | (description | |
445 | "@code{i3lock-fancy} is a Bash script that takes a screenshot of | |
446 | the desktop, blurs the background and adds a lock icon and text. | |
447 | It requires @code{i3lock-color} or @code{i3lock} and can optionally | |
448 | be passed any screenshot util like @code{scrot}. | |
449 | This screen locker can be used with any window manager or | |
450 | desktop environment.") | |
451 | (license license:expat))) | |
452 | ||
6e38c4be SB |
453 | (define-public xmonad |
454 | (package | |
455 | (name "xmonad") | |
cffaca95 | 456 | (version "0.13") |
6e38c4be SB |
457 | (synopsis "Tiling window manager") |
458 | (source (origin | |
459 | (method url-fetch) | |
966a543b | 460 | (uri (string-append "mirror://hackage/package/xmonad/" |
ca80b8ba | 461 | name "-" version ".tar.gz")) |
6e38c4be SB |
462 | (sha256 |
463 | (base32 | |
cffaca95 | 464 | "1jh3lcs20qpna36fa5a0r174xqrsxhj10x1rm5vwf64zariipy7r")))) |
6e38c4be SB |
465 | (build-system haskell-build-system) |
466 | (inputs | |
174b091f MM |
467 | `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions) |
468 | ("ghc-mtl" ,ghc-mtl) | |
469 | ("ghc-quickcheck" ,ghc-quickcheck) | |
470 | ("ghc-setlocale" ,ghc-setlocale) | |
471 | ("ghc-utf8-string" ,ghc-utf8-string) | |
cffaca95 | 472 | ("ghc-directory" ,ghc-directory) |
174b091f | 473 | ("ghc-x11" ,ghc-x11))) |
6e38c4be SB |
474 | (arguments |
475 | `(#:phases | |
476 | (modify-phases %standard-phases | |
477 | (add-after | |
478 | 'install 'install-xsession | |
479 | (lambda _ | |
480 | (let* ((xsessions (string-append %output "/share/xsessions"))) | |
481 | (mkdir-p xsessions) | |
482 | (call-with-output-file | |
483 | (string-append xsessions "/xmonad.desktop") | |
484 | (lambda (port) | |
485 | (format port "~ | |
486 | [Desktop Entry]~@ | |
487 | Name=~a~@ | |
488 | Comment=~a~@ | |
489 | Exec=~a/bin/xmonad~@ | |
490 | Type=Application~%" ,name ,synopsis %output))))))))) | |
491 | (home-page "http://xmonad.org") | |
492 | (description | |
493 | "Xmonad is a tiling window manager for X. Windows are arranged | |
494 | automatically to tile the screen without gaps or overlap, maximising screen | |
495 | use. All features of the window manager are accessible from the keyboard: a | |
496 | mouse is strictly optional. Xmonad is written and extensible in Haskell. | |
497 | Custom layout algorithms, and other extensions, may be written by the user in | |
498 | config files. Layouts are applied dynamically, and different layouts may be | |
499 | used on each workspace. Xinerama is fully supported, allowing windows to be | |
500 | tiled on several screens.") | |
0ede252b | 501 | (license license:bsd-3))) |
78edf44c | 502 | |
6e864d00 OP |
503 | (define-public xmobar |
504 | (package | |
505 | (name "xmobar") | |
506 | (version "0.24.5") | |
507 | (source (origin | |
508 | (method url-fetch) | |
509 | (uri (string-append "mirror://hackage/package/xmobar/" | |
510 | name "-" version ".tar.gz")) | |
511 | (sha256 | |
512 | (base32 | |
513 | "0sdzfj2wa4wpig1i2i5n9qpwm90jp88qifsmaa7j37yhhs6snfir")))) | |
514 | (build-system haskell-build-system) | |
515 | (inputs | |
516 | `(("ghc-http" ,ghc-http) | |
517 | ("ghc-parsec" ,ghc-parsec) | |
518 | ("ghc-regex-compat" ,ghc-regex-compat) | |
519 | ("ghc-stm" ,ghc-stm) | |
520 | ("ghc-x11-xft" ,ghc-x11-xft) | |
521 | ("ghc-hinotify" ,ghc-hinotify) | |
522 | ("libxpm" ,libxpm) | |
523 | ("wireless-tools" ,wireless-tools))) | |
524 | (arguments | |
525 | `(#:configure-flags | |
526 | '("--flags=with_utf8 with_xft with_xpm with_inotify with_iwlib"))) | |
527 | (home-page "http://xmobar.org") | |
528 | (synopsis "Minimalistic text based status bar") | |
529 | (description | |
530 | "@code{xmobar} is a lightweight, text-based, status bar written in | |
531 | Haskell. It was originally designed to be used together with Xmonad, but it | |
532 | is also usable with any other window manager. While xmobar is written in | |
533 | Haskell, no knowledge of the language is required to install and use it.") | |
534 | (license license:bsd-3))) | |
535 | ||
78edf44c SB |
536 | (define-public ghc-xmonad-contrib |
537 | (package | |
538 | (name "ghc-xmonad-contrib") | |
cffaca95 | 539 | (version "0.13") |
78edf44c SB |
540 | (source |
541 | (origin | |
542 | (method url-fetch) | |
966a543b | 543 | (uri (string-append "mirror://hackage/package/xmonad-contrib/" |
78edf44c SB |
544 | "xmonad-contrib-" version ".tar.gz")) |
545 | (sha256 | |
546 | (base32 | |
cffaca95 | 547 | "0vj72jhfng6y7hv5frx2v99jvl3jn9rbpk2j7xw9vydiwmzq4q57")))) |
78edf44c SB |
548 | (build-system haskell-build-system) |
549 | (propagated-inputs | |
550 | `(("ghc-mtl" ,ghc-mtl) | |
2687f7db | 551 | ("ghc-old-time" ,ghc-old-time) |
78edf44c SB |
552 | ("ghc-random" ,ghc-random) |
553 | ("ghc-utf8-string" ,ghc-utf8-string) | |
554 | ("ghc-extensible-exceptions" ,ghc-extensible-exceptions) | |
555 | ("ghc-x11" ,ghc-x11) | |
556 | ("ghc-x11-xft" ,ghc-x11-xft) | |
557 | ("xmonad" ,xmonad))) | |
558 | (home-page "http://xmonad.org") | |
559 | (synopsis "Third party extensions for xmonad") | |
560 | (description | |
561 | "Third party tiling algorithms, configurations, and scripts to Xmonad, a | |
562 | tiling window manager for X.") | |
0ede252b | 563 | (license license:bsd-3))) |
45e10968 EB |
564 | |
565 | (define-public evilwm | |
566 | (package | |
567 | (name "evilwm") | |
568 | (version "1.1.1") | |
569 | (source | |
570 | (origin | |
571 | (method url-fetch) | |
572 | (uri (string-append "http://www.6809.org.uk/evilwm/evilwm-" | |
573 | version ".tar.gz")) | |
574 | (sha256 | |
575 | (base32 | |
c595cd47 | 576 | "0ak0yajzk3v4dg5wmaghv6acf7v02a4iw8qxmq5yw5ard8lrqn3r")) |
fc1adab1 | 577 | (patches (search-patches "evilwm-lost-focus-bug.patch")))) |
45e10968 EB |
578 | (build-system gnu-build-system) |
579 | (inputs | |
580 | `(("libx11" ,libx11) | |
581 | ("libxext" ,libxext) | |
582 | ("libxrandr" ,libxrandr))) | |
583 | (arguments | |
584 | `(#:modules ((srfi srfi-26) | |
585 | (guix build utils) | |
586 | (guix build gnu-build-system)) | |
587 | #:make-flags (let ((inputs (map (cut assoc-ref %build-inputs <>) | |
588 | '("libx11" "libxext" "libxrandr"))) | |
589 | (join (lambda (proc strs) | |
590 | (string-join (map proc strs) " "))) | |
591 | (dash-I (cut string-append "-I" <> "/include")) | |
592 | (dash-L (cut string-append "-L" <> "/lib"))) | |
593 | `("desktopfilesdir=$(prefix)/share/xsessions" | |
594 | ,(string-append "prefix=" (assoc-ref %outputs "out")) | |
595 | ,(string-append "CPPFLAGS=" (join dash-I inputs)) | |
596 | ,(string-append "LDFLAGS=" (join dash-L inputs)))) | |
597 | #:tests? #f ;no tests | |
598 | #:phases (modify-phases %standard-phases | |
599 | (delete 'configure)))) ;no configure script | |
600 | (home-page "http://www.6809.org.uk/evilwm/") | |
601 | (synopsis "Minimalist window manager for the X Window System") | |
602 | (description | |
603 | "evilwm is a minimalist window manager based on aewm, extended to feature | |
604 | many keyboard controls with repositioning and maximize toggles, solid window | |
605 | drags, snap-to-border support, and virtual desktops.") | |
0ede252b DM |
606 | (license (license:x11-style "file:///README")))) |
607 | ||
608 | (define-public fluxbox | |
609 | (package | |
610 | (name "fluxbox") | |
611 | (version "1.3.7") | |
612 | (synopsis "Small and fast window manager") | |
613 | (source (origin | |
614 | (method url-fetch) | |
de67e922 | 615 | (uri (string-append "mirror://sourceforge/fluxbox/fluxbox/" |
0ede252b DM |
616 | version "/fluxbox-" version ".tar.xz")) |
617 | (sha256 | |
618 | (base32 | |
619 | "1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w")))) | |
620 | (build-system gnu-build-system) | |
621 | (arguments | |
622 | `(#:make-flags '("CPPFLAGS=-U__TIME__") ;ugly, but for reproducibility | |
623 | #:phases | |
624 | (modify-phases %standard-phases | |
625 | (add-after | |
626 | 'install 'install-xsession | |
627 | (lambda _ | |
628 | (let ((xsessions (string-append %output "/share/xsessions"))) | |
629 | (mkdir-p xsessions) | |
630 | (call-with-output-file | |
631 | (string-append xsessions "/fluxbox.desktop") | |
632 | (lambda (port) | |
633 | (format port "~ | |
634 | [Desktop Entry]~@ | |
635 | Name=~a~@ | |
636 | Comment=~a~@ | |
637 | Exec=~a/bin/startfluxbox~@ | |
638 | Type=Application~%" ,name ,synopsis %output))))))))) | |
639 | (native-inputs | |
640 | `(("pkg-config" ,pkg-config))) | |
641 | (inputs | |
642 | `(("freetype" ,freetype) | |
643 | ("fribidi" ,fribidi) | |
644 | ("imlib2" ,imlib2) | |
645 | ("libx11" ,libx11) | |
646 | ("libxext" ,libxext) | |
647 | ("libxft" ,libxft) | |
648 | ("libxinerama" ,libxinerama) | |
649 | ("libxpm" ,libxpm) | |
650 | ("libxrandr" ,libxrandr) | |
651 | ("libxrender" ,libxrender))) | |
652 | (description "Fluxbox is a window manager. It is light on resources | |
653 | and easy to handle yet full of features to make an easy and fast desktop | |
654 | experience.") | |
655 | (home-page "http://fluxbox.org/") | |
656 | (license license:expat))) | |
3d1240aa CZ |
657 | |
658 | (define-public awesome | |
659 | (package | |
660 | (name "awesome") | |
db0164b2 | 661 | (version "4.2") |
3d1240aa CZ |
662 | (source |
663 | (origin (method url-fetch) | |
664 | (uri (string-append | |
91426243 | 665 | "https://github.com/awesomeWM/awesome-releases/raw/" |
666 | "master/awesome-" version ".tar.xz")) | |
3d1240aa CZ |
667 | (sha256 |
668 | (base32 | |
db0164b2 | 669 | "0kwpbls9h1alxcmvxh5g9qb995fds5b2ngcr44w0ibazkyls2pdc")) |
3d1240aa CZ |
670 | (modules '((guix build utils) |
671 | (srfi srfi-19))) | |
3d1240aa CZ |
672 | (snippet |
673 | ;; Remove non-reproducible timestamp and use the date of the | |
674 | ;; source file instead. | |
675 | '(substitute* "common/version.c" | |
676 | (("__DATE__ \" \" __TIME__") | |
677 | (date->string | |
678 | (time-utc->date | |
679 | (make-time time-utc 0 | |
680 | (stat:mtime (stat "awesome.c")))) | |
681 | "\"~c\"")))) | |
682 | (patches (search-patches "awesome-reproducible-png.patch")))) | |
683 | (build-system cmake-build-system) | |
684 | (native-inputs `(("asciidoc" ,asciidoc) | |
685 | ("docbook-xsl" ,docbook-xsl) | |
686 | ("doxygen" ,doxygen) | |
687 | ("gperf" ,gperf) | |
688 | ("imagemagick" ,imagemagick) | |
689 | ("libxml2" ,libxml2) ;for XML_CATALOG_FILES | |
690 | ("pkg-config" ,pkg-config) | |
691 | ("xmlto" ,xmlto))) | |
692 | (inputs `(("cairo" ,cairo) | |
693 | ("dbus" ,dbus) | |
694 | ("gdk-pixbuf" ,gdk-pixbuf) | |
695 | ("glib" ,glib) | |
22037a32 | 696 | ("gobject-introspection" ,gobject-introspection) |
3d1240aa CZ |
697 | ("imlib2" ,imlib2) |
698 | ("libev" ,libev) | |
699 | ("libxcb" ,libxcb) | |
700 | ("libxcursor" ,libxcursor) | |
701 | ("libxdg-basedir" ,libxdg-basedir) | |
91426243 | 702 | ("libxkbcommon" ,libxkbcommon) |
22037a32 | 703 | ("lua" ,lua) |
704 | ("lua-lgi",lua-lgi) | |
3d1240aa CZ |
705 | ("pango" ,pango) |
706 | ("startup-notification" ,startup-notification) | |
707 | ("xcb-util" ,xcb-util) | |
708 | ("xcb-util-cursor" ,xcb-util-cursor) | |
709 | ("xcb-util-image" ,xcb-util-image) | |
710 | ("xcb-util-keysyms" ,xcb-util-keysyms) | |
711 | ("xcb-util-renderutil" ,xcb-util-renderutil) | |
91426243 | 712 | ("xcb-util-xrm" ,xcb-util-xrm) |
3d1240aa CZ |
713 | ("xcb-util-wm" ,xcb-util-wm))) |
714 | (arguments | |
715 | `(;; Let compression happen in our 'compress-documentation' phase so that | |
716 | ;; '--no-name' is used, which removes timestamps from gzip output. | |
717 | #:configure-flags '("-DCOMPRESS_MANPAGES=off") | |
718 | ||
db0164b2 | 719 | ;; Building awesome in its source dir is no longer supported. |
720 | #:out-of-source? #t | |
721 | ||
22037a32 | 722 | #:phases |
723 | (modify-phases %standard-phases | |
724 | (add-before 'build 'xmlto-skip-validation | |
725 | (lambda _ | |
726 | ;; We can't download the necessary schema, so so skip | |
727 | ;; validation and assume they're valid. | |
728 | (substitute* "../build/CMakeFiles/man.dir/build.make" | |
729 | (("/xmlto") | |
730 | (string-append "/xmlto --skip-validation"))) | |
731 | #t)) | |
732 | (add-before 'configure 'set-lua-paths | |
733 | (lambda* (#:key inputs #:allow-other-keys) | |
734 | ;; The build process needs to load cairo dynamically. | |
735 | (let* ((cairo (string-append | |
736 | (assoc-ref inputs "cairo") "/lib" )) | |
737 | (lua-lgi (assoc-ref inputs "lua-lgi") )) | |
738 | (setenv "LD_LIBRARY_PATH" cairo ) | |
739 | (setenv "LUA_PATH" (string-append lua-lgi | |
740 | "/share/lua/5.2/?.lua")) | |
741 | (setenv "LUA_CPATH" (string-append lua-lgi | |
742 | "/lib/lua/5.2/?.so")) | |
743 | #t))) | |
744 | (replace 'check | |
745 | (lambda _ | |
746 | ;; There aren't any tests, so just make sure the binary | |
747 | ;; gets built and can be run successfully. | |
748 | (zero? (system* "../build/awesome" "-v")))) | |
749 | (add-after 'install 'wrap | |
750 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
751 | (let* ((awesome (assoc-ref outputs "out")) | |
752 | (cairo (string-append | |
753 | (assoc-ref inputs "cairo") "/lib" )) | |
754 | (lua-lgi (assoc-ref inputs "lua-lgi") )) | |
755 | (wrap-program (string-append awesome "/bin/awesome") | |
756 | `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH"))) | |
757 | `("LD_LIBRARY_PATH" suffix (, cairo)) | |
758 | `("LUA_PATH" suffix (,(string-append lua-lgi | |
759 | "/share/lua/5.2/?.lua"))) | |
760 | `("LUA_CPATH" suffix (,(string-append | |
761 | lua-lgi "/lib/lua/5.2/?.so")))))))))) | |
3d1240aa CZ |
762 | (synopsis "Highly configurable window manager") |
763 | (description | |
c4dd0def | 764 | "Awesome has been designed as a framework window manager. It is fast, small, |
765 | dynamic and extensible using the Lua programming language.") | |
3d1240aa CZ |
766 | (license license:gpl2+) |
767 | (home-page "https://awesome.naquadah.org/"))) | |
395751c0 | 768 | |
769 | (define-public menumaker | |
770 | (package | |
771 | (name "menumaker") | |
772 | (version "0.99.10") | |
773 | (source | |
774 | (origin | |
775 | (method url-fetch) | |
776 | (uri (string-append "mirror://sourceforge/menumaker/" | |
777 | "menumaker-" version ".tar.gz")) | |
778 | (sha256 | |
779 | (base32 | |
780 | "1mm4cvg3kphkkd8nwrhcg6d9nm5ar7mgc0wf6fxk6zck1l7xn8ky")))) | |
781 | (build-system gnu-build-system) | |
782 | (inputs | |
783 | `(("python" ,python))) | |
784 | (synopsis "Heuristics-driven menu generator") | |
785 | (description | |
786 | "MenuMaker is a menu generation utility for a number of X window | |
787 | managers and desktop environments. It is capable of finding lots of | |
788 | installed programs and generating a root menu consistent across all | |
789 | supported window managers, so one will get (almost) the same menu in | |
790 | all of them. Currently supported window managers include: | |
791 | ||
792 | @enumerate | |
793 | @item BlackBox | |
794 | @item Deskmenu | |
795 | @item FluxBox | |
796 | @item IceWM | |
797 | @item OpenBox | |
798 | @item PekWM | |
799 | @item WindowMaker | |
800 | @item XFCE | |
801 | @end enumerate\n") | |
802 | (home-page "http://menumaker.sourceforge.net/") | |
803 | (license license:bsd-2))) | |
dbf544f9 | 804 | |
805 | (define-public keybinder | |
806 | (package | |
807 | (name "keybinder") | |
808 | (version "0.3.1") | |
809 | (source | |
810 | (origin | |
811 | (method url-fetch) | |
812 | (uri (string-append "https://github.com/engla/keybinder/releases/" | |
813 | "download/v" version "/keybinder-" | |
814 | version ".tar.gz")) | |
815 | (file-name (string-append name "-" version ".tar.gz")) | |
816 | (sha256 | |
817 | (base32 | |
818 | "0h52hj3ay8mfhwvmfxbxlfyq74hifdk8wxgxp7fr4iy6189hg7w7")))) | |
819 | (build-system gnu-build-system) | |
820 | (inputs | |
821 | `(("python-2" ,python-2) | |
822 | ("gtk+-2" ,gtk+-2))) | |
823 | (native-inputs | |
824 | `(("python2-pygtk" ,python2-pygtk) | |
825 | ("gtk-doc" ,gtk-doc) | |
826 | ("pkg-config" ,pkg-config))) | |
827 | (synopsis "Library for registering global keyboard shortcuts") | |
828 | (description | |
829 | "Keybinder is a library for registering global keyboard shortcuts. | |
830 | Keybinder works with GTK-based applications using the X Window System.") | |
831 | (home-page "https://github.com/engla/keybinder") | |
832 | (license license:gpl2+))) | |
78dfc9e2 | 833 | |
834 | (define-public spectrwm | |
835 | (package | |
836 | (name "spectrwm") | |
15712cc9 | 837 | (version "3.1.0") |
78dfc9e2 | 838 | (source |
839 | (origin | |
840 | (method url-fetch) | |
841 | (uri (let ((version-with-underscores | |
842 | (string-join (string-split version #\.) "_"))) | |
843 | (string-append "https://github.com/conformal/spectrwm/archive/" | |
844 | "SPECTRWM_" version-with-underscores ".tar.gz"))) | |
845 | (file-name (string-append name "-" version ".tar.gz")) | |
846 | (sha256 | |
847 | (base32 | |
15712cc9 | 848 | "16lxcharxslf9rc39wxa3mr2nx5d8kzm9ls7p7dal8yrwr7y59dp")))) |
78dfc9e2 | 849 | (build-system gnu-build-system) |
850 | (arguments | |
851 | `(#:make-flags (let ((pkg-config (lambda (flag) | |
852 | (string-append | |
853 | "$(shell pkg-config " flag " " | |
854 | "xft fontconfig x11 libpng)")))) | |
855 | (list | |
856 | "CC=gcc" | |
857 | (string-append "PREFIX=" %output) | |
858 | (string-append "INCS=-I. " (pkg-config "--cflags")) | |
859 | (string-append "LIBS=" (pkg-config "--libs") " -lm"))) | |
860 | #:tests? #f ;No test suite | |
861 | #:phases | |
862 | (modify-phases %standard-phases | |
863 | (add-before 'build 'change-dir | |
864 | (lambda _ | |
865 | (chdir "linux") #t)) | |
866 | (add-after 'change-dir 'patch-makefile | |
867 | (lambda _ | |
868 | (substitute* "Makefile" | |
869 | (("-g") "")))) | |
870 | (add-after 'change-dir 'fix-freetype-include | |
871 | (lambda _ | |
872 | (substitute* "Makefile" | |
873 | (("/usr/include/freetype2") | |
874 | (string-append (assoc-ref %build-inputs "freetype") | |
875 | "/include/freetype2"))))) | |
876 | (delete 'configure)))) ;no 'configure' exists | |
877 | (inputs | |
878 | `(("freetype" ,freetype) | |
879 | ("fontconfig" ,fontconfig) | |
880 | ("libx11" ,libx11) | |
881 | ("libxcursor" ,libxcursor) | |
882 | ("libxrandr" ,libxrandr) | |
883 | ("libxtst" ,libxtst) | |
884 | ("libxft" ,libxft) | |
885 | ("xcb-util" ,xcb-util) | |
886 | ("xcb-util-wm" ,xcb-util-wm) | |
887 | ("xcb-util-keysyms" ,xcb-util-keysyms))) | |
888 | (native-inputs | |
889 | `(("libxt" ,libxt) | |
890 | ("pkg-config" ,pkg-config))) | |
891 | (synopsis "Minimalistic automatic tiling window manager") | |
892 | (description | |
893 | "Spectrwm is a small dynamic tiling and reparenting window manager for X11. | |
894 | It is inspired by Xmonad and dwm. Its major features include: | |
895 | ||
896 | @itemize | |
897 | @item Navigation anywhere on all screens with either the keyboard or mouse | |
898 | @item Customizable status bar | |
899 | @item Restartable without losing state | |
900 | @item Quick launch menu | |
901 | @item Many screen layouts possible with a few simple key strokes | |
902 | @item Move/resize floating windows | |
32008a75 TGR |
903 | @item Extended Window Manager Hints (@dfn{EWMH}) support |
904 | @item Configurable tiling | |
78dfc9e2 | 905 | @item Adjustable tile gap allows for a true one pixel border |
906 | @item Customizable colors and border width | |
907 | @end itemize\n") | |
908 | (home-page "https://github.com/conformal/spectrwm") | |
909 | (license license:isc))) |