Merge branch 'master' into core-updates
[jackhill/guix/guix.git] / gnu / packages / xdisorg.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
5 ;;; Copyright © 2014, 2015, 2016 Alex Kost <alezost@gmail.com>
6 ;;; Copyright © 2013, 2015, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
7 ;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
8 ;;; Copyright © 2015 Alexander I.Grafov <grafov@gmail.com>
9 ;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
10 ;;; Copyright © 2015 xd1le <elisp.vim@gmail.com>
11 ;;; Copyright © 2015 Florian Paul Schmidt <mista.tapas@gmx.net>
12 ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
13 ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
14 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
15 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
16 ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
17 ;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com>
18 ;;; Copyright © 2016 Petter <petter@mykolab.ch>
19 ;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com>
20 ;;; Copyright © 2017 Nils Gillmann <ng0@n0.is>
21 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
22 ;;; Copyright © 2017 Marek Benc <dusxmt@gmx.com>
23 ;;; Copyright © 2017 Mike Gerwitz <mtg@gnu.org>
24 ;;; Copyright © 2018 Thomas Sigurdsen <tonton@riseup.net>
25 ;;; Copyright © 2018 Pierre Neidhardt <ambrevar@gmail.com>
26 ;;;
27 ;;; This file is part of GNU Guix.
28 ;;;
29 ;;; GNU Guix is free software; you can redistribute it and/or modify it
30 ;;; under the terms of the GNU General Public License as published by
31 ;;; the Free Software Foundation; either version 3 of the License, or (at
32 ;;; your option) any later version.
33 ;;;
34 ;;; GNU Guix is distributed in the hope that it will be useful, but
35 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
36 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 ;;; GNU General Public License for more details.
38 ;;;
39 ;;; You should have received a copy of the GNU General Public License
40 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
41
42 (define-module (gnu packages xdisorg)
43 #:use-module ((guix licenses) #:prefix license:)
44 #:use-module (guix packages)
45 #:use-module (guix download)
46 #:use-module (guix git-download)
47 #:use-module (guix utils)
48 #:use-module (guix build-system cmake)
49 #:use-module (guix build-system gnu)
50 #:use-module (guix build-system glib-or-gtk)
51 #:use-module (guix build-system python)
52 #:use-module (gnu packages)
53 #:use-module (gnu packages documentation)
54 #:use-module (gnu packages algebra)
55 #:use-module (gnu packages autotools)
56 #:use-module (gnu packages check)
57 #:use-module (gnu packages compression)
58 #:use-module (gnu packages image)
59 #:use-module (gnu packages pkg-config)
60 #:use-module (gnu packages flex)
61 #:use-module (gnu packages gettext)
62 #:use-module (gnu packages gl)
63 #:use-module (gnu packages glib)
64 #:use-module (gnu packages gnome)
65 #:use-module (gnu packages icu4c)
66 #:use-module (gnu packages maths)
67 #:use-module (gnu packages m4)
68 #:use-module (gnu packages ncurses)
69 #:use-module (gnu packages perl)
70 #:use-module (gnu packages python)
71 #:use-module (gnu packages linux)
72 #:use-module (gnu packages gl)
73 #:use-module (gnu packages guile)
74 #:use-module (gnu packages xml)
75 #:use-module (gnu packages gtk)
76 #:use-module (gnu packages xorg)
77 #:use-module (gnu packages bison)
78 #:use-module (ice-9 match))
79
80 ;; packages outside the x.org system proper
81
82 (define-public arandr
83 (package
84 (name "arandr")
85 (version "0.1.9")
86 (source (origin
87 (method url-fetch)
88 (uri (string-append "http://christian.amsuess.com/tools/" name
89 "/files/" name "-" version ".tar.gz"))
90 (sha256
91 (base32
92 "1i3f1agixxbfy4kxikb2b241p7c2lg73cl9wqfvlwz3q6zf5faxv"))
93 (modules '((guix build utils)))
94 (snippet
95 '(begin
96 ;; Do not record a timestamp and file name in gzipped man
97 ;; pages (this is equivalent to 'gzip --no-name'.)
98 (substitute* "setup.py"
99 (("gzip\\.open\\(gzfile, 'w', 9\\)")
100 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)"))
101 #t))))
102 (build-system python-build-system)
103 (arguments
104 `(#:python ,python-2 ;incompatible with python 3
105 #:phases
106 (modify-phases %standard-phases
107 (add-before 'build 'configure
108 (lambda* (#:key inputs #:allow-other-keys)
109 (substitute* "screenlayout/xrandr.py"
110 (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr")
111 "/bin/xrandr\"")))
112 #t)))
113 #:tests? #f)) ;no tests
114 (inputs `(("pygtk" ,python2-pygtk)
115 ("xrandr" ,xrandr)))
116 (native-inputs `(("gettext" ,gettext-minimal)
117 ("python-docutils" ,python2-docutils)))
118 (home-page "https://christian.amsuess.com/tools/arandr/")
119 (synopsis "Another RandR graphical user interface")
120 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
121 (description "ARandR is designed to provide a simple visual front end for
122 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
123 shown graphically and can be changed in a drag-and-drop way. Configurations
124 are saved as executable shell scripts which can be loaded without using this
125 program.")
126 (license license:gpl3+)))
127
128 (define-public xclip
129 (package
130 (name "xclip")
131 (version "0.13")
132 (source
133 (origin
134 (method url-fetch)
135 (uri (string-append "https://github.com/astrand/xclip"
136 "/archive/" version ".tar.gz"))
137 (file-name (string-append name "-" version ".tar.gz"))
138 (sha256
139 (base32
140 "0n7pczk9vv30zf8qfln8ba3hnif9yfdxg0m84djac469wc28hnya"))))
141 (build-system gnu-build-system)
142 (arguments
143 '(#:tests? #f)) ;there is no test suite
144 (native-inputs
145 `(("autoconf" ,autoconf)
146 ("automake" ,automake)))
147 (inputs `(("libxmu" ,libxmu)
148 ("libxt" ,libxt)))
149 (home-page "https://github.com/astrand/xclip")
150 (synopsis "Command line interface to X11 clipboard")
151 (description "Xclip is a command line interface to the X11 clipboard. It
152 can also be used for copying files, as an alternative to sftp/scp, thus
153 avoiding password prompts when X11 forwarding has already been setup.")
154 (license license:gpl2+)))
155
156 (define-public libxkbcommon
157 (package
158 (name "libxkbcommon")
159 (version "0.8.0")
160 (source (origin
161 (method url-fetch)
162 (uri (string-append "https://xkbcommon.org/download/" name "-"
163 version ".tar.xz"))
164 (sha256
165 (base32
166 "0vgy84vfbig5bqznr137h5arjidnfwrxrdli0pxyn2jfn1fjcag8"))))
167 (build-system gnu-build-system)
168 (inputs
169 `(("libx11" ,libx11)
170 ("libxcb" ,libxcb)
171 ("xkeyboard-config" ,xkeyboard-config)))
172 (native-inputs
173 `(("bison" ,bison)
174 ("pkg-config" ,pkg-config)))
175 (arguments
176 `(#:configure-flags
177 (list (string-append "--with-xkb-config-root="
178 (assoc-ref %build-inputs "xkeyboard-config")
179 "/share/X11/xkb")
180 (string-append "--with-x-locale-root="
181 (assoc-ref %build-inputs "libx11")
182 "/share/X11/locale"))))
183 (home-page "https://xkbcommon.org/")
184 (synopsis "Library to handle keyboard descriptions")
185 (description "Xkbcommon is a library to handle keyboard descriptions,
186 including loading them from disk, parsing them and handling their
187 state. It is mainly meant for client toolkits, window systems, and other
188 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
189 Clutter, and more. Despite the name, it is not currently used by anything
190 X11 (yet).")
191 (license (license:x11-style "file://COPYING"
192 "See 'COPYING' in the distribution."))))
193
194 (define-public libfakekey
195 (package
196 (name "libfakekey")
197 (version "0.1")
198 (source
199 (origin
200 (method url-fetch)
201 (uri (string-append "https://downloads.yoctoproject.org/releases"
202 "/matchbox/libfakekey/" version "/libfakekey-"
203 version ".tar.bz2"))
204 (sha256
205 (base32
206 "1501l0bflcrhqbf12n7a7cqilvr0w4xawxw0vw75p2940nkl4464"))))
207 (build-system gnu-build-system)
208 (arguments
209 `(#:make-flags (list "AM_LDFLAGS=-lX11")))
210 (native-inputs
211 `(("pkg-config" ,pkg-config)))
212 (inputs
213 `(("libxtst" ,libxtst)
214 ("libx11" ,libx11)))
215 (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox")
216 (synopsis "X virtual keyboard library")
217 (description
218 "Libfakekey is a virtual keyboard library for X.")
219 (license license:gpl2)))
220
221 (define-public xdotool
222 (package
223 (name "xdotool")
224 (version "3.20150503.1")
225 (source
226 (origin
227 (method url-fetch)
228 (uri (string-append
229 "https://github.com/jordansissel/xdotool/releases/download/v"
230 version "/xdotool-" version ".tar.gz"))
231 (sha256
232 (base32
233 "1lcngsw33fy9my21rdiz1gs474bfdqcfxjrnfggbx4aypn1nhcp8"))
234 (patches (search-patches "xdotool-fix-makefile.patch"))))
235 (build-system gnu-build-system)
236 (arguments
237 '(#:tests? #f ; Test suite requires a lot of black magic
238 #:phases
239 (modify-phases %standard-phases
240 (replace 'configure
241 (lambda* (#:key outputs #:allow-other-keys #:rest args)
242 (setenv "PREFIX" (assoc-ref outputs "out"))
243 (setenv "LDFLAGS"
244 (string-append "-Wl,-rpath="
245 (assoc-ref %outputs "out") "/lib"))
246 (setenv "CC" "gcc"))))))
247 (native-inputs `(("perl" ,perl))) ; for pod2man
248 (inputs `(("libx11" ,libx11)
249 ("libxext" ,libxext)
250 ("libxi" ,libxi)
251 ("libxinerama" ,libxinerama)
252 ("libxtst" ,libxtst)
253 ("libxkbcommon" ,libxkbcommon)))
254 (home-page "http://www.semicomplete.com/projects/xdotool")
255 (synopsis "Fake keyboard/mouse input, window management, and more")
256 (description "Xdotool lets you simulate keyboard input and mouse activity,
257 move and resize windows, etc. It does this using X11's XTEST extension and
258 other Xlib functions. Additionally, you can search for windows and move,
259 resize, hide, and modify window properties like the title. If your window
260 manager supports it, you can use xdotool to switch desktops, move windows
261 between desktops, and change the number of desktops.")
262 (license license:bsd-3)))
263
264 (define-public xeyes
265 (package
266 (name "xeyes")
267 (version "1.0.1")
268 (source
269 (origin
270 (method url-fetch)
271 (uri (string-append
272 "http://xeyes.sourcearchive.com/downloads/1.0.1/xeyes_"
273 version
274 ".orig.tar.gz"))
275 (sha256
276 (base32
277 "04c3md570j67g55h3bix1qbngcslnq91skli51k3g1avki88zkm9"))))
278 (build-system gnu-build-system)
279 (inputs
280 `(("libxext" ,libxext)
281 ("libxmu" ,libxmu)
282 ("libxt" ,libxt)))
283 (native-inputs
284 `(("pkg-config" ,pkg-config)))
285 (home-page "http://xeyes.sourcearchive.com/")
286 (synopsis "Follow-the-mouse X demo")
287 (description "Xeyes is a demo program for x.org. It shows eyes
288 following the mouse.")
289 (license license:x11)))
290
291
292 (define-public pixman
293 (package
294 (name "pixman")
295 (version "0.34.0")
296 (source (origin
297 (method url-fetch)
298 (uri (string-append
299 "http://cairographics.org/releases/pixman-"
300 version ".tar.gz"))
301 (sha256
302 (base32
303 "13m842m9ffac3m9r0b4lvwjhwzg3w4353djkjpf00s0wnm4v5di1"))
304 (patches (search-patches "pixman-CVE-2016-5296.patch"))))
305 (build-system gnu-build-system)
306 (inputs
307 `(("libpng" ,libpng)
308 ("zlib" ,zlib)))
309 (native-inputs
310 `(("pkg-config" ,pkg-config)))
311 (home-page "http://www.pixman.org/")
312 (synopsis "Low-level pixel manipulation library")
313 (description "Pixman is a low-level software library for pixel
314 manipulation, providing features such as image compositing and trapezoid
315 rasterisation.")
316 (license license:x11)))
317
318 (define-public libdrm
319 (package
320 (name "libdrm")
321 (version "2.4.91")
322 (source
323 (origin
324 (method url-fetch)
325 (uri (string-append
326 "https://dri.freedesktop.org/libdrm/libdrm-"
327 version
328 ".tar.bz2"))
329 (sha256
330 (base32
331 "0068dn47c478vm1lyyhy02gilrpsma0xmcblhvs0dzqyrk80wjk3"))
332 (patches (search-patches "libdrm-symbol-check.patch"))))
333 (build-system gnu-build-system)
334 (arguments
335 `(#:configure-flags
336 '(,@(match (%current-system)
337 ("armhf-linux"
338 '("--enable-exynos-experimental-api"
339 "--enable-omap-experimental-api"
340 ;; XXX: This fails a symbol check on a build machine:
341 ;; <https://hydra.gnu.org/build/2270314/nixlog/4/raw>
342 ;; TODO: Update the list of symbols.
343 ;;"--enable-etnaviv-experimental-api"
344 "--enable-tegra-experimental-api"
345 "--enable-freedreno-kgsl"))
346 ("aarch64-linux"
347 '("--enable-tegra-experimental-api"
348 "--enable-freedreno-kgsl"))
349 (_ '())))))
350 (inputs
351 `(("libpciaccess" ,libpciaccess)))
352 (native-inputs
353 `(("pkg-config" ,pkg-config)))
354 (home-page "https://dri.freedesktop.org/wiki/")
355 (synopsis "Direct rendering userspace library")
356 (description "The Direct Rendering Infrastructure, also known as the DRI,
357 is a framework for allowing direct access to graphics hardware under the
358 X Window System in a safe and efficient manner. It includes changes to the
359 X server, to several client libraries, and to the kernel (DRM, Direct
360 Rendering Manager). The most important use for the DRI is to create fast
361 OpenGL implementations providing hardware acceleration for Mesa.
362 Several 3D accelerated drivers have been written to the DRI specification,
363 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
364 and Matrox.")
365 (license license:x11)))
366
367
368 (define-public mtdev
369 (package
370 (name "mtdev")
371 (version "1.1.5")
372 (source
373 (origin
374 (method url-fetch)
375 (uri (string-append
376 "http://bitmath.org/code/mtdev/mtdev-"
377 version ".tar.bz2"))
378 (sha256
379 (base32
380 "0zxs7shzgbalkvlaiibi25bd902rbmkv9n1lww6q8j3ri9qdaxv6"))))
381 (build-system gnu-build-system)
382 (home-page "http://bitmath.org/code/mtdev/")
383 (synopsis "Multitouch protocol translation library")
384 (description "Mtdev is a stand-alone library which transforms all
385 variants of kernel MT events to the slotted type B protocol. The events
386 put into mtdev may be from any MT device, specifically type A without
387 contact tracking, type A with contact tracking, or type B with contact
388 tracking.")
389 (license license:x11)))
390
391 (define-public startup-notification
392 (package
393 (name "startup-notification")
394 (version "0.12")
395 (source
396 (origin
397 (method url-fetch)
398 (uri (string-append "https://www.freedesktop.org/software/" name
399 "/releases/" name "-" version ".tar.gz"))
400 (sha256
401 (base32
402 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
403 (build-system gnu-build-system)
404 (native-inputs `(("pkg-config" ,pkg-config)))
405 (inputs
406 `(("libx11" ,libx11)
407 ("xcb-util" ,xcb-util)))
408 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
409 (synopsis "Application startup notification and feedback library")
410 (description
411 "Startup-notification contains a reference implementation of the startup
412 notification protocol. The reference implementation is mostly under an X Window
413 System style license, and has no special dependencies.")
414 ;; Most of the code is provided under x11 license.
415 (license license:lgpl2.0+)))
416
417 (define-public wmctrl
418 (package
419 (name "wmctrl")
420 (version "1.07")
421 (source (origin
422 (method url-fetch)
423 (uri (string-append
424 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
425 version ".tar.gz"))
426 (sha256
427 (base32
428 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
429 (patches (search-patches "wmctrl-64-fix.patch"))))
430 (build-system gnu-build-system)
431 (arguments
432 '(#:configure-flags
433 (list (string-append "--mandir="
434 (assoc-ref %outputs "out")
435 "/share/man"))))
436 (native-inputs
437 `(("pkg-config" ,pkg-config)))
438 (inputs
439 `(("libx11" ,libx11)
440 ("libxmu" ,libxmu)
441 ("glib" ,glib)))
442 (home-page "http://tomas.styblo.name/wmctrl/")
443 (synopsis "Command-line tool to control X window managers")
444 (description
445 "Wmctrl allows to interact with an X window manager that is compatible
446 with the EWMH/NetWM specification. It can query the window manager for
447 information, and request for certain window management actions (resize and
448 move windows, switch between desktops, etc.).")
449 (license license:gpl2+)))
450
451 (define-public scrot
452 (package
453 (name "scrot")
454 (version "0.8")
455 (source (origin
456 (method url-fetch)
457 (uri (list (string-append
458 "http://linuxbrit.co.uk/downloads/scrot-"
459 version ".tar.gz")
460 (string-append
461 "https://fossies.org/linux/privat/old/scrot-"
462 version ".tar.gz")))
463 (sha256
464 (base32
465 "1wll744rhb49lvr2zs6m93rdmiq59zm344jzqvijrdn24ksiqgb1"))))
466 (build-system gnu-build-system)
467 (arguments
468 ;; By default, man and doc are put in PREFIX/{man,doc} instead of
469 ;; PREFIX/share/{man,doc}.
470 '(#:configure-flags
471 (list (string-append "--mandir="
472 (assoc-ref %outputs "out")
473 "/share/man"))
474 #:phases
475 (modify-phases %standard-phases
476 (replace 'install
477 (lambda* (#:key inputs outputs #:allow-other-keys)
478 (let* ((out (assoc-ref outputs "out"))
479 (doc (string-append out "/share/doc/scrot")))
480 (mkdir-p doc)
481 (zero?
482 (system* "make" "install"
483 (string-append "docsdir=" doc)))))))))
484 (inputs
485 `(("libx11" ,libx11)
486 ("giblib" ,giblib)))
487 (home-page "http://linuxbrit.co.uk/software/")
488 (synopsis "Command-line screen capture utility for X Window System")
489 (description
490 "Scrot allows to save a screenshot of a full screen, a window or a part
491 of the screen selected by mouse.")
492 ;; This license removes a clause about X Consortium from the original
493 ;; X11 license.
494 (license (license:x11-style "file://COPYING"
495 "See 'COPYING' in the distribution."))))
496
497 (define-public slop
498 (package
499 (name "slop")
500 (version "7.4")
501 (source (origin
502 (method url-fetch)
503 (uri (string-append
504 "https://github.com/naelstrof/slop/archive/v"
505 version ".tar.gz"))
506 (file-name (string-append name "-" version ".tar.gz"))
507 (sha256
508 (base32
509 "1kpdrikgpjb4fpxalb6pjcih5njv1w9cnrjj5612ywdv1q5mjs48"))))
510 (build-system cmake-build-system)
511 (arguments
512 '(#:tests? #f)) ; no "check" target
513 (inputs
514 `(("glew" ,glew)
515 ("glm" ,glm)
516 ("icu4c" ,icu4c)
517 ("libxext" ,libxext)
518 ("libxrender" ,libxrender)
519 ("mesa" ,mesa)))
520 (home-page "https://github.com/naelstrof/slop")
521 (synopsis "Select a region and print its bounds to stdout")
522 (description
523 "slop (Select Operation) is a tool that queries for a selection from a
524 user and prints the region to stdout. It grabs the mouse and turns it into a
525 crosshair, lets the user click and drag to make a selection (or click on a
526 window) while drawing a pretty box around it, then finally prints the
527 selection's dimensions to stdout.")
528 (license license:gpl3+)))
529
530 (define-public maim
531 (package
532 (name "maim")
533 (version "5.5.1")
534 (source (origin
535 (method url-fetch)
536 (uri (string-append
537 "https://github.com/naelstrof/maim/archive/v"
538 version ".tar.gz"))
539 (file-name (string-append name "-" version ".tar.gz"))
540 (sha256
541 (base32
542 "1dvw0axnr9hhjg6zdcq9lwvaq0x7vrzlz00p8n3hj25qzsi4z5as"))))
543 (build-system cmake-build-system)
544 (arguments
545 '(#:tests? #f)) ; no "check" target
546 (inputs
547 `(("glm" ,glm)
548 ("libjpeg" ,libjpeg-turbo)
549 ("libpng" ,libpng)
550 ("libxcomposite" ,libxcomposite)
551 ("libxfixes" ,libxfixes)
552 ("libxrandr" ,libxrandr)
553 ("mesa" ,mesa)
554 ("slop" ,slop)
555 ("zlib" ,zlib)))
556 (home-page "https://github.com/naelstrof/maim")
557 (synopsis "Screenshot utility for X Window System")
558 (description
559 "maim (Make Image) is a tool that takes screenshots of your desktop and
560 saves it in any format. Along with a full screen, it allows you to capture a
561 predefined region or a particular window. Also, it makes it possible to
562 include cursor in the resulting image.")
563 (license license:gpl3+)))
564
565 (define-public unclutter
566 (package
567 (name "unclutter")
568 (version "8")
569 (source (origin
570 (method url-fetch)
571 (uri (string-append
572 "http://ftp.x.org/contrib/utilities/unclutter-"
573 version ".tar.Z"))
574 (sha256
575 (base32
576 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
577 (build-system gnu-build-system)
578 (arguments
579 '(#:tests? #f ; no check target
580 #:phases
581 (modify-phases %standard-phases
582 (delete 'configure)
583 (replace 'install
584 (lambda* (#:key inputs outputs #:allow-other-keys)
585 (let* ((out (assoc-ref outputs "out"))
586 (bin (string-append out "/bin"))
587 (man1 (string-append out "/share/man/man1")))
588 (mkdir-p bin)
589 (mkdir-p man1)
590 (zero?
591 (system* "make" "install" "install.man"
592 (string-append "BINDIR=" bin)
593 (string-append "MANDIR=" man1)))))))))
594 (inputs `(("libx11" ,libx11)))
595 (home-page "http://ftp.x.org/contrib/utilities/")
596 (synopsis "Hide idle mouse cursor")
597 (description
598 "Unclutter is a program which runs permanently in the background of an
599 X11 session. It checks on the X11 pointer (cursor) position every few
600 seconds, and when it finds it has not moved (and no buttons are pressed
601 on the mouse, and the cursor is not in the root window) it creates a
602 small sub-window as a child of the window the cursor is in. The new
603 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
604 invisible cursor. This allows you to see all the text in an xterm or
605 xedit, for example. The human factors crowd would agree it should make
606 things less distracting.")
607 (license license:public-domain)))
608
609 (define-public xautomation
610 (package
611 (name "xautomation")
612 (version "1.09")
613 (source
614 (origin
615 (method url-fetch)
616 (uri (string-append "https://www.hoopajoo.net/static/projects/"
617 "xautomation-" version ".tar.gz"))
618
619 (sha256
620 (base32
621 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
622 (build-system gnu-build-system)
623 (inputs
624 `(("libpng" ,libpng)
625 ("libx11" ,libx11)
626 ("libxi" ,libxi)
627 ("libxtst" ,libxtst)))
628 (native-inputs
629 `(("xorgproto" ,xorgproto)))
630 (synopsis "Tools to automate tasks in X such as detecting on screen images")
631 (description
632 "Xautomation can control X from the command line for scripts, and
633 do visual scraping to find things on the screen. The control interface
634 allows mouse movement, clicking, button up/down, key up/down, etc, and
635 uses the XTest extension so you don't have the annoying problems that
636 xse has when apps ignore sent events. The visgrep program can find
637 images inside of images and reports the coordinates, allowing progams
638 to find buttons, etc, on the screen to click on.")
639 (home-page "https://www.hoopajoo.net/projects/xautomation.html")
640 (license license:gpl2+)))
641
642 (define-public xlockmore
643 (package
644 (name "xlockmore")
645 (version "5.55")
646 (source (origin
647 (method url-fetch)
648 (uri (list (string-append "http://sillycycle.com/xlock/"
649 name "-" version ".tar.xz")
650 ;; Previous releases are moved to a subdirectory.
651 (string-append "http://sillycycle.com/xlock/"
652 "recent-releases/"
653 name "-" version ".tar.xz")))
654 (sha256
655 (base32
656 "1y3f76rq2nd10fgi2rx81aj6pijglmm661vjsxi05hpg35dzmwfl"))))
657 (build-system gnu-build-system)
658 (arguments
659 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
660 (assoc-ref %outputs "out")
661 "/lib/X11/app-defaults"))
662 #:tests? #f)) ;no such thing as a test suite
663 (inputs
664 `(("libX11" ,libx11)
665 ("libXext" ,libxext)
666 ("libXt" ,libxt)
667 ("linux-pam" ,linux-pam)))
668 (home-page "http://sillycycle.com/xlockmore.html")
669 (synopsis "Screen locker for the X Window System")
670 (description
671 "XLockMore is a classic screen locker and screen saver for the
672 X Window System.")
673 (license (license:non-copyleft #f "See xlock.c.")
674 ))) ; + GPLv2 in modes/glx/biof.c.
675
676 (define-public xosd
677 (package
678 (name "xosd")
679 (version "2.2.14")
680 (source (origin
681 (method url-fetch)
682 (uri (string-append
683 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
684 name "-" version ".tar.gz"))
685 (sha256
686 (base32
687 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
688 (build-system gnu-build-system)
689 (arguments
690 '(#:configure-flags
691 (list (string-append "--mandir=" %output "/share/man"))))
692 (inputs
693 `(("libx11" ,libx11)
694 ("libxt" ,libxt)
695 ("libxext" ,libxext)
696 ("libxinerama" ,libxinerama)))
697 (home-page "https://sourceforge.net/projects/libxosd/")
698 (synopsis "X On Screen Display")
699 (description
700 "XOSD provides a C library and a simple utility (osd_cat) for displaying
701 transparent text on your screen.")
702 (license license:gpl2+)))
703
704 (define-public xbindkeys
705 (package
706 (name "xbindkeys")
707 (version "1.8.6")
708 (source (origin
709 (method url-fetch)
710 ;; Download from the savannah mirror list fails
711 (uri (string-append
712 "http://www.nongnu.org/xbindkeys/xbindkeys-"
713 version
714 ".tar.gz"))
715 (sha256
716 (base32
717 "060df6d8y727jp1inp7blp44cs8a7jig7vcm8ndsn6gw36z1h3bc"))))
718 (build-system gnu-build-system)
719 (inputs
720 `(("libx11" ,libx11)
721 ("guile" ,guile-2.0)))
722 (home-page "https://www.nongnu.org/xbindkeys/")
723 (synopsis "Associate a combination of keys with a shell command")
724 (description
725 "XBindKeys is a program that allows you to launch shell commands with
726 your keyboard or your mouse under the X Window System. It links commands to
727 keys or mouse buttons, using a configuration file. It's independent of the
728 window manager and can capture all keyboard keys (ex: Power, Wake...). It
729 optionally supports a Guile-based configuration file layout, which enables you
730 to access all XBindKeys internals, so you can have key combinations, double
731 clicks or timed double clicks take actions. Also all functions that work in
732 Guile will work for XBindKeys.")
733 (license license:gpl2+)))
734
735 (define-public sxhkd
736 (package
737 (name "sxhkd")
738 (version "0.5.6")
739 (source
740 (origin
741 (file-name (string-append name "-" version ".tar.gz"))
742 (method url-fetch)
743 (uri (string-append
744 "https://github.com/baskerville/sxhkd/archive/"
745 version ".tar.gz"))
746 (sha256
747 (base32
748 "15grmzpxz5fqlbfg2slj7gb7r6nzkvjmflmbkqx7mlby9pm6wdkj"))))
749 (build-system gnu-build-system)
750 (inputs
751 `(("asciidoc" ,asciidoc)
752 ("libxcb" ,libxcb)
753 ("xcb-util" ,xcb-util)
754 ("xcb-util-keysyms" ,xcb-util-keysyms)
755 ("xcb-util-wm" ,xcb-util-wm)))
756 (arguments
757 '(#:phases (modify-phases %standard-phases (delete 'configure))
758 #:tests? #f ; no check target
759 #:make-flags (list "CC=gcc"
760 (string-append "PREFIX=" %output))))
761 (home-page "https://github.com/baskerville/sxhkd")
762 (synopsis "Simple X hotkey daemon")
763 (description "sxhkd is a simple X hotkey daemon with a powerful and
764 compact configuration syntax.")
765 (license license:bsd-2)))
766
767 (define-public rxvt-unicode
768 (package
769 (name "rxvt-unicode")
770 (version "9.22")
771 (source (origin
772 (method url-fetch)
773 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
774 name "-" version ".tar.bz2"))
775 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
776 (sha256
777 (base32
778 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
779 (build-system gnu-build-system)
780 (arguments
781 ;; This sets the destination when installing the necessary terminal
782 ;; capability data, which are not provided by 'ncurses'. See
783 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
784 `(#:make-flags (list (string-append "TERMINFO="
785 (assoc-ref %outputs "out")
786 "/share/terminfo"))
787 #:phases
788 (modify-phases %standard-phases
789 (add-after 'install 'install-desktop-urxvt
790 (lambda* (#:key outputs #:allow-other-keys)
791 (let* ((output (assoc-ref outputs "out"))
792 (desktop (string-append output "/share/applications")))
793 (mkdir-p desktop)
794 (with-output-to-file
795 (string-append desktop "/urxvt.desktop")
796 (lambda _
797 (format #t
798 "[Desktop Entry]~@
799 Name=rxvt-unicode~@
800 Comment=~@
801 Exec=~a/bin/urxvt~@
802 TryExec=~@*~a/bin/urxvt~@
803 Icon=~@
804 Type=Application~%"
805 output)))
806 #t)))
807 (add-after 'install 'install-desktop-urxvtc
808 (lambda* (#:key outputs #:allow-other-keys)
809 (let* ((output (assoc-ref outputs "out"))
810 (desktop (string-append output "/share/applications")))
811 (mkdir-p desktop)
812 (with-output-to-file
813 (string-append desktop "/urxvtc.desktop")
814 (lambda _
815 (format #t
816 "[Desktop Entry]~@
817 Name=rxvt-unicode (client)~@
818 Comment=Rxvt clone with XFT and unicode support~@
819 Exec=~a/bin/urxvtc~@
820 TryExec=~@*~a/bin/urxvtc~@
821 Icon=~@
822 Type=Application~%"
823 output)))
824 #t))))))
825 (inputs
826 `(("libXft" ,libxft)
827 ("libX11" ,libx11)))
828 (native-inputs
829 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
830 ("perl" ,perl)
831 ("pkg-config" ,pkg-config)))
832 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
833 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
834 (native-search-paths
835 (list (search-path-specification
836 (variable "TERMINFO_DIRS")
837 (files '("share/terminfo")))))
838 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
839 (synopsis "Rxvt clone with XFT and unicode support")
840 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
841 intended as an xterm replacement for users who do not require features such as
842 Tektronix 4014 emulation and toolkit-style configurability. It supports
843 unicode, XFT and may be extended with Perl plugins. It also comes with a
844 client/daemon pair that lets you open any number of terminal windows from
845 within a single process.")
846 (license license:gpl3+)))
847
848 (define-public xcape
849 (package
850 (name "xcape")
851 (version "1.2")
852 (source
853 (origin
854 (method url-fetch)
855 (uri (string-append "https://github.com/alols/" name
856 "/archive/v" version ".tar.gz"))
857 (file-name (string-append name "-" version ".tar.gz"))
858 (sha256
859 (base32
860 "0898zc3vwxia00h9kfknpf7jygxgwggrx8v5mxc31w4lzn2dhzm2"))))
861 (build-system gnu-build-system)
862 (arguments
863 `(#:tests? #f ; no check target
864 ;; no configure script
865 #:phases (modify-phases %standard-phases (delete 'configure))
866 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
867 "MANDIR=/share/man/man1"
868 "CC=gcc")))
869 (inputs
870 `(("libxtst" ,libxtst)
871 ("libx11" ,libx11)))
872 (native-inputs
873 `(("pkg-config" ,pkg-config)))
874 (home-page "https://github.com/alols/xcape")
875 (synopsis "Use a modifier key in X.org as another key")
876 (description
877 "This utility for X.org allows to use modifier key as another key when
878 pressed and released on its own. The default behaviour is to generate the
879 Escape key when Left Control is pressed and released on its own.")
880 (license license:gpl3+)))
881
882 (define-public libwacom
883 (package
884 (name "libwacom")
885 (version "0.29")
886 (source (origin
887 (method url-fetch)
888 (uri (string-append "mirror://sourceforge/linuxwacom/libwacom/"
889 name "-" version ".tar.bz2"))
890 (sha256
891 (base32
892 "1diklgcjhmvcxi9p1ifp6wcnyr6k7z9jhrlzfhzjqd6zipk01slw"))))
893 (build-system glib-or-gtk-build-system)
894 (native-inputs
895 `(("pkg-config" ,pkg-config)))
896 (inputs
897 `(("gtk+" ,gtk+)
898 ("libgudev" ,libgudev)
899 ("eudev" ,eudev)
900 ("libxml2" ,libxml2)))
901 (propagated-inputs
902 ;; libwacom includes header files that include GLib, and libinput uses
903 ;; those header files.
904 `(("glib" ,glib)))
905 (home-page "http://linuxwacom.sourceforge.net/")
906 (synopsis "Helper library for Wacom tablet settings")
907 (description
908 "Libwacom is a library to help implement Wacom tablet settings. It is
909 intended to be used by client-programs that need model identification. It is
910 already being used by the gnome-settings-daemon and the GNOME Control Center
911 Wacom tablet applet.")
912 (license license:x11)))
913
914 (define-public xf86-input-wacom
915 (package
916 (name "xf86-input-wacom")
917 (version "0.36.0")
918 (source (origin
919 (method url-fetch)
920 (uri (string-append
921 "mirror://sourceforge/linuxwacom/xf86-input-wacom/"
922 name "-" version ".tar.bz2"))
923 (sha256
924 (base32
925 "1xi39hl8ddgj9m7m2k2ll2r3wh0k0aq45fvrsv43651bhz9cbrza"))))
926 (arguments
927 `(#:configure-flags
928 (list (string-append "--with-sdkdir="
929 (assoc-ref %outputs "out")
930 "/include/xorg")
931 (string-append "--with-xorg-conf-dir="
932 (assoc-ref %outputs "out")
933 "/share/X11/xorg.conf.d"))))
934 (build-system gnu-build-system)
935 (native-inputs
936 `(("pkg-config" ,pkg-config)))
937 (inputs
938 `(("xorg-server" ,xorg-server)
939 ("libxrandr" ,libxrandr)
940 ("libxinerama" ,libxinerama)
941 ("libxi" ,libxi)
942 ("eudev" ,eudev)))
943 (home-page "http://linuxwacom.sourceforge.net/")
944 (synopsis "Wacom input driver for X")
945 (description
946 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
947 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
948 (license license:x11)))
949
950 (define-public redshift
951 (package
952 (name "redshift")
953 (version "1.12")
954 (source
955 (origin
956 (method url-fetch)
957 (uri
958 (string-append "https://github.com/jonls/redshift/"
959 "releases/download/v" version
960 "/redshift-" version ".tar.xz"))
961 (sha256
962 (base32
963 "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j"))))
964 (build-system gnu-build-system)
965 (native-inputs
966 `(("pkg-config" ,pkg-config)
967 ("intltool" ,intltool)))
968 (inputs
969 `(("libdrm" ,libdrm)
970 ("libx11" ,libx11)
971 ("libxcb" ,libxcb)
972 ("libxxf86vm" ,libxxf86vm)
973 ("glib" ,glib))) ; for Geoclue2 support
974 (home-page "https://github.com/jonls/redshift")
975 (synopsis "Adjust the color temperature of your screen")
976 (description
977 "Redshift adjusts the color temperature according to the position of the
978 sun. A different color temperature is set during night and daytime. During
979 twilight and early morning, the color temperature transitions smoothly from
980 night to daytime temperature to allow your eyes to slowly adapt. At night the
981 color temperature should be set to match the lamps in your room.")
982 (license license:gpl3+)))
983
984 (define-public xscreensaver
985 (package
986 (name "xscreensaver")
987 (version "5.39")
988 (source
989 (origin
990 (method url-fetch)
991 (uri
992 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
993 version ".tar.gz"))
994 (sha256
995 (base32
996 "09i47h4hdgwxyqgrsnshl4l5dv5mrsp37h705cc22lwby601ikj8"))))
997 (build-system gnu-build-system)
998 (arguments
999 `(#:tests? #f ; no check target
1000 #:phases
1001 (modify-phases %standard-phases
1002 (add-before 'configure 'adjust-gtk-resource-paths
1003 (lambda _
1004 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
1005 (("@GTK_DATADIR@") "@datadir@")
1006 (("@PO_DATADIR@") "@datadir@")))))
1007 #:configure-flags '("--with-pam" "--with-proc-interrupts"
1008 "--without-readdisplay")
1009 #:make-flags (list (string-append "AD_DIR="
1010 (assoc-ref %outputs "out")
1011 "/usr/lib/X11/app-defaults"))))
1012 (native-inputs
1013 `(("pkg-config" ,pkg-config)
1014 ("intltool" ,intltool)))
1015 (inputs
1016 `(("libx11" ,libx11)
1017 ("libxext" ,libxext)
1018 ("libxi" ,libxi)
1019 ("libxt" ,libxt)
1020 ("libxft" ,libxft)
1021 ("libxmu" ,libxmu)
1022 ("libxpm" ,libxpm)
1023 ("libglade" ,libglade)
1024 ("libxml2" ,libxml2)
1025 ("libsm" ,libsm)
1026 ("libjpeg" ,libjpeg)
1027 ("linux-pam" ,linux-pam)
1028 ("pango" ,pango)
1029 ("gtk+" ,gtk+)
1030 ("perl" ,perl)
1031 ("cairo" ,cairo)
1032 ("bc" ,bc)
1033 ("libxrandr" ,libxrandr)
1034 ("glu" ,glu)
1035 ("glib" ,glib)))
1036 (home-page "https://www.jwz.org/xscreensaver/")
1037 (synopsis "Classic screen saver suite supporting screen locking")
1038 (description
1039 "xscreensaver is a popular screen saver collection with many entertaining
1040 demos. It also acts as a nice screen locker.")
1041 ;; xscreensaver doesn't have a single copyright file and instead relies on
1042 ;; source comment headers, though most files have the same lax
1043 ;; permissions. To reduce complexity, we're pointing at Debian's
1044 ;; breakdown of the copyright information.
1045 (license (license:non-copyleft
1046 (string-append
1047 "http://metadata.ftp-master.debian.org/changelogs/"
1048 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1049
1050 (define-public xsel
1051 (package
1052 (name "xsel")
1053 (version "1.2.0")
1054 (source (origin
1055 (method url-fetch)
1056 (uri (string-append "http://www.vergenet.net/~conrad/software"
1057 "/xsel/download/xsel-" version ".tar.gz"))
1058 (sha256
1059 (base32
1060 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1061 (build-system gnu-build-system)
1062 (inputs
1063 `(("libxt" ,libxt)))
1064 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1065 (synopsis "Manipulate X selection")
1066 (description
1067 "XSel is a command-line program for getting and setting the contents of
1068 the X selection. Normally this is only accessible by manually highlighting
1069 information and pasting it with the middle mouse button.
1070
1071 XSel reads from standard input and writes to standard output by default,
1072 but can also follow a growing file, display contents, delete entries and more.")
1073 (license (license:x11-style "file://COPYING"
1074 "See COPYING in the distribution."))))
1075
1076 (define-public xdpyprobe
1077 (package
1078 (name "xdpyprobe")
1079 (version "0.1")
1080 (source (origin
1081 (method url-fetch)
1082 (uri (string-append "https://github.com/alezost/" name
1083 "/releases/download/v" version
1084 "/" name "-" version ".tar.gz"))
1085 (sha256
1086 (base32
1087 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1088 (build-system gnu-build-system)
1089 (inputs
1090 `(("libx11" ,libx11)))
1091 (home-page "https://github.com/alezost/xdpyprobe")
1092 (synopsis "Probe X server for connectivity")
1093 (description
1094 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1095 connectivity of the X server running on a particular @code{DISPLAY}.")
1096 (license license:gpl3+)))
1097
1098 (define-public rofi
1099 (package
1100 (name "rofi")
1101 (version "1.5.1")
1102 (source (origin
1103 (method url-fetch)
1104 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1105 "releases/download/"
1106 version "/rofi-" version ".tar.xz"))
1107 (sha256
1108 (base32
1109 "0wx118banbwfqdwc5y44fkp3hxg97gj3vma16528slhy408hkg7i"))))
1110 (build-system gnu-build-system)
1111 (inputs
1112 `(("pango" ,pango)
1113 ("cairo" ,cairo)
1114 ("glib" ,glib)
1115 ("startup-notification" ,startup-notification)
1116 ("librsvg" ,librsvg)
1117 ("libxkbcommon" ,libxkbcommon)
1118 ("libxcb" ,libxcb)
1119 ("xcb-util" ,xcb-util)
1120 ("xcb-util-xrm" ,xcb-util-xrm)
1121 ("xcb-util-wm" ,xcb-util-wm)))
1122 (native-inputs
1123 `(("bison" ,bison)
1124 ("check" ,check)
1125 ("flex" ,flex)
1126 ("glib:bin" ,glib "bin")
1127 ("pkg-config" ,pkg-config)))
1128 (arguments
1129 `(#:parallel-tests? #f ; May fail in some circumstances.
1130 #:phases
1131 (modify-phases %standard-phases
1132 (add-before 'configure 'adjust-tests
1133 (lambda _
1134 (substitute* '("test/helper-expand.c")
1135 (("~root") "/root")
1136 (("~") "")
1137 (("g_get_home_dir \\(\\)") "\"/\""))
1138 #t)))))
1139 (home-page "https://github.com/DaveDavenport/rofi")
1140 (synopsis "Application launcher")
1141 (description "Rofi is a minimalist application launcher. It memorizes which
1142 applications you regularly use and also allows you to search for an application
1143 by name.")
1144 (license license:expat)))
1145
1146 (define-public tint2
1147 (package
1148 (name "tint2")
1149 (version "0.14.6")
1150 (source (origin
1151 (method url-fetch)
1152 (uri (string-append "https://gitlab.com/o9000/" name
1153 "/repository/archive.tar.gz?ref=" version))
1154 (file-name (string-append name "-" version ".tar.gz"))
1155 (sha256
1156 (base32
1157 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1158 (build-system cmake-build-system)
1159 (arguments
1160 '(#:tests? #f ;no test target
1161 #:phases
1162 (modify-phases %standard-phases
1163 (add-after 'unpack 'fix-installation-prefix
1164 (lambda _
1165 (substitute* "CMakeLists.txt"
1166 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc")))))))
1167 (inputs
1168 `(("gtk+" ,gtk+-2)
1169 ("imlib2" ,imlib2)
1170 ("librsvg" ,librsvg)
1171 ("libxcomposite" ,libxcomposite)
1172 ("libxdamage" ,libxdamage)
1173 ("libxft" ,libxft)
1174 ("libxinerama" ,libxinerama)
1175 ("libxrandr" ,libxrandr)
1176 ("startup-notification" ,startup-notification)))
1177 (native-inputs
1178 `(("gettext" ,gettext-minimal)
1179 ("pkg-config" ,pkg-config)))
1180 (home-page "https://gitlab.com/o9000/tint2")
1181 (synopsis "Lightweight task bar")
1182 (description
1183 "Tint2 is a simple task bar made for modern X window managers. It was
1184 specifically made for Openbox but it should also work with other window
1185 managers (GNOME, KDE, XFCE etc.).
1186
1187 The taskbar includes transparency and color settings for the font, icons,
1188 border, and background. It also supports multihead setups, customized mouse
1189 actions, a built-in clock, a battery monitor and a system tray.")
1190 (license license:gpl2)))
1191
1192 (define-public dzen
1193 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1194 (revision "1"))
1195 (package
1196 (name "dzen")
1197 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1198 revision "." (string-take commit 7)))
1199 (source (origin
1200 (method git-fetch)
1201 (uri (git-reference
1202 (url "https://github.com/robm/dzen.git")
1203 (commit commit)))
1204 (file-name (string-append name "-" version))
1205 (sha256
1206 (base32
1207 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1208 (build-system gnu-build-system)
1209 (arguments
1210 `(#:tests? #f ; No test suite.
1211 #:make-flags ; Replacement for `config.mk`.
1212 (list
1213 (string-append "VERSION = " ,version)
1214 (string-append "PREFIX = " %output)
1215 "MANPREFIX = ${PREFIX}/share/man"
1216 "INCS = -I."
1217 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1218 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1219 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1220 "LDFLAGS = ${LIBS}"
1221 "CC = gcc"
1222 "LD = ${CC}")
1223 #:phases
1224 (modify-phases %standard-phases
1225 (delete 'configure) ; No configuration script.
1226 ;; Use own make-flags instead of `config.mk`.
1227 (add-before 'build 'dont-include-config-mk
1228 (lambda _
1229 (substitute* "Makefile" (("include config.mk") ""))
1230 #t)))))
1231 (inputs
1232 `(("libx11" ,libx11)
1233 ("libxft" ,libxft)
1234 ("libxpm" ,libxpm)
1235 ("libxinerama" ,libxinerama)))
1236 (native-inputs `(("pkg-config" ,pkg-config)))
1237 (synopsis "General purpose messaging, notification and menuing program for X11")
1238 (description "Dzen is a general purpose messaging, notification and menuing
1239 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1240 (home-page "https://github.com/robm/dzen")
1241 (license license:expat))))
1242
1243 (define-public xcb-util-xrm
1244 (package
1245 (name "xcb-util-xrm")
1246 (version "1.3")
1247 (source (origin
1248 (method url-fetch)
1249 (uri (string-append
1250 "https://github.com/Airblader/xcb-util-xrm/releases"
1251 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1252 (sha256
1253 (base32
1254 "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h"))
1255 (modules '((guix build utils)))
1256 (snippet
1257 ;; Drop bundled m4.
1258 '(begin
1259 (delete-file-recursively "m4")
1260 #t))))
1261 (build-system gnu-build-system)
1262 (native-inputs
1263 `(("pkg-config" ,pkg-config)
1264 ("m4" ,m4)
1265 ("libx11" ,libx11))) ; for tests
1266 (inputs
1267 `(("libxcb" ,libxcb)
1268 ("xcb-util" ,xcb-util)))
1269 (home-page "https://github.com/Airblader/xcb-util-xrm")
1270 (synopsis "XCB utility functions for the X resource manager")
1271 (description
1272 "The XCB util module provides a number of libraries which sit on
1273 top of libxcb, the core X protocol library, and some of the extension
1274 libraries. These experimental libraries provide convenience functions
1275 and interfaces which make the raw X protocol more usable. Some of the
1276 libraries also provide client-side code which is not strictly part of
1277 the X protocol but which has traditionally been provided by Xlib.
1278
1279 XCB util-xrm module provides the following libraries:
1280
1281 - xrm: utility functions for the X resource manager.")
1282 (license license:x11)))
1283
1284 (define-public xcalib
1285 (package
1286 (name "xcalib")
1287 (version "0.8")
1288 (source (origin
1289 (method url-fetch)
1290 (uri (string-append "mirror://sourceforge/xcalib/xcalib/" version
1291 "/xcalib-source-" version ".tar.gz"))
1292 (sha256
1293 (base32
1294 "1rh6xb51c5xz926dnn82a2fn643g0sr4a8z66rn6yi7523kjw4ca"))))
1295 (build-system gnu-build-system)
1296 (arguments
1297 '(#:make-flags '("CC=gcc")
1298 #:tests? #f ; No test suite
1299 #:phases (modify-phases %standard-phases
1300 (delete 'configure)
1301 (replace 'install
1302 (lambda* (#:key outputs #:allow-other-keys)
1303 (let* ((out (assoc-ref outputs "out"))
1304 (bin (string-append out "/bin")))
1305 (install-file "xcalib" bin))))
1306 (add-after 'install 'install-doc
1307 (lambda* (#:key outputs #:allow-other-keys)
1308 (let ((doc (string-append(assoc-ref outputs "out")
1309 "/share/doc/xcalib")))
1310 (install-file "README" doc)
1311 ;; Avoid unspecified return value.
1312 #t))))))
1313 (inputs `(("libx11" ,libx11)
1314 ("libxext" ,libxext)
1315 ("libxxf86vm" ,libxxf86vm)))
1316 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1317 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1318 profiles to the video card's gamma ramp. It does work with most video card
1319 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1320 invert colors on a specific display/screen.")
1321 (home-page "http://xcalib.sourceforge.net/")
1322 (license license:gpl2)))
1323
1324 (define-public nxbelld
1325 (package
1326 (name "nxbelld")
1327 (version "0.1.2")
1328 (source (origin
1329 (method git-fetch)
1330 (uri (git-reference
1331 (url "https://github.com/dusxmt/nxbelld.git")
1332 (commit version)))
1333 (sha256
1334 (base32
1335 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1336 (file-name (git-file-name name version))))
1337 (build-system gnu-build-system)
1338 (arguments '(#:configure-flags `("--enable-sound"
1339 "--enable-wave"
1340 "--enable-alsa")
1341 #:phases (modify-phases %standard-phases
1342 (add-before 'configure 'autoreconf
1343 (lambda _
1344 (zero? (system* "autoreconf" "-vfi")))))))
1345 (native-inputs `(("autoconf" ,autoconf)
1346 ("automake" ,automake)
1347 ("pkg-config" ,pkg-config)
1348 ("perl" ,perl)))
1349 (inputs `(("libx11" ,libx11)
1350 ("alsa-lib" ,alsa-lib)))
1351 (synopsis "Daemon that performs an action every time the X11 bell is rung")
1352 (description "nxbelld is a tiny utility to aid people who either don't
1353 like the default PC speaker beep, or use a sound driver that doesn't have
1354 support for the PC speaker. The utility performs a given action every time
1355 the X bell is rung. The actions nxbelld can currently perform include running
1356 a specified program, emulating the PC speaker beep using the sound card (default),
1357 or playing a PCM encoded WAVE file.")
1358 (home-page "https://github.com/dusxmt/nxbelld")
1359 (license license:gpl3+)))
1360
1361 (define-public xautolock
1362 (package
1363 (name "xautolock")
1364 (version "2.2")
1365 (source (origin
1366 (method url-fetch)
1367 (uri (string-append "http://www.ibiblio.org/pub/linux/X11/screensavers/"
1368 name "-" version ".tgz"))
1369 (sha256
1370 (base32
1371 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1372 (build-system gnu-build-system)
1373 (native-inputs
1374 `(("imake" ,imake)))
1375 (inputs
1376 `(("libx11" ,libx11)
1377 ("libxext" ,libxext)
1378 ("libxscrnsaver" ,libxscrnsaver)))
1379 (arguments
1380 `(#:tests? #f
1381 #:phases
1382 (modify-phases %standard-phases
1383 (replace 'configure
1384 (lambda* (#:key inputs outputs #:allow-other-keys)
1385 (let ((imake (assoc-ref inputs "imake"))
1386 (out (assoc-ref outputs "out")))
1387 ;; Generate Makefile
1388 (invoke "xmkmf")
1389 (substitute* "Makefile"
1390 ;; These imake variables somehow remain undefined
1391 (("DefaultGcc2[[:graph:]]*Opt") "-O2")
1392 ;; Reset a few variable defaults that are set in imake templates
1393 ((imake) out)
1394 (("(MANPATH = )[[:graph:]]*" _ front)
1395 (string-append front out "/share/man")))
1396 ;; Old BSD-style 'union wait' is unneeded (defining
1397 ;; _USE_BSD did not seem to fix it)
1398 (substitute* "src/engine.c"
1399 (("union wait status") "int status = 0"))
1400 #t)))
1401 (add-after 'install 'install/man
1402 (lambda _
1403 (zero? (system* "make" "install.man")))))))
1404 (home-page "http://ibiblio.org/pub/Linux/X11/screensavers/")
1405 (synopsis "Program launcher for idle X sessions")
1406 (description "Xautolock monitors input devices under the X Window
1407 System, and launches a program of your choice if there is no activity after
1408 a user-configurable period of time.")
1409 (license license:gpl2)))
1410
1411 (define-public screen-message
1412 (package
1413 (name "screen-message")
1414 (version "0.25")
1415 (source (origin
1416 (method url-fetch)
1417 (uri (string-append
1418 "https://www.joachim-breitner.de/archive/screen-message"
1419 "/screen-message-" version ".tar.gz"))
1420 (sha256
1421 (base32
1422 "1lw955qq5pq010lzmaf32ylj2iprgsri9ih4hx672c3f794ilab0"))))
1423 (build-system gnu-build-system)
1424 (inputs `(("gtk3" ,gtk+)
1425 ("gdk" ,gdk-pixbuf)
1426 ("pango" ,pango)))
1427 (native-inputs `(("pkg-config" ,pkg-config)))
1428 (arguments
1429 ;; The default configure puts the 'sm' binary in games/ instead of bin/ -
1430 ;; this fixes it:
1431 `(#:make-flags (list (string-append "execgamesdir=" %output "/bin"))))
1432 (synopsis "Print messages on your screen")
1433 (description "@code{screen-message} is a tool for displaying text on
1434 your screen. It will make the text as large as possible and display it
1435 with black color on a white background (colors are configurable on the
1436 commandline).")
1437 (home-page "https://www.joachim-breitner.de/projects#screen-message")
1438 (license license:gpl2+)))
1439
1440 (define-public xss-lock
1441 ;; xss-lock does not seem to be maintained any longer, but the last commits
1442 ;; fix important issues so we package them.
1443 (let ((version "0.3.0")
1444 (revision "1")
1445 (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717"))
1446 (package
1447 (name "xss-lock")
1448 (version (git-version version revision commit))
1449 (source (origin
1450 (method git-fetch)
1451 (uri (git-reference
1452 (url "https://bitbucket.org/raymonad/xss-lock.git")
1453 (commit commit)))
1454 (file-name (git-file-name name version))
1455 (sha256
1456 (base32
1457 "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r"))))
1458 (build-system cmake-build-system)
1459 (inputs `(("glib" ,glib)
1460 ("xcb-util" ,xcb-util)))
1461 (native-inputs
1462 `(("python-docutils" ,python-docutils)
1463 ("pkg-config" ,pkg-config)))
1464 (arguments
1465 `(#:tests? #f))
1466 (synopsis "Use external screen locker on events")
1467 (description "@code{xss-lock} listens to X signals to fire up a
1468 user-defined screensaver. In effect this allows to automatically lock the
1469 screen when closing a laptop lid or after a period of user inactivity (as set
1470 with @code{xset s TIMEOUT}). The notifier command, if specified, is executed
1471 first. Additionally, xss-lock uses the inhibition logic to lock the screen
1472 before the system goes to sleep.")
1473 (home-page "https://bitbucket.org/raymonad/xss-lock")
1474 (license license:expat))))