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