1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
5 ;;; Copyright © 2014, 2015, 2016 Alex Kost <alezost@gmail.com>
6 ;;; Copyright © 2013, 2015, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
7 ;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
8 ;;; Copyright © 2015 Alexander I.Grafov <grafov@gmail.com>
9 ;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
10 ;;; Copyright © 2015 xd1le <elisp.vim@gmail.com>
11 ;;; Copyright © 2015 Florian Paul Schmidt <mista.tapas@gmx.net>
12 ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
13 ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
14 ;;; Copyright © 2016, 2017 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 <ng0@infotropique.org>
21 ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
22 ;;; Copyright © 2017 Marek Benc <dusxmt@gmx.com>
23 ;;; Copyright © 2017 Mike Gerwitz <mtg@gnu.org>
25 ;;; This file is part of GNU Guix.
27 ;;; GNU Guix is free software; you can redistribute it and/or modify it
28 ;;; under the terms of the GNU General Public License as published by
29 ;;; the Free Software Foundation; either version 3 of the License, or (at
30 ;;; your option) any later version.
32 ;;; GNU Guix is distributed in the hope that it will be useful, but
33 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
34 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35 ;;; GNU General Public License for more details.
37 ;;; You should have received a copy of the GNU General Public License
38 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
40 (define-module (gnu packages xdisorg)
41 #:use-module ((guix licenses) #:prefix license:)
42 #:use-module (guix packages)
43 #:use-module (guix download)
44 #:use-module (guix git-download)
45 #:use-module (guix utils)
46 #:use-module (guix build-system cmake)
47 #:use-module (guix build-system gnu)
48 #:use-module (guix build-system glib-or-gtk)
49 #:use-module (guix build-system python)
50 #:use-module (gnu packages)
51 #:use-module (gnu packages documentation)
52 #:use-module (gnu packages algebra)
53 #:use-module (gnu packages autotools)
54 #:use-module (gnu packages check)
55 #:use-module (gnu packages compression)
56 #:use-module (gnu packages image)
57 #:use-module (gnu packages pkg-config)
58 #:use-module (gnu packages flex)
59 #:use-module (gnu packages gettext)
60 #:use-module (gnu packages gl)
61 #:use-module (gnu packages glib)
62 #:use-module (gnu packages gnome)
63 #:use-module (gnu packages icu4c)
64 #:use-module (gnu packages maths)
65 #:use-module (gnu packages m4)
66 #:use-module (gnu packages ncurses)
67 #:use-module (gnu packages perl)
68 #:use-module (gnu packages python)
69 #:use-module (gnu packages linux)
70 #:use-module (gnu packages gl)
71 #:use-module (gnu packages guile)
72 #:use-module (gnu packages xml)
73 #:use-module (gnu packages gtk)
74 #:use-module (gnu packages xorg)
75 #:use-module (gnu packages bison)
76 #:use-module (ice-9 match))
78 ;; packages outside the x.org system proper
86 (uri (string-append "http://christian.amsuess.com/tools/" name
87 "/files/" name "-" version ".tar.gz"))
90 "1i3f1agixxbfy4kxikb2b241p7c2lg73cl9wqfvlwz3q6zf5faxv"))
91 (modules '((guix build utils)))
94 ;; Do not record a timestamp and file name in gzipped man
95 ;; pages (this is equivalent to 'gzip --no-name'.)
96 (substitute* "setup.py"
97 (("gzip\\.open\\(gzfile, 'w', 9\\)")
98 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)"))
100 (build-system python-build-system)
102 `(#:python ,python-2 ;incompatible with python 3
104 (modify-phases %standard-phases
105 (add-before 'build 'configure
106 (lambda* (#:key inputs #:allow-other-keys)
107 (substitute* "screenlayout/xrandr.py"
108 (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr")
111 #:tests? #f)) ;no tests
112 (inputs `(("pygtk" ,python2-pygtk)
114 (native-inputs `(("gettext" ,gettext-minimal)
115 ("python-docutils" ,python2-docutils)))
116 (home-page "https://christian.amsuess.com/tools/arandr/")
117 (synopsis "Another RandR graphical user interface")
118 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
119 (description "ARandR is designed to provide a simple visual front end for
120 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
121 shown graphically and can be changed in a drag-and-drop way. Configurations
122 are saved as executable shell scripts which can be loaded without using this
124 (license license:gpl3+)))
133 (uri (string-append "https://github.com/astrand/xclip"
134 "/archive/" version ".tar.gz"))
135 (file-name (string-append name "-" version ".tar.gz"))
138 "0n7pczk9vv30zf8qfln8ba3hnif9yfdxg0m84djac469wc28hnya"))))
139 (build-system gnu-build-system)
141 '(#:tests? #f)) ;there is no test suite
143 `(("autoconf" ,autoconf)
144 ("automake" ,automake)))
145 (inputs `(("libxmu" ,libxmu)
147 (home-page "https://github.com/astrand/xclip")
148 (synopsis "Command line interface to X11 clipboard")
149 (description "Xclip is a command line interface to the X11 clipboard. It
150 can also be used for copying files, as an alternative to sftp/scp, thus
151 avoiding password prompts when X11 forwarding has already been setup.")
152 (license license:gpl2+)))
154 (define-public libxkbcommon
156 (name "libxkbcommon")
160 (uri (string-append "https://xkbcommon.org/download/" name "-"
164 "12z6hih3n1r0asp2hzp9qsiwdfkfz46jwp06x8kprr0r5rfk0nds"))))
165 (build-system gnu-build-system)
169 ("xkeyboard-config" ,xkeyboard-config)))
172 ("pkg-config" ,pkg-config)))
175 (list (string-append "--with-xkb-config-root="
176 (assoc-ref %build-inputs "xkeyboard-config")
178 (string-append "--with-x-locale-root="
179 (assoc-ref %build-inputs "libx11")
180 "/share/X11/locale"))))
181 (home-page "https://xkbcommon.org/")
182 (synopsis "Library to handle keyboard descriptions")
183 (description "Xkbcommon is a library to handle keyboard descriptions,
184 including loading them from disk, parsing them and handling their
185 state. It is mainly meant for client toolkits, window systems, and other
186 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
187 Clutter, and more. Despite the name, it is not currently used by anything
189 (license (license:x11-style "file://COPYING"
190 "See 'COPYING' in the distribution."))))
192 (define-public libfakekey
199 (uri (string-append "https://downloads.yoctoproject.org/releases"
200 "/matchbox/libfakekey/" version "/libfakekey-"
204 "1501l0bflcrhqbf12n7a7cqilvr0w4xawxw0vw75p2940nkl4464"))))
205 (build-system gnu-build-system)
207 `(#:make-flags (list "AM_LDFLAGS=-lX11")))
209 `(("pkg-config" ,pkg-config)))
211 `(("libxtst" ,libxtst)
213 (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox")
214 (synopsis "X virtual keyboard library")
216 "Libfakekey is a virtual keyboard library for X.")
217 (license license:gpl2)))
219 (define-public xdotool
222 (version "3.20150503.1")
227 "https://github.com/jordansissel/xdotool/releases/download/v"
228 version "/xdotool-" version ".tar.gz"))
231 "1lcngsw33fy9my21rdiz1gs474bfdqcfxjrnfggbx4aypn1nhcp8"))
232 (patches (search-patches "xdotool-fix-makefile.patch"))))
233 (build-system gnu-build-system)
235 '(#:tests? #f ; Test suite requires a lot of black magic
237 (modify-phases %standard-phases
239 (lambda* (#:key outputs #:allow-other-keys #:rest args)
240 (setenv "PREFIX" (assoc-ref outputs "out"))
242 (string-append "-Wl,-rpath="
243 (assoc-ref %outputs "out") "/lib"))
244 (setenv "CC" "gcc"))))))
245 (native-inputs `(("perl" ,perl))) ; for pod2man
246 (inputs `(("libx11" ,libx11)
249 ("libxinerama" ,libxinerama)
251 ("libxkbcommon" ,libxkbcommon)))
252 (home-page "http://www.semicomplete.com/projects/xdotool")
253 (synopsis "Fake keyboard/mouse input, window management, and more")
254 (description "Xdotool lets you simulate keyboard input and mouse activity,
255 move and resize windows, etc. It does this using X11's XTEST extension and
256 other Xlib functions. Additionally, you can search for windows and move,
257 resize, hide, and modify window properties like the title. If your window
258 manager supports it, you can use xdotool to switch desktops, move windows
259 between desktops, and change the number of desktops.")
260 (license license:bsd-3)))
270 "http://xeyes.sourcearchive.com/downloads/1.0.1/xeyes_"
275 "04c3md570j67g55h3bix1qbngcslnq91skli51k3g1avki88zkm9"))))
276 (build-system gnu-build-system)
278 `(("libxext" ,libxext)
282 `(("pkg-config" ,pkg-config)))
283 (home-page "http://xeyes.sourcearchive.com/")
284 (synopsis "Follow-the-mouse X demo")
285 (description "Xeyes is a demo program for x.org. It shows eyes
286 following the mouse.")
287 (license license:x11)))
290 (define-public pixman
297 "http://cairographics.org/releases/pixman-"
301 "13m842m9ffac3m9r0b4lvwjhwzg3w4353djkjpf00s0wnm4v5di1"))
302 (patches (search-patches "pixman-CVE-2016-5296.patch"))))
303 (build-system gnu-build-system)
308 `(("pkg-config" ,pkg-config)))
309 (home-page "http://www.pixman.org/")
310 (synopsis "Low-level pixel manipulation library")
311 (description "Pixman is a low-level software library for pixel
312 manipulation, providing features such as image compositing and trapezoid
314 (license license:x11)))
316 (define-public libdrm
324 "https://dri.freedesktop.org/libdrm/libdrm-"
329 "0bm06vqqjbb06mlz2f2h4man0xp0dz928pyycs8q1d5vma19g7v2"))
330 (patches (search-patches "libdrm-symbol-check.patch"))))
331 (build-system gnu-build-system)
334 '(,@(match (%current-system)
336 '("--enable-exynos-experimental-api"
337 "--enable-omap-experimental-api"
338 ;; XXX: This fails a symbol check on a build machine:
339 ;; <https://hydra.gnu.org/build/2270314/nixlog/4/raw>
340 ;; TODO: Update the list of symbols.
341 ;;"--enable-etnaviv-experimental-api"
342 "--enable-tegra-experimental-api"
343 "--enable-freedreno-kgsl"))
345 '("--enable-tegra-experimental-api"
346 "--enable-freedreno-kgsl"))
349 `(("libpciaccess" ,libpciaccess)))
351 `(("pkg-config" ,pkg-config)))
352 (home-page "https://dri.freedesktop.org/wiki/")
353 (synopsis "Direct rendering userspace library")
354 (description "The Direct Rendering Infrastructure, also known as the DRI,
355 is a framework for allowing direct access to graphics hardware under the
356 X Window System in a safe and efficient manner. It includes changes to the
357 X server, to several client libraries, and to the kernel (DRM, Direct
358 Rendering Manager). The most important use for the DRI is to create fast
359 OpenGL implementations providing hardware acceleration for Mesa.
360 Several 3D accelerated drivers have been written to the DRI specification,
361 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
363 (license license:x11)))
374 "http://bitmath.org/code/mtdev/mtdev-"
378 "0zxs7shzgbalkvlaiibi25bd902rbmkv9n1lww6q8j3ri9qdaxv6"))))
379 (build-system gnu-build-system)
380 (home-page "http://bitmath.org/code/mtdev/")
381 (synopsis "Multitouch protocol translation library")
382 (description "Mtdev is a stand-alone library which transforms all
383 variants of kernel MT events to the slotted type B protocol. The events
384 put into mtdev may be from any MT device, specifically type A without
385 contact tracking, type A with contact tracking, or type B with contact
387 (license license:x11)))
389 (define-public startup-notification
391 (name "startup-notification")
396 (uri (string-append "https://www.freedesktop.org/software/" name
397 "/releases/" name "-" version ".tar.gz"))
400 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
401 (build-system gnu-build-system)
402 (native-inputs `(("pkg-config" ,pkg-config)))
405 ("xcb-util" ,xcb-util)))
406 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
407 (synopsis "Application startup notification and feedback library")
409 "Startup-notification contains a reference implementation of the startup
410 notification protocol. The reference implementation is mostly under an X Window
411 System style license, and has no special dependencies.")
412 ;; Most of the code is provided under x11 license.
413 (license license:lgpl2.0+)))
415 (define-public wmctrl
422 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
426 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
427 (patches (search-patches "wmctrl-64-fix.patch"))))
428 (build-system gnu-build-system)
431 (list (string-append "--mandir="
432 (assoc-ref %outputs "out")
435 `(("pkg-config" ,pkg-config)))
440 (home-page "http://tomas.styblo.name/wmctrl/")
441 (synopsis "Command-line tool to control X window managers")
443 "Wmctrl allows to interact with an X window manager that is compatible
444 with the EWMH/NetWM specification. It can query the window manager for
445 information, and request for certain window management actions (resize and
446 move windows, switch between desktops, etc.).")
447 (license license:gpl2+)))
455 (uri (list (string-append
456 "http://linuxbrit.co.uk/downloads/scrot-"
459 "https://fossies.org/linux/privat/old/scrot-"
463 "1wll744rhb49lvr2zs6m93rdmiq59zm344jzqvijrdn24ksiqgb1"))))
464 (build-system gnu-build-system)
466 ;; By default, man and doc are put in PREFIX/{man,doc} instead of
467 ;; PREFIX/share/{man,doc}.
469 (list (string-append "--mandir="
470 (assoc-ref %outputs "out")
473 (modify-phases %standard-phases
475 (lambda* (#:key inputs outputs #:allow-other-keys)
476 (let* ((out (assoc-ref outputs "out"))
477 (doc (string-append out "/share/doc/scrot")))
480 (system* "make" "install"
481 (string-append "docsdir=" doc)))))))))
485 (home-page "http://linuxbrit.co.uk/software/")
486 (synopsis "Command-line screen capture utility for X Window System")
488 "Scrot allows to save a screenshot of a full screen, a window or a part
489 of the screen selected by mouse.")
490 ;; This license removes a clause about X Consortium from the original
492 (license (license:x11-style "file://COPYING"
493 "See 'COPYING' in the distribution."))))
502 "https://github.com/naelstrof/slop/archive/v"
504 (file-name (string-append name "-" version ".tar.gz"))
507 "0gxi174vi13ldjaf776s2jcdyy379lnwwml29nk1bkzj5d5gpghm"))))
508 (build-system cmake-build-system)
510 '(#:tests? #f)) ; no "check" target
516 ("libxrender" ,libxrender)
518 (home-page "https://github.com/naelstrof/slop")
519 (synopsis "Select a region and print its bounds to stdout")
521 "slop (Select Operation) is a tool that queries for a selection from a
522 user and prints the region to stdout. It grabs the mouse and turns it into a
523 crosshair, lets the user click and drag to make a selection (or click on a
524 window) while drawing a pretty box around it, then finally prints the
525 selection's dimensions to stdout.")
526 (license license:gpl3+)))
535 "https://github.com/naelstrof/maim/archive/v"
537 (file-name (string-append name "-" version ".tar.gz"))
540 "0f54s7csrxjd5r9anqqa92diwmzdplpws3llmbr6g3c0l6bp8815"))))
541 (build-system cmake-build-system)
543 '(#:tests? #f)) ; no "check" target
546 ("libjpeg" ,libjpeg-turbo)
548 ("libxcomposite" ,libxcomposite)
549 ("libxfixes" ,libxfixes)
550 ("libxrandr" ,libxrandr)
554 (home-page "https://github.com/naelstrof/maim")
555 (synopsis "Screenshot utility for X Window System")
557 "maim (Make Image) is a tool that takes screenshots of your desktop and
558 saves it in any format. Along with a full screen, it allows you to capture a
559 predefined region or a particular window. Also, it makes it possible to
560 include cursor in the resulting image.")
561 (license license:gpl3+)))
563 (define-public unclutter
570 "http://ftp.x.org/contrib/utilities/unclutter-"
574 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
575 (build-system gnu-build-system)
577 '(#:tests? #f ; no check target
579 (modify-phases %standard-phases
582 (lambda* (#:key inputs outputs #:allow-other-keys)
583 (let* ((out (assoc-ref outputs "out"))
584 (bin (string-append out "/bin"))
585 (man1 (string-append out "/share/man/man1")))
589 (system* "make" "install" "install.man"
590 (string-append "BINDIR=" bin)
591 (string-append "MANDIR=" man1)))))))))
592 (inputs `(("libx11" ,libx11)))
593 (home-page "http://ftp.x.org/contrib/utilities/")
594 (synopsis "Hide idle mouse cursor")
596 "Unclutter is a program which runs permanently in the background of an
597 X11 session. It checks on the X11 pointer (cursor) position every few
598 seconds, and when it finds it has not moved (and no buttons are pressed
599 on the mouse, and the cursor is not in the root window) it creates a
600 small sub-window as a child of the window the cursor is in. The new
601 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
602 invisible cursor. This allows you to see all the text in an xterm or
603 xedit, for example. The human factors crowd would agree it should make
604 things less distracting.")
605 (license license:public-domain)))
607 (define-public xautomation
614 (uri (string-append "https://www.hoopajoo.net/static/projects/"
615 "xautomation-" version ".tar.gz"))
619 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
620 (build-system gnu-build-system)
625 ("libxtst" ,libxtst)))
627 `(("inputproto" ,inputproto)
628 ("xextproto" ,xextproto)
630 (synopsis "Tools to automate tasks in X such as detecting on screen images")
632 "Xautomation can control X from the command line for scripts, and
633 do visual scraping to find things on the screen. The control interface
634 allows mouse movement, clicking, button up/down, key up/down, etc, and
635 uses the XTest extension so you don't have the annoying problems that
636 xse has when apps ignore sent events. The visgrep program can find
637 images inside of images and reports the coordinates, allowing progams
638 to find buttons, etc, on the screen to click on.")
639 (home-page "https://www.hoopajoo.net/projects/xautomation.html")
640 (license license:gpl2+)))
642 (define-public xlockmore
648 (uri (list (string-append "http://sillycycle.com/xlock/"
649 name "-" version ".tar.xz")
650 ;; Previous releases are moved to a subdirectory.
651 (string-append "http://sillycycle.com/xlock/"
653 name "-" version ".tar.xz")))
656 "1y3f76rq2nd10fgi2rx81aj6pijglmm661vjsxi05hpg35dzmwfl"))))
657 (build-system gnu-build-system)
659 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
660 (assoc-ref %outputs "out")
661 "/lib/X11/app-defaults"))
662 #:tests? #f)) ;no such thing as a test suite
667 ("linux-pam" ,linux-pam)))
668 (home-page "http://sillycycle.com/xlockmore.html")
669 (synopsis "Screen locker for the X Window System")
671 "XLockMore is a classic screen locker and screen saver for the
673 (license (license:non-copyleft #f "See xlock.c.")
674 ))) ; + GPLv2 in modes/glx/biof.c.
683 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
684 name "-" version ".tar.gz"))
687 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
688 (build-system gnu-build-system)
691 (list (string-append "--mandir=" %output "/share/man"))))
696 ("libxinerama" ,libxinerama)))
697 (home-page "https://sourceforge.net/projects/libxosd/")
698 (synopsis "X On Screen Display")
700 "XOSD provides a C library and a simple utility (osd_cat) for displaying
701 transparent text on your screen.")
702 (license license:gpl2+)))
704 (define-public xbindkeys
710 ;; Download from the savannah mirror list fails
712 "http://www.nongnu.org/xbindkeys/xbindkeys-"
717 "060df6d8y727jp1inp7blp44cs8a7jig7vcm8ndsn6gw36z1h3bc"))))
718 (build-system gnu-build-system)
721 ("guile" ,guile-2.0)))
722 (home-page "https://www.nongnu.org/xbindkeys/")
723 (synopsis "Associate a combination of keys with a shell command")
725 "XBindKeys is a program that allows you to launch shell commands with
726 your keyboard or your mouse under the X Window System. It links commands to
727 keys or mouse buttons, using a configuration file. It's independent of the
728 window manager and can capture all keyboard keys (ex: Power, Wake...). It
729 optionally supports a Guile-based configuration file layout, which enables you
730 to access all XBindKeys internals, so you can have key combinations, double
731 clicks or timed double clicks take actions. Also all functions that work in
732 Guile will work for XBindKeys.")
733 (license license:gpl2+)))
741 (file-name (string-append name "-" version ".tar.gz"))
744 "https://github.com/baskerville/sxhkd/archive/"
748 "15grmzpxz5fqlbfg2slj7gb7r6nzkvjmflmbkqx7mlby9pm6wdkj"))))
749 (build-system gnu-build-system)
751 `(("asciidoc" ,asciidoc)
753 ("xcb-util" ,xcb-util)
754 ("xcb-util-keysyms" ,xcb-util-keysyms)
755 ("xcb-util-wm" ,xcb-util-wm)))
757 '(#:phases (modify-phases %standard-phases (delete 'configure))
758 #:tests? #f ; no check target
759 #:make-flags (list "CC=gcc"
760 (string-append "PREFIX=" %output))))
761 (home-page "https://github.com/baskerville/sxhkd")
762 (synopsis "Simple X hotkey daemon")
763 (description "sxhkd is a simple X hotkey daemon with a powerful and
764 compact configuration syntax.")
765 (license license:bsd-2)))
767 (define-public rxvt-unicode
769 (name "rxvt-unicode")
773 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
774 name "-" version ".tar.bz2"))
775 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
778 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
779 (build-system gnu-build-system)
781 ;; This sets the destination when installing the necessary terminal
782 ;; capability data, which are not provided by 'ncurses'. See
783 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
784 `(#:make-flags (list (string-append "TERMINFO="
785 (assoc-ref %outputs "out")
788 (modify-phases %standard-phases
789 (add-after 'install 'install-desktop-urxvt
790 (lambda* (#:key outputs #:allow-other-keys)
791 (let* ((output (assoc-ref outputs "out"))
792 (desktop (string-append output "/share/applications")))
795 (string-append desktop "/urxvt.desktop")
802 TryExec=~@*~a/bin/urxvt~@
807 (add-after 'install 'install-desktop-urxvtc
808 (lambda* (#:key outputs #:allow-other-keys)
809 (let* ((output (assoc-ref outputs "out"))
810 (desktop (string-append output "/share/applications")))
813 (string-append desktop "/urxvtc.desktop")
817 Name=rxvt-unicode (client)~@
818 Comment=Rxvt clone with XFT and unicode support~@
820 TryExec=~@*~a/bin/urxvtc~@
829 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
831 ("pkg-config" ,pkg-config)))
832 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
833 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
835 (list (search-path-specification
836 (variable "TERMINFO_DIRS")
837 (files '("share/terminfo")))))
838 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
839 (synopsis "Rxvt clone with XFT and unicode support")
840 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
841 intended as an xterm replacement for users who do not require features such as
842 Tektronix 4014 emulation and toolkit-style configurability. It supports
843 unicode, XFT and may be extended with Perl plugins. It also comes with a
844 client/daemon pair that lets you open any number of terminal windows from
845 within a single process.")
846 (license license:gpl3+)))
855 (uri (string-append "https://github.com/alols/" name
856 "/archive/v" version ".tar.gz"))
857 (file-name (string-append name "-" version ".tar.gz"))
860 "0898zc3vwxia00h9kfknpf7jygxgwggrx8v5mxc31w4lzn2dhzm2"))))
861 (build-system gnu-build-system)
863 `(#:tests? #f ; no check target
864 ;; no configure script
865 #:phases (modify-phases %standard-phases (delete 'configure))
866 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
867 "MANDIR=/share/man/man1"
870 `(("libxtst" ,libxtst)
873 `(("pkg-config" ,pkg-config)))
874 (home-page "https://github.com/alols/xcape")
875 (synopsis "Use a modifier key in X.org as another key")
877 "This utility for X.org allows to use modifier key as another key when
878 pressed and released on its own. The default behaviour is to generate the
879 Escape key when Left Control is pressed and released on its own.")
880 (license license:gpl3+)))
882 (define-public libwacom
888 (uri (string-append "mirror://sourceforge/linuxwacom/libwacom/"
889 name "-" version ".tar.bz2"))
892 "0xpvkjvzaj9blcmw8ha46616bzfivj99kwzvr91clxd6iaf11r63"))))
893 (build-system glib-or-gtk-build-system)
895 `(("pkg-config" ,pkg-config)))
898 ("libgudev" ,libgudev)
900 ("libxml2" ,libxml2)))
902 ;; libwacom includes header files that include GLib, and libinput uses
903 ;; those header files.
905 (home-page "http://linuxwacom.sourceforge.net/")
906 (synopsis "Helper library for Wacom tablet settings")
908 "Libwacom is a library to help implement Wacom tablet settings. It is
909 intended to be used by client-programs that need model identification. It is
910 already being used by the gnome-settings-daemon and the GNOME Control Center
911 Wacom tablet applet.")
912 (license license:x11)))
914 (define-public xf86-input-wacom
916 (name "xf86-input-wacom")
921 "mirror://sourceforge/linuxwacom/xf86-input-wacom/"
922 name "-" version ".tar.bz2"))
925 "0za44snc0zirq65a4lxsmg7blp1bynj6j835hm459x8yx1qhmxjm"))))
928 (list (string-append "--with-sdkdir="
929 (assoc-ref %outputs "out")
931 (string-append "--with-xorg-conf-dir="
932 (assoc-ref %outputs "out")
933 "/share/X11/xorg.conf.d"))))
934 (build-system gnu-build-system)
936 `(("pkg-config" ,pkg-config)))
938 `(("xorg-server" ,xorg-server)
939 ("libxrandr" ,libxrandr)
940 ("libxinerama" ,libxinerama)
943 (home-page "http://linuxwacom.sourceforge.net/")
944 (synopsis "Wacom input driver for X")
946 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
947 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
948 (license license:x11)))
950 (define-public redshift
958 (string-append "https://github.com/jonls/redshift/"
959 "releases/download/v" version
960 "/redshift-" version ".tar.xz"))
963 "0ngkwj7rg8nfk806w0sg443w6wjr91xdc0zisqfm5h2i77wm1qqh"))))
964 (build-system gnu-build-system)
966 `(("pkg-config" ,pkg-config)
967 ("intltool" ,intltool)))
972 ("libxxf86vm" ,libxxf86vm)
973 ("glib" ,glib))) ;for Geoclue2 support
974 (home-page "https://github.com/jonls/redshift")
975 (synopsis "Adjust the color temperature of your screen")
977 "Redshift adjusts the color temperature according to the position of the
978 sun. A different color temperature is set during night and daytime. During
979 twilight and early morning, the color temperature transitions smoothly from
980 night to daytime temperature to allow your eyes to slowly adapt. At night the
981 color temperature should be set to match the lamps in your room.")
982 (license license:gpl3+)))
984 (define-public xscreensaver
986 (name "xscreensaver")
992 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
996 "1f58h5rgjbxr4hh40m6zkpkzbzg68l7nqzjwal0b17yysafbmsf6"))))
997 (build-system gnu-build-system)
999 `(#:tests? #f ; no check target
1001 (modify-phases %standard-phases
1002 (add-before 'configure 'adjust-gtk-resource-paths
1004 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
1005 (("@GTK_DATADIR@") "@datadir@")
1006 (("@PO_DATADIR@") "@datadir@")))))
1007 #:configure-flags '("--with-pam" "--with-proc-interrupts"
1008 "--without-readdisplay")
1009 #:make-flags (list (string-append "AD_DIR="
1010 (assoc-ref %outputs "out")
1011 "/usr/lib/X11/app-defaults"))))
1013 `(("pkg-config" ,pkg-config)
1014 ("intltool" ,intltool)))
1016 `(("libx11" ,libx11)
1017 ("libxext" ,libxext)
1023 ("libglade" ,libglade)
1024 ("libxml2" ,libxml2)
1026 ("libjpeg" ,libjpeg)
1027 ("linux-pam" ,linux-pam)
1033 ("libxrandr" ,libxrandr)
1036 (home-page "https://www.jwz.org/xscreensaver/")
1037 (synopsis "Classic screen saver suite supporting screen locking")
1039 "xscreensaver is a popular screen saver collection with many entertaining
1040 demos. It also acts as a nice screen locker.")
1041 ;; xscreensaver doesn't have a single copyright file and instead relies on
1042 ;; source comment headers, though most files have the same lax
1043 ;; permissions. To reduce complexity, we're pointing at Debian's
1044 ;; breakdown of the copyright information.
1045 (license (license:non-copyleft
1047 "http://metadata.ftp-master.debian.org/changelogs/"
1048 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1056 (uri (string-append "http://www.vergenet.net/~conrad/software"
1057 "/xsel/download/xsel-" version ".tar.gz"))
1060 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1061 (build-system gnu-build-system)
1063 `(("libxt" ,libxt)))
1064 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1065 (synopsis "Manipulate X selection")
1067 "XSel is a command-line program for getting and setting the contents of
1068 the X selection. Normally this is only accessible by manually highlighting
1069 information and pasting it with the middle mouse button.
1071 XSel reads from standard input and writes to standard output by default,
1072 but can also follow a growing file, display contents, delete entries and more.")
1073 (license (license:x11-style "file://COPYING"
1074 "See COPYING in the distribution."))))
1076 (define-public xdpyprobe
1082 (uri (string-append "https://github.com/alezost/" name
1083 "/releases/download/v" version
1084 "/" name "-" version ".tar.gz"))
1087 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1088 (build-system gnu-build-system)
1090 `(("libx11" ,libx11)))
1091 (home-page "https://github.com/alezost/xdpyprobe")
1092 (synopsis "Probe X server for connectivity")
1094 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1095 connectivity of the X server running on a particular @code{DISPLAY}.")
1096 (license license:gpl3+)))
1104 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1105 "releases/download/"
1106 version "/rofi-" version ".tar.xz"))
1109 "0li2hl55sxzdpbxxiwgxsvkhyy6bh8qd2j1r8xh8y6q8a318zsz9"))))
1110 (build-system gnu-build-system)
1115 ("startup-notification" ,startup-notification)
1116 ("librsvg" ,librsvg)
1117 ("libxkbcommon" ,libxkbcommon)
1119 ("xcb-util" ,xcb-util)
1120 ("xcb-util-xrm" ,xcb-util-xrm)
1121 ("xcb-util-wm" ,xcb-util-wm)))
1126 ("glib:bin" ,glib "bin")
1127 ("pkg-config" ,pkg-config)))
1129 `(#:parallel-tests? #f ; May fail in some circumstances.
1131 (modify-phases %standard-phases
1132 (add-before 'configure 'adjust-tests
1134 (substitute* '("test/helper-expand.c")
1137 (("g_get_home_dir \\(\\)") "\"/\""))
1139 (add-before 'check 'add-missing-configuration-files
1141 ;; These files are missing in the 1.5.0 release, causing a test
1142 ;; failure: <https://github.com/DaveDavenport/rofi/issues/782>.
1143 (with-directory-excursion "subprojects/libnkutils/tests"
1145 (call-with-output-file "gtk-3.0/settings.ini"
1147 (format port "[Settings]
1148 gtk-double-click-time = 300
1149 gtk-cursor-theme-name = gnome
1152 (call-with-output-file "gtk-4.0/settings.ini"
1154 (format port "[Settings]
1155 gtk-double-click-time = 300
1156 gtk-icon-theme-name = nothing-like-this-theme
1157 gtk-enable-primary-paste = true
1160 (home-page "https://github.com/DaveDavenport/rofi")
1161 (synopsis "Application launcher")
1162 (description "Rofi is a minimalist application launcher. It memorizes which
1163 applications you regularly use and also allows you to search for an application
1165 (license license:expat)))
1167 (define-public tint2
1173 (uri (string-append "https://gitlab.com/o9000/" name
1174 "/repository/archive.tar.gz?ref=" version))
1175 (file-name (string-append name "-" version ".tar.gz"))
1178 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1179 (build-system cmake-build-system)
1181 '(#:tests? #f ;no test target
1183 (modify-phases %standard-phases
1184 (add-after 'unpack 'fix-installation-prefix
1186 (substitute* "CMakeLists.txt"
1187 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc")))))))
1191 ("librsvg" ,librsvg)
1192 ("libxcomposite" ,libxcomposite)
1193 ("libxdamage" ,libxdamage)
1195 ("libxinerama" ,libxinerama)
1196 ("libxrandr" ,libxrandr)
1197 ("startup-notification" ,startup-notification)))
1199 `(("gettext" ,gettext-minimal)
1200 ("pkg-config" ,pkg-config)))
1201 (home-page "https://gitlab.com/o9000/tint2")
1202 (synopsis "Lightweight task bar")
1204 "Tint2 is a simple task bar made for modern X window managers. It was
1205 specifically made for Openbox but it should also work with other window
1206 managers (GNOME, KDE, XFCE etc.).
1208 The taskbar includes transparency and color settings for the font, icons,
1209 border, and background. It also supports multihead setups, customized mouse
1210 actions, a built-in clock, a battery monitor and a system tray.")
1211 (license license:gpl2)))
1214 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1218 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1219 revision "." (string-take commit 7)))
1223 (url "https://github.com/robm/dzen.git")
1225 (file-name (string-append name "-" version))
1228 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1229 (build-system gnu-build-system)
1231 `(#:tests? #f ; No test suite.
1232 #:make-flags ; Replacement for `config.mk`.
1234 (string-append "VERSION = " ,version)
1235 (string-append "PREFIX = " %output)
1236 "MANPREFIX = ${PREFIX}/share/man"
1238 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1239 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1240 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1245 (modify-phases %standard-phases
1246 (delete 'configure) ; No configuration script.
1247 ;; Use own make-flags instead of `config.mk`.
1248 (add-before 'build 'dont-include-config-mk
1250 (substitute* "Makefile" (("include config.mk") ""))
1253 `(("libx11" ,libx11)
1256 ("libxinerama" ,libxinerama)))
1257 (native-inputs `(("pkg-config" ,pkg-config)))
1258 (synopsis "General purpose messaging, notification and menuing program for X11")
1259 (description "Dzen is a general purpose messaging, notification and menuing
1260 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1261 (home-page "https://github.com/robm/dzen")
1262 (license license:expat))))
1264 (define-public xcb-util-xrm
1266 (name "xcb-util-xrm")
1271 "https://github.com/Airblader/xcb-util-xrm/releases"
1272 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1275 "0vbqhag51i0njc8d5fc8c6aa12496cwrc3s6s7sa5kfc17cwhppp"))
1276 (modules '((guix build utils)))
1280 (delete-file-recursively "m4")
1282 (build-system gnu-build-system)
1284 `(("pkg-config" ,pkg-config)
1286 ("libx11" ,libx11))) ; for tests
1288 `(("libxcb" ,libxcb)
1289 ("xcb-util" ,xcb-util)))
1290 (home-page "https://github.com/Airblader/xcb-util-xrm")
1291 (synopsis "XCB utility functions for the X resource manager")
1293 "The XCB util module provides a number of libraries which sit on
1294 top of libxcb, the core X protocol library, and some of the extension
1295 libraries. These experimental libraries provide convenience functions
1296 and interfaces which make the raw X protocol more usable. Some of the
1297 libraries also provide client-side code which is not strictly part of
1298 the X protocol but which has traditionally been provided by Xlib.
1300 XCB util-xrm module provides the following libraries:
1302 - xrm: utility functions for the X resource manager.")
1303 (license license:x11)))
1305 (define-public xcalib
1311 (uri (string-append "mirror://sourceforge/xcalib/xcalib/" version
1312 "/xcalib-source-" version ".tar.gz"))
1315 "1rh6xb51c5xz926dnn82a2fn643g0sr4a8z66rn6yi7523kjw4ca"))))
1316 (build-system gnu-build-system)
1318 '(#:make-flags '("CC=gcc")
1319 #:tests? #f ; No test suite
1320 #:phases (modify-phases %standard-phases
1323 (lambda* (#:key outputs #:allow-other-keys)
1324 (let* ((out (assoc-ref outputs "out"))
1325 (bin (string-append out "/bin")))
1326 (install-file "xcalib" bin))))
1327 (add-after 'install 'install-doc
1328 (lambda* (#:key outputs #:allow-other-keys)
1329 (let ((doc (string-append(assoc-ref outputs "out")
1330 "/share/doc/xcalib")))
1331 (install-file "README" doc)
1332 ;; Avoid unspecified return value.
1334 (inputs `(("libx11", libx11)
1335 ("libxext", libxext)
1336 ("libxxf86vm", libxxf86vm)))
1337 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1338 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1339 profiles to the video card's gamma ramp. It does work with most video card
1340 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1341 invert colors on a specific display/screen.")
1342 (home-page "http://xcalib.sourceforge.net/")
1343 (license license:gpl2)))
1345 (define-public nxbelld
1352 (url "https://github.com/dusxmt/nxbelld.git")
1356 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1357 (file-name (git-file-name name version))))
1358 (build-system gnu-build-system)
1359 (arguments '(#:configure-flags `("--enable-sound"
1362 #:phases (modify-phases %standard-phases
1363 (add-before 'configure 'autoreconf
1365 (zero? (system* "autoreconf" "-vfi")))))))
1366 (native-inputs `(("autoconf" ,autoconf)
1367 ("automake" ,automake)
1368 ("pkg-config" ,pkg-config)
1370 (inputs `(("libx11" ,libx11)
1371 ("alsa-lib" ,alsa-lib)))
1372 (synopsis "Daemon that performs an action every time the X11 bell is rung")
1373 (description "nxbelld is a tiny utility to aid people who either don't
1374 like the default PC speaker beep, or use a sound driver that doesn't have
1375 support for the PC speaker. The utility performs a given action every time
1376 the X bell is rung. The actions nxbelld can currently perform include running
1377 a specified program, emulating the PC speaker beep using the sound card (default),
1378 or playing a PCM encoded WAVE file.")
1379 (home-page "https://github.com/dusxmt/nxbelld")
1380 (license license:gpl3+)))
1382 (define-public xautolock
1388 (uri (string-append "http://www.ibiblio.org/pub/linux/X11/screensavers/"
1389 name "-" version ".tgz"))
1392 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1393 (build-system gnu-build-system)
1395 `(("imake" ,imake)))
1397 `(("libx11" ,libx11)
1398 ("libxext" ,libxext)
1399 ("libxscrnsaver" ,libxscrnsaver)))
1403 (modify-phases %standard-phases
1405 (lambda* (#:key inputs outputs #:allow-other-keys)
1406 (let ((imake (assoc-ref inputs "imake"))
1407 (out (assoc-ref outputs "out")))
1408 ;; Generate Makefile
1410 (substitute* "Makefile"
1411 ;; These imake variables somehow remain undefined
1412 (("DefaultGcc2[[:graph:]]*Opt") "-O2")
1413 ;; Reset a few variable defaults that are set in imake templates
1415 (("(MANPATH = )[[:graph:]]*" _ front)
1416 (string-append front out "/share/man")))
1417 ;; Old BSD-style 'union wait' is unneeded (defining
1418 ;; _USE_BSD did not seem to fix it)
1419 (substitute* "src/engine.c"
1420 (("union wait status") "int status = 0"))
1422 (add-after 'install 'install/man
1424 (zero? (system* "make" "install.man")))))))
1425 (home-page "http://ibiblio.org/pub/Linux/X11/screensavers/")
1426 (synopsis "Program launcher for idle X sessions")
1427 (description "Xautolock monitors input devices under the X Window
1428 System, and launches a program of your choice if there is no activity after
1429 a user-configurable period of time.")
1430 (license license:gpl2)))