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