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, 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 ng0 <contact.ng0@cryptolab.net>
21 ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
23 ;;; This file is part of GNU Guix.
25 ;;; GNU Guix is free software; you can redistribute it and/or modify it
26 ;;; under the terms of the GNU General Public License as published by
27 ;;; the Free Software Foundation; either version 3 of the License, or (at
28 ;;; your option) any later version.
30 ;;; GNU Guix is distributed in the hope that it will be useful, but
31 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
32 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 ;;; GNU General Public License for more details.
35 ;;; You should have received a copy of the GNU General Public License
36 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
38 (define-module (gnu packages xdisorg)
39 #:use-module ((guix licenses) #:prefix license:)
40 #:use-module (guix packages)
41 #:use-module (guix download)
42 #:use-module (guix git-download)
43 #:use-module (guix utils)
44 #:use-module (guix build-system cmake)
45 #:use-module (guix build-system gnu)
46 #:use-module (guix build-system glib-or-gtk)
47 #:use-module (guix build-system python)
48 #:use-module (gnu packages)
49 #:use-module (gnu packages documentation)
50 #:use-module (gnu packages algebra)
51 #:use-module (gnu packages autotools)
52 #:use-module (gnu packages compression)
53 #:use-module (gnu packages image)
54 #:use-module (gnu packages pkg-config)
55 #:use-module (gnu packages gettext)
56 #:use-module (gnu packages gl)
57 #:use-module (gnu packages glib)
58 #:use-module (gnu packages gnome)
59 #:use-module (gnu packages icu4c)
60 #:use-module (gnu packages maths)
61 #:use-module (gnu packages m4)
62 #:use-module (gnu packages ncurses)
63 #:use-module (gnu packages perl)
64 #:use-module (gnu packages python)
65 #:use-module (gnu packages linux)
66 #:use-module (gnu packages gl)
67 #:use-module (gnu packages guile)
68 #:use-module (gnu packages xml)
69 #:use-module (gnu packages gtk)
70 #:use-module (gnu packages xorg)
71 #:use-module (gnu packages bison))
73 ;; packages outside the x.org system proper
81 (uri (string-append "http://christian.amsuess.com/tools/" name
82 "/files/" name "-" version ".tar.gz"))
85 "1i3f1agixxbfy4kxikb2b241p7c2lg73cl9wqfvlwz3q6zf5faxv"))
86 (modules '((guix build utils)))
88 ;; Do not record a timestamp and file name in gzipped man
89 ;; pages (this is equivalent to 'gzip --no-name'.)
90 '(substitute* "setup.py"
91 (("gzip\\.open\\(gzfile, 'w', 9\\)")
92 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)")))))
93 (build-system python-build-system)
95 `(#:python ,python-2 ;incompatible with python 3
97 (modify-phases %standard-phases
98 (add-before 'build 'configure
99 (lambda* (#:key inputs #:allow-other-keys)
100 (substitute* "screenlayout/xrandr.py"
101 (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr")
104 #:tests? #f)) ;no tests
105 (inputs `(("pygtk" ,python2-pygtk)
107 (native-inputs `(("gettext" ,gettext-minimal)
108 ("python-docutils" ,python2-docutils)))
109 (home-page "https://christian.amsuess.com/tools/arandr/")
110 (synopsis "Another RandR graphical user interface")
111 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
112 (description "ARandR is designed to provide a simple visual front end for
113 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
114 shown graphically and can be changed in a drag-and-drop way. Configurations
115 are saved as executable shell scripts which can be loaded without using this
117 (license license:gpl3+)))
126 (uri (string-append "https://github.com/astrand/xclip"
127 "/archive/" version ".tar.gz"))
128 (file-name (string-append name "-" version ".tar.gz"))
131 "0n7pczk9vv30zf8qfln8ba3hnif9yfdxg0m84djac469wc28hnya"))))
132 (build-system gnu-build-system)
134 '(#:tests? #f ; There is no test suite
136 (modify-phases %standard-phases
137 ;; Since version 0.13, bootstrapped releases are no longer available.
138 (add-after 'unpack 'bootstrap
139 (lambda _ (zero? (system* "autoreconf" "-v")))))))
141 `(("autoconf" ,autoconf)
142 ("automake" ,automake)))
143 (inputs `(("libxmu" ,libxmu)
145 (home-page "https://github.com/astrand/xclip")
146 (synopsis "Command line interface to X11 clipboard")
147 (description "Xclip is a command line interface to the X11 clipboard. It
148 can also be used for copying files, as an alternative to sftp/scp, thus
149 avoiding password prompts when X11 forwarding has already been setup.")
150 (license license:gpl2+)))
152 (define-public libxkbcommon
154 (name "libxkbcommon")
158 (uri (string-append "https://xkbcommon.org/download/" name "-"
162 "12z6hih3n1r0asp2hzp9qsiwdfkfz46jwp06x8kprr0r5rfk0nds"))))
163 (build-system gnu-build-system)
167 ("xkeyboard-config" ,xkeyboard-config)))
170 ("pkg-config" ,pkg-config)))
173 (list (string-append "--with-xkb-config-root="
174 (assoc-ref %build-inputs "xkeyboard-config")
176 (string-append "--with-x-locale-root="
177 (assoc-ref %build-inputs "libx11")
178 "/share/X11/locale"))))
179 (home-page "https://xkbcommon.org/")
180 (synopsis "Library to handle keyboard descriptions")
181 (description "Xkbcommon is a library to handle keyboard descriptions,
182 including loading them from disk, parsing them and handling their
183 state. It is mainly meant for client toolkits, window systems, and other
184 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
185 Clutter, and more. Despite the name, it is not currently used by anything
187 (license (license:x11-style "file://COPYING"
188 "See 'COPYING' in the distribution."))))
190 (define-public xdotool
193 (version "3.20150503.1")
198 "https://github.com/jordansissel/xdotool/releases/download/v"
199 version "/xdotool-" version ".tar.gz"))
202 "1lcngsw33fy9my21rdiz1gs474bfdqcfxjrnfggbx4aypn1nhcp8"))
203 (patches (search-patches "xdotool-fix-makefile.patch"))))
204 (build-system gnu-build-system)
206 '(#:tests? #f ; Test suite requires a lot of black magic
208 (modify-phases %standard-phases
210 (lambda* (#:key outputs #:allow-other-keys #:rest args)
211 (setenv "PREFIX" (assoc-ref outputs "out"))
213 (string-append "-Wl,-rpath="
214 (assoc-ref %outputs "out") "/lib"))
215 (setenv "CC" "gcc"))))))
216 (native-inputs `(("perl" ,perl))) ; for pod2man
217 (inputs `(("libx11" ,libx11)
220 ("libxinerama" ,libxinerama)
222 ("libxkbcommon" ,libxkbcommon)))
223 (home-page "http://www.semicomplete.com/projects/xdotool")
224 (synopsis "Fake keyboard/mouse input, window management, and more")
225 (description "Xdotool lets you simulate keyboard input and mouse activity,
226 move and resize windows, etc. It does this using X11's XTEST extension and
227 other Xlib functions. Additionally, you can search for windows and move,
228 resize, hide, and modify window properties like the title. If your window
229 manager supports it, you can use xdotool to switch desktops, move windows
230 between desktops, and change the number of desktops.")
231 (license license:bsd-3)))
241 "http://xeyes.sourcearchive.com/downloads/1.0.1/xeyes_"
246 "04c3md570j67g55h3bix1qbngcslnq91skli51k3g1avki88zkm9"))))
247 (build-system gnu-build-system)
249 `(("libxext" ,libxext)
253 `(("pkg-config" ,pkg-config)))
254 (home-page "http://xeyes.sourcearchive.com/")
255 (synopsis "Follow-the-mouse X demo")
256 (description "Xeyes is a demo program for x.org. It shows eyes
257 following the mouse.")
258 (license license:x11)))
261 (define-public pixman
268 "http://cairographics.org/releases/pixman-"
272 "13m842m9ffac3m9r0b4lvwjhwzg3w4353djkjpf00s0wnm4v5di1"))
273 (patches (search-patches "pixman-CVE-2016-5296.patch"))))
274 (build-system gnu-build-system)
279 `(("pkg-config" ,pkg-config)))
280 (home-page "http://www.pixman.org/")
281 (synopsis "Low-level pixel manipulation library")
282 (description "Pixman is a low-level software library for pixel
283 manipulation, providing features such as image compositing and trapezoid
285 (license license:x11)))
287 (define-public libdrm
295 "https://dri.freedesktop.org/libdrm/libdrm-"
300 "1bhimr6za2ddisrvrv1qqd7c2a59s7jc954sjycq2w68b8cmrh4c"))
301 (patches (search-patches "libdrm-symbol-check.patch"))))
302 (build-system gnu-build-system)
304 `(("libpciaccess" ,libpciaccess)
305 ("libpthread-stubs" ,libpthread-stubs)))
307 `(("pkg-config" ,pkg-config)))
308 (home-page "http://dri.freedesktop.org/wiki/")
309 (synopsis "Direct rendering userspace library")
310 (description "The Direct Rendering Infrastructure, also known as the DRI,
311 is a framework for allowing direct access to graphics hardware under the
312 X Window System in a safe and efficient manner. It includes changes to the
313 X server, to several client libraries, and to the kernel (DRM, Direct
314 Rendering Manager). The most important use for the DRI is to create fast
315 OpenGL implementations providing hardware acceleration for Mesa.
316 Several 3D accelerated drivers have been written to the DRI specification,
317 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
319 (license license:x11)))
330 "http://bitmath.org/code/mtdev/mtdev-"
334 "0zxs7shzgbalkvlaiibi25bd902rbmkv9n1lww6q8j3ri9qdaxv6"))))
335 (build-system gnu-build-system)
336 (home-page "http://bitmath.org/code/mtdev/")
337 (synopsis "Multitouch protocol translation library")
338 (description "Mtdev is a stand-alone library which transforms all
339 variants of kernel MT events to the slotted type B protocol. The events
340 put into mtdev may be from any MT device, specifically type A without
341 contact tracking, type A with contact tracking, or type B with contact
343 (license license:x11)))
345 (define-public startup-notification
347 (name "startup-notification")
352 (uri (string-append "https://www.freedesktop.org/software/" name
353 "/releases/" name "-" version ".tar.gz"))
356 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
357 (build-system gnu-build-system)
358 (native-inputs `(("pkg-config" ,pkg-config)))
361 ("xcb-util" ,xcb-util)))
362 (home-page "http://www.freedesktop.org/wiki/Software/startup-notification/")
363 (synopsis "Application startup notification and feedback library")
365 "Startup-notification contains a reference implementation of the startup
366 notification protocol. The reference implementation is mostly under an X Window
367 System style license, and has no special dependencies.")
368 ;; Most of the code is provided under x11 license.
369 (license license:lgpl2.0+)))
371 (define-public wmctrl
378 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
382 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
383 (patches (search-patches "wmctrl-64-fix.patch"))))
384 (build-system gnu-build-system)
387 (list (string-append "--mandir="
388 (assoc-ref %outputs "out")
391 `(("pkg-config" ,pkg-config)))
396 (home-page "http://tomas.styblo.name/wmctrl/")
397 (synopsis "Command-line tool to control X window managers")
399 "Wmctrl allows to interact with an X window manager that is compatible
400 with the EWMH/NetWM specification. It can query the window manager for
401 information, and request for certain window management actions (resize and
402 move windows, switch between desktops, etc.).")
403 (license license:gpl2+)))
411 (uri (list (string-append
412 "http://linuxbrit.co.uk/downloads/scrot-"
415 "https://fossies.org/linux/privat/old/scrot-"
419 "1wll744rhb49lvr2zs6m93rdmiq59zm344jzqvijrdn24ksiqgb1"))))
420 (build-system gnu-build-system)
422 ;; By default, man and doc are put in PREFIX/{man,doc} instead of
423 ;; PREFIX/share/{man,doc}.
425 (list (string-append "--mandir="
426 (assoc-ref %outputs "out")
429 (modify-phases %standard-phases
431 (lambda* (#:key inputs outputs #:allow-other-keys)
432 (let* ((out (assoc-ref outputs "out"))
433 (doc (string-append out "/share/doc/scrot")))
436 (system* "make" "install"
437 (string-append "docsdir=" doc)))))))))
441 (home-page "http://linuxbrit.co.uk/software/")
442 (synopsis "Command-line screen capture utility for X Window System")
444 "Scrot allows to save a screenshot of a full screen, a window or a part
445 of the screen selected by mouse.")
446 ;; This license removes a clause about X Consortium from the original
448 (license (license:x11-style "file://COPYING"
449 "See 'COPYING' in the distribution."))))
458 "https://github.com/naelstrof/slop/archive/v"
460 (file-name (string-append name "-" version ".tar.gz"))
463 "0gxi174vi13ldjaf776s2jcdyy379lnwwml29nk1bkzj5d5gpghm"))))
464 (build-system cmake-build-system)
466 '(#:tests? #f)) ; no "check" target
472 ("libxrender" ,libxrender)
474 (home-page "https://github.com/naelstrof/slop")
475 (synopsis "Select a region and print its bounds to stdout")
477 "slop (Select Operation) is a tool that queries for a selection from a
478 user and prints the region to stdout. It grabs the mouse and turns it into a
479 crosshair, lets the user click and drag to make a selection (or click on a
480 window) while drawing a pretty box around it, then finally prints the
481 selection's dimensions to stdout.")
482 (license license:gpl3+)))
491 "https://github.com/naelstrof/maim/archive/v"
493 (file-name (string-append name "-" version ".tar.gz"))
496 "0f54s7csrxjd5r9anqqa92diwmzdplpws3llmbr6g3c0l6bp8815"))))
497 (build-system cmake-build-system)
499 '(#:tests? #f)) ; no "check" target
502 ("libjpeg" ,libjpeg-turbo)
504 ("libxcomposite" ,libxcomposite)
505 ("libxfixes" ,libxfixes)
506 ("libxrandr" ,libxrandr)
510 (home-page "https://github.com/naelstrof/maim")
511 (synopsis "Screenshot utility for X Window System")
513 "maim (Make Image) is a tool that takes screenshots of your desktop and
514 saves it in any format. Along with a full screen, it allows you to capture a
515 predefined region or a particular window. Also, it makes it possible to
516 include cursor in the resulting image.")
517 (license license:gpl3+)))
519 (define-public unclutter
526 "http://ftp.x.org/contrib/utilities/unclutter-"
530 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
531 (build-system gnu-build-system)
533 '(#:tests? #f ; no check target
535 (modify-phases %standard-phases
538 (lambda* (#:key inputs outputs #:allow-other-keys)
539 (let* ((out (assoc-ref outputs "out"))
540 (bin (string-append out "/bin"))
541 (man1 (string-append out "/share/man/man1")))
545 (system* "make" "install" "install.man"
546 (string-append "BINDIR=" bin)
547 (string-append "MANDIR=" man1)))))))))
548 (inputs `(("libx11" ,libx11)))
549 (home-page "http://ftp.x.org/contrib/utilities/")
550 (synopsis "Hide idle mouse cursor")
552 "Unclutter is a program which runs permanently in the background of an
553 X11 session. It checks on the X11 pointer (cursor) position every few
554 seconds, and when it finds it has not moved (and no buttons are pressed
555 on the mouse, and the cursor is not in the root window) it creates a
556 small sub-window as a child of the window the cursor is in. The new
557 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
558 invisible cursor. This allows you to see all the text in an xterm or
559 xedit, for example. The human factors crowd would agree it should make
560 things less distracting.")
561 (license license:public-domain)))
563 (define-public xlockmore
569 (uri (list (string-append
570 "http://www.tux.org/~bagleyd/xlock/xlockmore-"
573 "http://www.tux.org/~bagleyd/xlock/xlockmore-old"
574 "/xlockmore-" version
575 "/xlockmore-" version ".tar.xz")))
578 "138d79b8zc2hambbr9fnxp3fhihlcljgqns04zf0kv2f53pavqwl"))))
579 (build-system gnu-build-system)
581 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
582 (assoc-ref %outputs "out")
583 "/lib/X11/app-defaults"))
584 #:tests? #f)) ;no such thing as a test suite
589 ("linux-pam" ,linux-pam)))
590 (home-page "http://www.tux.org/~bagleyd/xlockmore.html")
591 (synopsis "Screen locker for the X Window System")
593 "XLockMore is a classic screen locker and screen saver for the
595 (license (license:non-copyleft #f "See xlock.c.")
596 ))) ; + GPLv2 in modes/glx/biof.c.
605 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
606 name "-" version ".tar.gz"))
609 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
610 (build-system gnu-build-system)
613 (list (string-append "--mandir=" %output "/share/man"))))
618 ("libxinerama" ,libxinerama)))
619 (home-page "https://sourceforge.net/projects/libxosd/")
620 (synopsis "X On Screen Display")
622 "XOSD provides a C library and a simple utility (osd_cat) for displaying
623 transparent text on your screen.")
624 (license license:gpl2+)))
626 (define-public xbindkeys
632 ;; Download from the savannah mirror list fails
634 "http://www.nongnu.org/xbindkeys/xbindkeys-"
639 "060df6d8y727jp1inp7blp44cs8a7jig7vcm8ndsn6gw36z1h3bc"))))
640 (build-system gnu-build-system)
643 ("guile" ,guile-2.0)))
644 (home-page "http://www.nongnu.org/xbindkeys/")
645 (synopsis "Associate a combination of keys with a shell command")
647 "XBindKeys is a program that allows you to launch shell commands with
648 your keyboard or your mouse under the X Window System. It links commands to
649 keys or mouse buttons, using a configuration file. It's independent of the
650 window manager and can capture all keyboard keys (ex: Power, Wake...). It
651 optionally supports a Guile-based configuration file layout, which enables you
652 to access all XBindKeys internals, so you can have key combinations, double
653 clicks or timed double clicks take actions. Also all functions that work in
654 Guile will work for XBindKeys.")
655 (license license:gpl2+)))
663 (file-name (string-append name "-" version ".tar.gz"))
666 "https://github.com/baskerville/sxhkd/archive/"
670 "15grmzpxz5fqlbfg2slj7gb7r6nzkvjmflmbkqx7mlby9pm6wdkj"))))
671 (build-system gnu-build-system)
673 `(("asciidoc" ,asciidoc)
675 ("xcb-util" ,xcb-util)
676 ("xcb-util-keysyms" ,xcb-util-keysyms)
677 ("xcb-util-wm" ,xcb-util-wm)))
679 '(#:phases (alist-delete 'configure %standard-phases)
680 #:tests? #f ; no check target
681 #:make-flags (list "CC=gcc"
682 (string-append "PREFIX=" %output))))
683 (home-page "https://github.com/baskerville/sxhkd")
684 (synopsis "Simple X hotkey daemon")
685 (description "sxhkd is a simple X hotkey daemon with a powerful and
686 compact configuration syntax.")
687 (license license:bsd-2)))
689 (define-public rxvt-unicode
691 (name "rxvt-unicode")
695 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
696 name "-" version ".tar.bz2"))
697 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
700 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
701 (build-system gnu-build-system)
703 ;; This sets the destination when installing the necessary terminal
704 ;; capability data, which are not provided by 'ncurses'. See
705 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
706 `(#:make-flags (list (string-append "TERMINFO="
707 (assoc-ref %outputs "out")
710 (modify-phases %standard-phases
711 (add-after 'install 'install-desktop-urxvt
712 (lambda* (#:key outputs #:allow-other-keys)
713 (let* ((output (assoc-ref outputs "out"))
714 (desktop (string-append output "/share/applications")))
717 (string-append desktop "/urxvt.desktop")
724 TryExec=~@*~a/bin/urxvt~@
729 (add-after 'install 'install-desktop-urxvtc
730 (lambda* (#:key outputs #:allow-other-keys)
731 (let* ((output (assoc-ref outputs "out"))
732 (desktop (string-append output "/share/applications")))
735 (string-append desktop "/urxvtc.desktop")
739 Name=rxvt-unicode (client)~@
740 Comment=Rxvt clone with XFT and unicode support~@
742 TryExec=~@*~a/bin/urxvtc~@
751 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
753 ("pkg-config" ,pkg-config)))
754 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
755 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
757 (list (search-path-specification
758 (variable "TERMINFO_DIRS")
759 (files '("share/terminfo")))))
760 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
761 (synopsis "Rxvt clone with XFT and unicode support")
762 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
763 intended as an xterm replacement for users who do not require features such as
764 Tektronix 4014 emulation and toolkit-style configurability. It supports
765 unicode, XFT and may be extended with Perl plugins. It also comes with a
766 client/daemon pair that lets you open any number of terminal windows from
767 within a single process.")
768 (license license:gpl3+)))
777 (uri (string-append "https://github.com/alols/" name
778 "/archive/v" version ".tar.gz"))
779 (file-name (string-append name "-" version ".tar.gz"))
782 "0898zc3vwxia00h9kfknpf7jygxgwggrx8v5mxc31w4lzn2dhzm2"))))
783 (build-system gnu-build-system)
785 `(#:tests? #f ; no check target
786 #:phases (alist-delete 'configure %standard-phases) ; no configure script
787 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
788 "MANDIR=/share/man/man1"
791 `(("libxtst" ,libxtst)
794 `(("pkg-config" ,pkg-config)))
795 (home-page "https://github.com/alols/xcape")
796 (synopsis "Use a modifier key in X.org as another key")
798 "This utility for X.org allows to use modifier key as another key when
799 pressed and released on its own. The default behaviour is to generate the
800 Escape key when Left Control is pressed and released on its own.")
801 (license license:gpl3+)))
803 (define-public libwacom
809 (uri (string-append "mirror://sourceforge/linuxwacom/libwacom/"
810 name "-" version ".tar.bz2"))
813 "1k20w2fkql3yr0dpdg51jjwzv7d4kp53ajmpyhcjxa08s0n8dl19"))))
814 (build-system glib-or-gtk-build-system)
816 `(("pkg-config" ,pkg-config)))
819 ("libgudev" ,libgudev)
821 ("libxml2" ,libxml2)))
823 ;; libwacom includes header files that include GLib, and libinput uses
824 ;; those header files.
826 (home-page "http://linuxwacom.sourceforge.net/")
827 (synopsis "Helper library for Wacom tablet settings")
829 "Libwacom is a library to help implement Wacom tablet settings. It is
830 intended to be used by client-programs that need model identification. It is
831 already being used by the gnome-settings-daemon and the GNOME Control Center
832 Wacom tablet applet.")
833 (license license:x11)))
835 (define-public xf86-input-wacom
837 (name "xf86-input-wacom")
842 "mirror://sourceforge/linuxwacom/xf86-input-wacom/"
843 name "-" version ".tar.bz2"))
846 "073bf12ka1mcqvr1sviixb51bsfx37jalrj9xw53f10i2kdvkl9a"))))
849 (list (string-append "--with-sdkdir="
850 (assoc-ref %outputs "out")
852 (string-append "--with-xorg-conf-dir="
853 (assoc-ref %outputs "out")
854 "/share/X11/xorg.conf.d"))))
855 (build-system gnu-build-system)
857 `(("pkg-config" ,pkg-config)))
859 `(("xorg-server" ,xorg-server)
860 ("libxrandr" ,libxrandr)
861 ("libxinerama" ,libxinerama)
864 (home-page "http://linuxwacom.sourceforge.net/")
865 (synopsis "Wacom input driver for X")
867 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
868 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
869 (license license:x11)))
871 (define-public redshift
879 (string-append "https://github.com/jonls/redshift/"
880 "releases/download/v" version
881 "/redshift-" version ".tar.xz"))
884 "0ngkwj7rg8nfk806w0sg443w6wjr91xdc0zisqfm5h2i77wm1qqh"))))
885 (build-system gnu-build-system)
887 `(("pkg-config" ,pkg-config)
888 ("intltool" ,intltool)))
893 ("libxxf86vm" ,libxxf86vm)
894 ("glib" ,glib))) ;for Geoclue2 support
895 (home-page "https://github.com/jonls/redshift")
896 (synopsis "Adjust the color temperature of your screen")
898 "Redshift adjusts the color temperature according to the position of the
899 sun. A different color temperature is set during night and daytime. During
900 twilight and early morning, the color temperature transitions smoothly from
901 night to daytime temperature to allow your eyes to slowly adapt. At night the
902 color temperature should be set to match the lamps in your room.")
903 (license license:gpl3+)))
905 (define-public xscreensaver
907 (name "xscreensaver")
913 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
917 "1ng5ddzb4k2h1w54pvk9hzxvnxxmc54bc4a2ibk974nzjjjaxivs"))))
918 (build-system gnu-build-system)
920 `(#:tests? #f ; no check target
922 (modify-phases %standard-phases
923 (add-before 'configure 'adjust-gtk-resource-paths
925 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
926 (("@GTK_DATADIR@") "@datadir@")
927 (("@PO_DATADIR@") "@datadir@")))))
928 #:configure-flags '("--with-pam" "--with-proc-interrupts"
929 "--without-readdisplay")
930 #:make-flags (list (string-append "AD_DIR="
931 (assoc-ref %outputs "out")
932 "/usr/lib/X11/app-defaults"))))
934 `(("pkg-config" ,pkg-config)
935 ("intltool" ,intltool)))
944 ("libglade" ,libglade)
948 ("linux-pam" ,linux-pam)
954 ("libxrandr" ,libxrandr)
957 (home-page "https://www.jwz.org/xscreensaver/")
958 (synopsis "Classic screen saver suite supporting screen locking")
960 "xscreensaver is a popular screen saver collection with many entertaining
961 demos. It also acts as a nice screen locker.")
962 ;; xscreensaver doesn't have a single copyright file and instead relies on
963 ;; source comment headers, though most files have the same lax
964 ;; permissions. To reduce complexity, we're pointing at Debian's
965 ;; breakdown of the copyright information.
966 (license (license:non-copyleft
968 "http://metadata.ftp-master.debian.org/changelogs/"
969 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
977 (uri (string-append "http://www.vergenet.net/~conrad/software"
978 "/xsel/download/xsel-" version ".tar.gz"))
981 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
982 (build-system gnu-build-system)
985 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
986 (synopsis "Manipulate X selection")
988 "XSel is a command-line program for getting and setting the contents of
989 the X selection. Normally this is only accessible by manually highlighting
990 information and pasting it with the middle mouse button.
992 XSel reads from standard input and writes to standard output by default,
993 but can also follow a growing file, display contents, delete entries and more.")
994 (license (license:x11-style "file://COPYING"
995 "See COPYING in the distribution."))))
997 (define-public xdpyprobe
1003 (uri (string-append "https://github.com/alezost/" name
1004 "/releases/download/v" version
1005 "/" name "-" version ".tar.gz"))
1008 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1009 (build-system gnu-build-system)
1011 `(("libx11" ,libx11)))
1012 (home-page "https://github.com/alezost/xdpyprobe")
1013 (synopsis "Probe X server for connectivity")
1015 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1016 connectivity of the X server running on a particular @code{DISPLAY}.")
1017 (license license:gpl3+)))
1025 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1026 "releases/download/"
1027 version "/rofi-" version ".tar.xz"))
1030 "1s47biv6d68nblpz6d3aklsar1xxxcilzr4y77v3hz2w1wbz2b5m"))))
1031 (build-system gnu-build-system)
1036 ("startup-notification" ,startup-notification)
1037 ("libxkbcommon" ,libxkbcommon)
1039 ("xcb-util" ,xcb-util)
1040 ("xcb-util-xrm" ,xcb-util-xrm)
1041 ("xcb-util-wm" ,xcb-util-wm)))
1043 `(("pkg-config" ,pkg-config)))
1045 `(#:parallel-tests? #f ; May fail in some circumstances.
1047 (modify-phases %standard-phases
1048 (add-before 'configure 'adjust-tests
1050 (substitute* '("test/helper-expand.c")
1053 (("g_get_home_dir \\(\\)") "\"/\"")))))))
1054 (home-page "https://davedavenport.github.io/rofi/")
1055 (synopsis "Application launcher")
1056 (description "Rofi is a minimalist application launcher. It memorizes which
1057 applications you regularly use and also allows you to search for an application
1059 (license license:expat)))
1061 (define-public tint2
1067 (uri (string-append "https://gitlab.com/o9000/" name
1068 "/repository/archive.tar.gz?ref=" version))
1069 (file-name (string-append name "-" version ".tar.gz"))
1072 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1073 (build-system cmake-build-system)
1075 '(#:tests? #f ;no test target
1077 (modify-phases %standard-phases
1078 (add-after 'unpack 'fix-installation-prefix
1080 (substitute* "CMakeLists.txt"
1081 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc")))))))
1085 ("librsvg" ,librsvg)
1086 ("libxcomposite" ,libxcomposite)
1087 ("libxdamage" ,libxdamage)
1089 ("libxinerama" ,libxinerama)
1090 ("libxrandr" ,libxrandr)
1091 ("startup-notification" ,startup-notification)))
1093 `(("gettext" ,gettext-minimal)
1094 ("pkg-config" ,pkg-config)))
1095 (home-page "https://gitlab.com/o9000/tint2")
1096 (synopsis "Lightweight task bar")
1098 "Tint2 is a simple task bar made for modern X window managers. It was
1099 specifically made for Openbox but it should also work with other window
1100 managers (GNOME, KDE, XFCE etc.).
1102 The taskbar includes transparency and color settings for the font, icons,
1103 border, and background. It also supports multihead setups, customized mouse
1104 actions, a built-in clock, a battery monitor and a system tray.")
1105 (license license:gpl2)))
1108 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1112 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1113 revision "." (string-take commit 7)))
1117 (url "https://github.com/robm/dzen.git")
1119 (file-name (string-append name "-" version))
1122 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1123 (build-system gnu-build-system)
1125 `(#:tests? #f ; No test suite.
1126 #:make-flags ; Replacement for `config.mk`.
1128 (string-append "VERSION = " ,version)
1129 (string-append "PREFIX = " %output)
1130 "MANPREFIX = ${PREFIX}/share/man"
1132 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1133 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1134 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1139 (modify-phases %standard-phases
1140 (delete 'configure) ; No configuration script.
1141 ;; Use own make-flags instead of `config.mk`.
1142 (add-before 'build 'dont-include-config-mk
1144 (substitute* "Makefile" (("include config.mk") ""))
1147 `(("libx11" ,libx11)
1150 ("libxinerama" ,libxinerama)))
1151 (native-inputs `(("pkg-config" ,pkg-config)))
1152 (synopsis "General purpose messaging, notification and menuing program for X11")
1153 (description "Dzen is a general purpose messaging, notification and menuing
1154 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1155 (home-page "https://github.com/robm/dzen")
1156 (license license:expat))))
1158 (define-public xcb-util-xrm
1160 (name "xcb-util-xrm")
1165 "https://github.com/Airblader/xcb-util-xrm/releases"
1166 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1169 "0vbqhag51i0njc8d5fc8c6aa12496cwrc3s6s7sa5kfc17cwhppp"))
1170 (modules '((guix build utils)))
1173 '(delete-file-recursively "m4"))))
1174 (build-system gnu-build-system)
1176 `(("pkg-config" ,pkg-config)
1178 ("libx11" ,libx11))) ; for tests
1180 `(("libxcb" ,libxcb)
1181 ("xcb-util" ,xcb-util)))
1182 (home-page "https://github.com/Airblader/xcb-util-xrm")
1183 (synopsis "XCB utility functions for the X resource manager")
1185 "The XCB util module provides a number of libraries which sit on
1186 top of libxcb, the core X protocol library, and some of the extension
1187 libraries. These experimental libraries provide convenience functions
1188 and interfaces which make the raw X protocol more usable. Some of the
1189 libraries also provide client-side code which is not strictly part of
1190 the X protocol but which has traditionally been provided by Xlib.
1192 XCB util-xrm module provides the following libraries:
1194 - xrm: utility functions for the X resource manager.")
1195 (license license:x11)))
1197 (define-public xcalib
1203 (uri (string-append "mirror://sourceforge/xcalib/xcalib/" version
1204 "/xcalib-source-" version ".tar.gz"))
1207 "1rh6xb51c5xz926dnn82a2fn643g0sr4a8z66rn6yi7523kjw4ca"))))
1208 (build-system gnu-build-system)
1210 '(#:make-flags '("CC=gcc")
1211 #:tests? #f ; No test suite
1212 #:phases (modify-phases %standard-phases
1215 (lambda* (#:key outputs #:allow-other-keys)
1216 (let* ((out (assoc-ref outputs "out"))
1217 (bin (string-append out "/bin")))
1218 (install-file "xcalib" bin))))
1219 (add-after 'install 'install-doc
1220 (lambda* (#:key outputs #:allow-other-keys)
1221 (let ((doc (string-append(assoc-ref outputs "out")
1222 "/share/doc/xcalib")))
1223 (install-file "README" doc)
1224 ;; Avoid unspecified return value.
1226 (inputs `(("libx11", libx11)
1227 ("libxext", libxext)
1228 ("libxxf86vm", libxxf86vm)))
1229 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1230 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1231 profiles to the video card's gamma ramp. It does work with most video card
1232 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1233 invert colors on a specific display/screen.")
1234 (home-page "http://xcalib.sourceforge.net/")
1235 (license license:gpl2)))