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 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 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 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 <contact.ng0@cryptolab.net>
22 ;;; This file is part of GNU Guix.
24 ;;; GNU Guix is free software; you can redistribute it and/or modify it
25 ;;; under the terms of the GNU General Public License as published by
26 ;;; the Free Software Foundation; either version 3 of the License, or (at
27 ;;; your option) any later version.
29 ;;; GNU Guix is distributed in the hope that it will be useful, but
30 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
31 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 ;;; GNU General Public License for more details.
34 ;;; You should have received a copy of the GNU General Public License
35 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
37 (define-module (gnu packages xdisorg)
38 #:use-module ((guix licenses) #:prefix license:)
39 #:use-module (guix packages)
40 #:use-module (guix download)
41 #:use-module (guix git-download)
42 #:use-module (guix utils)
43 #:use-module (guix build-system cmake)
44 #:use-module (guix build-system gnu)
45 #:use-module (guix build-system glib-or-gtk)
46 #:use-module (guix build-system python)
47 #:use-module (gnu packages)
48 #:use-module (gnu packages documentation)
49 #:use-module (gnu packages algebra)
50 #:use-module (gnu packages compression)
51 #:use-module (gnu packages image)
52 #:use-module (gnu packages pkg-config)
53 #:use-module (gnu packages gettext)
54 #:use-module (gnu packages gl)
55 #:use-module (gnu packages glib)
56 #:use-module (gnu packages gnome)
57 #:use-module (gnu packages maths)
58 #:use-module (gnu packages m4)
59 #:use-module (gnu packages ncurses)
60 #:use-module (gnu packages perl)
61 #:use-module (gnu packages python)
62 #:use-module (gnu packages linux)
63 #:use-module (gnu packages gl)
64 #:use-module (gnu packages guile)
65 #:use-module (gnu packages xml)
66 #:use-module (gnu packages gtk)
67 #:use-module (gnu packages xorg)
68 #:use-module (gnu packages bison))
70 ;; packages outside the x.org system proper
78 (uri (string-append "http://christian.amsuess.com/tools/" name
79 "/files/" name "-" version ".tar.gz"))
82 "1i3f1agixxbfy4kxikb2b241p7c2lg73cl9wqfvlwz3q6zf5faxv"))
83 (modules '((guix build utils)))
85 ;; Do not record a timestamp and file name in gzipped man
86 ;; pages (this is equivalent to 'gzip --no-name'.)
87 '(substitute* "setup.py"
88 (("gzip\\.open\\(gzfile, 'w', 9\\)")
89 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)")))))
90 (build-system python-build-system)
92 `(#:python ,python-2 ;incompatible with python 3
95 (modify-phases %standard-phases
96 (add-after 'install 'make-xrandr-available
97 (lambda* (#:key inputs outputs #:allow-other-keys)
98 (wrap-program (string-append (assoc-ref outputs "out")
100 `("PATH" ":" prefix (,(string-append (assoc-ref inputs "xrandr")
103 (inputs `(("pygtk" ,python2-pygtk)
105 (native-inputs `(("gettext" ,gettext-minimal)
106 ("python-docutils" ,python2-docutils)))
107 (home-page "https://christian.amsuess.com/tools/arandr/")
108 (synopsis "Another RandR graphical user interface")
109 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
110 (description "ARandR is designed to provide a simple visual front end for
111 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
112 shown graphically and can be changed in a drag-and-drop way. Configurations
113 are saved as executable shell scripts which can be loaded without using this
115 (license license:gpl3+)))
125 "mirror://sourceforge/" name "/" name "/" version "/"
126 name "-" version ".tar.gz"))
129 "0ibcf46rldnv0r424qcnai1fa5iq3lm5q5rdd7snsi5sb78gmixp"))))
130 (build-system gnu-build-system)
132 '(#:tests? #f)) ; There is no test suite
133 (inputs `(("libxmu" ,libxmu)
135 (home-page "http://xclip.sourceforge.net/")
136 (synopsis "Command line interface to X11 clipboard")
137 (description "Xclip is a command line interface to the X11 clipboard. It
138 can also be used for copying files, as an alternative to sftp/scp, thus
139 avoiding password prompts when X11 forwarding has already been setup.")
140 (license license:gpl2+)))
142 (define-public libxkbcommon
144 (name "libxkbcommon")
148 (uri (string-append "https://xkbcommon.org/download/" name "-"
152 "12z6hih3n1r0asp2hzp9qsiwdfkfz46jwp06x8kprr0r5rfk0nds"))))
153 (build-system gnu-build-system)
157 ("xkeyboard-config" ,xkeyboard-config)))
160 ("pkg-config" ,pkg-config)))
163 (list (string-append "--with-xkb-config-root="
164 (assoc-ref %build-inputs "xkeyboard-config")
166 (string-append "--with-x-locale-root="
167 (assoc-ref %build-inputs "libx11")
168 "/share/X11/locale"))))
169 (home-page "https://xkbcommon.org/")
170 (synopsis "Library to handle keyboard descriptions")
171 (description "Xkbcommon is a library to handle keyboard descriptions,
172 including loading them from disk, parsing them and handling their
173 state. It is mainly meant for client toolkits, window systems, and other
174 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
175 Clutter, and more. Despite the name, it is not currently used by anything
177 (license (license:x11-style "file://COPYING"
178 "See 'COPYING' in the distribution."))))
180 (define-public xdotool
183 (version "3.20150503.1")
188 "https://github.com/jordansissel/xdotool/releases/download/v"
189 version "/xdotool-" version ".tar.gz"))
192 "1lcngsw33fy9my21rdiz1gs474bfdqcfxjrnfggbx4aypn1nhcp8"))
193 (patches (search-patches "xdotool-fix-makefile.patch"))))
194 (build-system gnu-build-system)
196 '(#:tests? #f ; Test suite requires a lot of black magic
198 (modify-phases %standard-phases
200 (lambda* (#:key outputs #:allow-other-keys #:rest args)
201 (setenv "PREFIX" (assoc-ref outputs "out"))
203 (string-append "-Wl,-rpath="
204 (assoc-ref %outputs "out") "/lib"))
205 (setenv "CC" "gcc"))))))
206 (native-inputs `(("perl" ,perl))) ; for pod2man
207 (inputs `(("libx11" ,libx11)
210 ("libxinerama" ,libxinerama)
212 ("libxkbcommon" ,libxkbcommon)))
213 (home-page "http://www.semicomplete.com/projects/xdotool")
214 (synopsis "Fake keyboard/mouse input, window management, and more")
215 (description "Xdotool lets you simulate keyboard input and mouse activity,
216 move and resize windows, etc. It does this using X11's XTEST extension and
217 other Xlib functions. Additionally, you can search for windows and move,
218 resize, hide, and modify window properties like the title. If your window
219 manager supports it, you can use xdotool to switch desktops, move windows
220 between desktops, and change the number of desktops.")
221 (license license:bsd-3)))
231 "http://xeyes.sourcearchive.com/downloads/1.0.1/xeyes_"
236 "04c3md570j67g55h3bix1qbngcslnq91skli51k3g1avki88zkm9"))))
237 (build-system gnu-build-system)
239 `(("libxext" ,libxext)
243 `(("pkg-config" ,pkg-config)))
244 (home-page "http://xeyes.sourcearchive.com/")
245 (synopsis "Follow-the-mouse X demo")
246 (description "Xeyes is a demo program for x.org. It shows eyes
247 following the mouse.")
248 (license license:x11)))
251 (define-public pixman
258 "http://cairographics.org/releases/pixman-"
262 "13m842m9ffac3m9r0b4lvwjhwzg3w4353djkjpf00s0wnm4v5di1"))
263 (patches (search-patches "pixman-CVE-2016-5296.patch"))))
264 (build-system gnu-build-system)
269 `(("pkg-config" ,pkg-config)))
270 (home-page "http://www.pixman.org/")
271 (synopsis "Low-level pixel manipulation library")
272 (description "Pixman is a low-level software library for pixel
273 manipulation, providing features such as image compositing and trapezoid
275 (license license:x11)))
277 (define-public libdrm
285 "https://dri.freedesktop.org/libdrm/libdrm-"
290 "1wa9cnzf60xwx67zq9ay48xr3j3sn1z80q77jpbzmkg906b52am8"))
291 (patches (search-patches "libdrm-symbol-check.patch"))))
292 (build-system gnu-build-system)
294 `(("libpciaccess" ,libpciaccess)
295 ("libpthread-stubs" ,libpthread-stubs)))
297 `(("pkg-config" ,pkg-config)))
298 (home-page "http://dri.freedesktop.org/wiki/")
299 (synopsis "Direct rendering userspace library")
300 (description "The Direct Rendering Infrastructure, also known as the DRI,
301 is a framework for allowing direct access to graphics hardware under the
302 X Window System in a safe and efficient manner. It includes changes to the
303 X server, to several client libraries, and to the kernel (DRM, Direct
304 Rendering Manager). The most important use for the DRI is to create fast
305 OpenGL implementations providing hardware acceleration for Mesa.
306 Several 3D accelerated drivers have been written to the DRI specification,
307 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
309 (license license:x11)))
320 "http://bitmath.org/code/mtdev/mtdev-"
324 "0zxs7shzgbalkvlaiibi25bd902rbmkv9n1lww6q8j3ri9qdaxv6"))))
325 (build-system gnu-build-system)
326 (home-page "http://bitmath.org/code/mtdev/")
327 (synopsis "Multitouch protocol translation library")
328 (description "Mtdev is a stand-alone library which transforms all
329 variants of kernel MT events to the slotted type B protocol. The events
330 put into mtdev may be from any MT device, specifically type A without
331 contact tracking, type A with contact tracking, or type B with contact
333 (license license:x11)))
335 (define-public startup-notification
337 (name "startup-notification")
342 (uri (string-append "https://www.freedesktop.org/software/" name
343 "/releases/" name "-" version ".tar.gz"))
346 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
347 (build-system gnu-build-system)
348 (native-inputs `(("pkg-config" ,pkg-config)))
351 ("xcb-util" ,xcb-util)))
352 (home-page "http://www.freedesktop.org/wiki/Software/startup-notification/")
353 (synopsis "Application startup notification and feedback library")
355 "Startup-notification contains a reference implementation of the startup
356 notification protocol. The reference implementation is mostly under an X Window
357 System style license, and has no special dependencies.")
358 ;; Most of the code is provided under x11 license.
359 (license license:lgpl2.0+)))
361 (define-public wmctrl
368 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
372 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
373 (patches (search-patches "wmctrl-64-fix.patch"))))
374 (build-system gnu-build-system)
377 (list (string-append "--mandir="
378 (assoc-ref %outputs "out")
381 `(("pkg-config" ,pkg-config)))
386 (home-page "http://tomas.styblo.name/wmctrl/")
387 (synopsis "Command-line tool to control X window managers")
389 "Wmctrl allows to interact with an X window manager that is compatible
390 with the EWMH/NetWM specification. It can query the window manager for
391 information, and request for certain window management actions (resize and
392 move windows, switch between desktops, etc.).")
393 (license license:gpl2+)))
401 (uri (list (string-append
402 "http://linuxbrit.co.uk/downloads/scrot-"
405 "https://fossies.org/linux/privat/old/scrot-"
409 "1wll744rhb49lvr2zs6m93rdmiq59zm344jzqvijrdn24ksiqgb1"))))
410 (build-system gnu-build-system)
412 ;; By default, man and doc are put in PREFIX/{man,doc} instead of
413 ;; PREFIX/share/{man,doc}.
415 (list (string-append "--mandir="
416 (assoc-ref %outputs "out")
419 (modify-phases %standard-phases
421 (lambda* (#:key inputs outputs #:allow-other-keys)
422 (let* ((out (assoc-ref outputs "out"))
423 (doc (string-append out "/share/doc/scrot")))
426 (system* "make" "install"
427 (string-append "docsdir=" doc)))))))))
431 (home-page "http://linuxbrit.co.uk/software/")
432 (synopsis "Command-line screen capture utility for X Window System")
434 "Scrot allows to save a screenshot of a full screen, a window or a part
435 of the screen selected by mouse.")
436 ;; This license removes a clause about X Consortium from the original
438 (license (license:x11-style "file://COPYING"
439 "See 'COPYING' in the distribution."))))
448 "https://github.com/naelstrof/slop/archive/v"
450 (file-name (string-append name "-" version ".tar.gz"))
453 "1yiv0ak1z7zbmcdw0dwx2gpblrh7l7s3l7y7sgpx071dy8s4rqpb"))))
454 (build-system cmake-build-system)
456 '(#:tests? #f)) ; no "check" target
460 ("libxrender" ,libxrender)
462 (home-page "https://github.com/naelstrof/slop")
463 (synopsis "Select a region and print its bounds to stdout")
465 "slop (Select Operation) is a tool that queries for a selection from a
466 user and prints the region to stdout. It grabs the mouse and turns it into a
467 crosshair, lets the user click and drag to make a selection (or click on a
468 window) while drawing a pretty box around it, then finally prints the
469 selection's dimensions to stdout.")
470 (license license:gpl3+)))
479 "https://github.com/naelstrof/maim/archive/v"
481 (file-name (string-append name "-" version ".tar.gz"))
484 "0ncly3mmg9pihda3jfwmvfa4sd3xanrm8hpvfq7lr2rl8rqknx80"))))
485 (build-system cmake-build-system)
487 '(#:tests? #f)) ; no "check" target
490 ("libjpeg" ,libjpeg-turbo)
492 ("libxcomposite" ,libxcomposite)
493 ("libxfixes" ,libxfixes)
494 ("libxrandr" ,libxrandr)
498 (home-page "https://github.com/naelstrof/maim")
499 (synopsis "Screenshot utility for X Window System")
501 "maim (Make Image) is a tool that takes screenshots of your desktop and
502 saves it in any format. Along with a full screen, it allows you to capture a
503 predefined region or a particular window. Also, it makes it possible to
504 include cursor in the resulting image.")
505 (license license:gpl3+)))
507 (define-public unclutter
514 "http://ftp.x.org/contrib/utilities/unclutter-"
518 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
519 (build-system gnu-build-system)
521 '(#:tests? #f ; no check target
523 (modify-phases %standard-phases
526 (lambda* (#:key inputs outputs #:allow-other-keys)
527 (let* ((out (assoc-ref outputs "out"))
528 (bin (string-append out "/bin"))
529 (man1 (string-append out "/share/man/man1")))
533 (system* "make" "install" "install.man"
534 (string-append "BINDIR=" bin)
535 (string-append "MANDIR=" man1)))))))))
536 (inputs `(("libx11" ,libx11)))
537 (home-page "http://ftp.x.org/contrib/utilities/")
538 (synopsis "Hide idle mouse cursor")
540 "Unclutter is a program which runs permanently in the background of an
541 X11 session. It checks on the X11 pointer (cursor) position every few
542 seconds, and when it finds it has not moved (and no buttons are pressed
543 on the mouse, and the cursor is not in the root window) it creates a
544 small sub-window as a child of the window the cursor is in. The new
545 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
546 invisible cursor. This allows you to see all the text in an xterm or
547 xedit, for example. The human factors crowd would agree it should make
548 things less distracting.")
549 (license license:public-domain)))
551 (define-public xlockmore
557 (uri (list (string-append
558 "http://www.tux.org/~bagleyd/xlock/xlockmore-"
561 "http://www.tux.org/~bagleyd/xlock/xlockmore-old"
562 "/xlockmore-" version
563 "/xlockmore-" version ".tar.xz")))
566 "138d79b8zc2hambbr9fnxp3fhihlcljgqns04zf0kv2f53pavqwl"))))
567 (build-system gnu-build-system)
569 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
570 (assoc-ref %outputs "out")
571 "/lib/X11/app-defaults"))
572 #:tests? #f)) ;no such thing as a test suite
577 ("linux-pam" ,linux-pam)))
578 (home-page "http://www.tux.org/~bagleyd/xlockmore.html")
579 (synopsis "Screen locker for the X Window System")
581 "XLockMore is a classic screen locker and screen saver for the
583 (license (license:non-copyleft #f "See xlock.c.")
584 ))) ; + GPLv2 in modes/glx/biof.c.
593 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
594 name "-" version ".tar.gz"))
597 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
598 (build-system gnu-build-system)
601 (list (string-append "--mandir=" %output "/share/man"))))
606 ("libxinerama" ,libxinerama)))
607 (home-page "https://sourceforge.net/projects/libxosd/")
608 (synopsis "X On Screen Display")
610 "XOSD provides a C library and a simple utility (osd_cat) for displaying
611 transparent text on your screen.")
612 (license license:gpl2+)))
614 (define-public xbindkeys
620 ;; Download from the savannah mirror list fails
622 "http://www.nongnu.org/xbindkeys/xbindkeys-"
627 "060df6d8y727jp1inp7blp44cs8a7jig7vcm8ndsn6gw36z1h3bc"))))
628 (build-system gnu-build-system)
631 ("guile" ,guile-2.0)))
632 (home-page "http://www.nongnu.org/xbindkeys/")
633 (synopsis "Associate a combination of keys with a shell command")
635 "XBindKeys is a program that allows you to launch shell commands with
636 your keyboard or your mouse under the X Window System. It links commands to
637 keys or mouse buttons, using a configuration file. It's independent of the
638 window manager and can capture all keyboard keys (ex: Power, Wake...). It
639 optionally supports a Guile-based configuration file layout, which enables you
640 to access all XBindKeys internals, so you can have key combinations, double
641 clicks or timed double clicks take actions. Also all functions that work in
642 Guile will work for XBindKeys.")
643 (license license:gpl2+)))
651 (file-name (string-append name "-" version ".tar.gz"))
654 "https://github.com/baskerville/sxhkd/archive/"
658 "15grmzpxz5fqlbfg2slj7gb7r6nzkvjmflmbkqx7mlby9pm6wdkj"))))
659 (build-system gnu-build-system)
661 `(("asciidoc" ,asciidoc)
663 ("xcb-util" ,xcb-util)
664 ("xcb-util-keysyms" ,xcb-util-keysyms)
665 ("xcb-util-wm" ,xcb-util-wm)))
667 '(#:phases (alist-delete 'configure %standard-phases)
668 #:tests? #f ; no check target
669 #:make-flags (list "CC=gcc"
670 (string-append "PREFIX=" %output))))
671 (home-page "https://github.com/baskerville/sxhkd")
672 (synopsis "Simple X hotkey daemon")
673 (description "sxhkd is a simple X hotkey daemon with a powerful and
674 compact configuration syntax.")
675 (license license:bsd-2)))
677 (define-public rxvt-unicode
679 (name "rxvt-unicode")
683 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
684 name "-" version ".tar.bz2"))
685 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
688 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
689 (build-system gnu-build-system)
691 ;; This sets the destination when installing the necessary terminal
692 ;; capability data, which are not provided by 'ncurses'. See
693 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
694 `(#:make-flags (list (string-append "TERMINFO="
695 (assoc-ref %outputs "out")
698 (modify-phases %standard-phases
699 (add-after 'install 'install-desktop-urxvt
700 (lambda* (#:key outputs #:allow-other-keys)
701 (let* ((output (assoc-ref outputs "out"))
702 (desktop (string-append output "/share/applications")))
705 (string-append desktop "/urxvt.desktop")
712 TryExec=~@*~a/bin/urxvt~@
717 (add-after 'install 'install-desktop-urxvtc
718 (lambda* (#:key outputs #:allow-other-keys)
719 (let* ((output (assoc-ref outputs "out"))
720 (desktop (string-append output "/share/applications")))
723 (string-append desktop "/urxvtc.desktop")
727 Name=rxvt-unicode (client)~@
728 Comment=Rxvt clone with XFT and unicode support~@
730 TryExec=~@*~a/bin/urxvtc~@
739 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
741 ("pkg-config" ,pkg-config)))
742 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
743 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
745 (list (search-path-specification
746 (variable "TERMINFO_DIRS")
747 (files '("share/terminfo")))))
748 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
749 (synopsis "Rxvt clone with XFT and unicode support")
750 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
751 intended as an xterm replacement for users who do not require features such as
752 Tektronix 4014 emulation and toolkit-style configurability. It supports
753 unicode, XFT and may be extended with Perl plugins. It also comes with a
754 client/daemon pair that lets you open any number of terminal windows from
755 within a single process.")
756 (license license:gpl3+)))
765 (uri (string-append "https://github.com/alols/" name
766 "/archive/v" version ".tar.gz"))
767 (file-name (string-append name "-" version ".tar.gz"))
770 "0898zc3vwxia00h9kfknpf7jygxgwggrx8v5mxc31w4lzn2dhzm2"))))
771 (build-system gnu-build-system)
773 `(#:tests? #f ; no check target
774 #:phases (alist-delete 'configure %standard-phases) ; no configure script
775 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
776 "MANDIR=/share/man/man1"
779 `(("libxtst" ,libxtst)
782 `(("pkg-config" ,pkg-config)))
783 (home-page "https://github.com/alols/xcape")
784 (synopsis "Use a modifier key in X.org as another key")
786 "This utility for X.org allows to use modifier key as another key when
787 pressed and released on its own. The default behaviour is to generate the
788 Escape key when Left Control is pressed and released on its own.")
789 (license license:gpl3+)))
791 (define-public libwacom
797 (uri (string-append "mirror://sourceforge/linuxwacom/libwacom/"
798 name "-" version ".tar.bz2"))
801 "1k20w2fkql3yr0dpdg51jjwzv7d4kp53ajmpyhcjxa08s0n8dl19"))))
802 (build-system glib-or-gtk-build-system)
804 `(("pkg-config" ,pkg-config)))
807 ("libgudev" ,libgudev)
809 ("libxml2" ,libxml2)))
811 ;; libwacom includes header files that include GLib, and libinput uses
812 ;; those header files.
814 (home-page "http://linuxwacom.sourceforge.net/")
815 (synopsis "Helper library for Wacom tablet settings")
817 "Libwacom is a library to help implement Wacom tablet settings. It is
818 intended to be used by client-programs that need model identification. It is
819 already being used by the gnome-settings-daemon and the GNOME Control Center
820 Wacom tablet applet.")
821 (license license:x11)))
823 (define-public xf86-input-wacom
825 (name "xf86-input-wacom")
830 "mirror://sourceforge/linuxwacom/xf86-input-wacom/"
831 name "-" version ".tar.bz2"))
834 "0idhkigl0pnyp08sqm6bqfb4h20v6rjrb71z1gdv59gk7d7qwpgi"))
836 (search-patches "xf86-input-wacom-xorg-abi-25.patch"))))
839 (list (string-append "--with-sdkdir="
840 (assoc-ref %outputs "out")
842 (string-append "--with-xorg-conf-dir="
843 (assoc-ref %outputs "out")
844 "/share/X11/xorg.conf.d"))))
845 (build-system gnu-build-system)
847 `(("pkg-config" ,pkg-config)))
849 `(("xorg-server" ,xorg-server)
850 ("libxrandr" ,libxrandr)
851 ("libxinerama" ,libxinerama)
854 (home-page "http://linuxwacom.sourceforge.net/")
855 (synopsis "Wacom input driver for X")
857 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
858 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
859 (license license:x11)))
861 (define-public redshift
869 (string-append "https://github.com/jonls/redshift/"
870 "releases/download/v" version
871 "/redshift-" version ".tar.xz"))
874 "0ngkwj7rg8nfk806w0sg443w6wjr91xdc0zisqfm5h2i77wm1qqh"))))
875 (build-system gnu-build-system)
877 `(("pkg-config" ,pkg-config)
878 ("intltool" ,intltool)))
883 ("libxxf86vm" ,libxxf86vm)
884 ("glib" ,glib))) ;for Geoclue2 support
885 (home-page "https://github.com/jonls/redshift")
886 (synopsis "Adjust the color temperature of your screen")
888 "Redshift adjusts the color temperature according to the position of the
889 sun. A different color temperature is set during night and daytime. During
890 twilight and early morning, the color temperature transitions smoothly from
891 night to daytime temperature to allow your eyes to slowly adapt. At night the
892 color temperature should be set to match the lamps in your room.")
893 (license license:gpl3+)))
895 (define-public xscreensaver
897 (name "xscreensaver")
903 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
907 "0v60mdhvv42jla5hljp77igng11kxpah5fs9j7ci65kz0hw552vb"))))
908 (build-system gnu-build-system)
910 `(#:tests? #f ; no check target
912 (modify-phases %standard-phases
913 (add-before 'configure 'adjust-gtk-resource-paths
915 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
916 (("@GTK_DATADIR@") "@datadir@")
917 (("@PO_DATADIR@") "@datadir@")))))
918 #:configure-flags '("--with-pam" "--with-proc-interrupts"
919 "--without-readdisplay")
920 #:make-flags (list (string-append "AD_DIR="
921 (assoc-ref %outputs "out")
922 "/usr/lib/X11/app-defaults"))))
924 `(("pkg-config" ,pkg-config)
925 ("intltool" ,intltool)))
934 ("libglade" ,libglade)
938 ("linux-pam" ,linux-pam)
944 ("libxrandr" ,libxrandr)
947 (home-page "https://www.jwz.org/xscreensaver/")
948 (synopsis "Classic screen saver suite supporting screen locking")
950 "xscreensaver is a popular screen saver collection with many entertaining
951 demos. It also acts as a nice screen locker.")
952 ;; xscreensaver doesn't have a single copyright file and instead relies on
953 ;; source comment headers, though most files have the same lax
954 ;; permissions. To reduce complexity, we're pointing at Debian's
955 ;; breakdown of the copyright information.
956 (license (license:non-copyleft
958 "http://metadata.ftp-master.debian.org/changelogs/"
959 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
967 (uri (string-append "http://www.vergenet.net/~conrad/software"
968 "/xsel/download/xsel-" version ".tar.gz"))
971 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
972 (build-system gnu-build-system)
975 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
976 (synopsis "Manipulate X selection")
978 "XSel is a command-line program for getting and setting the contents of
979 the X selection. Normally this is only accessible by manually highlighting
980 information and pasting it with the middle mouse button.
982 XSel reads from standard input and writes to standard output by default,
983 but can also follow a growing file, display contents, delete entries and more.")
984 (license (license:x11-style "file://COPYING"
985 "See COPYING in the distribution."))))
987 (define-public xdpyprobe
993 (uri (string-append "https://github.com/alezost/" name
994 "/releases/download/v" version
995 "/" name "-" version ".tar.gz"))
998 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
999 (build-system gnu-build-system)
1001 `(("libx11" ,libx11)))
1002 (home-page "https://github.com/alezost/xdpyprobe")
1003 (synopsis "Probe X server for connectivity")
1005 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1006 connectivity of the X server running on a particular @code{DISPLAY}.")
1007 (license license:gpl3+)))
1015 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1016 "releases/download/"
1017 version "/rofi-" version ".tar.xz"))
1020 "1s47biv6d68nblpz6d3aklsar1xxxcilzr4y77v3hz2w1wbz2b5m"))))
1021 (build-system gnu-build-system)
1026 ("startup-notification" ,startup-notification)
1027 ("libxkbcommon" ,libxkbcommon)
1029 ("xcb-util" ,xcb-util)
1030 ("xcb-util-xrm" ,xcb-util-xrm)
1031 ("xcb-util-wm" ,xcb-util-wm)))
1033 `(("pkg-config" ,pkg-config)))
1035 `(#:parallel-tests? #f ; May fail in some circumstances.
1037 (modify-phases %standard-phases
1038 (add-before 'configure 'adjust-tests
1040 (substitute* '("test/helper-expand.c")
1043 (("g_get_home_dir \\(\\)") "\"/\"")))))))
1044 (home-page "https://davedavenport.github.io/rofi/")
1045 (synopsis "Application Launcher")
1046 (description "Rofi is a minimalist Application Launcher. It memorizes which
1047 applications you regularily use and also allows you to search for an application
1049 (license license:expat)))
1051 (define-public tint2
1057 (uri (string-append "https://gitlab.com/o9000/" name
1058 "/repository/archive.tar.gz?ref=" version))
1059 (file-name (string-append name "-" version ".tar.gz"))
1062 "0dv7zaj2ahnfclnwnwcz9arrvzxn65yy29z7fqdgifdh3jk1kl2h"))))
1063 (build-system cmake-build-system)
1065 '(#:tests? #f ;no test target
1067 (modify-phases %standard-phases
1068 (add-after 'unpack 'fix-installation-prefix
1070 (substitute* "CMakeLists.txt"
1071 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc")))))))
1075 ("librsvg" ,librsvg)
1076 ("libxcomposite" ,libxcomposite)
1077 ("libxdamage" ,libxdamage)
1079 ("libxinerama" ,libxinerama)
1080 ("libxrandr" ,libxrandr)
1081 ("startup-notification" ,startup-notification)))
1083 `(("gettext" ,gettext-minimal)
1084 ("pkg-config" ,pkg-config)))
1085 (home-page "https://gitlab.com/o9000/tint2")
1086 (synopsis "Lightweight task bar")
1088 "Tint2 is a simple task bar made for modern X window managers. It was
1089 specifically made for Openbox but it should also work with other window
1090 managers (GNOME, KDE, XFCE etc.).
1092 The taskbar includes transparency and color settings for the font, icons,
1093 border, and background. It also supports multihead setups, customized mouse
1094 actions, a built-in clock, a battery monitor and a system tray.")
1095 (license license:gpl2)))
1098 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1102 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1103 revision "." (string-take commit 7)))
1107 (url "https://github.com/robm/dzen.git")
1109 (file-name (string-append name "-" version))
1112 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1113 (build-system gnu-build-system)
1115 `(#:tests? #f ; No test suite.
1116 #:make-flags ; Replacement for `config.mk`.
1118 (string-append "VERSION = " ,version)
1119 (string-append "PREFIX = " %output)
1120 "MANPREFIX = ${PREFIX}/share/man"
1122 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1123 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1124 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1129 (modify-phases %standard-phases
1130 (delete 'configure) ; No configuration script.
1131 ;; Use own make-flags instead of `config.mk`.
1132 (add-before 'build 'dont-include-config-mk
1134 (substitute* "Makefile" (("include config.mk") ""))
1137 `(("libx11" ,libx11)
1140 ("libxinerama" ,libxinerama)))
1141 (native-inputs `(("pkg-config" ,pkg-config)))
1142 (synopsis "General purpose messaging, notification and menuing program for X11")
1143 (description "Dzen is a general purpose messaging, notification and menuing
1144 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1145 (home-page "https://github.com/robm/dzen")
1146 (license license:expat))))
1148 (define-public xcb-util-xrm
1150 (name "xcb-util-xrm")
1155 "https://github.com/Airblader/xcb-util-xrm/releases"
1156 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1159 "0vbqhag51i0njc8d5fc8c6aa12496cwrc3s6s7sa5kfc17cwhppp"))
1160 (modules '((guix build utils)))
1163 '(delete-file-recursively "m4"))))
1164 (build-system gnu-build-system)
1166 `(("pkg-config" ,pkg-config)
1168 ("libx11" ,libx11))) ; for tests
1170 `(("libxcb" ,libxcb)
1171 ("xcb-util" ,xcb-util)))
1172 (home-page "https://github.com/Airblader/xcb-util-xrm")
1173 (synopsis "XCB utility functions for the X resource manager")
1175 "The XCB util module provides a number of libraries which sit on
1176 top of libxcb, the core X protocol library, and some of the extension
1177 libraries. These experimental libraries provide convenience functions
1178 and interfaces which make the raw X protocol more usable. Some of the
1179 libraries also provide client-side code which is not strictly part of
1180 the X protocol but which has traditionally been provided by Xlib.
1182 XCB util-xrm module provides the following libraries:
1184 - xrm: utility functions for the X resource manager.")
1185 (license license:x11)))
1187 (define-public xcalib
1193 (uri (string-append "mirror://sourceforge/xcalib/xcalib/" version
1194 "/xcalib-source-" version ".tar.gz"))
1197 "1rh6xb51c5xz926dnn82a2fn643g0sr4a8z66rn6yi7523kjw4ca"))))
1198 (build-system gnu-build-system)
1200 '(#:make-flags '("CC=gcc")
1201 #:tests? #f ; No test suite
1202 #:phases (modify-phases %standard-phases
1205 (lambda* (#:key outputs #:allow-other-keys)
1206 (let* ((out (assoc-ref outputs "out"))
1207 (bin (string-append out "/bin")))
1208 (install-file "xcalib" bin))))
1209 (add-after 'install 'install-doc
1210 (lambda* (#:key outputs #:allow-other-keys)
1211 (let ((doc (string-append(assoc-ref outputs "out")
1212 "/share/doc/xcalib")))
1213 (install-file "README" doc)
1214 ;; Avoid unspecified return value.
1216 (inputs `(("libx11", libx11)
1217 ("libxext", libxext)
1218 ("libxxf86vm", libxxf86vm)))
1219 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1220 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1221 profiles to the video card's gamma ramp. It does work with most video card
1222 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1223 invert colors on a specific display/screen.")
1224 (home-page "http://xcalib.sourceforge.net/")
1225 (license license:gpl2)))