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, 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 Marius Bakke <mbakke@fastmail.com>
18 ;;; Copyright © 2016 Petter <petter@mykolab.ch>
19 ;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com>
20 ;;; Copyright © 2017 Nils Gillmann <ng0@n0.is>
21 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
22 ;;; Copyright © 2017 Marek Benc <dusxmt@gmx.com>
23 ;;; Copyright © 2017 Mike Gerwitz <mtg@gnu.org>
24 ;;; Copyright © 2018 Thomas Sigurdsen <tonton@riseup.net>
25 ;;; Copyright © 2018 Rutger Helling <rhelling@mykolab.com>
26 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
28 ;;; This file is part of GNU Guix.
30 ;;; GNU Guix is free software; you can redistribute it and/or modify it
31 ;;; under the terms of the GNU General Public License as published by
32 ;;; the Free Software Foundation; either version 3 of the License, or (at
33 ;;; your option) any later version.
35 ;;; GNU Guix is distributed in the hope that it will be useful, but
36 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
37 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38 ;;; GNU General Public License for more details.
40 ;;; You should have received a copy of the GNU General Public License
41 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
43 (define-module (gnu packages xdisorg)
44 #:use-module ((guix licenses) #:prefix license:)
45 #:use-module (guix packages)
46 #:use-module (guix download)
47 #:use-module (guix git-download)
48 #:use-module (guix utils)
49 #:use-module (guix build-system cmake)
50 #:use-module (guix build-system gnu)
51 #:use-module (guix build-system glib-or-gtk)
52 #:use-module (guix build-system python)
53 #:use-module (gnu packages)
54 #:use-module (gnu packages documentation)
55 #:use-module (gnu packages algebra)
56 #:use-module (gnu packages autotools)
57 #:use-module (gnu packages check)
58 #:use-module (gnu packages compression)
59 #:use-module (gnu packages image)
60 #:use-module (gnu packages pkg-config)
61 #:use-module (gnu packages flex)
62 #:use-module (gnu packages gettext)
63 #:use-module (gnu packages gl)
64 #:use-module (gnu packages glib)
65 #:use-module (gnu packages gnome)
66 #:use-module (gnu packages icu4c)
67 #:use-module (gnu packages maths)
68 #:use-module (gnu packages m4)
69 #:use-module (gnu packages ncurses)
70 #:use-module (gnu packages perl)
71 #:use-module (gnu packages python)
72 #:use-module (gnu packages linux)
73 #:use-module (gnu packages gl)
74 #:use-module (gnu packages guile)
75 #:use-module (gnu packages xml)
76 #:use-module (gnu packages gtk)
77 #:use-module (gnu packages xorg)
78 #:use-module (gnu packages bison)
79 #:use-module (ice-9 match))
81 ;; packages outside the x.org system proper
89 (uri (string-append "http://christian.amsuess.com/tools/" name
90 "/files/" name "-" version ".tar.gz"))
93 "1i3f1agixxbfy4kxikb2b241p7c2lg73cl9wqfvlwz3q6zf5faxv"))
94 (modules '((guix build utils)))
97 ;; Do not record a timestamp and file name in gzipped man
98 ;; pages (this is equivalent to 'gzip --no-name'.)
99 (substitute* "setup.py"
100 (("gzip\\.open\\(gzfile, 'w', 9\\)")
101 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)"))
103 (build-system python-build-system)
105 `(#:python ,python-2 ;incompatible with python 3
107 (modify-phases %standard-phases
108 (add-before 'build 'configure
109 (lambda* (#:key inputs #:allow-other-keys)
110 (substitute* "screenlayout/xrandr.py"
111 (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr")
114 #:tests? #f)) ;no tests
115 (inputs `(("pygtk" ,python2-pygtk)
117 (native-inputs `(("gettext" ,gettext-minimal)
118 ("python-docutils" ,python2-docutils)))
119 (home-page "https://christian.amsuess.com/tools/arandr/")
120 (synopsis "Another RandR graphical user interface")
121 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
122 (description "ARandR is designed to provide a simple visual front end for
123 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
124 shown graphically and can be changed in a drag-and-drop way. Configurations
125 are saved as executable shell scripts which can be loaded without using this
127 (license license:gpl3+)))
136 (uri (string-append "https://github.com/astrand/xclip"
137 "/archive/" version ".tar.gz"))
138 (file-name (string-append name "-" version ".tar.gz"))
141 "0n7pczk9vv30zf8qfln8ba3hnif9yfdxg0m84djac469wc28hnya"))))
142 (build-system gnu-build-system)
144 '(#:tests? #f)) ;there is no test suite
146 `(("autoconf" ,autoconf)
147 ("automake" ,automake)))
148 (inputs `(("libxmu" ,libxmu)
150 (home-page "https://github.com/astrand/xclip")
151 (synopsis "Command line interface to X11 clipboard")
152 (description "Xclip is a command line interface to the X11 clipboard. It
153 can also be used for copying files, as an alternative to sftp/scp, thus
154 avoiding password prompts when X11 forwarding has already been setup.")
155 (license license:gpl2+)))
157 (define-public libxkbcommon
159 (name "libxkbcommon")
163 (uri (string-append "https://xkbcommon.org/download/" name "-"
167 "136mdq11lrwg6rjmm44lmysxxgb9c35p4sq6k0cd129x82rw9f3s"))))
168 (build-system gnu-build-system)
172 ("xkeyboard-config" ,xkeyboard-config)))
175 ("pkg-config" ,pkg-config)))
178 (list (string-append "--with-xkb-config-root="
179 (assoc-ref %build-inputs "xkeyboard-config")
181 (string-append "--with-x-locale-root="
182 (assoc-ref %build-inputs "libx11")
183 "/share/X11/locale"))))
184 (home-page "https://xkbcommon.org/")
185 (synopsis "Library to handle keyboard descriptions")
186 (description "Xkbcommon is a library to handle keyboard descriptions,
187 including loading them from disk, parsing them and handling their
188 state. It is mainly meant for client toolkits, window systems, and other
189 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
190 Clutter, and more. Despite the name, it is not currently used by anything
192 (license (license:x11-style "file://COPYING"
193 "See 'COPYING' in the distribution."))))
195 (define-public libfakekey
202 (uri (string-append "https://downloads.yoctoproject.org/releases"
203 "/matchbox/libfakekey/" version "/libfakekey-"
207 "1501l0bflcrhqbf12n7a7cqilvr0w4xawxw0vw75p2940nkl4464"))))
208 (build-system gnu-build-system)
210 `(#:make-flags (list "AM_LDFLAGS=-lX11")))
212 `(("pkg-config" ,pkg-config)))
214 `(("libxtst" ,libxtst)
216 (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox")
217 (synopsis "X virtual keyboard library")
219 "Libfakekey is a virtual keyboard library for X.")
220 (license license:gpl2)))
222 (define-public xdotool
225 (version "3.20160805.1")
230 "https://github.com/jordansissel/xdotool/releases/download/v"
231 version "/xdotool-" version ".tar.gz"))
234 "1a6c1zr86zb53352yxv104l76l8x21gfl2bgw6h21iphxpv5zgim"))))
235 (build-system gnu-build-system)
237 '(#:tests? #f ; Test suite requires a lot of black magic
239 (modify-phases %standard-phases
241 (lambda* (#:key outputs #:allow-other-keys #:rest args)
242 (let ((out (assoc-ref outputs "out")))
243 (mkdir-p (string-append out "/lib"))
244 (setenv "PREFIX" out)
245 (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib"))
246 (setenv "CC" "gcc")))))))
247 (native-inputs `(("perl" ,perl))) ; for pod2man
248 (inputs `(("libx11" ,libx11)
251 ("libxinerama" ,libxinerama)
253 ("libxkbcommon" ,libxkbcommon)))
254 (home-page "http://www.semicomplete.com/projects/xdotool")
255 (synopsis "Fake keyboard/mouse input, window management, and more")
256 (description "Xdotool lets you simulate keyboard input and mouse activity,
257 move and resize windows, etc. It does this using X11's XTEST extension and
258 other Xlib functions. Additionally, you can search for windows and move,
259 resize, hide, and modify window properties like the title. If your window
260 manager supports it, you can use xdotool to switch desktops, move windows
261 between desktops, and change the number of desktops.")
262 (license license:bsd-3)))
271 (uri (string-append "https://www.x.org/releases/individual/app/"
272 name "-" version ".tar.bz2"))
274 (base32 "0lq5j7fryx1wn998jq6h3icz1h6pqrsbs3adskjzjyhn5l6yrg2p"))))
275 (build-system gnu-build-system)
277 `(("libxext" ,libxext)
279 ("libxrender" ,libxrender)
282 `(("pkg-config" ,pkg-config)))
283 (home-page "https://www.x.org/") ; no dedicated Xeyes page exists
284 (synopsis "Follow-the-mouse X demo")
285 (description "Xeyes is a demo program for x.org. It shows eyes
286 following the mouse.")
287 (license license:x11)))
290 (define-public pixman
297 "http://cairographics.org/releases/pixman-"
301 "13m842m9ffac3m9r0b4lvwjhwzg3w4353djkjpf00s0wnm4v5di1"))
302 (patches (search-patches "pixman-CVE-2016-5296.patch"))))
303 (build-system gnu-build-system)
308 `(("pkg-config" ,pkg-config)))
309 (home-page "http://www.pixman.org/")
310 (synopsis "Low-level pixel manipulation library")
311 (description "Pixman is a low-level software library for pixel
312 manipulation, providing features such as image compositing and trapezoid
314 (license license:x11)))
316 (define-public libdrm
324 "https://dri.freedesktop.org/libdrm/libdrm-"
329 "0g6d9wsnb7lx8r1m4kq8js0wsc5jl20cz1csnlh6z9s8jpfd313f"))
330 (patches (search-patches "libdrm-symbol-check.patch"))))
331 (build-system gnu-build-system)
334 '(,@(match (%current-system)
336 '("--enable-exynos-experimental-api"
337 "--enable-omap-experimental-api"
338 ;; XXX: This fails a symbol check on a build machine:
339 ;; <https://hydra.gnu.org/build/2270314/nixlog/4/raw>
340 ;; TODO: Update the list of symbols.
341 ;;"--enable-etnaviv-experimental-api"
342 "--enable-tegra-experimental-api"
343 "--enable-freedreno-kgsl"))
345 '("--enable-tegra-experimental-api"
346 "--enable-freedreno-kgsl"))
349 `(("libpciaccess" ,libpciaccess)))
351 `(("pkg-config" ,pkg-config)))
352 (home-page "https://dri.freedesktop.org/wiki/")
353 (synopsis "Direct rendering userspace library")
354 (description "The Direct Rendering Infrastructure, also known as the DRI,
355 is a framework for allowing direct access to graphics hardware under the
356 X Window System in a safe and efficient manner. It includes changes to the
357 X server, to several client libraries, and to the kernel (DRM, Direct
358 Rendering Manager). The most important use for the DRI is to create fast
359 OpenGL implementations providing hardware acceleration for Mesa.
360 Several 3D accelerated drivers have been written to the DRI specification,
361 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
363 (license license:x11)))
374 "http://bitmath.org/code/mtdev/mtdev-"
378 "0zxs7shzgbalkvlaiibi25bd902rbmkv9n1lww6q8j3ri9qdaxv6"))))
379 (build-system gnu-build-system)
380 (home-page "http://bitmath.org/code/mtdev/")
381 (synopsis "Multitouch protocol translation library")
382 (description "Mtdev is a stand-alone library which transforms all
383 variants of kernel MT events to the slotted type B protocol. The events
384 put into mtdev may be from any MT device, specifically type A without
385 contact tracking, type A with contact tracking, or type B with contact
387 (license license:x11)))
389 (define-public startup-notification
391 (name "startup-notification")
396 (uri (string-append "https://www.freedesktop.org/software/" name
397 "/releases/" name "-" version ".tar.gz"))
400 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
401 (build-system gnu-build-system)
402 (native-inputs `(("pkg-config" ,pkg-config)))
405 ("xcb-util" ,xcb-util)))
406 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
407 (synopsis "Application startup notification and feedback library")
409 "Startup-notification contains a reference implementation of the startup
410 notification protocol. The reference implementation is mostly under an X Window
411 System style license, and has no special dependencies.")
412 ;; Most of the code is provided under x11 license.
413 (license license:lgpl2.0+)))
415 (define-public wmctrl
422 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
426 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
427 (patches (search-patches "wmctrl-64-fix.patch"))))
428 (build-system gnu-build-system)
431 (list (string-append "--mandir="
432 (assoc-ref %outputs "out")
435 `(("pkg-config" ,pkg-config)))
440 (home-page "http://tomas.styblo.name/wmctrl/")
441 (synopsis "Command-line tool to control X window managers")
443 "Wmctrl allows to interact with an X window manager that is compatible
444 with the EWMH/NetWM specification. It can query the window manager for
445 information, and request for certain window management actions (resize and
446 move windows, switch between desktops, etc.).")
447 (license license:gpl2+)))
455 (uri (list (string-append
456 "http://linuxbrit.co.uk/downloads/scrot-"
459 "https://fossies.org/linux/privat/old/scrot-"
463 "1wll744rhb49lvr2zs6m93rdmiq59zm344jzqvijrdn24ksiqgb1"))))
464 (build-system gnu-build-system)
466 ;; By default, man and doc are put in PREFIX/{man,doc} instead of
467 ;; PREFIX/share/{man,doc}.
469 (list (string-append "--mandir="
470 (assoc-ref %outputs "out")
473 (modify-phases %standard-phases
475 (lambda* (#:key inputs outputs #:allow-other-keys)
476 (let* ((out (assoc-ref outputs "out"))
477 (doc (string-append out "/share/doc/scrot")))
480 (system* "make" "install"
481 (string-append "docsdir=" doc)))))))))
485 (home-page "http://linuxbrit.co.uk/software/")
486 (synopsis "Command-line screen capture utility for X Window System")
488 "Scrot allows to save a screenshot of a full screen, a window or a part
489 of the screen selected by mouse.")
490 ;; This license removes a clause about X Consortium from the original
492 (license (license:x11-style "file://COPYING"
493 "See 'COPYING' in the distribution."))))
502 "https://github.com/naelstrof/slop/archive/v"
504 (file-name (string-append name "-" version ".tar.gz"))
507 "1kpdrikgpjb4fpxalb6pjcih5njv1w9cnrjj5612ywdv1q5mjs48"))))
508 (build-system cmake-build-system)
510 '(#:tests? #f)) ; no "check" target
516 ("libxrender" ,libxrender)
518 (home-page "https://github.com/naelstrof/slop")
519 (synopsis "Select a region and print its bounds to stdout")
521 "slop (Select Operation) is a tool that queries for a selection from a
522 user and prints the region to stdout. It grabs the mouse and turns it into a
523 crosshair, lets the user click and drag to make a selection (or click on a
524 window) while drawing a pretty box around it, then finally prints the
525 selection's dimensions to stdout.")
526 (license license:gpl3+)))
535 "https://github.com/naelstrof/maim/archive/v"
537 (file-name (string-append name "-" version ".tar.gz"))
540 "14zdhsx1cndg5m8wbv1rqmza7wgknwfj5h0knzxg3p2jkjw66i95"))))
541 (build-system cmake-build-system)
543 '(#:tests? #f)) ; no "check" target
546 ("libjpeg" ,libjpeg-turbo)
548 ("libxcomposite" ,libxcomposite)
549 ("libxfixes" ,libxfixes)
550 ("libxrandr" ,libxrandr)
554 (home-page "https://github.com/naelstrof/maim")
555 (synopsis "Screenshot utility for X Window System")
557 "maim (Make Image) is a tool that takes screenshots of your desktop and
558 saves it in any format. Along with a full screen, it allows you to capture a
559 predefined region or a particular window. Also, it makes it possible to
560 include cursor in the resulting image.")
561 (license license:gpl3+)))
563 (define-public unclutter
570 "http://ftp.x.org/contrib/utilities/unclutter-"
574 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
575 (build-system gnu-build-system)
577 '(#:tests? #f ; no check target
579 (modify-phases %standard-phases
582 (lambda* (#:key inputs outputs #:allow-other-keys)
583 (let* ((out (assoc-ref outputs "out"))
584 (bin (string-append out "/bin"))
585 (man1 (string-append out "/share/man/man1")))
589 (system* "make" "install" "install.man"
590 (string-append "BINDIR=" bin)
591 (string-append "MANDIR=" man1)))))))))
592 (inputs `(("libx11" ,libx11)))
593 (home-page "http://ftp.x.org/contrib/utilities/")
594 (synopsis "Hide idle mouse cursor")
596 "Unclutter is a program which runs permanently in the background of an
597 X11 session. It checks on the X11 pointer (cursor) position every few
598 seconds, and when it finds it has not moved (and no buttons are pressed
599 on the mouse, and the cursor is not in the root window) it creates a
600 small sub-window as a child of the window the cursor is in. The new
601 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
602 invisible cursor. This allows you to see all the text in an xterm or
603 xedit, for example. The human factors crowd would agree it should make
604 things less distracting.")
605 (license license:public-domain)))
607 (define-public xautomation
614 (uri (string-append "https://www.hoopajoo.net/static/projects/"
615 "xautomation-" version ".tar.gz"))
619 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
620 (build-system gnu-build-system)
625 ("libxtst" ,libxtst)))
627 `(("xorgproto" ,xorgproto)))
628 (synopsis "Tools to automate tasks in X such as detecting on screen images")
630 "Xautomation can control X from the command line for scripts, and
631 do visual scraping to find things on the screen. The control interface
632 allows mouse movement, clicking, button up/down, key up/down, etc, and
633 uses the XTest extension so you don't have the annoying problems that
634 xse has when apps ignore sent events. The visgrep program can find
635 images inside of images and reports the coordinates, allowing progams
636 to find buttons, etc, on the screen to click on.")
637 (home-page "https://www.hoopajoo.net/projects/xautomation.html")
638 (license license:gpl2+)))
640 (define-public xlockmore
646 (uri (list (string-append "http://sillycycle.com/xlock/"
647 name "-" version ".tar.xz")
648 ;; Previous releases are moved to a subdirectory.
649 (string-append "http://sillycycle.com/xlock/"
651 name "-" version ".tar.xz")))
654 "1dg1n79rnswhxqz36mxnl5lp8p37i9fbibnzzyrqknmvf2s8xpd0"))))
655 (build-system gnu-build-system)
657 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
658 (assoc-ref %outputs "out")
659 "/lib/X11/app-defaults"))
660 #:tests? #f)) ;no such thing as a test suite
665 ("linux-pam" ,linux-pam)))
666 (home-page "http://sillycycle.com/xlockmore.html")
667 (synopsis "Screen locker for the X Window System")
669 "XLockMore is a classic screen locker and screen saver for the
671 (license (license:non-copyleft #f "See xlock.c.")
672 ))) ; + GPLv2 in modes/glx/biof.c.
681 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
682 name "-" version ".tar.gz"))
685 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
686 (build-system gnu-build-system)
689 (list (string-append "--mandir=" %output "/share/man"))))
694 ("libxinerama" ,libxinerama)))
695 (home-page "https://sourceforge.net/projects/libxosd/")
696 (synopsis "X On Screen Display")
698 "XOSD provides a C library and a simple utility (osd_cat) for displaying
699 transparent text on your screen.")
700 (license license:gpl2+)))
702 (define-public xbindkeys
708 ;; Download from the savannah mirror list fails
710 "http://www.nongnu.org/xbindkeys/xbindkeys-"
715 "060df6d8y727jp1inp7blp44cs8a7jig7vcm8ndsn6gw36z1h3bc"))))
716 (build-system gnu-build-system)
719 ("guile" ,guile-2.0)))
720 (home-page "https://www.nongnu.org/xbindkeys/")
721 (synopsis "Associate a combination of keys with a shell command")
723 "XBindKeys is a program that allows you to launch shell commands with
724 your keyboard or your mouse under the X Window System. It links commands to
725 keys or mouse buttons, using a configuration file. It's independent of the
726 window manager and can capture all keyboard keys (ex: Power, Wake...). It
727 optionally supports a Guile-based configuration file layout, which enables you
728 to access all XBindKeys internals, so you can have key combinations, double
729 clicks or timed double clicks take actions. Also all functions that work in
730 Guile will work for XBindKeys.")
731 (license license:gpl2+)))
741 (url "https://github.com/baskerville/sxhkd")
745 "0cw547x7vky55k3ksrmzmrra4zhslqcwq9xw0y4cmbvy4s1qf64v"))))
746 (build-system gnu-build-system)
748 `(("asciidoc" ,asciidoc)
750 ("xcb-util" ,xcb-util)
751 ("xcb-util-keysyms" ,xcb-util-keysyms)
752 ("xcb-util-wm" ,xcb-util-wm)))
754 `(#:phases (modify-phases %standard-phases (delete 'configure))
755 #:tests? #f ; no check target
758 (string-append "PREFIX=" %output)
759 ;; Keep the documentation where the build system installs LICENSE.
760 (string-append "DOCPREFIX=" %output
761 "/share/doc/" ,name "-" ,version))))
762 (home-page "https://github.com/baskerville/sxhkd")
763 (synopsis "Simple X hotkey daemon")
764 (description "sxhkd is a simple X hotkey daemon with a powerful and
765 compact configuration syntax.")
766 (license license:bsd-2)))
768 (define-public rxvt-unicode
770 (name "rxvt-unicode")
774 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
775 name "-" version ".tar.bz2"))
776 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
779 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
780 (build-system gnu-build-system)
782 ;; This sets the destination when installing the necessary terminal
783 ;; capability data, which are not provided by 'ncurses'. See
784 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
785 `(#:make-flags (list (string-append "TERMINFO="
786 (assoc-ref %outputs "out")
789 (modify-phases %standard-phases
790 (add-after 'install 'install-desktop-urxvt
791 (lambda* (#:key outputs #:allow-other-keys)
792 (let* ((output (assoc-ref outputs "out"))
793 (desktop (string-append output "/share/applications")))
796 (string-append desktop "/urxvt.desktop")
803 TryExec=~@*~a/bin/urxvt~@
808 (add-after 'install 'install-desktop-urxvtc
809 (lambda* (#:key outputs #:allow-other-keys)
810 (let* ((output (assoc-ref outputs "out"))
811 (desktop (string-append output "/share/applications")))
814 (string-append desktop "/urxvtc.desktop")
818 Name=rxvt-unicode (client)~@
819 Comment=Rxvt clone with XFT and unicode support~@
821 TryExec=~@*~a/bin/urxvtc~@
830 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
832 ("pkg-config" ,pkg-config)))
833 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
834 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
836 (list (search-path-specification
837 (variable "TERMINFO_DIRS")
838 (files '("share/terminfo")))))
839 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
840 (synopsis "Rxvt clone with XFT and unicode support")
841 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
842 intended as an xterm replacement for users who do not require features such as
843 Tektronix 4014 emulation and toolkit-style configurability. It supports
844 unicode, XFT and may be extended with Perl plugins. It also comes with a
845 client/daemon pair that lets you open any number of terminal windows from
846 within a single process.")
847 (license license:gpl3+)))
856 (uri (string-append "https://github.com/alols/" name
857 "/archive/v" version ".tar.gz"))
858 (file-name (string-append name "-" version ".tar.gz"))
861 "0898zc3vwxia00h9kfknpf7jygxgwggrx8v5mxc31w4lzn2dhzm2"))))
862 (build-system gnu-build-system)
864 `(#:tests? #f ; no check target
865 ;; no configure script
866 #:phases (modify-phases %standard-phases (delete 'configure))
867 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
868 "MANDIR=/share/man/man1"
871 `(("libxtst" ,libxtst)
874 `(("pkg-config" ,pkg-config)))
875 (home-page "https://github.com/alols/xcape")
876 (synopsis "Use a modifier key in X.org as another key")
878 "This utility for X.org allows to use modifier key as another key when
879 pressed and released on its own. The default behaviour is to generate the
880 Escape key when Left Control is pressed and released on its own.")
881 (license license:gpl3+)))
883 (define-public libwacom
890 "https://github.com/linuxwacom/libwacom/releases/download/"
891 name "-" version "/" name "-" version ".tar.bz2"))
894 "00xzkxhm0s9bvhbf27hscjbh17wa8lcgvxjqbmzm527f9cjqrm8q"))))
895 (build-system glib-or-gtk-build-system)
897 `(("pkg-config" ,pkg-config)))
900 ("libgudev" ,libgudev)
902 ("libxml2" ,libxml2)))
904 ;; libwacom includes header files that include GLib, and libinput uses
905 ;; those header files.
907 (home-page "https://linuxwacom.github.io/")
908 (synopsis "Helper library for Wacom tablet settings")
910 "Libwacom is a library to help implement Wacom tablet settings. It is
911 intended to be used by client-programs that need model identification. It is
912 already being used by the gnome-settings-daemon and the GNOME Control Center
913 Wacom tablet applet.")
914 (license license:x11)))
916 (define-public xf86-input-wacom
918 (name "xf86-input-wacom")
924 "https://github.com/linuxwacom/xf86-input-wacom/releases/download/"
925 name "-" version "/" name "-" version ".tar.bz2"))
928 "029y8varbricba2dzhzhy0ndd7lbfif411ca8c3wxzni9qmbj1ij"))))
931 (list (string-append "--with-sdkdir="
932 (assoc-ref %outputs "out")
934 (string-append "--with-xorg-conf-dir="
935 (assoc-ref %outputs "out")
936 "/share/X11/xorg.conf.d"))))
937 (build-system gnu-build-system)
939 `(("pkg-config" ,pkg-config)))
941 `(("xorg-server" ,xorg-server)
942 ("libxrandr" ,libxrandr)
943 ("libxinerama" ,libxinerama)
946 (home-page "https://linuxwacom.github.io/")
947 (synopsis "Wacom input driver for X")
949 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
950 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
951 (license license:x11)))
953 (define-public redshift
961 (string-append "https://github.com/jonls/redshift/"
962 "releases/download/v" version
963 "/redshift-" version ".tar.xz"))
966 "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j"))))
967 (build-system gnu-build-system)
969 `(("pkg-config" ,pkg-config)
970 ("intltool" ,intltool)))
975 ("libxxf86vm" ,libxxf86vm)
976 ("glib" ,glib))) ; for Geoclue2 support
977 (home-page "https://github.com/jonls/redshift")
978 (synopsis "Adjust the color temperature of your screen")
980 "Redshift adjusts the color temperature according to the position of the
981 sun. A different color temperature is set during night and daytime. During
982 twilight and early morning, the color temperature transitions smoothly from
983 night to daytime temperature to allow your eyes to slowly adapt. At night the
984 color temperature should be set to match the lamps in your room.")
985 (license license:gpl3+)))
987 (define-public xscreensaver
989 (name "xscreensaver")
995 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
999 "1q2sr7h6ps6d3hk8895g12rrcqiihjl7py1ly077ikv4866r181h"))))
1000 (build-system gnu-build-system)
1002 `(#:tests? #f ; no check target
1004 (modify-phases %standard-phases
1005 (add-before 'configure 'adjust-gtk-resource-paths
1007 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
1008 (("@GTK_DATADIR@") "@datadir@")
1009 (("@PO_DATADIR@") "@datadir@")))))
1010 #:configure-flags '("--with-pam" "--with-proc-interrupts"
1011 "--without-readdisplay")
1012 #:make-flags (list (string-append "AD_DIR="
1013 (assoc-ref %outputs "out")
1014 "/usr/lib/X11/app-defaults"))))
1016 `(("pkg-config" ,pkg-config)
1017 ("intltool" ,intltool)))
1019 `(("libx11" ,libx11)
1020 ("libxext" ,libxext)
1026 ("libglade" ,libglade)
1027 ("libxml2" ,libxml2)
1029 ("libjpeg" ,libjpeg)
1030 ("linux-pam" ,linux-pam)
1036 ("libxrandr" ,libxrandr)
1039 (home-page "https://www.jwz.org/xscreensaver/")
1040 (synopsis "Classic screen saver suite supporting screen locking")
1042 "xscreensaver is a popular screen saver collection with many entertaining
1043 demos. It also acts as a nice screen locker.")
1044 ;; xscreensaver doesn't have a single copyright file and instead relies on
1045 ;; source comment headers, though most files have the same lax
1046 ;; permissions. To reduce complexity, we're pointing at Debian's
1047 ;; breakdown of the copyright information.
1048 (license (license:non-copyleft
1050 "http://metadata.ftp-master.debian.org/changelogs/"
1051 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1059 (uri (string-append "http://www.vergenet.net/~conrad/software"
1060 "/xsel/download/xsel-" version ".tar.gz"))
1063 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1064 (build-system gnu-build-system)
1066 `(("libxt" ,libxt)))
1067 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1068 (synopsis "Manipulate X selection")
1070 "XSel is a command-line program for getting and setting the contents of
1071 the X selection. Normally this is only accessible by manually highlighting
1072 information and pasting it with the middle mouse button.
1074 XSel reads from standard input and writes to standard output by default,
1075 but can also follow a growing file, display contents, delete entries and more.")
1076 (license (license:x11-style "file://COPYING"
1077 "See COPYING in the distribution."))))
1079 (define-public xdpyprobe
1085 (uri (string-append "https://github.com/alezost/" name
1086 "/releases/download/v" version
1087 "/" name "-" version ".tar.gz"))
1090 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1091 (build-system gnu-build-system)
1093 `(("libx11" ,libx11)))
1094 (home-page "https://github.com/alezost/xdpyprobe")
1095 (synopsis "Probe X server for connectivity")
1097 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1098 connectivity of the X server running on a particular @code{DISPLAY}.")
1099 (license license:gpl3+)))
1107 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1108 "releases/download/"
1109 version "/rofi-" version ".tar.xz"))
1112 "0wx118banbwfqdwc5y44fkp3hxg97gj3vma16528slhy408hkg7i"))))
1113 (build-system gnu-build-system)
1118 ("startup-notification" ,startup-notification)
1119 ("librsvg" ,librsvg)
1120 ("libxkbcommon" ,libxkbcommon)
1122 ("xcb-util" ,xcb-util)
1123 ("xcb-util-xrm" ,xcb-util-xrm)
1124 ("xcb-util-wm" ,xcb-util-wm)))
1129 ("glib:bin" ,glib "bin")
1130 ("pkg-config" ,pkg-config)))
1132 `(#:parallel-tests? #f ; May fail in some circumstances.
1134 (modify-phases %standard-phases
1135 (add-before 'configure 'adjust-tests
1137 (substitute* '("test/helper-expand.c")
1140 (("g_get_home_dir \\(\\)") "\"/\""))
1142 (home-page "https://github.com/DaveDavenport/rofi")
1143 (synopsis "Application launcher")
1144 (description "Rofi is a minimalist application launcher. It memorizes which
1145 applications you regularly use and also allows you to search for an application
1147 (license license:expat)))
1149 (define-public tint2
1155 (uri (string-append "https://gitlab.com/o9000/" name
1156 "/repository/archive.tar.gz?ref=" version))
1157 (file-name (string-append name "-" version ".tar.gz"))
1160 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1161 (build-system cmake-build-system)
1163 '(#:tests? #f ;no test target
1165 (modify-phases %standard-phases
1166 (add-after 'unpack 'fix-installation-prefix
1168 (substitute* "CMakeLists.txt"
1169 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc")))))))
1173 ("librsvg" ,librsvg)
1174 ("libxcomposite" ,libxcomposite)
1175 ("libxdamage" ,libxdamage)
1177 ("libxinerama" ,libxinerama)
1178 ("libxrandr" ,libxrandr)
1179 ("startup-notification" ,startup-notification)))
1181 `(("gettext" ,gettext-minimal)
1182 ("pkg-config" ,pkg-config)))
1183 (home-page "https://gitlab.com/o9000/tint2")
1184 (synopsis "Lightweight task bar")
1186 "Tint2 is a simple task bar made for modern X window managers. It was
1187 specifically made for Openbox but it should also work with other window
1188 managers (GNOME, KDE, XFCE etc.).
1190 The taskbar includes transparency and color settings for the font, icons,
1191 border, and background. It also supports multihead setups, customized mouse
1192 actions, a built-in clock, a battery monitor and a system tray.")
1193 (license license:gpl2)))
1196 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1200 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1201 revision "." (string-take commit 7)))
1205 (url "https://github.com/robm/dzen.git")
1207 (file-name (string-append name "-" version))
1210 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1211 (build-system gnu-build-system)
1213 `(#:tests? #f ; No test suite.
1214 #:make-flags ; Replacement for `config.mk`.
1216 (string-append "VERSION = " ,version)
1217 (string-append "PREFIX = " %output)
1218 "MANPREFIX = ${PREFIX}/share/man"
1220 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1221 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1222 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1227 (modify-phases %standard-phases
1228 (delete 'configure) ; No configuration script.
1229 ;; Use own make-flags instead of `config.mk`.
1230 (add-before 'build 'dont-include-config-mk
1232 (substitute* "Makefile" (("include config.mk") ""))
1235 `(("libx11" ,libx11)
1238 ("libxinerama" ,libxinerama)))
1239 (native-inputs `(("pkg-config" ,pkg-config)))
1240 (synopsis "General purpose messaging, notification and menuing program for X11")
1241 (description "Dzen is a general purpose messaging, notification and menuing
1242 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1243 (home-page "https://github.com/robm/dzen")
1244 (license license:expat))))
1246 (define-public xcb-util-xrm
1248 (name "xcb-util-xrm")
1253 "https://github.com/Airblader/xcb-util-xrm/releases"
1254 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1257 "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h"))
1258 (modules '((guix build utils)))
1262 (delete-file-recursively "m4")
1264 (build-system gnu-build-system)
1266 `(("pkg-config" ,pkg-config)
1268 ("libx11" ,libx11))) ; for tests
1270 `(("libxcb" ,libxcb)
1271 ("xcb-util" ,xcb-util)))
1272 (home-page "https://github.com/Airblader/xcb-util-xrm")
1273 (synopsis "XCB utility functions for the X resource manager")
1275 "The XCB util module provides a number of libraries which sit on
1276 top of libxcb, the core X protocol library, and some of the extension
1277 libraries. These experimental libraries provide convenience functions
1278 and interfaces which make the raw X protocol more usable. Some of the
1279 libraries also provide client-side code which is not strictly part of
1280 the X protocol but which has traditionally been provided by Xlib.
1282 XCB util-xrm module provides the following libraries:
1284 - xrm: utility functions for the X resource manager.")
1285 (license license:x11)))
1287 (define-public xcalib
1291 (home-page "https://github.com/OpenICC/xcalib")
1299 "05fzdjmhiafgi2jf0k41i3nm0837a78sb6yv59cwc23nla8g0bhr"))
1302 ;; Add missing documentation for the new --output option.
1303 ;; This upstream patch can be removed on the next update.
1307 home-page "/commit/"
1308 "ae03889b91fe984b18e925ad2b5e6f2f7354e058.patch"))
1309 (file-name "xcalib-update-man-page.patch")
1312 "0f7b4d5484x4b9n1bwhqmar0kcaa029ffff7bp3xpr734n1qgqb6")))))))
1313 (build-system cmake-build-system)
1315 '(#:tests? #f)) ; no test suite
1316 (inputs `(("libx11" ,libx11)
1317 ("libxext" ,libxext)
1318 ("libxrandr" ,libxrandr)
1319 ("libxxf86vm" ,libxxf86vm)))
1320 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1321 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1322 profiles to the video card's gamma ramp. It does work with most video card
1323 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1324 invert colors on a specific display/screen.")
1325 (license license:gpl2)))
1327 (define-public nxbelld
1334 (url "https://github.com/dusxmt/nxbelld.git")
1338 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1339 (file-name (git-file-name name version))))
1340 (build-system gnu-build-system)
1341 (arguments '(#:configure-flags `("--enable-sound"
1344 #:phases (modify-phases %standard-phases
1345 (add-before 'configure 'autoreconf
1347 (zero? (system* "autoreconf" "-vfi")))))))
1348 (native-inputs `(("autoconf" ,autoconf)
1349 ("automake" ,automake)
1350 ("pkg-config" ,pkg-config)
1352 (inputs `(("libx11" ,libx11)
1353 ("alsa-lib" ,alsa-lib)))
1354 (synopsis "Daemon that performs an action every time the X11 bell is rung")
1355 (description "nxbelld is a tiny utility to aid people who either don't
1356 like the default PC speaker beep, or use a sound driver that doesn't have
1357 support for the PC speaker. The utility performs a given action every time
1358 the X bell is rung. The actions nxbelld can currently perform include running
1359 a specified program, emulating the PC speaker beep using the sound card (default),
1360 or playing a PCM encoded WAVE file.")
1361 (home-page "https://github.com/dusxmt/nxbelld")
1362 (license license:gpl3+)))
1364 (define-public xautolock
1370 (uri (string-append "http://www.ibiblio.org/pub/linux/X11/screensavers/"
1371 name "-" version ".tgz"))
1374 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1375 (build-system gnu-build-system)
1377 `(("imake" ,imake)))
1379 `(("libx11" ,libx11)
1380 ("libxext" ,libxext)
1381 ("libxscrnsaver" ,libxscrnsaver)))
1385 (modify-phases %standard-phases
1387 (lambda* (#:key inputs outputs #:allow-other-keys)
1388 (let ((imake (assoc-ref inputs "imake"))
1389 (out (assoc-ref outputs "out")))
1390 ;; Generate Makefile
1392 (substitute* "Makefile"
1393 ;; These imake variables somehow remain undefined
1394 (("DefaultGcc2[[:graph:]]*Opt") "-O2")
1395 ;; Reset a few variable defaults that are set in imake templates
1397 (("(MANPATH = )[[:graph:]]*" _ front)
1398 (string-append front out "/share/man")))
1399 ;; Old BSD-style 'union wait' is unneeded (defining
1400 ;; _USE_BSD did not seem to fix it)
1401 (substitute* "src/engine.c"
1402 (("union wait status") "int status = 0"))
1404 (add-after 'install 'install/man
1406 (zero? (system* "make" "install.man")))))))
1407 (home-page "http://ibiblio.org/pub/Linux/X11/screensavers/")
1408 (synopsis "Program launcher for idle X sessions")
1409 (description "Xautolock monitors input devices under the X Window
1410 System, and launches a program of your choice if there is no activity after
1411 a user-configurable period of time.")
1412 (license license:gpl2)))
1414 (define-public screen-message
1416 (name "screen-message")
1421 "https://www.joachim-breitner.de/archive/screen-message"
1422 "/screen-message-" version ".tar.gz"))
1425 "1lw955qq5pq010lzmaf32ylj2iprgsri9ih4hx672c3f794ilab0"))))
1426 (build-system gnu-build-system)
1427 (inputs `(("gtk3" ,gtk+)
1430 (native-inputs `(("pkg-config" ,pkg-config)))
1432 ;; The default configure puts the 'sm' binary in games/ instead of bin/ -
1434 `(#:make-flags (list (string-append "execgamesdir=" %output "/bin"))))
1435 (synopsis "Print messages on your screen")
1436 (description "@code{screen-message} is a tool for displaying text on
1437 your screen. It will make the text as large as possible and display it
1438 with black color on a white background (colors are configurable on the
1440 (home-page "https://www.joachim-breitner.de/projects#screen-message")
1441 (license license:gpl2+)))
1443 (define-public xss-lock
1444 ;; xss-lock does not seem to be maintained any longer, but the last commits
1445 ;; fix important issues so we package them.
1446 (let ((version "0.3.0")
1448 (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717"))
1451 (version (git-version version revision commit))
1455 (url "https://bitbucket.org/raymonad/xss-lock.git")
1457 (file-name (git-file-name name version))
1460 "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r"))))
1461 (build-system cmake-build-system)
1462 (inputs `(("glib" ,glib)
1463 ("xcb-util" ,xcb-util)))
1465 `(("python-docutils" ,python-docutils)
1466 ("pkg-config" ,pkg-config)))
1469 (synopsis "Use external screen locker on events")
1470 (description "@code{xss-lock} listens to X signals to fire up a
1471 user-defined screensaver. In effect this allows to automatically lock the
1472 screen when closing a laptop lid or after a period of user inactivity (as set
1473 with @code{xset s TIMEOUT}). The notifier command, if specified, is executed
1474 first. Additionally, xss-lock uses the inhibition logic to lock the screen
1475 before the system goes to sleep.")
1476 (home-page "https://bitbucket.org/raymonad/xss-lock")
1477 (license license:expat))))
1479 (define-public python-pyperclip
1481 (name "python-pyperclip")
1486 (uri (pypi-uri "pyperclip" version))
1489 "1p505c23ji06r28k1y67siihsbdzdf1brhlqpyv9ams4gk9863pp"))))
1490 (build-system python-build-system)
1492 '(#:tests? #f)) ; Not clear how to make tests pass.
1496 (home-page "https://github.com/asweigart/pyperclip")
1497 (synopsis "Python clipboard module")
1499 "Pyperclip is a clipboard module for Python, handling copy/pasting from
1501 (license license:bsd-3)))