gnu: linux-libre: Update to 4.12.7.
[jackhill/guix/guix.git] / gnu / packages / xdisorg.scm
CommitLineData
3c156c8a
JD
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
56ac2bf4 3;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
3c156c8a 4;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
9f1d33be 5;;; Copyright © 2014, 2015, 2016 Alex Kost <alezost@gmail.com>
04fa4cdf 6;;; Copyright © 2013, 2015, 2017 Ludovic Courtès <ludo@gnu.org>
751f6871 7;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
42f2c2b9 8;;; Copyright © 2015 Alexander I.Grafov <grafov@gmail.com>
f1f7049e 9;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
998b8c07 10;;; Copyright © 2015 xd1le <elisp.vim@gmail.com>
6645753b 11;;; Copyright © 2015 Florian Paul Schmidt <mista.tapas@gmx.net>
6f74aecd 12;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
b951e26f 13;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
e4ddf924 14;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
71ca0539 15;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
6cfd1a68 16;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
b2193c35 17;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com>
01278f16 18;;; Copyright © 2016 Petter <petter@mykolab.ch>
37447422 19;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com>
33c93ea3 20;;; Copyright © 2017 ng0 <contact.ng0@cryptolab.net>
89be33f7 21;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
3c156c8a
JD
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 xdisorg)
39 #:use-module ((guix licenses) #:prefix license:)
40 #:use-module (guix packages)
41 #:use-module (guix download)
37447422 42 #:use-module (guix git-download)
18ad5bff 43 #:use-module (guix utils)
9f1d33be 44 #:use-module (guix build-system cmake)
3c156c8a 45 #:use-module (guix build-system gnu)
f1f7049e 46 #:use-module (guix build-system glib-or-gtk)
ae05b185 47 #:use-module (guix build-system python)
3c156c8a 48 #:use-module (gnu packages)
99828fa7 49 #:use-module (gnu packages documentation)
b4c400a7 50 #:use-module (gnu packages algebra)
b2193c35 51 #:use-module (gnu packages autotools)
3c156c8a
JD
52 #:use-module (gnu packages compression)
53 #:use-module (gnu packages image)
54 #:use-module (gnu packages pkg-config)
ae05b185 55 #:use-module (gnu packages gettext)
9f1d33be 56 #:use-module (gnu packages gl)
2e88e089 57 #:use-module (gnu packages glib)
751f6871 58 #:use-module (gnu packages gnome)
01614de1 59 #:use-module (gnu packages icu4c)
937b71df 60 #:use-module (gnu packages maths)
4493a3c2 61 #:use-module (gnu packages m4)
1ef3f91a 62 #:use-module (gnu packages ncurses)
de51bf58 63 #:use-module (gnu packages perl)
ae05b185 64 #:use-module (gnu packages python)
ab69d9ac 65 #:use-module (gnu packages linux)
b4c400a7 66 #:use-module (gnu packages gl)
76212b57 67 #:use-module (gnu packages guile)
f1f7049e
AW
68 #:use-module (gnu packages xml)
69 #:use-module (gnu packages gtk)
cf60e76a
DM
70 #:use-module (gnu packages xorg)
71 #:use-module (gnu packages bison))
3c156c8a 72
3c156c8a
JD
73;; packages outside the x.org system proper
74
ae05b185
ML
75(define-public arandr
76 (package
77 (name "arandr")
16d8f9be 78 (version "0.1.9")
ae05b185
ML
79 (source (origin
80 (method url-fetch)
81 (uri (string-append "http://christian.amsuess.com/tools/" name
82 "/files/" name "-" version ".tar.gz"))
83 (sha256
84 (base32
04fa4cdf
LC
85 "1i3f1agixxbfy4kxikb2b241p7c2lg73cl9wqfvlwz3q6zf5faxv"))
86 (modules '((guix build utils)))
87 (snippet
88 ;; Do not record a timestamp and file name in gzipped man
89 ;; pages (this is equivalent to 'gzip --no-name'.)
90 '(substitute* "setup.py"
91 (("gzip\\.open\\(gzfile, 'w', 9\\)")
92 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)")))))
ae05b185 93 (build-system python-build-system)
b951e26f
RW
94 (arguments
95 `(#:python ,python-2 ;incompatible with python 3
b5244fcb 96 #:tests? #f)) ;no tests
b951e26f
RW
97 (inputs `(("pygtk" ,python2-pygtk)
98 ("xrandr" ,xrandr)))
b94a6ca0 99 (native-inputs `(("gettext" ,gettext-minimal)
f3b98f4f 100 ("python-docutils" ,python2-docutils)))
ae05b185
ML
101 (home-page "https://christian.amsuess.com/tools/arandr/")
102 (synopsis "Another RandR graphical user interface")
103 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
104 (description "ARandR is designed to provide a simple visual front end for
105the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
106shown graphically and can be changed in a drag-and-drop way. Configurations
107are saved as executable shell scripts which can be loaded without using this
108program.")
109 (license license:gpl3+)))
110
de878f1b
JD
111(define-public xclip
112 (package
113 (name "xclip")
b2193c35 114 (version "0.13")
de878f1b
JD
115 (source
116 (origin
117 (method url-fetch)
b2193c35
MB
118 (uri (string-append "https://github.com/astrand/xclip"
119 "/archive/" version ".tar.gz"))
e3baf59c 120 (file-name (string-append name "-" version ".tar.gz"))
de878f1b
JD
121 (sha256
122 (base32
b2193c35 123 "0n7pczk9vv30zf8qfln8ba3hnif9yfdxg0m84djac469wc28hnya"))))
de878f1b
JD
124 (build-system gnu-build-system)
125 (arguments
b2193c35
MB
126 '(#:tests? #f ; There is no test suite
127 #:phases
128 (modify-phases %standard-phases
129 ;; Since version 0.13, bootstrapped releases are no longer available.
130 (add-after 'unpack 'bootstrap
131 (lambda _ (zero? (system* "autoreconf" "-v")))))))
132 (native-inputs
133 `(("autoconf" ,autoconf)
134 ("automake" ,automake)))
de878f1b
JD
135 (inputs `(("libxmu" ,libxmu)
136 ("libxt" ,libxt)))
b2193c35 137 (home-page "https://github.com/astrand/xclip")
de878f1b
JD
138 (synopsis "Command line interface to X11 clipboard")
139 (description "Xclip is a command line interface to the X11 clipboard. It
140can also be used for copying files, as an alternative to sftp/scp, thus
141avoiding password prompts when X11 forwarding has already been setup.")
142 (license license:gpl2+)))
143
cf60e76a
DM
144(define-public libxkbcommon
145 (package
146 (name "libxkbcommon")
fbb4755c 147 (version "0.7.1")
cf60e76a
DM
148 (source (origin
149 (method url-fetch)
fbb4755c 150 (uri (string-append "https://xkbcommon.org/download/" name "-"
cf60e76a
DM
151 version ".tar.xz"))
152 (sha256
153 (base32
fbb4755c 154 "12z6hih3n1r0asp2hzp9qsiwdfkfz46jwp06x8kprr0r5rfk0nds"))))
cf60e76a
DM
155 (build-system gnu-build-system)
156 (inputs
157 `(("libx11" ,libx11)
158 ("libxcb" ,libxcb)
159 ("xkeyboard-config" ,xkeyboard-config)))
160 (native-inputs
161 `(("bison" ,bison)
162 ("pkg-config" ,pkg-config)))
163 (arguments
164 `(#:configure-flags
165 (list (string-append "--with-xkb-config-root="
166 (assoc-ref %build-inputs "xkeyboard-config")
167 "/share/X11/xkb")
168 (string-append "--with-x-locale-root="
169 (assoc-ref %build-inputs "libx11")
170 "/share/X11/locale"))))
fbb4755c 171 (home-page "https://xkbcommon.org/")
cf60e76a
DM
172 (synopsis "Library to handle keyboard descriptions")
173 (description "Xkbcommon is a library to handle keyboard descriptions,
174including loading them from disk, parsing them and handling their
175state. It is mainly meant for client toolkits, window systems, and other
176system applications; currently that includes Wayland, kmscon, GTK+, Qt,
177Clutter, and more. Despite the name, it is not currently used by anything
178X11 (yet).")
179 (license (license:x11-style "file://COPYING"
180 "See 'COPYING' in the distribution."))))
181
de51bf58
JD
182(define-public xdotool
183 (package
184 (name "xdotool")
6f74aecd 185 (version "3.20150503.1")
de51bf58
JD
186 (source
187 (origin
188 (method url-fetch)
189 (uri (string-append
6f74aecd
CAW
190 "https://github.com/jordansissel/xdotool/releases/download/v"
191 version "/xdotool-" version ".tar.gz"))
de51bf58
JD
192 (sha256
193 (base32
6f74aecd 194 "1lcngsw33fy9my21rdiz1gs474bfdqcfxjrnfggbx4aypn1nhcp8"))
fc1adab1 195 (patches (search-patches "xdotool-fix-makefile.patch"))))
de51bf58
JD
196 (build-system gnu-build-system)
197 (arguments
198 '(#:tests? #f ; Test suite requires a lot of black magic
ca0d2a63 199 #:phases
c237480b
EF
200 (modify-phases %standard-phases
201 (replace 'configure
202 (lambda* (#:key outputs #:allow-other-keys #:rest args)
203 (setenv "PREFIX" (assoc-ref outputs "out"))
204 (setenv "LDFLAGS"
205 (string-append "-Wl,-rpath="
206 (assoc-ref %outputs "out") "/lib"))
207 (setenv "CC" "gcc"))))))
de51bf58
JD
208 (native-inputs `(("perl" ,perl))) ; for pod2man
209 (inputs `(("libx11" ,libx11)
210 ("libxext" ,libxext)
211 ("libxi" ,libxi)
212 ("libxinerama" ,libxinerama)
6f74aecd
CAW
213 ("libxtst" ,libxtst)
214 ("libxkbcommon" ,libxkbcommon)))
de51bf58
JD
215 (home-page "http://www.semicomplete.com/projects/xdotool")
216 (synopsis "Fake keyboard/mouse input, window management, and more")
217 (description "Xdotool lets you simulate keyboard input and mouse activity,
218move and resize windows, etc. It does this using X11's XTEST extension and
219other Xlib functions. Additionally, you can search for windows and move,
220resize, hide, and modify window properties like the title. If your window
221manager supports it, you can use xdotool to switch desktops, move windows
222between desktops, and change the number of desktops.")
223 (license license:bsd-3)))
224
3c156c8a
JD
225(define-public xeyes
226 (package
227 (name "xeyes")
228 (version "1.0.1")
229 (source
230 (origin
231 (method url-fetch)
232 (uri (string-append
233 "http://xeyes.sourcearchive.com/downloads/1.0.1/xeyes_"
234 version
235 ".orig.tar.gz"))
236 (sha256
237 (base32
238 "04c3md570j67g55h3bix1qbngcslnq91skli51k3g1avki88zkm9"))))
239 (build-system gnu-build-system)
240 (inputs
241 `(("libxext" ,libxext)
242 ("libxmu" ,libxmu)
243 ("libxt" ,libxt)))
244 (native-inputs
245 `(("pkg-config" ,pkg-config)))
246 (home-page "http://xeyes.sourcearchive.com/")
247 (synopsis "Follow-the-mouse X demo")
248 (description "Xeyes is a demo program for x.org. It shows eyes
249following the mouse.")
250 (license license:x11)))
251
252
253(define-public pixman
254 (package
255 (name "pixman")
6983ba56 256 (version "0.34.0")
997f86e9
LC
257 (source (origin
258 (method url-fetch)
259 (uri (string-append
260 "http://cairographics.org/releases/pixman-"
261 version ".tar.gz"))
262 (sha256
263 (base32
35bbe88b
MB
264 "13m842m9ffac3m9r0b4lvwjhwzg3w4353djkjpf00s0wnm4v5di1"))
265 (patches (search-patches "pixman-CVE-2016-5296.patch"))))
3c156c8a
JD
266 (build-system gnu-build-system)
267 (inputs
997f86e9
LC
268 `(("libpng" ,libpng)
269 ("zlib" ,zlib)))
3c156c8a 270 (native-inputs
997f86e9 271 `(("pkg-config" ,pkg-config)))
3c156c8a
JD
272 (home-page "http://www.pixman.org/")
273 (synopsis "Low-level pixel manipulation library")
274 (description "Pixman is a low-level software library for pixel
275manipulation, providing features such as image compositing and trapezoid
276rasterisation.")
277 (license license:x11)))
278
3c156c8a
JD
279(define-public libdrm
280 (package
281 (name "libdrm")
84080b43 282 (version "2.4.80")
3c156c8a
JD
283 (source
284 (origin
285 (method url-fetch)
286 (uri (string-append
5cc3096c 287 "https://dri.freedesktop.org/libdrm/libdrm-"
3c156c8a
JD
288 version
289 ".tar.bz2"))
290 (sha256
0b684f49 291 (base32
84080b43 292 "1wa9cnzf60xwx67zq9ay48xr3j3sn1z80q77jpbzmkg906b52am8"))
fc1adab1 293 (patches (search-patches "libdrm-symbol-check.patch"))))
3c156c8a
JD
294 (build-system gnu-build-system)
295 (inputs
296 `(("libpciaccess" ,libpciaccess)
297 ("libpthread-stubs" ,libpthread-stubs)))
298 (native-inputs
299 `(("pkg-config" ,pkg-config)))
300 (home-page "http://dri.freedesktop.org/wiki/")
301 (synopsis "Direct rendering userspace library")
302 (description "The Direct Rendering Infrastructure, also known as the DRI,
303is a framework for allowing direct access to graphics hardware under the
304X Window System in a safe and efficient manner. It includes changes to the
305X server, to several client libraries, and to the kernel (DRM, Direct
306Rendering Manager). The most important use for the DRI is to create fast
307OpenGL implementations providing hardware acceleration for Mesa.
308Several 3D accelerated drivers have been written to the DRI specification,
309including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
310and Matrox.")
311 (license license:x11)))
312
313
3c156c8a
JD
314(define-public mtdev
315 (package
316 (name "mtdev")
1f1e620f 317 (version "1.1.5")
3c156c8a
JD
318 (source
319 (origin
320 (method url-fetch)
321 (uri (string-append
322 "http://bitmath.org/code/mtdev/mtdev-"
323 version ".tar.bz2"))
324 (sha256
1f1e620f
EF
325 (base32
326 "0zxs7shzgbalkvlaiibi25bd902rbmkv9n1lww6q8j3ri9qdaxv6"))))
3c156c8a
JD
327 (build-system gnu-build-system)
328 (home-page "http://bitmath.org/code/mtdev/")
329 (synopsis "Multitouch protocol translation library")
330 (description "Mtdev is a stand-alone library which transforms all
331variants of kernel MT events to the slotted type B protocol. The events
332put into mtdev may be from any MT device, specifically type A without
333contact tracking, type A with contact tracking, or type B with contact
334tracking.")
335 (license license:x11)))
a693bba1
SB
336
337(define-public startup-notification
338 (package
339 (name "startup-notification")
340 (version "0.12")
341 (source
342 (origin
343 (method url-fetch)
5cc3096c 344 (uri (string-append "https://www.freedesktop.org/software/" name
a693bba1
SB
345 "/releases/" name "-" version ".tar.gz"))
346 (sha256
347 (base32
348 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
349 (build-system gnu-build-system)
350 (native-inputs `(("pkg-config" ,pkg-config)))
351 (inputs
352 `(("libx11" ,libx11)
353 ("xcb-util" ,xcb-util)))
354 (home-page "http://www.freedesktop.org/wiki/Software/startup-notification/")
355 (synopsis "Application startup notification and feedback library")
356 (description
357 "Startup-notification contains a reference implementation of the startup
358notification protocol. The reference implementation is mostly under an X Window
359System style license, and has no special dependencies.")
360 ;; Most of the code is provided under x11 license.
361 (license license:lgpl2.0+)))
2e88e089
AK
362
363(define-public wmctrl
364 (package
365 (name "wmctrl")
366 (version "1.07")
367 (source (origin
368 (method url-fetch)
369 (uri (string-append
d6420533 370 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
2e88e089
AK
371 version ".tar.gz"))
372 (sha256
373 (base32
374 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
fc1adab1 375 (patches (search-patches "wmctrl-64-fix.patch"))))
2e88e089
AK
376 (build-system gnu-build-system)
377 (arguments
378 '(#:configure-flags
379 (list (string-append "--mandir="
380 (assoc-ref %outputs "out")
381 "/share/man"))))
382 (native-inputs
383 `(("pkg-config" ,pkg-config)))
384 (inputs
385 `(("libx11" ,libx11)
386 ("libxmu" ,libxmu)
387 ("glib" ,glib)))
388 (home-page "http://tomas.styblo.name/wmctrl/")
389 (synopsis "Command-line tool to control X window managers")
390 (description
391 "Wmctrl allows to interact with an X window manager that is compatible
392with the EWMH/NetWM specification. It can query the window manager for
393information, and request for certain window management actions (resize and
e881752c 394move windows, switch between desktops, etc.).")
2e88e089 395 (license license:gpl2+)))
1410f342
AK
396
397(define-public scrot
398 (package
399 (name "scrot")
400 (version "0.8")
401 (source (origin
402 (method url-fetch)
9da459f3
EF
403 (uri (list (string-append
404 "http://linuxbrit.co.uk/downloads/scrot-"
405 version ".tar.gz")
406 (string-append
407 "https://fossies.org/linux/privat/old/scrot-"
c5d15d41 408 version ".tar.gz")))
1410f342
AK
409 (sha256
410 (base32
411 "1wll744rhb49lvr2zs6m93rdmiq59zm344jzqvijrdn24ksiqgb1"))))
412 (build-system gnu-build-system)
413 (arguments
414 ;; By default, man and doc are put in PREFIX/{man,doc} instead of
415 ;; PREFIX/share/{man,doc}.
416 '(#:configure-flags
417 (list (string-append "--mandir="
418 (assoc-ref %outputs "out")
419 "/share/man"))
d5047266
EF
420 #:phases
421 (modify-phases %standard-phases
422 (replace 'install
423 (lambda* (#:key inputs outputs #:allow-other-keys)
424 (let* ((out (assoc-ref outputs "out"))
425 (doc (string-append out "/share/doc/scrot")))
426 (mkdir-p doc)
427 (zero?
428 (system* "make" "install"
429 (string-append "docsdir=" doc)))))))))
1410f342
AK
430 (inputs
431 `(("libx11" ,libx11)
432 ("giblib" ,giblib)))
433 (home-page "http://linuxbrit.co.uk/software/")
434 (synopsis "Command-line screen capture utility for X Window System")
435 (description
436 "Scrot allows to save a screenshot of a full screen, a window or a part
437of the screen selected by mouse.")
438 ;; This license removes a clause about X Consortium from the original
439 ;; X11 license.
440 (license (license:x11-style "file://COPYING"
441 "See 'COPYING' in the distribution."))))
4a01b30b 442
9f1d33be
AK
443(define-public slop
444 (package
445 (name "slop")
7d960db1 446 (version "7.3.48")
9f1d33be
AK
447 (source (origin
448 (method url-fetch)
449 (uri (string-append
450 "https://github.com/naelstrof/slop/archive/v"
451 version ".tar.gz"))
452 (file-name (string-append name "-" version ".tar.gz"))
453 (sha256
454 (base32
7d960db1 455 "14igmf6a6vwx75gjnj10497n04klc35dvq87id8g9jn9rd3m6n25"))))
9f1d33be 456 (build-system cmake-build-system)
937b71df 457 (arguments
e1c014d7 458 '(#:tests? #f)) ; no "check" target
9f1d33be 459 (inputs
eb2b5f9d
MB
460 `(("glew" ,glew)
461 ("glm" ,glm)
01614de1 462 ("icu4c" ,icu4c)
9f1d33be 463 ("libxext" ,libxext)
e1c014d7 464 ("libxrender" ,libxrender)
9f1d33be
AK
465 ("mesa" ,mesa)))
466 (home-page "https://github.com/naelstrof/slop")
467 (synopsis "Select a region and print its bounds to stdout")
468 (description
469 "slop (Select Operation) is a tool that queries for a selection from a
470user and prints the region to stdout. It grabs the mouse and turns it into a
471crosshair, lets the user click and drag to make a selection (or click on a
472window) while drawing a pretty box around it, then finally prints the
473selection's dimensions to stdout.")
474 (license license:gpl3+)))
475
5c93de73
AK
476(define-public maim
477 (package
478 (name "maim")
1926fd2b 479 (version "5.4.66")
5c93de73
AK
480 (source (origin
481 (method url-fetch)
482 (uri (string-append
483 "https://github.com/naelstrof/maim/archive/v"
484 version ".tar.gz"))
485 (file-name (string-append name "-" version ".tar.gz"))
486 (sha256
487 (base32
1926fd2b 488 "077aww1fab3ihzxdybxpdh0h3d7fbgpvsm9q92byfb2ig32viyfa"))))
5c93de73
AK
489 (build-system cmake-build-system)
490 (arguments
2b7d10d2 491 '(#:tests? #f)) ; no "check" target
5c93de73 492 (inputs
2b7d10d2
MB
493 `(("glm" ,glm)
494 ("libjpeg" ,libjpeg-turbo)
495 ("libpng" ,libpng)
496 ("libxcomposite" ,libxcomposite)
5c93de73 497 ("libxfixes" ,libxfixes)
2b7d10d2
MB
498 ("libxrandr" ,libxrandr)
499 ("mesa" ,mesa)
500 ("slop" ,slop)
501 ("zlib" ,zlib)))
5c93de73
AK
502 (home-page "https://github.com/naelstrof/maim")
503 (synopsis "Screenshot utility for X Window System")
504 (description
505 "maim (Make Image) is a tool that takes screenshots of your desktop and
506saves it in any format. Along with a full screen, it allows you to capture a
507predefined region or a particular window. Also, it makes it possible to
508include cursor in the resulting image.")
509 (license license:gpl3+)))
510
4a01b30b
AK
511(define-public unclutter
512 (package
513 (name "unclutter")
514 (version "8")
515 (source (origin
516 (method url-fetch)
517 (uri (string-append
518 "http://ftp.x.org/contrib/utilities/unclutter-"
519 version ".tar.Z"))
520 (sha256
521 (base32
522 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
523 (build-system gnu-build-system)
524 (arguments
525 '(#:tests? #f ; no check target
ea0836cd
EF
526 #:phases
527 (modify-phases %standard-phases
528 (delete 'configure)
529 (replace 'install
530 (lambda* (#:key inputs outputs #:allow-other-keys)
531 (let* ((out (assoc-ref outputs "out"))
532 (bin (string-append out "/bin"))
533 (man1 (string-append out "/share/man/man1")))
534 (mkdir-p bin)
535 (mkdir-p man1)
536 (zero?
537 (system* "make" "install" "install.man"
538 (string-append "BINDIR=" bin)
539 (string-append "MANDIR=" man1)))))))))
4a01b30b
AK
540 (inputs `(("libx11" ,libx11)))
541 (home-page "http://ftp.x.org/contrib/utilities/")
542 (synopsis "Hide idle mouse cursor")
543 (description
544 "Unclutter is a program which runs permanently in the background of an
545X11 session. It checks on the X11 pointer (cursor) position every few
546seconds, and when it finds it has not moved (and no buttons are pressed
547on the mouse, and the cursor is not in the root window) it creates a
548small sub-window as a child of the window the cursor is in. The new
549window installs a cursor of size 1x1 but a mask of all 0, i.e. an
550invisible cursor. This allows you to see all the text in an xterm or
551xedit, for example. The human factors crowd would agree it should make
552things less distracting.")
553 (license license:public-domain)))
ab69d9ac
LC
554
555(define-public xlockmore
556 (package
557 (name "xlockmore")
e4ddf924 558 (version "5.47")
ab69d9ac
LC
559 (source (origin
560 (method url-fetch)
20c04358
LF
561 (uri (list (string-append
562 "http://www.tux.org/~bagleyd/xlock/xlockmore-"
563 version ".tar.xz")
564 (string-append
565 "http://www.tux.org/~bagleyd/xlock/xlockmore-old"
566 "/xlockmore-" version
e4ddf924 567 "/xlockmore-" version ".tar.xz")))
ab69d9ac
LC
568 (sha256
569 (base32
e4ddf924 570 "138d79b8zc2hambbr9fnxp3fhihlcljgqns04zf0kv2f53pavqwl"))))
ab69d9ac
LC
571 (build-system gnu-build-system)
572 (arguments
573 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
574 (assoc-ref %outputs "out")
575 "/lib/X11/app-defaults"))
576 #:tests? #f)) ;no such thing as a test suite
577 (inputs
578 `(("libX11" ,libx11)
579 ("libXext" ,libxext)
580 ("libXt" ,libxt)
581 ("linux-pam" ,linux-pam)))
582 (home-page "http://www.tux.org/~bagleyd/xlockmore.html")
583 (synopsis "Screen locker for the X Window System")
584 (description
585 "XLockMore is a classic screen locker and screen saver for the
586X Window System.")
166191b3 587 (license (license:non-copyleft #f "See xlock.c.")
e4ddf924 588 ))) ; + GPLv2 in modes/glx/biof.c.
11447a79
AK
589
590(define-public xosd
591 (package
592 (name "xosd")
593 (version "2.2.14")
594 (source (origin
595 (method url-fetch)
596 (uri (string-append
de67e922
LF
597 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
598 name "-" version ".tar.gz"))
11447a79
AK
599 (sha256
600 (base32
601 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
602 (build-system gnu-build-system)
603 (arguments
604 '(#:configure-flags
605 (list (string-append "--mandir=" %output "/share/man"))))
606 (inputs
607 `(("libx11" ,libx11)
608 ("libxt" ,libxt)
609 ("libxext" ,libxext)
610 ("libxinerama" ,libxinerama)))
3b3b60d0 611 (home-page "https://sourceforge.net/projects/libxosd/")
11447a79
AK
612 (synopsis "X On Screen Display")
613 (description
614 "XOSD provides a C library and a simple utility (osd_cat) for displaying
615transparent text on your screen.")
616 (license license:gpl2+)))
76212b57
ML
617
618(define-public xbindkeys
619 (package
620 (name "xbindkeys")
621 (version "1.8.6")
622 (source (origin
623 (method url-fetch)
624 ;; Download from the savannah mirror list fails
625 (uri (string-append
626 "http://www.nongnu.org/xbindkeys/xbindkeys-"
627 version
628 ".tar.gz"))
629 (sha256
630 (base32
631 "060df6d8y727jp1inp7blp44cs8a7jig7vcm8ndsn6gw36z1h3bc"))))
632 (build-system gnu-build-system)
633 (inputs
634 `(("libx11" ,libx11)
635 ("guile" ,guile-2.0)))
636 (home-page "http://www.nongnu.org/xbindkeys/")
637 (synopsis "Associate a combination of keys with a shell command")
638 (description
639 "XBindKeys is a program that allows you to launch shell commands with
640your keyboard or your mouse under the X Window System. It links commands to
641keys or mouse buttons, using a configuration file. It's independent of the
642window manager and can capture all keyboard keys (ex: Power, Wake...). It
643optionally supports a Guile-based configuration file layout, which enables you
644to access all XBindKeys internals, so you can have key combinations, double
645clicks or timed double clicks take actions. Also all functions that work in
646Guile will work for XBindKeys.")
647 (license license:gpl2+)))
42f2c2b9 648
998b8c07 649(define-public sxhkd
650 (package
651 (name "sxhkd")
46cd684e 652 (version "0.5.6")
998b8c07 653 (source
654 (origin
655 (file-name (string-append name "-" version ".tar.gz"))
656 (method url-fetch)
657 (uri (string-append
658 "https://github.com/baskerville/sxhkd/archive/"
659 version ".tar.gz"))
660 (sha256
661 (base32
46cd684e 662 "15grmzpxz5fqlbfg2slj7gb7r6nzkvjmflmbkqx7mlby9pm6wdkj"))))
998b8c07 663 (build-system gnu-build-system)
664 (inputs
665 `(("asciidoc" ,asciidoc)
666 ("libxcb" ,libxcb)
667 ("xcb-util" ,xcb-util)
668 ("xcb-util-keysyms" ,xcb-util-keysyms)
669 ("xcb-util-wm" ,xcb-util-wm)))
670 (arguments
671 '(#:phases (alist-delete 'configure %standard-phases)
672 #:tests? #f ; no check target
673 #:make-flags (list "CC=gcc"
674 (string-append "PREFIX=" %output))))
675 (home-page "https://github.com/baskerville/sxhkd")
676 (synopsis "Simple X hotkey daemon")
677 (description "sxhkd is a simple X hotkey daemon with a powerful and
678compact configuration syntax.")
679 (license license:bsd-2)))
680
42f2c2b9
AG
681(define-public rxvt-unicode
682 (package
683 (name "rxvt-unicode")
71ca0539 684 (version "9.22")
1ef3f91a
ML
685 (source (origin
686 (method url-fetch)
63999415 687 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
1ef3f91a 688 name "-" version ".tar.bz2"))
0fd0bb56 689 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
1ef3f91a
ML
690 (sha256
691 (base32
71ca0539 692 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
42f2c2b9 693 (build-system gnu-build-system)
1ef3f91a
ML
694 (arguments
695 ;; This sets the destination when installing the necessary terminal
696 ;; capability data, which are not provided by 'ncurses'. See
697 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
33c93ea3 698 `(#:make-flags (list (string-append "TERMINFO="
1ef3f91a 699 (assoc-ref %outputs "out")
33c93ea3 700 "/share/terminfo"))
701 #:phases
702 (modify-phases %standard-phases
703 (add-after 'install 'install-desktop-urxvt
704 (lambda* (#:key outputs #:allow-other-keys)
705 (let* ((output (assoc-ref outputs "out"))
706 (desktop (string-append output "/share/applications")))
707 (mkdir-p desktop)
708 (with-output-to-file
709 (string-append desktop "/urxvt.desktop")
710 (lambda _
711 (format #t
712 "[Desktop Entry]~@
713 Name=rxvt-unicode~@
714 Comment=~@
715 Exec=~a/bin/urxvt~@
716 TryExec=~@*~a/bin/urxvt~@
717 Icon=~@
718 Type=Application~%"
719 output)))
720 #t)))
721 (add-after 'install 'install-desktop-urxvtc
722 (lambda* (#:key outputs #:allow-other-keys)
723 (let* ((output (assoc-ref outputs "out"))
724 (desktop (string-append output "/share/applications")))
725 (mkdir-p desktop)
726 (with-output-to-file
727 (string-append desktop "/urxvtc.desktop")
728 (lambda _
729 (format #t
730 "[Desktop Entry]~@
120349bf 731 Name=rxvt-unicode (client)~@
33c93ea3 732 Comment=Rxvt clone with XFT and unicode support~@
733 Exec=~a/bin/urxvtc~@
734 TryExec=~@*~a/bin/urxvtc~@
735 Icon=~@
736 Type=Application~%"
737 output)))
738 #t))))))
42f2c2b9
AG
739 (inputs
740 `(("libXft" ,libxft)
741 ("libX11" ,libx11)))
742 (native-inputs
1ef3f91a
ML
743 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
744 ("perl" ,perl)
42f2c2b9 745 ("pkg-config" ,pkg-config)))
1ef3f91a
ML
746 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
747 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
748 (native-search-paths
749 (list (search-path-specification
750 (variable "TERMINFO_DIRS")
751 (files '("share/terminfo")))))
42f2c2b9
AG
752 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
753 (synopsis "Rxvt clone with XFT and unicode support")
754 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
755intended as an xterm replacement for users who do not require features such as
756Tektronix 4014 emulation and toolkit-style configurability. It supports
757unicode, XFT and may be extended with Perl plugins. It also comes with a
758client/daemon pair that lets you open any number of terminal windows from
759within a single process.")
760 (license license:gpl3+)))
ca0d2a63
AG
761
762(define-public xcape
763 (package
764 (name "xcape")
82f44a36 765 (version "1.2")
ca0d2a63
AG
766 (source
767 (origin
768 (method url-fetch)
769 (uri (string-append "https://github.com/alols/" name
770 "/archive/v" version ".tar.gz"))
771 (file-name (string-append name "-" version ".tar.gz"))
772 (sha256
773 (base32
82f44a36 774 "0898zc3vwxia00h9kfknpf7jygxgwggrx8v5mxc31w4lzn2dhzm2"))))
ca0d2a63
AG
775 (build-system gnu-build-system)
776 (arguments
777 `(#:tests? #f ; no check target
778 #:phases (alist-delete 'configure %standard-phases) ; no configure script
779 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
780 "MANDIR=/share/man/man1"
781 "CC=gcc")))
782 (inputs
783 `(("libxtst" ,libxtst)
784 ("libx11" ,libx11)))
785 (native-inputs
786 `(("pkg-config" ,pkg-config)))
7bf837fd 787 (home-page "https://github.com/alols/xcape")
ca0d2a63
AG
788 (synopsis "Use a modifier key in X.org as another key")
789 (description
790 "This utility for X.org allows to use modifier key as another key when
791pressed and released on its own. The default behaviour is to generate the
792Escape key when Left Control is pressed and released on its own.")
793 (license license:gpl3+)))
f1f7049e
AW
794
795(define-public libwacom
796 (package
797 (name "libwacom")
0c70d809 798 (version "0.25")
f1f7049e
AW
799 (source (origin
800 (method url-fetch)
801 (uri (string-append "mirror://sourceforge/linuxwacom/libwacom/"
802 name "-" version ".tar.bz2"))
803 (sha256
804 (base32
0c70d809 805 "1k20w2fkql3yr0dpdg51jjwzv7d4kp53ajmpyhcjxa08s0n8dl19"))))
f1f7049e
AW
806 (build-system glib-or-gtk-build-system)
807 (native-inputs
808 `(("pkg-config" ,pkg-config)))
809 (inputs
34efce4f 810 `(("gtk+" ,gtk+)
b9cbe316 811 ("libgudev" ,libgudev)
f1f7049e
AW
812 ("eudev" ,eudev)
813 ("libxml2" ,libxml2)))
34efce4f
AW
814 (propagated-inputs
815 ;; libwacom includes header files that include GLib, and libinput uses
816 ;; those header files.
817 `(("glib" ,glib)))
f1f7049e
AW
818 (home-page "http://linuxwacom.sourceforge.net/")
819 (synopsis "Helper library for Wacom tablet settings")
820 (description
34efce4f
AW
821 "Libwacom is a library to help implement Wacom tablet settings. It is
822intended to be used by client-programs that need model identification. It is
823already being used by the gnome-settings-daemon and the GNOME Control Center
824Wacom tablet applet.")
f1f7049e 825 (license license:x11)))
ab42a2a7
AW
826
827(define-public xf86-input-wacom
828 (package
829 (name "xf86-input-wacom")
00c5e3e5 830 (version "0.34.2")
ab42a2a7
AW
831 (source (origin
832 (method url-fetch)
833 (uri (string-append
834 "mirror://sourceforge/linuxwacom/xf86-input-wacom/"
835 name "-" version ".tar.bz2"))
836 (sha256
837 (base32
00c5e3e5 838 "073bf12ka1mcqvr1sviixb51bsfx37jalrj9xw53f10i2kdvkl9a"))))
ab42a2a7
AW
839 (arguments
840 `(#:configure-flags
841 (list (string-append "--with-sdkdir="
842 (assoc-ref %outputs "out")
843 "/include/xorg")
844 (string-append "--with-xorg-conf-dir="
845 (assoc-ref %outputs "out")
846 "/share/X11/xorg.conf.d"))))
847 (build-system gnu-build-system)
848 (native-inputs
849 `(("pkg-config" ,pkg-config)))
850 (inputs
851 `(("xorg-server" ,xorg-server)
852 ("libxrandr" ,libxrandr)
853 ("libxinerama" ,libxinerama)
854 ("libxi" ,libxi)
855 ("eudev" ,eudev)))
856 (home-page "http://linuxwacom.sourceforge.net/")
857 (synopsis "Wacom input driver for X")
858 (description
859 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
860the X.Org X Server version 1.7 and later (X11R7.5 or later).")
861 (license license:x11)))
6645753b
FPS
862
863(define-public redshift
864 (package
865 (name "redshift")
85a94d29 866 (version "1.11")
6645753b
FPS
867 (source
868 (origin
869 (method url-fetch)
870 (uri
871 (string-append "https://github.com/jonls/redshift/"
872 "releases/download/v" version
873 "/redshift-" version ".tar.xz"))
874 (sha256
875 (base32
85a94d29 876 "0ngkwj7rg8nfk806w0sg443w6wjr91xdc0zisqfm5h2i77wm1qqh"))))
6645753b
FPS
877 (build-system gnu-build-system)
878 (native-inputs
879 `(("pkg-config" ,pkg-config)
880 ("intltool" ,intltool)))
881 (inputs
882 `(("libdrm" ,libdrm)
883 ("libx11" ,libx11)
884 ("libxcb" ,libxcb)
b3546174 885 ("libxxf86vm" ,libxxf86vm)
6645753b
FPS
886 ("glib" ,glib))) ;for Geoclue2 support
887 (home-page "https://github.com/jonls/redshift")
888 (synopsis "Adjust the color temperature of your screen")
889 (description
890 "Redshift adjusts the color temperature according to the position of the
891sun. A different color temperature is set during night and daytime. During
892twilight and early morning, the color temperature transitions smoothly from
893night to daytime temperature to allow your eyes to slowly adapt. At night the
894color temperature should be set to match the lamps in your room.")
895 (license license:gpl3+)))
b4c400a7
CAW
896
897(define-public xscreensaver
898 (package
899 (name "xscreensaver")
ece8bb38 900 (version "5.37")
b4c400a7
CAW
901 (source
902 (origin
903 (method url-fetch)
904 (uri
905 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
906 version ".tar.gz"))
907 (sha256
908 (base32
ece8bb38 909 "1ng5ddzb4k2h1w54pvk9hzxvnxxmc54bc4a2ibk974nzjjjaxivs"))))
b4c400a7
CAW
910 (build-system gnu-build-system)
911 (arguments
912 `(#:tests? #f ; no check target
913 #:phases
914 (modify-phases %standard-phases
915 (add-before 'configure 'adjust-gtk-resource-paths
916 (lambda _
917 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
918 (("@GTK_DATADIR@") "@datadir@")
919 (("@PO_DATADIR@") "@datadir@")))))
920 #:configure-flags '("--with-pam" "--with-proc-interrupts"
921 "--without-readdisplay")
922 #:make-flags (list (string-append "AD_DIR="
923 (assoc-ref %outputs "out")
924 "/usr/lib/X11/app-defaults"))))
925 (native-inputs
926 `(("pkg-config" ,pkg-config)
927 ("intltool" ,intltool)))
928 (inputs
929 `(("libx11" ,libx11)
930 ("libxext" ,libxext)
931 ("libxi" ,libxi)
932 ("libxt" ,libxt)
933 ("libxft" ,libxft)
934 ("libxmu" ,libxmu)
935 ("libxpm" ,libxpm)
936 ("libglade" ,libglade)
937 ("libxml2" ,libxml2)
938 ("libsm" ,libsm)
939 ("libjpeg" ,libjpeg)
940 ("linux-pam" ,linux-pam)
941 ("pango" ,pango)
942 ("gtk+" ,gtk+)
943 ("perl" ,perl)
944 ("cairo" ,cairo)
945 ("bc" ,bc)
946 ("libxrandr" ,libxrandr)
947 ("glu" ,glu)
948 ("glib" ,glib)))
949 (home-page "https://www.jwz.org/xscreensaver/")
950 (synopsis "Classic screen saver suite supporting screen locking")
951 (description
952 "xscreensaver is a popular screen saver collection with many entertaining
953demos. It also acts as a nice screen locker.")
954 ;; xscreensaver doesn't have a single copyright file and instead relies on
955 ;; source comment headers, though most files have the same lax
956 ;; permissions. To reduce complexity, we're pointing at Debian's
957 ;; breakdown of the copyright information.
958 (license (license:non-copyleft
959 (string-append
960 "http://metadata.ftp-master.debian.org/changelogs/"
706998e7 961 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
f40dfcd0 962
cab1c117
MB
963(define-public xsel
964 (package
965 (name "xsel")
966 (version "1.2.0")
967 (source (origin
968 (method url-fetch)
969 (uri (string-append "http://www.vergenet.net/~conrad/software"
970 "/xsel/download/xsel-" version ".tar.gz"))
971 (sha256
972 (base32
973 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
974 (build-system gnu-build-system)
975 (inputs
976 `(("libxt" ,libxt)))
977 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
978 (synopsis "Manipulate X selection")
979 (description
980 "XSel is a command-line program for getting and setting the contents of
981the X selection. Normally this is only accessible by manually highlighting
982information and pasting it with the middle mouse button.
983
984XSel reads from standard input and writes to standard output by default,
985but can also follow a growing file, display contents, delete entries and more.")
986 (license (license:x11-style "file://COPYING"
987 "See COPYING in the distribution."))))
988
6cfd1a68
AK
989(define-public xdpyprobe
990 (package
991 (name "xdpyprobe")
992 (version "0.1")
993 (source (origin
994 (method url-fetch)
995 (uri (string-append "https://github.com/alezost/" name
996 "/releases/download/v" version
997 "/" name "-" version ".tar.gz"))
998 (sha256
999 (base32
1000 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1001 (build-system gnu-build-system)
1002 (inputs
1003 `(("libx11" ,libx11)))
1004 (home-page "https://github.com/alezost/xdpyprobe")
1005 (synopsis "Probe X server for connectivity")
1006 (description
1007 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1008connectivity of the X server running on a particular @code{DISPLAY}.")
1009 (license license:gpl3+)))
1010
f40dfcd0
DM
1011(define-public rofi
1012 (package
1013 (name "rofi")
88f2dd1d 1014 (version "1.3.1")
f40dfcd0
DM
1015 (source (origin
1016 (method url-fetch)
1017 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1018 "releases/download/"
1019 version "/rofi-" version ".tar.xz"))
1020 (sha256
1021 (base32
88f2dd1d 1022 "1s47biv6d68nblpz6d3aklsar1xxxcilzr4y77v3hz2w1wbz2b5m"))))
f40dfcd0
DM
1023 (build-system gnu-build-system)
1024 (inputs
68c35ba9 1025 `(("pango" ,pango)
f40dfcd0
DM
1026 ("cairo" ,cairo)
1027 ("glib" ,glib)
1028 ("startup-notification" ,startup-notification)
1029 ("libxkbcommon" ,libxkbcommon)
1030 ("libxcb" ,libxcb)
1031 ("xcb-util" ,xcb-util)
68c35ba9 1032 ("xcb-util-xrm" ,xcb-util-xrm)
f40dfcd0
DM
1033 ("xcb-util-wm" ,xcb-util-wm)))
1034 (native-inputs
1035 `(("pkg-config" ,pkg-config)))
1036 (arguments
46d6219d
MB
1037 `(#:parallel-tests? #f ; May fail in some circumstances.
1038 #:phases
f40dfcd0
DM
1039 (modify-phases %standard-phases
1040 (add-before 'configure 'adjust-tests
1041 (lambda _
1042 (substitute* '("test/helper-expand.c")
1043 (("~root") "/root")
1044 (("~") "")
1045 (("g_get_home_dir \\(\\)") "\"/\"")))))))
1046 (home-page "https://davedavenport.github.io/rofi/")
89be33f7
TGR
1047 (synopsis "Application launcher")
1048 (description "Rofi is a minimalist application launcher. It memorizes which
1049applications you regularly use and also allows you to search for an application
f40dfcd0
DM
1050by name.")
1051 (license license:expat)))
751f6871
ML
1052
1053(define-public tint2
1054 (package
1055 (name "tint2")
1ffe4171 1056 (version "0.14.6")
751f6871
ML
1057 (source (origin
1058 (method url-fetch)
1059 (uri (string-append "https://gitlab.com/o9000/" name
1060 "/repository/archive.tar.gz?ref=" version))
1061 (file-name (string-append name "-" version ".tar.gz"))
1062 (sha256
1063 (base32
1ffe4171 1064 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
751f6871
ML
1065 (build-system cmake-build-system)
1066 (arguments
1067 '(#:tests? #f ;no test target
1068 #:phases
1069 (modify-phases %standard-phases
1070 (add-after 'unpack 'fix-installation-prefix
1071 (lambda _
1072 (substitute* "CMakeLists.txt"
1073 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc")))))))
1074 (inputs
1075 `(("gtk+" ,gtk+-2)
1076 ("imlib2" ,imlib2)
1077 ("librsvg" ,librsvg)
1078 ("libxcomposite" ,libxcomposite)
1079 ("libxdamage" ,libxdamage)
1080 ("libxft" ,libxft)
1081 ("libxinerama" ,libxinerama)
1082 ("libxrandr" ,libxrandr)
1083 ("startup-notification" ,startup-notification)))
1084 (native-inputs
b94a6ca0 1085 `(("gettext" ,gettext-minimal)
751f6871
ML
1086 ("pkg-config" ,pkg-config)))
1087 (home-page "https://gitlab.com/o9000/tint2")
1088 (synopsis "Lightweight task bar")
1089 (description
1090 "Tint2 is a simple task bar made for modern X window managers. It was
1091specifically made for Openbox but it should also work with other window
1092managers (GNOME, KDE, XFCE etc.).
1093
1094The taskbar includes transparency and color settings for the font, icons,
1095border, and background. It also supports multihead setups, customized mouse
1096actions, a built-in clock, a battery monitor and a system tray.")
1097 (license license:gpl2)))
4493a3c2 1098
37447422
MM
1099(define-public dzen
1100 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1101 (revision "1"))
1102 (package
1103 (name "dzen")
1104 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1105 revision "." (string-take commit 7)))
1106 (source (origin
1107 (method git-fetch)
1108 (uri (git-reference
1109 (url "https://github.com/robm/dzen.git")
1110 (commit commit)))
1111 (file-name (string-append name "-" version))
1112 (sha256
1113 (base32
1114 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1115 (build-system gnu-build-system)
1116 (arguments
1117 `(#:tests? #f ; No test suite.
1118 #:make-flags ; Replacement for `config.mk`.
1119 (list
1120 (string-append "VERSION = " ,version)
1121 (string-append "PREFIX = " %output)
1122 "MANPREFIX = ${PREFIX}/share/man"
1123 "INCS = -I."
1124 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1125 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1126 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1127 "LDFLAGS = ${LIBS}"
1128 "CC = gcc"
1129 "LD = ${CC}")
1130 #:phases
1131 (modify-phases %standard-phases
1132 (delete 'configure) ; No configuration script.
1133 ;; Use own make-flags instead of `config.mk`.
1134 (add-before 'build 'dont-include-config-mk
1135 (lambda _
1136 (substitute* "Makefile" (("include config.mk") ""))
1137 #t)))))
1138 (inputs
1139 `(("libx11" ,libx11)
1140 ("libxft" ,libxft)
1141 ("libxpm" ,libxpm)
1142 ("libxinerama" ,libxinerama)))
1143 (native-inputs `(("pkg-config" ,pkg-config)))
1144 (synopsis "General purpose messaging, notification and menuing program for X11")
1145 (description "Dzen is a general purpose messaging, notification and menuing
1146program for X11. It was designed to be fast, tiny and scriptable in any language.")
1147 (home-page "https://github.com/robm/dzen")
1148 (license license:expat))))
1149
4493a3c2
MB
1150(define-public xcb-util-xrm
1151 (package
1152 (name "xcb-util-xrm")
7aef9930 1153 (version "1.2")
4493a3c2
MB
1154 (source (origin
1155 (method url-fetch)
1156 (uri (string-append
1157 "https://github.com/Airblader/xcb-util-xrm/releases"
1158 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1159 (sha256
1160 (base32
7aef9930 1161 "0vbqhag51i0njc8d5fc8c6aa12496cwrc3s6s7sa5kfc17cwhppp"))
4493a3c2
MB
1162 (modules '((guix build utils)))
1163 (snippet
1164 ;; Drop bundled m4.
1165 '(delete-file-recursively "m4"))))
1166 (build-system gnu-build-system)
1167 (native-inputs
1168 `(("pkg-config" ,pkg-config)
1169 ("m4" ,m4)
1170 ("libx11" ,libx11))) ; for tests
1171 (inputs
1172 `(("libxcb" ,libxcb)
1173 ("xcb-util" ,xcb-util)))
1174 (home-page "https://github.com/Airblader/xcb-util-xrm")
1175 (synopsis "XCB utility functions for the X resource manager")
1176 (description
1177 "The XCB util module provides a number of libraries which sit on
1178top of libxcb, the core X protocol library, and some of the extension
1179libraries. These experimental libraries provide convenience functions
1180and interfaces which make the raw X protocol more usable. Some of the
1181libraries also provide client-side code which is not strictly part of
1182the X protocol but which has traditionally been provided by Xlib.
1183
1184XCB util-xrm module provides the following libraries:
1185
1186- xrm: utility functions for the X resource manager.")
1187 (license license:x11)))
01278f16
P
1188
1189(define-public xcalib
1190 (package
1191 (name "xcalib")
1192 (version "0.8")
1193 (source (origin
1194 (method url-fetch)
1195 (uri (string-append "mirror://sourceforge/xcalib/xcalib/" version
1196 "/xcalib-source-" version ".tar.gz"))
1197 (sha256
1198 (base32
1199 "1rh6xb51c5xz926dnn82a2fn643g0sr4a8z66rn6yi7523kjw4ca"))))
1200 (build-system gnu-build-system)
1201 (arguments
1202 '(#:make-flags '("CC=gcc")
1203 #:tests? #f ; No test suite
1204 #:phases (modify-phases %standard-phases
1205 (delete 'configure)
1206 (replace 'install
1207 (lambda* (#:key outputs #:allow-other-keys)
1208 (let* ((out (assoc-ref outputs "out"))
1209 (bin (string-append out "/bin")))
1210 (install-file "xcalib" bin))))
1211 (add-after 'install 'install-doc
1212 (lambda* (#:key outputs #:allow-other-keys)
1213 (let ((doc (string-append(assoc-ref outputs "out")
1214 "/share/doc/xcalib")))
1215 (install-file "README" doc)
1216 ;; Avoid unspecified return value.
1217 #t))))))
1218 (inputs `(("libx11", libx11)
1219 ("libxext", libxext)
1220 ("libxxf86vm", libxxf86vm)))
1221 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1222 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1223profiles to the video card's gamma ramp. It does work with most video card
1224drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1225invert colors on a specific display/screen.")
1226 (home-page "http://xcalib.sourceforge.net/")
1227 (license license:gpl2)))