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>
20 ;;; This file is part of GNU Guix.
22 ;;; GNU Guix is free software; you can redistribute it and/or modify it
23 ;;; under the terms of the GNU General Public License as published by
24 ;;; the Free Software Foundation; either version 3 of the License, or (at
25 ;;; your option) any later version.
27 ;;; GNU Guix is distributed in the hope that it will be useful, but
28 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
29 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 ;;; GNU General Public License for more details.
32 ;;; You should have received a copy of the GNU General Public License
33 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
35 (define-module (gnu packages xdisorg)
36 #:use-module ((guix licenses) #:prefix license:)
37 #:use-module (guix packages)
38 #:use-module (guix download)
39 #:use-module (guix utils)
40 #:use-module (guix build-system cmake)
41 #:use-module (guix build-system gnu)
42 #:use-module (guix build-system glib-or-gtk)
43 #:use-module (guix build-system python)
44 #:use-module (gnu packages)
45 #:use-module (gnu packages documentation)
46 #:use-module (gnu packages algebra)
47 #:use-module (gnu packages compression)
48 #:use-module (gnu packages image)
49 #:use-module (gnu packages pkg-config)
50 #:use-module (gnu packages gettext)
51 #:use-module (gnu packages gl)
52 #:use-module (gnu packages glib)
53 #:use-module (gnu packages gnome)
54 #:use-module (gnu packages m4)
55 #:use-module (gnu packages ncurses)
56 #:use-module (gnu packages perl)
57 #:use-module (gnu packages python)
58 #:use-module (gnu packages linux)
59 #:use-module (gnu packages gl)
60 #:use-module (gnu packages guile)
61 #:use-module (gnu packages xml)
62 #:use-module (gnu packages gtk)
63 #:use-module (gnu packages xorg)
64 #:use-module (gnu packages bison))
66 ;; packages outside the x.org system proper
74 (uri (string-append "http://christian.amsuess.com/tools/" name
75 "/files/" name "-" version ".tar.gz"))
78 "1i3f1agixxbfy4kxikb2b241p7c2lg73cl9wqfvlwz3q6zf5faxv"))
79 (modules '((guix build utils)))
81 ;; Do not record a timestamp and file name in gzipped man
82 ;; pages (this is equivalent to 'gzip --no-name'.)
83 '(substitute* "setup.py"
84 (("gzip\\.open\\(gzfile, 'w', 9\\)")
85 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)")))))
86 (build-system python-build-system)
88 `(#:python ,python-2 ;incompatible with python 3
91 (modify-phases %standard-phases
92 (add-after 'install 'make-xrandr-available
93 (lambda* (#:key inputs outputs #:allow-other-keys)
94 (wrap-program (string-append (assoc-ref outputs "out")
96 `("PATH" ":" prefix (,(string-append (assoc-ref inputs "xrandr")
99 (inputs `(("pygtk" ,python2-pygtk)
101 (native-inputs `(("gettext" ,gettext-minimal)
102 ("python-docutils" ,python2-docutils)))
103 (home-page "https://christian.amsuess.com/tools/arandr/")
104 (synopsis "Another RandR graphical user interface")
105 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
106 (description "ARandR is designed to provide a simple visual front end for
107 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
108 shown graphically and can be changed in a drag-and-drop way. Configurations
109 are saved as executable shell scripts which can be loaded without using this
111 (license license:gpl3+)))
121 "mirror://sourceforge/" name "/" name "/" version "/"
122 name "-" version ".tar.gz"))
125 "0ibcf46rldnv0r424qcnai1fa5iq3lm5q5rdd7snsi5sb78gmixp"))))
126 (build-system gnu-build-system)
128 '(#:tests? #f)) ; There is no test suite
129 (inputs `(("libxmu" ,libxmu)
131 (home-page "http://xclip.sourceforge.net/")
132 (synopsis "Command line interface to X11 clipboard")
133 (description "Xclip is a command line interface to the X11 clipboard. It
134 can also be used for copying files, as an alternative to sftp/scp, thus
135 avoiding password prompts when X11 forwarding has already been setup.")
136 (license license:gpl2+)))
138 (define-public libxkbcommon
140 (name "libxkbcommon")
144 (uri (string-append "https://xkbcommon.org/download/" name "-"
148 "12z6hih3n1r0asp2hzp9qsiwdfkfz46jwp06x8kprr0r5rfk0nds"))))
149 (build-system gnu-build-system)
153 ("xkeyboard-config" ,xkeyboard-config)))
156 ("pkg-config" ,pkg-config)))
159 (list (string-append "--with-xkb-config-root="
160 (assoc-ref %build-inputs "xkeyboard-config")
162 (string-append "--with-x-locale-root="
163 (assoc-ref %build-inputs "libx11")
164 "/share/X11/locale"))))
165 (home-page "https://xkbcommon.org/")
166 (synopsis "Library to handle keyboard descriptions")
167 (description "Xkbcommon is a library to handle keyboard descriptions,
168 including loading them from disk, parsing them and handling their
169 state. It is mainly meant for client toolkits, window systems, and other
170 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
171 Clutter, and more. Despite the name, it is not currently used by anything
173 (license (license:x11-style "file://COPYING"
174 "See 'COPYING' in the distribution."))))
176 (define-public xdotool
179 (version "3.20150503.1")
184 "https://github.com/jordansissel/xdotool/releases/download/v"
185 version "/xdotool-" version ".tar.gz"))
188 "1lcngsw33fy9my21rdiz1gs474bfdqcfxjrnfggbx4aypn1nhcp8"))
189 (patches (search-patches "xdotool-fix-makefile.patch"))))
190 (build-system gnu-build-system)
192 '(#:tests? #f ; Test suite requires a lot of black magic
194 (modify-phases %standard-phases
196 (lambda* (#:key outputs #:allow-other-keys #:rest args)
197 (setenv "PREFIX" (assoc-ref outputs "out"))
199 (string-append "-Wl,-rpath="
200 (assoc-ref %outputs "out") "/lib"))
201 (setenv "CC" "gcc"))))))
202 (native-inputs `(("perl" ,perl))) ; for pod2man
203 (inputs `(("libx11" ,libx11)
206 ("libxinerama" ,libxinerama)
208 ("libxkbcommon" ,libxkbcommon)))
209 (home-page "http://www.semicomplete.com/projects/xdotool")
210 (synopsis "Fake keyboard/mouse input, window management, and more")
211 (description "Xdotool lets you simulate keyboard input and mouse activity,
212 move and resize windows, etc. It does this using X11's XTEST extension and
213 other Xlib functions. Additionally, you can search for windows and move,
214 resize, hide, and modify window properties like the title. If your window
215 manager supports it, you can use xdotool to switch desktops, move windows
216 between desktops, and change the number of desktops.")
217 (license license:bsd-3)))
227 "http://xeyes.sourcearchive.com/downloads/1.0.1/xeyes_"
232 "04c3md570j67g55h3bix1qbngcslnq91skli51k3g1avki88zkm9"))))
233 (build-system gnu-build-system)
235 `(("libxext" ,libxext)
239 `(("pkg-config" ,pkg-config)))
240 (home-page "http://xeyes.sourcearchive.com/")
241 (synopsis "Follow-the-mouse X demo")
242 (description "Xeyes is a demo program for x.org. It shows eyes
243 following the mouse.")
244 (license license:x11)))
247 (define-public pixman
254 "http://cairographics.org/releases/pixman-"
258 "13m842m9ffac3m9r0b4lvwjhwzg3w4353djkjpf00s0wnm4v5di1"))
259 (patches (search-patches "pixman-CVE-2016-5296.patch"))))
260 (build-system gnu-build-system)
265 `(("pkg-config" ,pkg-config)))
266 (home-page "http://www.pixman.org/")
267 (synopsis "Low-level pixel manipulation library")
268 (description "Pixman is a low-level software library for pixel
269 manipulation, providing features such as image compositing and trapezoid
271 (license license:x11)))
273 (define-public libdrm
281 "https://dri.freedesktop.org/libdrm/libdrm-"
286 "0kq5hmck0gq7b29fr8jp94njc7jpkpbyws12s63w4b21xw750nid"))
287 (patches (search-patches "libdrm-symbol-check.patch"))))
288 (build-system gnu-build-system)
290 `(("libpciaccess" ,libpciaccess)
291 ("libpthread-stubs" ,libpthread-stubs)))
293 `(("pkg-config" ,pkg-config)))
294 (home-page "http://dri.freedesktop.org/wiki/")
295 (synopsis "Direct rendering userspace library")
296 (description "The Direct Rendering Infrastructure, also known as the DRI,
297 is a framework for allowing direct access to graphics hardware under the
298 X Window System in a safe and efficient manner. It includes changes to the
299 X server, to several client libraries, and to the kernel (DRM, Direct
300 Rendering Manager). The most important use for the DRI is to create fast
301 OpenGL implementations providing hardware acceleration for Mesa.
302 Several 3D accelerated drivers have been written to the DRI specification,
303 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
305 (license license:x11)))
316 "http://bitmath.org/code/mtdev/mtdev-"
320 "0zxs7shzgbalkvlaiibi25bd902rbmkv9n1lww6q8j3ri9qdaxv6"))))
321 (build-system gnu-build-system)
322 (home-page "http://bitmath.org/code/mtdev/")
323 (synopsis "Multitouch protocol translation library")
324 (description "Mtdev is a stand-alone library which transforms all
325 variants of kernel MT events to the slotted type B protocol. The events
326 put into mtdev may be from any MT device, specifically type A without
327 contact tracking, type A with contact tracking, or type B with contact
329 (license license:x11)))
331 (define-public startup-notification
333 (name "startup-notification")
338 (uri (string-append "https://www.freedesktop.org/software/" name
339 "/releases/" name "-" version ".tar.gz"))
342 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
343 (build-system gnu-build-system)
344 (native-inputs `(("pkg-config" ,pkg-config)))
347 ("xcb-util" ,xcb-util)))
348 (home-page "http://www.freedesktop.org/wiki/Software/startup-notification/")
349 (synopsis "Application startup notification and feedback library")
351 "Startup-notification contains a reference implementation of the startup
352 notification protocol. The reference implementation is mostly under an X Window
353 System style license, and has no special dependencies.")
354 ;; Most of the code is provided under x11 license.
355 (license license:lgpl2.0+)))
357 (define-public wmctrl
364 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
368 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
369 (patches (search-patches "wmctrl-64-fix.patch"))))
370 (build-system gnu-build-system)
373 (list (string-append "--mandir="
374 (assoc-ref %outputs "out")
377 `(("pkg-config" ,pkg-config)))
382 (home-page "http://tomas.styblo.name/wmctrl/")
383 (synopsis "Command-line tool to control X window managers")
385 "Wmctrl allows to interact with an X window manager that is compatible
386 with the EWMH/NetWM specification. It can query the window manager for
387 information, and request for certain window management actions (resize and
388 move windows, switch between desktops, etc.).")
389 (license license:gpl2+)))
397 (uri (list (string-append
398 "http://linuxbrit.co.uk/downloads/scrot-"
401 "https://fossies.org/linux/privat/old/scrot-"
405 "1wll744rhb49lvr2zs6m93rdmiq59zm344jzqvijrdn24ksiqgb1"))))
406 (build-system gnu-build-system)
408 ;; By default, man and doc are put in PREFIX/{man,doc} instead of
409 ;; PREFIX/share/{man,doc}.
411 (list (string-append "--mandir="
412 (assoc-ref %outputs "out")
415 (modify-phases %standard-phases
417 (lambda* (#:key inputs outputs #:allow-other-keys)
418 (let* ((out (assoc-ref outputs "out"))
419 (doc (string-append out "/share/doc/scrot")))
422 (system* "make" "install"
423 (string-append "docsdir=" doc)))))))))
427 (home-page "http://linuxbrit.co.uk/software/")
428 (synopsis "Command-line screen capture utility for X Window System")
430 "Scrot allows to save a screenshot of a full screen, a window or a part
431 of the screen selected by mouse.")
432 ;; This license removes a clause about X Consortium from the original
434 (license (license:x11-style "file://COPYING"
435 "See 'COPYING' in the distribution."))))
444 "https://github.com/naelstrof/slop/archive/v"
446 (file-name (string-append name "-" version ".tar.gz"))
449 "0z0p4a3p5mc6fjh5f8js9ppb0maxyvfxpiw2n6nqc5nim1kv6bim"))))
450 (build-system cmake-build-system)
451 (arguments '(#:tests? #f)) ; no "check" target
454 ("libxrandr" ,libxrandr)
459 (home-page "https://github.com/naelstrof/slop")
460 (synopsis "Select a region and print its bounds to stdout")
462 "slop (Select Operation) is a tool that queries for a selection from a
463 user and prints the region to stdout. It grabs the mouse and turns it into a
464 crosshair, lets the user click and drag to make a selection (or click on a
465 window) while drawing a pretty box around it, then finally prints the
466 selection's dimensions to stdout.")
467 (license license:gpl3+)))
476 "https://github.com/naelstrof/maim/archive/v"
478 (file-name (string-append name "-" version ".tar.gz"))
481 "0kfp7k55bxc5h6h0wv8bwmsc5ny66h9ra2z4dzs4yzszq16544pv"))))
482 (build-system cmake-build-system)
484 '(#:tests? #f ; no "check" target
486 (modify-phases %standard-phases
487 (add-after 'unpack 'patch-source
488 (lambda* (#:key inputs #:allow-other-keys)
489 (let ((slop (string-append (assoc-ref inputs "slop")
491 ;; "slop" command is hardcoded in the source; replace it
492 ;; with the full file name.
493 (substitute* "src/main.cpp"
494 (("^( +slopcommand.*)\"slop\"" all front)
495 (string-append front "\"" slop "\"")))))))))
498 ("libxrandr" ,libxrandr)
499 ("libxfixes" ,libxfixes)
502 (home-page "https://github.com/naelstrof/maim")
503 (synopsis "Screenshot utility for X Window System")
505 "maim (Make Image) is a tool that takes screenshots of your desktop and
506 saves it in any format. Along with a full screen, it allows you to capture a
507 predefined region or a particular window. Also, it makes it possible to
508 include cursor in the resulting image.")
509 (license license:gpl3+)))
511 (define-public unclutter
518 "http://ftp.x.org/contrib/utilities/unclutter-"
522 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
523 (build-system gnu-build-system)
525 '(#:tests? #f ; no check target
527 (modify-phases %standard-phases
530 (lambda* (#:key inputs outputs #:allow-other-keys)
531 (let* ((out (assoc-ref outputs "out"))
532 (bin (string-append out "/bin"))
533 (man1 (string-append out "/share/man/man1")))
537 (system* "make" "install" "install.man"
538 (string-append "BINDIR=" bin)
539 (string-append "MANDIR=" man1)))))))))
540 (inputs `(("libx11" ,libx11)))
541 (home-page "http://ftp.x.org/contrib/utilities/")
542 (synopsis "Hide idle mouse cursor")
544 "Unclutter is a program which runs permanently in the background of an
545 X11 session. It checks on the X11 pointer (cursor) position every few
546 seconds, and when it finds it has not moved (and no buttons are pressed
547 on the mouse, and the cursor is not in the root window) it creates a
548 small sub-window as a child of the window the cursor is in. The new
549 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
550 invisible cursor. This allows you to see all the text in an xterm or
551 xedit, for example. The human factors crowd would agree it should make
552 things less distracting.")
553 (license license:public-domain)))
555 (define-public xlockmore
561 (uri (list (string-append
562 "http://www.tux.org/~bagleyd/xlock/xlockmore-"
565 "http://www.tux.org/~bagleyd/xlock/xlockmore-old"
566 "/xlockmore-" version
567 "/xlockmore-" version ".tar.xz")))
570 "138d79b8zc2hambbr9fnxp3fhihlcljgqns04zf0kv2f53pavqwl"))))
571 (build-system gnu-build-system)
573 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
574 (assoc-ref %outputs "out")
575 "/lib/X11/app-defaults"))
576 #:tests? #f)) ;no such thing as a test suite
581 ("linux-pam" ,linux-pam)))
582 (home-page "http://www.tux.org/~bagleyd/xlockmore.html")
583 (synopsis "Screen locker for the X Window System")
585 "XLockMore is a classic screen locker and screen saver for the
587 (license (license:non-copyleft #f "See xlock.c.")
588 ))) ; + GPLv2 in modes/glx/biof.c.
597 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
598 name "-" version ".tar.gz"))
601 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
602 (build-system gnu-build-system)
605 (list (string-append "--mandir=" %output "/share/man"))))
610 ("libxinerama" ,libxinerama)))
611 (home-page "https://sourceforge.net/projects/libxosd/")
612 (synopsis "X On Screen Display")
614 "XOSD provides a C library and a simple utility (osd_cat) for displaying
615 transparent text on your screen.")
616 (license license:gpl2+)))
618 (define-public xbindkeys
624 ;; Download from the savannah mirror list fails
626 "http://www.nongnu.org/xbindkeys/xbindkeys-"
631 "060df6d8y727jp1inp7blp44cs8a7jig7vcm8ndsn6gw36z1h3bc"))))
632 (build-system gnu-build-system)
635 ("guile" ,guile-2.0)))
636 (home-page "http://www.nongnu.org/xbindkeys/")
637 (synopsis "Associate a combination of keys with a shell command")
639 "XBindKeys is a program that allows you to launch shell commands with
640 your keyboard or your mouse under the X Window System. It links commands to
641 keys or mouse buttons, using a configuration file. It's independent of the
642 window manager and can capture all keyboard keys (ex: Power, Wake...). It
643 optionally supports a Guile-based configuration file layout, which enables you
644 to access all XBindKeys internals, so you can have key combinations, double
645 clicks or timed double clicks take actions. Also all functions that work in
646 Guile will work for XBindKeys.")
647 (license license:gpl2+)))
655 (file-name (string-append name "-" version ".tar.gz"))
658 "https://github.com/baskerville/sxhkd/archive/"
662 "15grmzpxz5fqlbfg2slj7gb7r6nzkvjmflmbkqx7mlby9pm6wdkj"))))
663 (build-system gnu-build-system)
665 `(("asciidoc" ,asciidoc)
667 ("xcb-util" ,xcb-util)
668 ("xcb-util-keysyms" ,xcb-util-keysyms)
669 ("xcb-util-wm" ,xcb-util-wm)))
671 '(#:phases (alist-delete 'configure %standard-phases)
672 #:tests? #f ; no check target
673 #:make-flags (list "CC=gcc"
674 (string-append "PREFIX=" %output))))
675 (home-page "https://github.com/baskerville/sxhkd")
676 (synopsis "Simple X hotkey daemon")
677 (description "sxhkd is a simple X hotkey daemon with a powerful and
678 compact configuration syntax.")
679 (license license:bsd-2)))
681 (define-public rxvt-unicode
683 (name "rxvt-unicode")
687 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
688 name "-" version ".tar.bz2"))
691 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
692 (build-system gnu-build-system)
694 ;; This sets the destination when installing the necessary terminal
695 ;; capability data, which are not provided by 'ncurses'. See
696 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
697 '(#:make-flags (list (string-append "TERMINFO="
698 (assoc-ref %outputs "out")
699 "/share/terminfo"))))
704 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
706 ("pkg-config" ,pkg-config)))
707 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
708 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
710 (list (search-path-specification
711 (variable "TERMINFO_DIRS")
712 (files '("share/terminfo")))))
713 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
714 (synopsis "Rxvt clone with XFT and unicode support")
715 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
716 intended as an xterm replacement for users who do not require features such as
717 Tektronix 4014 emulation and toolkit-style configurability. It supports
718 unicode, XFT and may be extended with Perl plugins. It also comes with a
719 client/daemon pair that lets you open any number of terminal windows from
720 within a single process.")
721 (license license:gpl3+)))
730 (uri (string-append "https://github.com/alols/" name
731 "/archive/v" version ".tar.gz"))
732 (file-name (string-append name "-" version ".tar.gz"))
735 "0898zc3vwxia00h9kfknpf7jygxgwggrx8v5mxc31w4lzn2dhzm2"))))
736 (build-system gnu-build-system)
738 `(#:tests? #f ; no check target
739 #:phases (alist-delete 'configure %standard-phases) ; no configure script
740 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
741 "MANDIR=/share/man/man1"
744 `(("libxtst" ,libxtst)
747 `(("pkg-config" ,pkg-config)))
748 (home-page "http://github.com/alols/xcape")
749 (synopsis "Use a modifier key in X.org as another key")
751 "This utility for X.org allows to use modifier key as another key when
752 pressed and released on its own. The default behaviour is to generate the
753 Escape key when Left Control is pressed and released on its own.")
754 (license license:gpl3+)))
756 (define-public libwacom
762 (uri (string-append "mirror://sourceforge/linuxwacom/libwacom/"
763 name "-" version ".tar.bz2"))
766 "0qiikh95b9crybkwgcbbv9y80hb7lsbvvmvaia4gbgbdyagwb2m0"))))
767 (build-system glib-or-gtk-build-system)
769 `(("pkg-config" ,pkg-config)))
772 ("libgudev" ,libgudev)
774 ("libxml2" ,libxml2)))
776 ;; libwacom includes header files that include GLib, and libinput uses
777 ;; those header files.
779 (home-page "http://linuxwacom.sourceforge.net/")
780 (synopsis "Helper library for Wacom tablet settings")
782 "Libwacom is a library to help implement Wacom tablet settings. It is
783 intended to be used by client-programs that need model identification. It is
784 already being used by the gnome-settings-daemon and the GNOME Control Center
785 Wacom tablet applet.")
786 (license license:x11)))
788 (define-public xf86-input-wacom
790 (name "xf86-input-wacom")
795 "mirror://sourceforge/linuxwacom/xf86-input-wacom/"
796 name "-" version ".tar.bz2"))
799 "0idhkigl0pnyp08sqm6bqfb4h20v6rjrb71z1gdv59gk7d7qwpgi"))))
802 (list (string-append "--with-sdkdir="
803 (assoc-ref %outputs "out")
805 (string-append "--with-xorg-conf-dir="
806 (assoc-ref %outputs "out")
807 "/share/X11/xorg.conf.d"))))
808 (build-system gnu-build-system)
810 `(("pkg-config" ,pkg-config)))
812 `(("xorg-server" ,xorg-server)
813 ("libxrandr" ,libxrandr)
814 ("libxinerama" ,libxinerama)
817 (home-page "http://linuxwacom.sourceforge.net/")
818 (synopsis "Wacom input driver for X")
820 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
821 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
822 (license license:x11)))
824 (define-public redshift
832 (string-append "https://github.com/jonls/redshift/"
833 "releases/download/v" version
834 "/redshift-" version ".tar.xz"))
837 "0ngkwj7rg8nfk806w0sg443w6wjr91xdc0zisqfm5h2i77wm1qqh"))))
838 (build-system gnu-build-system)
840 `(("pkg-config" ,pkg-config)
841 ("intltool" ,intltool)))
846 ("libxxf86vm" ,libxxf86vm)
847 ("glib" ,glib))) ;for Geoclue2 support
848 (home-page "https://github.com/jonls/redshift")
849 (synopsis "Adjust the color temperature of your screen")
851 "Redshift adjusts the color temperature according to the position of the
852 sun. A different color temperature is set during night and daytime. During
853 twilight and early morning, the color temperature transitions smoothly from
854 night to daytime temperature to allow your eyes to slowly adapt. At night the
855 color temperature should be set to match the lamps in your room.")
856 (license license:gpl3+)))
858 (define-public xscreensaver
860 (name "xscreensaver")
866 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
870 "0v60mdhvv42jla5hljp77igng11kxpah5fs9j7ci65kz0hw552vb"))))
871 (build-system gnu-build-system)
873 `(#:tests? #f ; no check target
875 (modify-phases %standard-phases
876 (add-before 'configure 'adjust-gtk-resource-paths
878 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
879 (("@GTK_DATADIR@") "@datadir@")
880 (("@PO_DATADIR@") "@datadir@")))))
881 #:configure-flags '("--with-pam" "--with-proc-interrupts"
882 "--without-readdisplay")
883 #:make-flags (list (string-append "AD_DIR="
884 (assoc-ref %outputs "out")
885 "/usr/lib/X11/app-defaults"))))
887 `(("pkg-config" ,pkg-config)
888 ("intltool" ,intltool)))
897 ("libglade" ,libglade)
901 ("linux-pam" ,linux-pam)
907 ("libxrandr" ,libxrandr)
910 (home-page "https://www.jwz.org/xscreensaver/")
911 (synopsis "Classic screen saver suite supporting screen locking")
913 "xscreensaver is a popular screen saver collection with many entertaining
914 demos. It also acts as a nice screen locker.")
915 ;; xscreensaver doesn't have a single copyright file and instead relies on
916 ;; source comment headers, though most files have the same lax
917 ;; permissions. To reduce complexity, we're pointing at Debian's
918 ;; breakdown of the copyright information.
919 (license (license:non-copyleft
921 "http://metadata.ftp-master.debian.org/changelogs/"
922 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
924 (define-public xdpyprobe
930 (uri (string-append "https://github.com/alezost/" name
931 "/releases/download/v" version
932 "/" name "-" version ".tar.gz"))
935 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
936 (build-system gnu-build-system)
938 `(("libx11" ,libx11)))
939 (home-page "https://github.com/alezost/xdpyprobe")
940 (synopsis "Probe X server for connectivity")
942 "Xdpyprobe is a tiny C program whose only purpose is to probe a
943 connectivity of the X server running on a particular @code{DISPLAY}.")
944 (license license:gpl3+)))
952 (uri (string-append "https://github.com/DaveDavenport/rofi/"
954 version "/rofi-" version ".tar.xz"))
957 "1s47biv6d68nblpz6d3aklsar1xxxcilzr4y77v3hz2w1wbz2b5m"))))
958 (build-system gnu-build-system)
963 ("startup-notification" ,startup-notification)
964 ("libxkbcommon" ,libxkbcommon)
966 ("xcb-util" ,xcb-util)
967 ("xcb-util-xrm" ,xcb-util-xrm)
968 ("xcb-util-wm" ,xcb-util-wm)))
970 `(("pkg-config" ,pkg-config)))
973 (modify-phases %standard-phases
974 (add-before 'configure 'adjust-tests
976 (substitute* '("test/helper-expand.c")
979 (("g_get_home_dir \\(\\)") "\"/\"")))))))
980 (home-page "https://davedavenport.github.io/rofi/")
981 (synopsis "Application Launcher")
982 (description "Rofi is a minimalist Application Launcher. It memorizes which
983 applications you regularily use and also allows you to search for an application
985 (license license:expat)))
993 (uri (string-append "https://gitlab.com/o9000/" name
994 "/repository/archive.tar.gz?ref=" version))
995 (file-name (string-append name "-" version ".tar.gz"))
998 "0dv7zaj2ahnfclnwnwcz9arrvzxn65yy29z7fqdgifdh3jk1kl2h"))))
999 (build-system cmake-build-system)
1001 '(#:tests? #f ;no test target
1003 (modify-phases %standard-phases
1004 (add-after 'unpack 'fix-installation-prefix
1006 (substitute* "CMakeLists.txt"
1007 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc")))))))
1011 ("librsvg" ,librsvg)
1012 ("libxcomposite" ,libxcomposite)
1013 ("libxdamage" ,libxdamage)
1015 ("libxinerama" ,libxinerama)
1016 ("libxrandr" ,libxrandr)
1017 ("startup-notification" ,startup-notification)))
1019 `(("gettext" ,gettext-minimal)
1020 ("pkg-config" ,pkg-config)))
1021 (home-page "https://gitlab.com/o9000/tint2")
1022 (synopsis "Lightweight task bar")
1024 "Tint2 is a simple task bar made for modern X window managers. It was
1025 specifically made for Openbox but it should also work with other window
1026 managers (GNOME, KDE, XFCE etc.).
1028 The taskbar includes transparency and color settings for the font, icons,
1029 border, and background. It also supports multihead setups, customized mouse
1030 actions, a built-in clock, a battery monitor and a system tray.")
1031 (license license:gpl2)))
1033 (define-public xcb-util-xrm
1035 (name "xcb-util-xrm")
1040 "https://github.com/Airblader/xcb-util-xrm/releases"
1041 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1044 "0vbqhag51i0njc8d5fc8c6aa12496cwrc3s6s7sa5kfc17cwhppp"))
1045 (modules '((guix build utils)))
1048 '(delete-file-recursively "m4"))))
1049 (build-system gnu-build-system)
1051 `(("pkg-config" ,pkg-config)
1053 ("libx11" ,libx11))) ; for tests
1055 `(("libxcb" ,libxcb)
1056 ("xcb-util" ,xcb-util)))
1057 (home-page "https://github.com/Airblader/xcb-util-xrm")
1058 (synopsis "XCB utility functions for the X resource manager")
1060 "The XCB util module provides a number of libraries which sit on
1061 top of libxcb, the core X protocol library, and some of the extension
1062 libraries. These experimental libraries provide convenience functions
1063 and interfaces which make the raw X protocol more usable. Some of the
1064 libraries also provide client-side code which is not strictly part of
1065 the X protocol but which has traditionally been provided by Xlib.
1067 XCB util-xrm module provides the following libraries:
1069 - xrm: utility functions for the X resource manager.")
1070 (license license:x11)))
1072 (define-public xcalib
1078 (uri (string-append "mirror://sourceforge/xcalib/xcalib/" version
1079 "/xcalib-source-" version ".tar.gz"))
1082 "1rh6xb51c5xz926dnn82a2fn643g0sr4a8z66rn6yi7523kjw4ca"))))
1083 (build-system gnu-build-system)
1085 '(#:make-flags '("CC=gcc")
1086 #:tests? #f ; No test suite
1087 #:phases (modify-phases %standard-phases
1090 (lambda* (#:key outputs #:allow-other-keys)
1091 (let* ((out (assoc-ref outputs "out"))
1092 (bin (string-append out "/bin")))
1093 (install-file "xcalib" bin))))
1094 (add-after 'install 'install-doc
1095 (lambda* (#:key outputs #:allow-other-keys)
1096 (let ((doc (string-append(assoc-ref outputs "out")
1097 "/share/doc/xcalib")))
1098 (install-file "README" doc)
1099 ;; Avoid unspecified return value.
1101 (inputs `(("libx11", libx11)
1102 ("libxext", libxext)
1103 ("libxxf86vm", libxxf86vm)))
1104 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1105 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1106 profiles to the video card's gamma ramp. It does work with most video card
1107 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1108 invert colors on a specific display/screen.")
1109 (home-page "http://xcalib.sourceforge.net/")
1110 (license license:gpl2)))