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 "http://xkbcommon.org/download/" name "-"
152 "0q47xa1szlxwgvwmhv4b7xwawnykz1hnc431d84nj8dlh2q8f22v"))))
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 "http://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 "1px91j6imaaq2fy8ksvgldmv0cdz3w379jqiciqvqa99jajxjjsv"))
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 "1p2ih123zkj8rxz8acsxpaim1kq57f4rbq7zqsibafn5rkw5c5is"))))
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 "14jksv05xyydbpb9v8k3jgq7sl72bh356iapymg02vwg519i1d5k"))))
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"))
687 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
688 (build-system gnu-build-system)
690 ;; This sets the destination when installing the necessary terminal
691 ;; capability data, which are not provided by 'ncurses'. See
692 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
693 `(#:make-flags (list (string-append "TERMINFO="
694 (assoc-ref %outputs "out")
697 (modify-phases %standard-phases
698 (add-after 'install 'install-desktop-urxvt
699 (lambda* (#:key outputs #:allow-other-keys)
700 (let* ((output (assoc-ref outputs "out"))
701 (desktop (string-append output "/share/applications")))
704 (string-append desktop "/urxvt.desktop")
711 TryExec=~@*~a/bin/urxvt~@
716 (add-after 'install 'install-desktop-urxvtc
717 (lambda* (#:key outputs #:allow-other-keys)
718 (let* ((output (assoc-ref outputs "out"))
719 (desktop (string-append output "/share/applications")))
722 (string-append desktop "/urxvtc.desktop")
727 Comment=Rxvt clone with XFT and unicode support~@
729 TryExec=~@*~a/bin/urxvtc~@
738 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
740 ("pkg-config" ,pkg-config)))
741 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
742 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
744 (list (search-path-specification
745 (variable "TERMINFO_DIRS")
746 (files '("share/terminfo")))))
747 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
748 (synopsis "Rxvt clone with XFT and unicode support")
749 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
750 intended as an xterm replacement for users who do not require features such as
751 Tektronix 4014 emulation and toolkit-style configurability. It supports
752 unicode, XFT and may be extended with Perl plugins. It also comes with a
753 client/daemon pair that lets you open any number of terminal windows from
754 within a single process.")
755 (license license:gpl3+)))
764 (uri (string-append "https://github.com/alols/" name
765 "/archive/v" version ".tar.gz"))
766 (file-name (string-append name "-" version ".tar.gz"))
769 "0898zc3vwxia00h9kfknpf7jygxgwggrx8v5mxc31w4lzn2dhzm2"))))
770 (build-system gnu-build-system)
772 `(#:tests? #f ; no check target
773 #:phases (alist-delete 'configure %standard-phases) ; no configure script
774 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
775 "MANDIR=/share/man/man1"
778 `(("libxtst" ,libxtst)
781 `(("pkg-config" ,pkg-config)))
782 (home-page "http://github.com/alols/xcape")
783 (synopsis "Use a modifier key in X.org as another key")
785 "This utility for X.org allows to use modifier key as another key when
786 pressed and released on its own. The default behaviour is to generate the
787 Escape key when Left Control is pressed and released on its own.")
788 (license license:gpl3+)))
790 (define-public libwacom
796 (uri (string-append "mirror://sourceforge/linuxwacom/libwacom/"
797 name "-" version ".tar.bz2"))
800 "0qiikh95b9crybkwgcbbv9y80hb7lsbvvmvaia4gbgbdyagwb2m0"))))
801 (build-system glib-or-gtk-build-system)
803 `(("pkg-config" ,pkg-config)))
806 ("libgudev" ,libgudev)
808 ("libxml2" ,libxml2)))
810 ;; libwacom includes header files that include GLib, and libinput uses
811 ;; those header files.
813 (home-page "http://linuxwacom.sourceforge.net/")
814 (synopsis "Helper library for Wacom tablet settings")
816 "Libwacom is a library to help implement Wacom tablet settings. It is
817 intended to be used by client-programs that need model identification. It is
818 already being used by the gnome-settings-daemon and the GNOME Control Center
819 Wacom tablet applet.")
820 (license license:x11)))
822 (define-public xf86-input-wacom
824 (name "xf86-input-wacom")
829 "mirror://sourceforge/linuxwacom/xf86-input-wacom/"
830 name "-" version ".tar.bz2"))
833 "0idhkigl0pnyp08sqm6bqfb4h20v6rjrb71z1gdv59gk7d7qwpgi"))))
836 (list (string-append "--with-sdkdir="
837 (assoc-ref %outputs "out")
839 (string-append "--with-xorg-conf-dir="
840 (assoc-ref %outputs "out")
841 "/share/X11/xorg.conf.d"))))
842 (build-system gnu-build-system)
844 `(("pkg-config" ,pkg-config)))
846 `(("xorg-server" ,xorg-server)
847 ("libxrandr" ,libxrandr)
848 ("libxinerama" ,libxinerama)
851 (home-page "http://linuxwacom.sourceforge.net/")
852 (synopsis "Wacom input driver for X")
854 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
855 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
856 (license license:x11)))
858 (define-public redshift
866 (string-append "https://github.com/jonls/redshift/"
867 "releases/download/v" version
868 "/redshift-" version ".tar.xz"))
871 "0ngkwj7rg8nfk806w0sg443w6wjr91xdc0zisqfm5h2i77wm1qqh"))))
872 (build-system gnu-build-system)
874 `(("pkg-config" ,pkg-config)
875 ("intltool" ,intltool)))
880 ("libxxf86vm" ,libxxf86vm)
881 ("glib" ,glib))) ;for Geoclue2 support
882 (home-page "https://github.com/jonls/redshift")
883 (synopsis "Adjust the color temperature of your screen")
885 "Redshift adjusts the color temperature according to the position of the
886 sun. A different color temperature is set during night and daytime. During
887 twilight and early morning, the color temperature transitions smoothly from
888 night to daytime temperature to allow your eyes to slowly adapt. At night the
889 color temperature should be set to match the lamps in your room.")
890 (license license:gpl3+)))
892 (define-public xscreensaver
894 (name "xscreensaver")
900 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
904 "0v60mdhvv42jla5hljp77igng11kxpah5fs9j7ci65kz0hw552vb"))))
905 (build-system gnu-build-system)
907 `(#:tests? #f ; no check target
909 (modify-phases %standard-phases
910 (add-before 'configure 'adjust-gtk-resource-paths
912 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
913 (("@GTK_DATADIR@") "@datadir@")
914 (("@PO_DATADIR@") "@datadir@")))))
915 #:configure-flags '("--with-pam" "--with-proc-interrupts"
916 "--without-readdisplay")
917 #:make-flags (list (string-append "AD_DIR="
918 (assoc-ref %outputs "out")
919 "/usr/lib/X11/app-defaults"))))
921 `(("pkg-config" ,pkg-config)
922 ("intltool" ,intltool)))
931 ("libglade" ,libglade)
935 ("linux-pam" ,linux-pam)
941 ("libxrandr" ,libxrandr)
944 (home-page "https://www.jwz.org/xscreensaver/")
945 (synopsis "Classic screen saver suite supporting screen locking")
947 "xscreensaver is a popular screen saver collection with many entertaining
948 demos. It also acts as a nice screen locker.")
949 ;; xscreensaver doesn't have a single copyright file and instead relies on
950 ;; source comment headers, though most files have the same lax
951 ;; permissions. To reduce complexity, we're pointing at Debian's
952 ;; breakdown of the copyright information.
953 (license (license:non-copyleft
955 "http://metadata.ftp-master.debian.org/changelogs/"
956 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
958 (define-public xdpyprobe
964 (uri (string-append "https://github.com/alezost/" name
965 "/releases/download/v" version
966 "/" name "-" version ".tar.gz"))
969 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
970 (build-system gnu-build-system)
972 `(("libx11" ,libx11)))
973 (home-page "https://github.com/alezost/xdpyprobe")
974 (synopsis "Probe X server for connectivity")
976 "Xdpyprobe is a tiny C program whose only purpose is to probe a
977 connectivity of the X server running on a particular @code{DISPLAY}.")
978 (license license:gpl3+)))
986 (uri (string-append "https://github.com/DaveDavenport/rofi/"
988 version "/rofi-" version ".tar.xz"))
991 "1s47biv6d68nblpz6d3aklsar1xxxcilzr4y77v3hz2w1wbz2b5m"))))
992 (build-system gnu-build-system)
997 ("startup-notification" ,startup-notification)
998 ("libxkbcommon" ,libxkbcommon)
1000 ("xcb-util" ,xcb-util)
1001 ("xcb-util-xrm" ,xcb-util-xrm)
1002 ("xcb-util-wm" ,xcb-util-wm)))
1004 `(("pkg-config" ,pkg-config)))
1006 `(#:parallel-tests? #f ; May fail in some circumstances.
1008 (modify-phases %standard-phases
1009 (add-before 'configure 'adjust-tests
1011 (substitute* '("test/helper-expand.c")
1014 (("g_get_home_dir \\(\\)") "\"/\"")))))))
1015 (home-page "https://davedavenport.github.io/rofi/")
1016 (synopsis "Application Launcher")
1017 (description "Rofi is a minimalist Application Launcher. It memorizes which
1018 applications you regularily use and also allows you to search for an application
1020 (license license:expat)))
1022 (define-public tint2
1028 (uri (string-append "https://gitlab.com/o9000/" name
1029 "/repository/archive.tar.gz?ref=" version))
1030 (file-name (string-append name "-" version ".tar.gz"))
1033 "0dv7zaj2ahnfclnwnwcz9arrvzxn65yy29z7fqdgifdh3jk1kl2h"))))
1034 (build-system cmake-build-system)
1036 '(#:tests? #f ;no test target
1038 (modify-phases %standard-phases
1039 (add-after 'unpack 'fix-installation-prefix
1041 (substitute* "CMakeLists.txt"
1042 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc")))))))
1046 ("librsvg" ,librsvg)
1047 ("libxcomposite" ,libxcomposite)
1048 ("libxdamage" ,libxdamage)
1050 ("libxinerama" ,libxinerama)
1051 ("libxrandr" ,libxrandr)
1052 ("startup-notification" ,startup-notification)))
1054 `(("gettext" ,gettext-minimal)
1055 ("pkg-config" ,pkg-config)))
1056 (home-page "https://gitlab.com/o9000/tint2")
1057 (synopsis "Lightweight task bar")
1059 "Tint2 is a simple task bar made for modern X window managers. It was
1060 specifically made for Openbox but it should also work with other window
1061 managers (GNOME, KDE, XFCE etc.).
1063 The taskbar includes transparency and color settings for the font, icons,
1064 border, and background. It also supports multihead setups, customized mouse
1065 actions, a built-in clock, a battery monitor and a system tray.")
1066 (license license:gpl2)))
1069 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1073 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1074 revision "." (string-take commit 7)))
1078 (url "https://github.com/robm/dzen.git")
1080 (file-name (string-append name "-" version))
1083 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1084 (build-system gnu-build-system)
1086 `(#:tests? #f ; No test suite.
1087 #:make-flags ; Replacement for `config.mk`.
1089 (string-append "VERSION = " ,version)
1090 (string-append "PREFIX = " %output)
1091 "MANPREFIX = ${PREFIX}/share/man"
1093 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1094 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1095 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1100 (modify-phases %standard-phases
1101 (delete 'configure) ; No configuration script.
1102 ;; Use own make-flags instead of `config.mk`.
1103 (add-before 'build 'dont-include-config-mk
1105 (substitute* "Makefile" (("include config.mk") ""))
1108 `(("libx11" ,libx11)
1111 ("libxinerama" ,libxinerama)))
1112 (native-inputs `(("pkg-config" ,pkg-config)))
1113 (synopsis "General purpose messaging, notification and menuing program for X11")
1114 (description "Dzen is a general purpose messaging, notification and menuing
1115 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1116 (home-page "https://github.com/robm/dzen")
1117 (license license:expat))))
1119 (define-public xcb-util-xrm
1121 (name "xcb-util-xrm")
1126 "https://github.com/Airblader/xcb-util-xrm/releases"
1127 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1130 "0vbqhag51i0njc8d5fc8c6aa12496cwrc3s6s7sa5kfc17cwhppp"))
1131 (modules '((guix build utils)))
1134 '(delete-file-recursively "m4"))))
1135 (build-system gnu-build-system)
1137 `(("pkg-config" ,pkg-config)
1139 ("libx11" ,libx11))) ; for tests
1141 `(("libxcb" ,libxcb)
1142 ("xcb-util" ,xcb-util)))
1143 (home-page "https://github.com/Airblader/xcb-util-xrm")
1144 (synopsis "XCB utility functions for the X resource manager")
1146 "The XCB util module provides a number of libraries which sit on
1147 top of libxcb, the core X protocol library, and some of the extension
1148 libraries. These experimental libraries provide convenience functions
1149 and interfaces which make the raw X protocol more usable. Some of the
1150 libraries also provide client-side code which is not strictly part of
1151 the X protocol but which has traditionally been provided by Xlib.
1153 XCB util-xrm module provides the following libraries:
1155 - xrm: utility functions for the X resource manager.")
1156 (license license:x11)))
1158 (define-public xcalib
1164 (uri (string-append "mirror://sourceforge/xcalib/xcalib/" version
1165 "/xcalib-source-" version ".tar.gz"))
1168 "1rh6xb51c5xz926dnn82a2fn643g0sr4a8z66rn6yi7523kjw4ca"))))
1169 (build-system gnu-build-system)
1171 '(#:make-flags '("CC=gcc")
1172 #:tests? #f ; No test suite
1173 #:phases (modify-phases %standard-phases
1176 (lambda* (#:key outputs #:allow-other-keys)
1177 (let* ((out (assoc-ref outputs "out"))
1178 (bin (string-append out "/bin")))
1179 (install-file "xcalib" bin))))
1180 (add-after 'install 'install-doc
1181 (lambda* (#:key outputs #:allow-other-keys)
1182 (let ((doc (string-append(assoc-ref outputs "out")
1183 "/share/doc/xcalib")))
1184 (install-file "README" doc)
1185 ;; Avoid unspecified return value.
1187 (inputs `(("libx11", libx11)
1188 ("libxext", libxext)
1189 ("libxxf86vm", libxxf86vm)))
1190 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1191 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1192 profiles to the video card's gamma ramp. It does work with most video card
1193 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1194 invert colors on a specific display/screen.")
1195 (home-page "http://xcalib.sourceforge.net/")
1196 (license license:gpl2)))