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>
26 ;;; This file is part of GNU Guix.
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.
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.
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/>.
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))
79 ;; packages outside the x.org system proper
87 (uri (string-append "http://christian.amsuess.com/tools/" name
88 "/files/" name "-" version ".tar.gz"))
91 "1i3f1agixxbfy4kxikb2b241p7c2lg73cl9wqfvlwz3q6zf5faxv"))
92 (modules '((guix build utils)))
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.)"))
101 (build-system python-build-system)
103 `(#:python ,python-2 ;incompatible with python 3
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")
112 #:tests? #f)) ;no tests
113 (inputs `(("pygtk" ,python2-pygtk)
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
125 (license license:gpl3+)))
134 (uri (string-append "https://github.com/astrand/xclip"
135 "/archive/" version ".tar.gz"))
136 (file-name (string-append name "-" version ".tar.gz"))
139 "0n7pczk9vv30zf8qfln8ba3hnif9yfdxg0m84djac469wc28hnya"))))
140 (build-system gnu-build-system)
142 '(#:tests? #f)) ;there is no test suite
144 `(("autoconf" ,autoconf)
145 ("automake" ,automake)))
146 (inputs `(("libxmu" ,libxmu)
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+)))
155 (define-public libxkbcommon
157 (name "libxkbcommon")
161 (uri (string-append "https://xkbcommon.org/download/" name "-"
165 "0vgy84vfbig5bqznr137h5arjidnfwrxrdli0pxyn2jfn1fjcag8"))))
166 (build-system gnu-build-system)
170 ("xkeyboard-config" ,xkeyboard-config)))
173 ("pkg-config" ,pkg-config)))
176 (list (string-append "--with-xkb-config-root="
177 (assoc-ref %build-inputs "xkeyboard-config")
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
190 (license (license:x11-style "file://COPYING"
191 "See 'COPYING' in the distribution."))))
193 (define-public libfakekey
200 (uri (string-append "https://downloads.yoctoproject.org/releases"
201 "/matchbox/libfakekey/" version "/libfakekey-"
205 "1501l0bflcrhqbf12n7a7cqilvr0w4xawxw0vw75p2940nkl4464"))))
206 (build-system gnu-build-system)
208 `(#:make-flags (list "AM_LDFLAGS=-lX11")))
210 `(("pkg-config" ,pkg-config)))
212 `(("libxtst" ,libxtst)
214 (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox")
215 (synopsis "X virtual keyboard library")
217 "Libfakekey is a virtual keyboard library for X.")
218 (license license:gpl2)))
220 (define-public xdotool
223 (version "3.20150503.1")
228 "https://github.com/jordansissel/xdotool/releases/download/v"
229 version "/xdotool-" version ".tar.gz"))
232 "1lcngsw33fy9my21rdiz1gs474bfdqcfxjrnfggbx4aypn1nhcp8"))
233 (patches (search-patches "xdotool-fix-makefile.patch"))))
234 (build-system gnu-build-system)
236 '(#:tests? #f ; Test suite requires a lot of black magic
238 (modify-phases %standard-phases
240 (lambda* (#:key outputs #:allow-other-keys #:rest args)
241 (setenv "PREFIX" (assoc-ref outputs "out"))
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)
250 ("libxinerama" ,libxinerama)
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)))
271 "http://xeyes.sourcearchive.com/downloads/1.0.1/xeyes_"
276 "04c3md570j67g55h3bix1qbngcslnq91skli51k3g1avki88zkm9"))))
277 (build-system gnu-build-system)
279 `(("libxext" ,libxext)
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)))
291 (define-public pixman
298 "http://cairographics.org/releases/pixman-"
302 "13m842m9ffac3m9r0b4lvwjhwzg3w4353djkjpf00s0wnm4v5di1"))
303 (patches (search-patches "pixman-CVE-2016-5296.patch"))))
304 (build-system gnu-build-system)
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
315 (license license:x11)))
317 (define-public libdrm
325 "https://dri.freedesktop.org/libdrm/libdrm-"
330 "0068dn47c478vm1lyyhy02gilrpsma0xmcblhvs0dzqyrk80wjk3"))
331 (patches (search-patches "libdrm-symbol-check.patch"))))
332 (build-system gnu-build-system)
335 '(,@(match (%current-system)
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"))
346 '("--enable-tegra-experimental-api"
347 "--enable-freedreno-kgsl"))
350 `(("libpciaccess" ,libpciaccess)))
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
364 (license license:x11)))
375 "http://bitmath.org/code/mtdev/mtdev-"
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
388 (license license:x11)))
390 (define-public startup-notification
392 (name "startup-notification")
397 (uri (string-append "https://www.freedesktop.org/software/" name
398 "/releases/" name "-" version ".tar.gz"))
401 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
402 (build-system gnu-build-system)
403 (native-inputs `(("pkg-config" ,pkg-config)))
406 ("xcb-util" ,xcb-util)))
407 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
408 (synopsis "Application startup notification and feedback library")
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+)))
416 (define-public wmctrl
423 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
427 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
428 (patches (search-patches "wmctrl-64-fix.patch"))))
429 (build-system gnu-build-system)
432 (list (string-append "--mandir="
433 (assoc-ref %outputs "out")
436 `(("pkg-config" ,pkg-config)))
441 (home-page "http://tomas.styblo.name/wmctrl/")
442 (synopsis "Command-line tool to control X window managers")
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+)))
456 (uri (list (string-append
457 "http://linuxbrit.co.uk/downloads/scrot-"
460 "https://fossies.org/linux/privat/old/scrot-"
464 "1wll744rhb49lvr2zs6m93rdmiq59zm344jzqvijrdn24ksiqgb1"))))
465 (build-system gnu-build-system)
467 ;; By default, man and doc are put in PREFIX/{man,doc} instead of
468 ;; PREFIX/share/{man,doc}.
470 (list (string-append "--mandir="
471 (assoc-ref %outputs "out")
474 (modify-phases %standard-phases
476 (lambda* (#:key inputs outputs #:allow-other-keys)
477 (let* ((out (assoc-ref outputs "out"))
478 (doc (string-append out "/share/doc/scrot")))
481 (system* "make" "install"
482 (string-append "docsdir=" doc)))))))))
486 (home-page "http://linuxbrit.co.uk/software/")
487 (synopsis "Command-line screen capture utility for X Window System")
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
493 (license (license:x11-style "file://COPYING"
494 "See 'COPYING' in the distribution."))))
503 "https://github.com/naelstrof/slop/archive/v"
505 (file-name (string-append name "-" version ".tar.gz"))
508 "1kpdrikgpjb4fpxalb6pjcih5njv1w9cnrjj5612ywdv1q5mjs48"))))
509 (build-system cmake-build-system)
511 '(#:tests? #f)) ; no "check" target
517 ("libxrender" ,libxrender)
519 (home-page "https://github.com/naelstrof/slop")
520 (synopsis "Select a region and print its bounds to stdout")
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+)))
536 "https://github.com/naelstrof/maim/archive/v"
538 (file-name (string-append name "-" version ".tar.gz"))
541 "02blbimjdckbcb04crhv0k2vxnp3rcgskyq66sk0v13l2h52849v"))))
542 (build-system cmake-build-system)
544 '(#:tests? #f)) ; no "check" target
547 ("libjpeg" ,libjpeg-turbo)
549 ("libxcomposite" ,libxcomposite)
550 ("libxfixes" ,libxfixes)
551 ("libxrandr" ,libxrandr)
555 (home-page "https://github.com/naelstrof/maim")
556 (synopsis "Screenshot utility for X Window System")
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+)))
564 (define-public unclutter
571 "http://ftp.x.org/contrib/utilities/unclutter-"
575 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
576 (build-system gnu-build-system)
578 '(#:tests? #f ; no check target
580 (modify-phases %standard-phases
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")))
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")
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)))
608 (define-public xautomation
615 (uri (string-append "https://www.hoopajoo.net/static/projects/"
616 "xautomation-" version ".tar.gz"))
620 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
621 (build-system gnu-build-system)
626 ("libxtst" ,libxtst)))
628 `(("xorgproto" ,xorgproto)))
629 (synopsis "Tools to automate tasks in X such as detecting on screen images")
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+)))
641 (define-public xlockmore
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/"
652 name "-" version ".tar.xz")))
655 "1y3f76rq2nd10fgi2rx81aj6pijglmm661vjsxi05hpg35dzmwfl"))))
656 (build-system gnu-build-system)
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
666 ("linux-pam" ,linux-pam)))
667 (home-page "http://sillycycle.com/xlockmore.html")
668 (synopsis "Screen locker for the X Window System")
670 "XLockMore is a classic screen locker and screen saver for the
672 (license (license:non-copyleft #f "See xlock.c.")
673 ))) ; + GPLv2 in modes/glx/biof.c.
682 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
683 name "-" version ".tar.gz"))
686 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
687 (build-system gnu-build-system)
690 (list (string-append "--mandir=" %output "/share/man"))))
695 ("libxinerama" ,libxinerama)))
696 (home-page "https://sourceforge.net/projects/libxosd/")
697 (synopsis "X On Screen Display")
699 "XOSD provides a C library and a simple utility (osd_cat) for displaying
700 transparent text on your screen.")
701 (license license:gpl2+)))
703 (define-public xbindkeys
709 ;; Download from the savannah mirror list fails
711 "http://www.nongnu.org/xbindkeys/xbindkeys-"
716 "060df6d8y727jp1inp7blp44cs8a7jig7vcm8ndsn6gw36z1h3bc"))))
717 (build-system gnu-build-system)
720 ("guile" ,guile-2.0)))
721 (home-page "https://www.nongnu.org/xbindkeys/")
722 (synopsis "Associate a combination of keys with a shell command")
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+)))
740 (file-name (string-append name "-" version ".tar.gz"))
743 "https://github.com/baskerville/sxhkd/archive/"
747 "15grmzpxz5fqlbfg2slj7gb7r6nzkvjmflmbkqx7mlby9pm6wdkj"))))
748 (build-system gnu-build-system)
750 `(("asciidoc" ,asciidoc)
752 ("xcb-util" ,xcb-util)
753 ("xcb-util-keysyms" ,xcb-util-keysyms)
754 ("xcb-util-wm" ,xcb-util-wm)))
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)))
766 (define-public rxvt-unicode
768 (name "rxvt-unicode")
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"))
777 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
778 (build-system gnu-build-system)
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")
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")))
794 (string-append desktop "/urxvt.desktop")
801 TryExec=~@*~a/bin/urxvt~@
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")))
812 (string-append desktop "/urxvtc.desktop")
816 Name=rxvt-unicode (client)~@
817 Comment=Rxvt clone with XFT and unicode support~@
819 TryExec=~@*~a/bin/urxvtc~@
828 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
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>.
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+)))
854 (uri (string-append "https://github.com/alols/" name
855 "/archive/v" version ".tar.gz"))
856 (file-name (string-append name "-" version ".tar.gz"))
859 "0898zc3vwxia00h9kfknpf7jygxgwggrx8v5mxc31w4lzn2dhzm2"))))
860 (build-system gnu-build-system)
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"
869 `(("libxtst" ,libxtst)
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")
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+)))
881 (define-public libwacom
887 (uri (string-append "mirror://sourceforge/linuxwacom/libwacom/"
888 name "-" version ".tar.bz2"))
891 "1diklgcjhmvcxi9p1ifp6wcnyr6k7z9jhrlzfhzjqd6zipk01slw"))))
892 (build-system glib-or-gtk-build-system)
894 `(("pkg-config" ,pkg-config)))
897 ("libgudev" ,libgudev)
899 ("libxml2" ,libxml2)))
901 ;; libwacom includes header files that include GLib, and libinput uses
902 ;; those header files.
904 (home-page "http://linuxwacom.sourceforge.net/")
905 (synopsis "Helper library for Wacom tablet settings")
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)))
913 (define-public xf86-input-wacom
915 (name "xf86-input-wacom")
920 "mirror://sourceforge/linuxwacom/xf86-input-wacom/"
921 name "-" version ".tar.bz2"))
924 "1xi39hl8ddgj9m7m2k2ll2r3wh0k0aq45fvrsv43651bhz9cbrza"))))
927 (list (string-append "--with-sdkdir="
928 (assoc-ref %outputs "out")
930 (string-append "--with-xorg-conf-dir="
931 (assoc-ref %outputs "out")
932 "/share/X11/xorg.conf.d"))))
933 (build-system gnu-build-system)
935 `(("pkg-config" ,pkg-config)))
937 `(("xorg-server" ,xorg-server)
938 ("libxrandr" ,libxrandr)
939 ("libxinerama" ,libxinerama)
942 (home-page "http://linuxwacom.sourceforge.net/")
943 (synopsis "Wacom input driver for X")
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)))
949 (define-public redshift
957 (string-append "https://github.com/jonls/redshift/"
958 "releases/download/v" version
959 "/redshift-" version ".tar.xz"))
962 "0ngkwj7rg8nfk806w0sg443w6wjr91xdc0zisqfm5h2i77wm1qqh"))))
963 (build-system gnu-build-system)
965 `(("pkg-config" ,pkg-config)
966 ("intltool" ,intltool)))
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")
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+)))
983 (define-public xscreensaver
985 (name "xscreensaver")
991 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
995 "09i47h4hdgwxyqgrsnshl4l5dv5mrsp37h705cc22lwby601ikj8"))))
996 (build-system gnu-build-system)
998 `(#:tests? #f ; no check target
1000 (modify-phases %standard-phases
1001 (add-before 'configure 'adjust-gtk-resource-paths
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"))))
1012 `(("pkg-config" ,pkg-config)
1013 ("intltool" ,intltool)))
1015 `(("libx11" ,libx11)
1016 ("libxext" ,libxext)
1022 ("libglade" ,libglade)
1023 ("libxml2" ,libxml2)
1025 ("libjpeg" ,libjpeg)
1026 ("linux-pam" ,linux-pam)
1032 ("libxrandr" ,libxrandr)
1035 (home-page "https://www.jwz.org/xscreensaver/")
1036 (synopsis "Classic screen saver suite supporting screen locking")
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
1046 "http://metadata.ftp-master.debian.org/changelogs/"
1047 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1055 (uri (string-append "http://www.vergenet.net/~conrad/software"
1056 "/xsel/download/xsel-" version ".tar.gz"))
1059 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1060 (build-system gnu-build-system)
1062 `(("libxt" ,libxt)))
1063 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1064 (synopsis "Manipulate X selection")
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.
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."))))
1075 (define-public xdpyprobe
1081 (uri (string-append "https://github.com/alezost/" name
1082 "/releases/download/v" version
1083 "/" name "-" version ".tar.gz"))
1086 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1087 (build-system gnu-build-system)
1089 `(("libx11" ,libx11)))
1090 (home-page "https://github.com/alezost/xdpyprobe")
1091 (synopsis "Probe X server for connectivity")
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+)))
1103 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1104 "releases/download/"
1105 version "/rofi-" version ".tar.xz"))
1108 "0wx118banbwfqdwc5y44fkp3hxg97gj3vma16528slhy408hkg7i"))))
1109 (build-system gnu-build-system)
1114 ("startup-notification" ,startup-notification)
1115 ("librsvg" ,librsvg)
1116 ("libxkbcommon" ,libxkbcommon)
1118 ("xcb-util" ,xcb-util)
1119 ("xcb-util-xrm" ,xcb-util-xrm)
1120 ("xcb-util-wm" ,xcb-util-wm)))
1125 ("glib:bin" ,glib "bin")
1126 ("pkg-config" ,pkg-config)))
1128 `(#:parallel-tests? #f ; May fail in some circumstances.
1130 (modify-phases %standard-phases
1131 (add-before 'configure 'adjust-tests
1133 (substitute* '("test/helper-expand.c")
1136 (("g_get_home_dir \\(\\)") "\"/\""))
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
1143 (license license:expat)))
1145 (define-public tint2
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"))
1156 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1157 (build-system cmake-build-system)
1159 '(#:tests? #f ;no test target
1161 (modify-phases %standard-phases
1162 (add-after 'unpack 'fix-installation-prefix
1164 (substitute* "CMakeLists.txt"
1165 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc")))))))
1169 ("librsvg" ,librsvg)
1170 ("libxcomposite" ,libxcomposite)
1171 ("libxdamage" ,libxdamage)
1173 ("libxinerama" ,libxinerama)
1174 ("libxrandr" ,libxrandr)
1175 ("startup-notification" ,startup-notification)))
1177 `(("gettext" ,gettext-minimal)
1178 ("pkg-config" ,pkg-config)))
1179 (home-page "https://gitlab.com/o9000/tint2")
1180 (synopsis "Lightweight task bar")
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.).
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)))
1192 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1196 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1197 revision "." (string-take commit 7)))
1201 (url "https://github.com/robm/dzen.git")
1203 (file-name (string-append name "-" version))
1206 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1207 (build-system gnu-build-system)
1209 `(#:tests? #f ; No test suite.
1210 #:make-flags ; Replacement for `config.mk`.
1212 (string-append "VERSION = " ,version)
1213 (string-append "PREFIX = " %output)
1214 "MANPREFIX = ${PREFIX}/share/man"
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)"
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
1228 (substitute* "Makefile" (("include config.mk") ""))
1231 `(("libx11" ,libx11)
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))))
1242 (define-public xcb-util-xrm
1244 (name "xcb-util-xrm")
1249 "https://github.com/Airblader/xcb-util-xrm/releases"
1250 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1253 "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h"))
1254 (modules '((guix build utils)))
1258 (delete-file-recursively "m4")
1260 (build-system gnu-build-system)
1262 `(("pkg-config" ,pkg-config)
1264 ("libx11" ,libx11))) ; for tests
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")
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.
1278 XCB util-xrm module provides the following libraries:
1280 - xrm: utility functions for the X resource manager.")
1281 (license license:x11)))
1283 (define-public xcalib
1289 (uri (string-append "mirror://sourceforge/xcalib/xcalib/" version
1290 "/xcalib-source-" version ".tar.gz"))
1293 "1rh6xb51c5xz926dnn82a2fn643g0sr4a8z66rn6yi7523kjw4ca"))))
1294 (build-system gnu-build-system)
1296 '(#:make-flags '("CC=gcc")
1297 #:tests? #f ; No test suite
1298 #:phases (modify-phases %standard-phases
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.
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)))
1323 (define-public nxbelld
1330 (url "https://github.com/dusxmt/nxbelld.git")
1334 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1335 (file-name (git-file-name name version))))
1336 (build-system gnu-build-system)
1337 (arguments '(#:configure-flags `("--enable-sound"
1340 #:phases (modify-phases %standard-phases
1341 (add-before 'configure 'autoreconf
1343 (zero? (system* "autoreconf" "-vfi")))))))
1344 (native-inputs `(("autoconf" ,autoconf)
1345 ("automake" ,automake)
1346 ("pkg-config" ,pkg-config)
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+)))
1360 (define-public xautolock
1366 (uri (string-append "http://www.ibiblio.org/pub/linux/X11/screensavers/"
1367 name "-" version ".tgz"))
1370 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1371 (build-system gnu-build-system)
1373 `(("imake" ,imake)))
1375 `(("libx11" ,libx11)
1376 ("libxext" ,libxext)
1377 ("libxscrnsaver" ,libxscrnsaver)))
1381 (modify-phases %standard-phases
1383 (lambda* (#:key inputs outputs #:allow-other-keys)
1384 (let ((imake (assoc-ref inputs "imake"))
1385 (out (assoc-ref outputs "out")))
1386 ;; Generate Makefile
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
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"))
1400 (add-after 'install 'install/man
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)))
1410 (define-public screen-message
1412 (name "screen-message")
1417 "https://www.joachim-breitner.de/archive/screen-message"
1418 "/screen-message-" version ".tar.gz"))
1421 "1lw955qq5pq010lzmaf32ylj2iprgsri9ih4hx672c3f794ilab0"))))
1422 (build-system gnu-build-system)
1423 (inputs `(("gtk3" ,gtk+)
1426 (native-inputs `(("pkg-config" ,pkg-config)))
1428 ;; The default configure puts the 'sm' binary in games/ instead of bin/ -
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
1436 (home-page "https://www.joachim-breitner.de/projects#screen-message")
1437 (license license:gpl2+)))