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, 2019 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, 2018 Ricardo Wurmus <rekado@elephly.net>
14 ;;; Copyright © 2016, 2017, 2018, 2019 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, 2019 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@n0.is>
21 ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
22 ;;; Copyright © 2017 Marek Benc <dusxmt@gmx.com>
23 ;;; Copyright © 2017 Mike Gerwitz <mtg@gnu.org>
24 ;;; Copyright © 2018 Thomas Sigurdsen <tonton@riseup.net>
25 ;;; Copyright © 2018, 2019 Rutger Helling <rhelling@mykolab.com>
26 ;;; Copyright © 2018, 2019 Pierre Neidhardt <mail@ambrevar.xyz>
27 ;;; Copyright © 2018 Nam Nguyen <namn@berkeley.edu>
28 ;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
29 ;;; Copyright © 2019 Kyle Andrews <kyle.c.andrews@gmail.com>
31 ;;; This file is part of GNU Guix.
33 ;;; GNU Guix is free software; you can redistribute it and/or modify it
34 ;;; under the terms of the GNU General Public License as published by
35 ;;; the Free Software Foundation; either version 3 of the License, or (at
36 ;;; your option) any later version.
38 ;;; GNU Guix is distributed in the hope that it will be useful, but
39 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
40 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41 ;;; GNU General Public License for more details.
43 ;;; You should have received a copy of the GNU General Public License
44 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
46 (define-module (gnu packages xdisorg)
47 #:use-module ((guix licenses) #:prefix license:)
48 #:use-module (guix packages)
49 #:use-module (guix download)
50 #:use-module (guix git-download)
51 #:use-module (guix utils)
52 #:use-module (guix build-system cmake)
53 #:use-module (guix build-system gnu)
54 #:use-module (guix build-system glib-or-gtk)
55 #:use-module (guix build-system meson)
56 #:use-module (guix build-system python)
57 #:use-module (gnu packages)
58 #:use-module (gnu packages documentation)
59 #:use-module (gnu packages admin)
60 #:use-module (gnu packages base)
61 #:use-module (gnu packages algebra)
62 #:use-module (gnu packages autotools)
63 #:use-module (gnu packages check)
64 #:use-module (gnu packages compression)
65 #:use-module (gnu packages image)
66 #:use-module (gnu packages pkg-config)
67 #:use-module (gnu packages flex)
68 #:use-module (gnu packages freedesktop)
69 #:use-module (gnu packages gettext)
70 #:use-module (gnu packages gl)
71 #:use-module (gnu packages glib)
72 #:use-module (gnu packages gnome)
73 #:use-module (gnu packages icu4c)
74 #:use-module (gnu packages man)
75 #:use-module (gnu packages maths)
76 #:use-module (gnu packages m4)
77 #:use-module (gnu packages ncurses)
78 #:use-module (gnu packages perl)
79 #:use-module (gnu packages python)
80 #:use-module (gnu packages python-xyz)
81 #:use-module (gnu packages linux)
82 #:use-module (gnu packages gl)
83 #:use-module (gnu packages guile)
84 #:use-module (gnu packages xml)
85 #:use-module (gnu packages gtk)
86 #:use-module (gnu packages xorg)
87 #:use-module (gnu packages fontutils)
88 #:use-module (gnu packages bison)
89 #:use-module (ice-9 match))
91 ;; packages outside the x.org system proper
99 (uri (string-append "http://christian.amsuess.com/tools/" name
100 "/files/" name "-" version ".tar.gz"))
103 "1i3f1agixxbfy4kxikb2b241p7c2lg73cl9wqfvlwz3q6zf5faxv"))
104 (modules '((guix build utils)))
107 ;; Do not record a timestamp and file name in gzipped man
108 ;; pages (this is equivalent to 'gzip --no-name'.)
109 (substitute* "setup.py"
110 (("gzip\\.open\\(gzfile, 'w', 9\\)")
111 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)"))
113 (build-system python-build-system)
115 `(#:python ,python-2 ;incompatible with python 3
117 (modify-phases %standard-phases
118 (add-before 'build 'configure
119 (lambda* (#:key inputs #:allow-other-keys)
120 (substitute* "screenlayout/xrandr.py"
121 (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr")
124 #:tests? #f)) ;no tests
125 (inputs `(("pygtk" ,python2-pygtk)
127 (native-inputs `(("gettext" ,gettext-minimal)
128 ("python-docutils" ,python2-docutils)))
129 (home-page "https://christian.amsuess.com/tools/arandr/")
130 (synopsis "Another RandR graphical user interface")
131 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
132 (description "ARandR is designed to provide a simple visual front end for
133 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
134 shown graphically and can be changed in a drag-and-drop way. Configurations
135 are saved as executable shell scripts which can be loaded without using this
137 (license license:gpl3+)))
139 (define-public autorandr
140 ;; Use latest commit since 1.7 lacks many new features such as the
141 ;; autorandr_launcher.
142 (let ((commit "b484c0ea9c9a4838278bbd661a7cc384333c1df8"))
145 (version (git-version "1.7" "1" commit))
146 (home-page "https://github.com/phillipberndt/autorandr")
153 (file-name (git-file-name name version))
156 "0da17kzsisjv3s993j5idkk1n2d2cvjdn7pngs2b0ic1r2h5z02h"))))
157 (build-system python-build-system)
159 `(("man-db" ,man-db)))
165 (modify-phases %standard-phases
166 (add-before 'build 'configure
167 (lambda* (#:key inputs #:allow-other-keys)
168 (substitute* "autorandr.py"
169 (("popen\\(\"xrandr") (string-append "popen(\""
170 (assoc-ref inputs "xrandr")
172 (("\\[\"xrandr") (string-append "[\""
173 (assoc-ref inputs "xrandr")
176 (add-after 'install 'install-contrib
177 (lambda* (#:key outputs #:allow-other-keys)
179 (string-append "DESTDIR=" (assoc-ref outputs "out"))
181 "BASH_COMPLETIONS_DIR=etc/bash_completiond.d"
183 "install_bash_completion"
184 "install_launcher"))))))
185 (synopsis "Auto-detect connected displays and load appropriate setup")
186 (description "Autorandr wraps around xrandr to help with X11
187 multi-screen configuration management. It allows the user to create profiles
188 for various multi-screen setups. Autorandr automatically detects the profiles
189 that can be activated based on the connected hardware. Hook scripts can be
190 used to further tweak the behaviour of the different profiles.")
191 (license license:gpl3+))))
201 (url "https://github.com/astrand/xclip.git")
203 (file-name (git-file-name name version))
206 "0q0hmvcjlv8arhh1pzhja2wglyj6n7z209jnpnzd281kqqv4czcs"))))
207 (build-system gnu-build-system)
209 '(#:tests? #f)) ;there is no test suite
211 `(("autoconf" ,autoconf)
212 ("automake" ,automake)))
213 (inputs `(("libxmu" ,libxmu)
215 (home-page "https://github.com/astrand/xclip")
216 (synopsis "Command line interface to X11 clipboard")
217 (description "Xclip is a command line interface to the X11 clipboard. It
218 can also be used for copying files, as an alternative to sftp/scp, thus
219 avoiding password prompts when X11 forwarding has already been setup.")
220 (license license:gpl2+)))
222 (define-public libxkbcommon
224 (name "libxkbcommon")
228 (uri (string-append "https://xkbcommon.org/download/libxkbcommon-"
232 "12vc91ydhphd5sddz15560r41l7k0i7mq6nma8kkbzdp6bwwzpb0"))))
233 (build-system gnu-build-system)
237 ("xkeyboard-config" ,xkeyboard-config)))
240 ("pkg-config" ,pkg-config)))
243 (list (string-append "--with-xkb-config-root="
244 (assoc-ref %build-inputs "xkeyboard-config")
246 (string-append "--with-x-locale-root="
247 (assoc-ref %build-inputs "libx11")
248 "/share/X11/locale"))))
249 (home-page "https://xkbcommon.org/")
250 (synopsis "Library to handle keyboard descriptions")
251 (description "Xkbcommon is a library to handle keyboard descriptions,
252 including loading them from disk, parsing them and handling their
253 state. It is mainly meant for client toolkits, window systems, and other
254 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
255 Clutter, and more. Despite the name, it is not currently used by anything
257 (license (license:x11-style "file://COPYING"
258 "See 'COPYING' in the distribution."))))
260 (define-public libfakekey
267 (uri (string-append "https://downloads.yoctoproject.org/releases"
268 "/matchbox/libfakekey/" version "/libfakekey-"
272 "1501l0bflcrhqbf12n7a7cqilvr0w4xawxw0vw75p2940nkl4464"))))
273 (build-system gnu-build-system)
275 `(#:make-flags (list "AM_LDFLAGS=-lX11")))
277 `(("pkg-config" ,pkg-config)))
279 `(("libxtst" ,libxtst)
281 (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox")
282 (synopsis "X virtual keyboard library")
284 "Libfakekey is a virtual keyboard library for X.")
285 (license license:gpl2)))
287 (define-public xdotool
290 (version "3.20160805.1")
295 "https://github.com/jordansissel/xdotool/releases/download/v"
296 version "/xdotool-" version ".tar.gz"))
299 "1a6c1zr86zb53352yxv104l76l8x21gfl2bgw6h21iphxpv5zgim"))))
300 (build-system gnu-build-system)
302 '(#:tests? #f ; Test suite requires a lot of black magic
304 (modify-phases %standard-phases
306 (lambda* (#:key outputs #:allow-other-keys #:rest args)
307 (let ((out (assoc-ref outputs "out")))
308 (mkdir-p (string-append out "/lib"))
309 (setenv "PREFIX" out)
310 (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib"))
313 (native-inputs `(("perl" ,perl))) ; for pod2man
314 (inputs `(("libx11" ,libx11)
317 ("libxinerama" ,libxinerama)
319 ("libxkbcommon" ,libxkbcommon)))
320 (home-page "http://www.semicomplete.com/projects/xdotool")
321 (synopsis "Fake keyboard/mouse input, window management, and more")
322 (description "Xdotool lets you simulate keyboard input and mouse activity,
323 move and resize windows, etc. It does this using X11's XTEST extension and
324 other Xlib functions. Additionally, you can search for windows and move,
325 resize, hide, and modify window properties like the title. If your window
326 manager supports it, you can use xdotool to switch desktops, move windows
327 between desktops, and change the number of desktops.")
328 (license license:bsd-3)))
337 (uri (string-append "https://www.x.org/releases/individual/app/"
338 name "-" version ".tar.bz2"))
340 (base32 "0lq5j7fryx1wn998jq6h3icz1h6pqrsbs3adskjzjyhn5l6yrg2p"))))
341 (build-system gnu-build-system)
343 `(("libxext" ,libxext)
345 ("libxrender" ,libxrender)
348 `(("pkg-config" ,pkg-config)))
349 (home-page "https://www.x.org/") ; no dedicated Xeyes page exists
350 (synopsis "Follow-the-mouse X demo")
351 (description "Xeyes is a demo program for x.org. It shows eyes
352 following the mouse.")
353 (license license:x11)))
356 (define-public pixman
363 "https://www.cairographics.org/releases/pixman-"
367 "1ryxzdf048x7wsx4dlvrr1p00gzwfs7lybnhgc7ygbj0dvyxcrns"))
368 (patches (search-patches "pixman-CVE-2016-5296.patch"))))
369 (build-system gnu-build-system)
374 `(("pkg-config" ,pkg-config)))
375 (home-page "http://www.pixman.org/")
376 (synopsis "Low-level pixel manipulation library")
377 (description "Pixman is a low-level software library for pixel
378 manipulation, providing features such as image compositing and trapezoid
380 (license license:x11)))
382 (define-public libdrm
390 "https://dri.freedesktop.org/libdrm/libdrm-"
395 "0pnsw4bmajzdbz8pk4wswdmw93shhympf2q9alhbnpfjgsf57gsd"))
396 (patches (search-patches "libdrm-symbol-check.patch"))))
397 (build-system meson-build-system)
400 '(,@(match (%current-system)
401 ((or "armhf-linux" "aarch64-linux")
406 "-Dfreedreno-kgsl=true"))
409 #:phases (modify-phases %standard-phases
412 (invoke "meson" "test" "--timeout-multiplier" "5"))))))
414 `(("libpciaccess" ,libpciaccess)))
416 `(("pkg-config" ,pkg-config)))
417 (home-page "https://dri.freedesktop.org/wiki/")
418 (synopsis "Direct rendering userspace library")
419 (description "The Direct Rendering Infrastructure, also known as the DRI,
420 is a framework for allowing direct access to graphics hardware under the
421 X Window System in a safe and efficient manner. It includes changes to the
422 X server, to several client libraries, and to the kernel (DRM, Direct
423 Rendering Manager). The most important use for the DRI is to create fast
424 OpenGL implementations providing hardware acceleration for Mesa.
425 Several 3D accelerated drivers have been written to the DRI specification,
426 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
428 (license license:x11)))
439 "http://bitmath.org/code/mtdev/mtdev-"
443 "0zxs7shzgbalkvlaiibi25bd902rbmkv9n1lww6q8j3ri9qdaxv6"))))
444 (build-system gnu-build-system)
445 (home-page "http://bitmath.org/code/mtdev/")
446 (synopsis "Multitouch protocol translation library")
447 (description "Mtdev is a stand-alone library which transforms all
448 variants of kernel MT events to the slotted type B protocol. The events
449 put into mtdev may be from any MT device, specifically type A without
450 contact tracking, type A with contact tracking, or type B with contact
452 (license license:x11)))
454 (define-public startup-notification
456 (name "startup-notification")
461 (uri (string-append "https://www.freedesktop.org/software/" name
462 "/releases/" name "-" version ".tar.gz"))
465 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
466 (build-system gnu-build-system)
467 (native-inputs `(("pkg-config" ,pkg-config)))
470 ("xcb-util" ,xcb-util)))
471 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
472 (synopsis "Application startup notification and feedback library")
474 "Startup-notification contains a reference implementation of the startup
475 notification protocol. The reference implementation is mostly under an X Window
476 System style license, and has no special dependencies.")
477 ;; Most of the code is provided under x11 license.
478 (license license:lgpl2.0+)))
480 (define-public wmctrl
487 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
491 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
492 (patches (search-patches "wmctrl-64-fix.patch"))))
493 (build-system gnu-build-system)
496 (list (string-append "--mandir="
497 (assoc-ref %outputs "out")
500 `(("pkg-config" ,pkg-config)))
505 (home-page "http://tomas.styblo.name/wmctrl/")
506 (synopsis "Command-line tool to control X window managers")
508 "Wmctrl allows to interact with an X window manager that is compatible
509 with the EWMH/NetWM specification. It can query the window manager for
510 information, and request for certain window management actions (resize and
511 move windows, switch between desktops, etc.).")
512 (license license:gpl2+)))
523 (url "https://github.com/resurrecting-open-source-projects/scrot.git")
525 (file-name (git-file-name name version))
527 (base32 "1dg0pnmk09p7zlbyxv7d40vf54amrv73y976ds5p7096x6lmlndy"))))
528 (build-system gnu-build-system)
530 `(("autoconf" ,autoconf)
531 ("automake" ,automake)))
535 (home-page "https://github.com/resurrecting-open-source-projects/scrot")
536 (synopsis "Command-line screen capture utility for X Window System")
538 "Scrot allows to save a screenshot of a full screen, a window or a part
539 of the screen selected by mouse.")
540 ;; This license removes a clause about X Consortium from the original
542 (license (license:x11-style "file://COPYING"
543 "See 'COPYING' in the distribution."))))
552 (url "https://github.com/naelstrof/slop.git")
553 (commit (string-append "v" version))))
554 (file-name (git-file-name name version))
557 "0fgd8a2dqkg64all0f96sca92sdss9r3pzmv5kck46b99z2325z6"))))
558 (build-system cmake-build-system)
560 '(#:tests? #f)) ; no "check" target
566 ("libxrender" ,libxrender)
568 (home-page "https://github.com/naelstrof/slop")
569 (synopsis "Select a region and print its bounds to stdout")
571 "slop (Select Operation) is a tool that queries for a selection from a
572 user and prints the region to stdout. It grabs the mouse and turns it into a
573 crosshair, lets the user click and drag to make a selection (or click on a
574 window) while drawing a pretty box around it, then finally prints the
575 selection's dimensions to stdout.")
576 (license license:gpl3+)))
585 (url "https://github.com/naelstrof/maim.git")
586 (commit (string-append "v" version))))
587 (file-name (git-file-name name version))
590 "1kbxsz8whfxl5blwsvpva2q95zwy72argwhi1cfqh5lrhzq5zrpp"))))
591 (build-system cmake-build-system)
593 '(#:tests? #f)) ; no "check" target
596 ("libjpeg" ,libjpeg-turbo)
598 ("libxcomposite" ,libxcomposite)
599 ("libxfixes" ,libxfixes)
600 ("libxrandr" ,libxrandr)
604 (home-page "https://github.com/naelstrof/maim")
605 (synopsis "Screenshot utility for X Window System")
607 "maim (Make Image) is a tool that takes screenshots of your desktop and
608 saves it in any format. Along with a full screen, it allows you to capture a
609 predefined region or a particular window. Also, it makes it possible to
610 include cursor in the resulting image.")
611 (license license:gpl3+)))
613 (define-public unclutter
620 "http://ftp.x.org/contrib/utilities/unclutter-"
624 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
625 (build-system gnu-build-system)
627 '(#:tests? #f ; no check target
629 (modify-phases %standard-phases
632 (lambda* (#:key inputs outputs #:allow-other-keys)
633 (let* ((out (assoc-ref outputs "out"))
634 (bin (string-append out "/bin"))
635 (man1 (string-append out "/share/man/man1")))
638 (invoke "make" "install" "install.man"
639 (string-append "BINDIR=" bin)
640 (string-append "MANDIR=" man1))))))))
641 (inputs `(("libx11" ,libx11)))
642 (home-page "http://ftp.x.org/contrib/utilities/")
643 (synopsis "Hide idle mouse cursor")
645 "Unclutter is a program which runs permanently in the background of an
646 X11 session. It checks on the X11 pointer (cursor) position every few
647 seconds, and when it finds it has not moved (and no buttons are pressed
648 on the mouse, and the cursor is not in the root window) it creates a
649 small sub-window as a child of the window the cursor is in. The new
650 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
651 invisible cursor. This allows you to see all the text in an xterm or
652 xedit, for example. The human factors crowd would agree it should make
653 things less distracting.")
654 (license license:public-domain)))
656 (define-public xautomation
663 (uri (string-append "https://www.hoopajoo.net/static/projects/"
664 "xautomation-" version ".tar.gz"))
668 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
669 (build-system gnu-build-system)
674 ("libxtst" ,libxtst)))
676 `(("xorgproto" ,xorgproto)))
677 (synopsis "Tools to automate tasks in X such as detecting on screen images")
679 "Xautomation can control X from the command line for scripts, and
680 do visual scraping to find things on the screen. The control interface
681 allows mouse movement, clicking, button up/down, key up/down, etc, and
682 uses the XTest extension so you don't have the annoying problems that
683 xse has when apps ignore sent events. The visgrep program can find
684 images inside of images and reports the coordinates, allowing programs
685 to find buttons, etc, on the screen to click on.")
686 (home-page "https://www.hoopajoo.net/projects/xautomation.html")
687 (license license:gpl2+)))
689 (define-public xbanish
693 (home-page "https://github.com/jcs/xbanish")
696 (uri (git-reference (url home-page)
697 (commit (string-append "v" version))))
700 "0vp8ja68hpmqkl61zyjar3czhmny1hbm74m8f393incfz1ymr3i8"))))
701 (build-system gnu-build-system)
703 `(#:tests? #f ;no tests
704 #:make-flags (list "CC=gcc"
705 (string-append "PREFIX=" (assoc-ref %outputs "out")))
706 #:phases (modify-phases %standard-phases
707 (delete 'configure))))
710 ("libxfixes" ,libxfixes)
713 (synopsis "Banish the mouse cursor")
715 "@command{xbanish} hides the mouse cursor when you start typing, and
716 shows it again when the mouse cursor moves or a mouse button is pressed.")
717 (license license:bsd-3)))
719 (define-public xlockmore
725 (uri (list (string-append "http://sillycycle.com/xlock/"
726 "xlockmore-" version ".tar.xz")
727 ;; Previous releases are moved to a subdirectory.
728 (string-append "http://sillycycle.com/xlock/"
730 "xlockmore-" version ".tar.xz")))
733 "1va11sbv5lbkxkp0i0msz5md3n2n82nzppk27rzdrw7y79vq37zw"))))
734 (build-system gnu-build-system)
736 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
737 (assoc-ref %outputs "out")
738 "/lib/X11/app-defaults"))
739 #:tests? #f)) ;no such thing as a test suite
744 ("linux-pam" ,linux-pam)))
745 (home-page "http://sillycycle.com/xlockmore.html")
746 (synopsis "Screen locker for the X Window System")
748 "XLockMore is a classic screen locker and screen saver for the
750 (license (license:non-copyleft #f "See xlock.c.")
751 ))) ; + GPLv2 in modes/glx/biof.c.
760 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
761 name "-" version ".tar.gz"))
764 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
765 (build-system gnu-build-system)
768 (list (string-append "--mandir=" %output "/share/man"))))
773 ("libxinerama" ,libxinerama)))
774 (home-page "https://sourceforge.net/projects/libxosd/")
775 (synopsis "X On Screen Display")
777 "XOSD provides a C library and a simple utility (osd_cat) for displaying
778 transparent text on your screen.")
779 (license license:gpl2+)))
781 (define-public xbindkeys
787 ;; Download from the savannah mirror list fails
789 "http://www.nongnu.org/xbindkeys/xbindkeys-"
794 "060df6d8y727jp1inp7blp44cs8a7jig7vcm8ndsn6gw36z1h3bc"))))
795 (build-system gnu-build-system)
798 ("guile" ,guile-2.0)))
799 (home-page "https://www.nongnu.org/xbindkeys/")
800 (synopsis "Associate a combination of keys with a shell command")
802 "XBindKeys is a program that allows you to launch shell commands with
803 your keyboard or your mouse under the X Window System. It links commands to
804 keys or mouse buttons, using a configuration file. It's independent of the
805 window manager and can capture all keyboard keys (ex: Power, Wake...). It
806 optionally supports a Guile-based configuration file layout, which enables you
807 to access all XBindKeys internals, so you can have key combinations, double
808 clicks or timed double clicks take actions. Also all functions that work in
809 Guile will work for XBindKeys.")
810 (license license:gpl2+)))
820 (url "https://github.com/baskerville/sxhkd")
822 (file-name (git-file-name name version))
824 (base32 "0j7bl2l06r0arrjzpz7al9j6cwzc730knbsijp7ixzz96pq7xa2h"))))
825 (build-system gnu-build-system)
827 `(("asciidoc" ,asciidoc)
829 ("xcb-util" ,xcb-util)
830 ("xcb-util-keysyms" ,xcb-util-keysyms)
831 ("xcb-util-wm" ,xcb-util-wm)))
833 `(#:phases (modify-phases %standard-phases (delete 'configure))
834 #:tests? #f ; no check target
837 (string-append "PREFIX=" %output)
838 ;; Keep the documentation where the build system installs LICENSE.
839 (string-append "DOCPREFIX=" %output
840 "/share/doc/" ,name "-" ,version))))
841 (home-page "https://github.com/baskerville/sxhkd")
842 (synopsis "Simple X hotkey daemon")
843 (description "sxhkd is a simple X hotkey daemon with a powerful and
844 compact configuration syntax.")
845 (license license:bsd-2)))
847 (define-public rxvt-unicode
849 (name "rxvt-unicode")
853 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
854 name "-" version ".tar.bz2"))
855 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
858 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
859 (build-system gnu-build-system)
861 ;; This sets the destination when installing the necessary terminal
862 ;; capability data, which are not provided by 'ncurses'. See
863 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
864 `(#:make-flags (list (string-append "TERMINFO="
865 (assoc-ref %outputs "out")
868 (modify-phases %standard-phases
869 (add-after 'install 'install-desktop-urxvt
870 (lambda* (#:key outputs #:allow-other-keys)
871 (let* ((output (assoc-ref outputs "out"))
872 (desktop (string-append output "/share/applications")))
875 (string-append desktop "/urxvt.desktop")
882 TryExec=~@*~a/bin/urxvt~@
887 (add-after 'install 'install-desktop-urxvtc
888 (lambda* (#:key outputs #:allow-other-keys)
889 (let* ((output (assoc-ref outputs "out"))
890 (desktop (string-append output "/share/applications")))
893 (string-append desktop "/urxvtc.desktop")
897 Name=rxvt-unicode (client)~@
898 Comment=Rxvt clone with XFT and unicode support~@
900 TryExec=~@*~a/bin/urxvtc~@
909 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
911 ("pkg-config" ,pkg-config)))
912 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
913 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
915 (list (search-path-specification
916 (variable "TERMINFO_DIRS")
917 (files '("share/terminfo")))))
918 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
919 (synopsis "Rxvt clone with XFT and unicode support")
920 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
921 intended as an xterm replacement for users who do not require features such as
922 Tektronix 4014 emulation and toolkit-style configurability. It supports
923 unicode, XFT and may be extended with Perl plugins. It also comes with a
924 client/daemon pair that lets you open any number of terminal windows from
925 within a single process.")
926 (license license:gpl3+)))
935 (url "https://github.com/alols/xcape.git")
936 (commit (string-append "v" version))))
937 (file-name (git-file-name name version))
940 "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm"))))
941 (build-system gnu-build-system)
943 `(#:tests? #f ; no check target
944 ;; no configure script
945 #:phases (modify-phases %standard-phases (delete 'configure))
946 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
947 "MANDIR=/share/man/man1"
950 `(("libxtst" ,libxtst)
953 `(("pkg-config" ,pkg-config)))
954 (home-page "https://github.com/alols/xcape")
955 (synopsis "Use a modifier key in X.org as another key")
957 "This utility for X.org allows to use modifier key as another key when
958 pressed and released on its own. The default behaviour is to generate the
959 Escape key when Left Control is pressed and released on its own.")
960 (license license:gpl3+)))
962 (define-public libwacom
969 "https://github.com/linuxwacom/libwacom/releases/download/"
970 "libwacom-" version "/libwacom-" version ".tar.bz2"))
973 "1wnv34y7m9l6avlvwqvfrnksfnsz1lbgb412dn6s7x1h3wvs7y4l"))))
974 (build-system glib-or-gtk-build-system)
976 `(("pkg-config" ,pkg-config)))
979 ("libgudev" ,libgudev)
981 ("libxml2" ,libxml2)))
983 ;; libwacom includes header files that include GLib, and libinput uses
984 ;; those header files.
986 (home-page "https://linuxwacom.github.io/")
987 (synopsis "Helper library for Wacom tablet settings")
989 "Libwacom is a library to help implement Wacom tablet settings. It is
990 intended to be used by client-programs that need model identification. It is
991 already being used by the gnome-settings-daemon and the GNOME Control Center
992 Wacom tablet applet.")
993 (license license:x11)))
995 (define-public xf86-input-wacom
997 (name "xf86-input-wacom")
1003 "https://github.com/linuxwacom/xf86-input-wacom/releases/download/"
1004 "xf86-input-wacom-" version "/"
1005 "xf86-input-wacom-" version ".tar.bz2"))
1008 "029y8varbricba2dzhzhy0ndd7lbfif411ca8c3wxzni9qmbj1ij"))))
1011 (list (string-append "--with-sdkdir="
1012 (assoc-ref %outputs "out")
1014 (string-append "--with-xorg-conf-dir="
1015 (assoc-ref %outputs "out")
1016 "/share/X11/xorg.conf.d"))))
1017 (build-system gnu-build-system)
1019 `(("pkg-config" ,pkg-config)))
1021 `(("xorg-server" ,xorg-server)
1022 ("libxrandr" ,libxrandr)
1023 ("libxinerama" ,libxinerama)
1026 (home-page "https://linuxwacom.github.io/")
1027 (synopsis "Wacom input driver for X")
1029 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
1030 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
1031 (license license:x11)))
1033 (define-public redshift
1041 (string-append "https://github.com/jonls/redshift/"
1042 "releases/download/v" version
1043 "/redshift-" version ".tar.xz"))
1046 "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j"))))
1047 (build-system gnu-build-system)
1049 `(("pkg-config" ,pkg-config)
1050 ("intltool" ,intltool)))
1052 `(("libdrm" ,libdrm)
1055 ("libxxf86vm" ,libxxf86vm)
1056 ("glib" ,glib))) ; for Geoclue2 support
1057 (home-page "https://github.com/jonls/redshift")
1058 (synopsis "Adjust the color temperature of your screen")
1060 "Redshift adjusts the color temperature according to the position of the
1061 sun. A different color temperature is set during night and daytime. During
1062 twilight and early morning, the color temperature transitions smoothly from
1063 night to daytime temperature to allow your eyes to slowly adapt. At night the
1064 color temperature should be set to match the lamps in your room.")
1065 (license license:gpl3+)))
1067 (define-public xscreensaver
1069 (name "xscreensaver")
1075 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
1078 (base32 "1571pj1a9998sq14y9366s2rw9wd2kq3l3dvvsk610vyd0fki3qm"))))
1079 (build-system gnu-build-system)
1081 `(#:tests? #f ; no check target
1083 (modify-phases %standard-phases
1084 (add-before 'configure 'adjust-gtk-resource-paths
1086 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
1087 (("@GTK_DATADIR@") "@datadir@")
1088 (("@PO_DATADIR@") "@datadir@"))
1090 #:configure-flags '("--with-pam" "--with-proc-interrupts"
1091 "--without-readdisplay")
1092 #:make-flags (list (string-append "AD_DIR="
1093 (assoc-ref %outputs "out")
1094 "/usr/lib/X11/app-defaults"))))
1096 `(("pkg-config" ,pkg-config)
1097 ("intltool" ,intltool)))
1099 `(("libx11" ,libx11)
1100 ("libxext" ,libxext)
1106 ("libglade" ,libglade)
1107 ("libxml2" ,libxml2)
1109 ("libjpeg" ,libjpeg)
1110 ("linux-pam" ,linux-pam)
1116 ("libxrandr" ,libxrandr)
1119 (home-page "https://www.jwz.org/xscreensaver/")
1120 (synopsis "Classic screen saver suite supporting screen locking")
1122 "xscreensaver is a popular screen saver collection with many entertaining
1123 demos. It also acts as a nice screen locker.")
1124 ;; xscreensaver doesn't have a single copyright file and instead relies on
1125 ;; source comment headers, though most files have the same lax
1126 ;; permissions. To reduce complexity, we're pointing at Debian's
1127 ;; breakdown of the copyright information.
1128 (license (license:non-copyleft
1130 "http://metadata.ftp-master.debian.org/changelogs/"
1131 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1139 (uri (string-append "http://www.vergenet.net/~conrad/software"
1140 "/xsel/download/xsel-" version ".tar.gz"))
1143 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1144 (build-system gnu-build-system)
1146 `(("libxt" ,libxt)))
1147 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1148 (synopsis "Manipulate X selection")
1150 "XSel is a command-line program for getting and setting the contents of
1151 the X selection. Normally this is only accessible by manually highlighting
1152 information and pasting it with the middle mouse button.
1154 XSel reads from standard input and writes to standard output by default,
1155 but can also follow a growing file, display contents, delete entries and more.")
1156 (license (license:x11-style "file://COPYING"
1157 "See COPYING in the distribution."))))
1159 (define-public xdpyprobe
1165 (uri (string-append "https://github.com/alezost/" name
1166 "/releases/download/v" version
1167 "/" name "-" version ".tar.gz"))
1170 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1171 (build-system gnu-build-system)
1173 `(("libx11" ,libx11)))
1174 (home-page "https://github.com/alezost/xdpyprobe")
1175 (synopsis "Probe X server for connectivity")
1177 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1178 connectivity of the X server running on a particular @code{DISPLAY}.")
1179 (license license:gpl3+)))
1187 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1188 "releases/download/"
1189 version "/rofi-" version ".tar.xz"))
1192 "1nslmyqyzhfr4hxd4llqkkkb8ap8apkdna32rllvar7r576059ci"))))
1193 (build-system gnu-build-system)
1198 ("startup-notification" ,startup-notification)
1199 ("librsvg" ,librsvg)
1200 ("libxkbcommon" ,libxkbcommon)
1202 ("xcb-util" ,xcb-util)
1203 ("xcb-util-xrm" ,xcb-util-xrm)
1204 ("xcb-util-wm" ,xcb-util-wm)))
1209 ("glib:bin" ,glib "bin")
1210 ("pkg-config" ,pkg-config)))
1212 `(#:parallel-tests? #f ; fails in some circumstances
1214 (modify-phases %standard-phases
1215 (add-before 'configure 'adjust-tests
1217 (substitute* '("test/helper-expand.c")
1220 (("g_get_home_dir \\(\\)") "\"/\""))
1222 (home-page "https://github.com/DaveDavenport/rofi")
1223 (synopsis "Application launcher")
1224 (description "Rofi is a minimalist application launcher. It memorizes which
1225 applications you regularly use and also allows you to search for an application
1227 (license license:expat)))
1229 (define-public tint2
1235 (uri (string-append "https://gitlab.com/o9000/" name
1236 "/repository/archive.tar.gz?ref=" version))
1237 (file-name (string-append name "-" version ".tar.gz"))
1240 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1241 (build-system cmake-build-system)
1243 '(#:tests? #f ;no test target
1245 (modify-phases %standard-phases
1246 (add-after 'unpack 'fix-installation-prefix
1248 (substitute* "CMakeLists.txt"
1249 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))
1254 ("librsvg" ,librsvg)
1255 ("libxcomposite" ,libxcomposite)
1256 ("libxdamage" ,libxdamage)
1258 ("libxinerama" ,libxinerama)
1259 ("libxrandr" ,libxrandr)
1260 ("startup-notification" ,startup-notification)))
1262 `(("gettext" ,gettext-minimal)
1263 ("pkg-config" ,pkg-config)))
1264 (home-page "https://gitlab.com/o9000/tint2")
1265 (synopsis "Lightweight task bar")
1267 "Tint2 is a simple task bar made for modern X window managers. It was
1268 specifically made for Openbox but it should also work with other window
1269 managers (GNOME, KDE, XFCE etc.).
1271 The taskbar includes transparency and color settings for the font, icons,
1272 border, and background. It also supports multihead setups, customized mouse
1273 actions, a built-in clock, a battery monitor and a system tray.")
1274 (license license:gpl2)))
1277 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1281 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1282 revision "." (string-take commit 7)))
1286 (url "https://github.com/robm/dzen.git")
1288 (file-name (string-append name "-" version))
1291 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1292 (build-system gnu-build-system)
1294 `(#:tests? #f ; No test suite.
1295 #:make-flags ; Replacement for `config.mk`.
1297 (string-append "VERSION = " ,version)
1298 (string-append "PREFIX = " %output)
1299 "MANPREFIX = ${PREFIX}/share/man"
1301 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1302 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1303 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1308 (modify-phases %standard-phases
1309 (delete 'configure) ; No configuration script.
1310 ;; Use own make-flags instead of `config.mk`.
1311 (add-before 'build 'dont-include-config-mk
1313 (substitute* "Makefile" (("include config.mk") ""))
1316 `(("libx11" ,libx11)
1319 ("libxinerama" ,libxinerama)))
1320 (native-inputs `(("pkg-config" ,pkg-config)))
1321 (synopsis "General purpose messaging, notification and menuing program for X11")
1322 (description "Dzen is a general purpose messaging, notification and menuing
1323 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1324 (home-page "https://github.com/robm/dzen")
1325 (license license:expat))))
1327 (define-public xftwidth
1330 (version "20170402")
1335 (url "http://github.com/vixus0/xftwidth")
1336 (commit "35ff963908d41a8a6a7101c434c88255728025ee")))
1339 "1jwl25785li24kbp0m1wxfwk4dgxkliynn03nsj813cjr34kq16h"))
1340 (file-name (string-append name "-" version "-checkout"))))
1341 (build-system gnu-build-system)
1342 (inputs `(("freetype" ,freetype)
1344 ("fontconfig" ,fontconfig)
1345 ("libxft" ,libxft)))
1347 `(("pkg-config" ,pkg-config)))
1350 (modify-phases %standard-phases
1351 (add-after 'unpack 'fix-makefile ; /usr/bin doesn't show up in PATH
1352 (lambda _ (substitute* "Makefile" (("usr/") "")) #t))
1353 (delete 'check) ; no check included in Makefile
1354 (delete 'configure))
1356 (let ((out (assoc-ref %outputs "out")))
1357 (list (string-append "DESTDIR=" out)))))
1358 (synopsis "Calculator for determining pixel widths of displayed text using Xft fonts")
1359 (description "xftwidth is a small C program for calculating the pixel
1360 widths of displayed text using Xft fonts. It is especially useful in scripts
1361 for displaying text in graphical panels, menus, popups, and notification
1362 windows generated using dzen. These scripts are often used in conjunction with
1363 minimalistic tiling window managers such as herbstluftwm and bspwm.")
1364 (home-page "http://github.com/vixus0/xftwidth")
1365 (license license:expat)))
1367 (define-public xcb-util-xrm
1369 (name "xcb-util-xrm")
1374 "https://github.com/Airblader/xcb-util-xrm/releases"
1375 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1378 "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h"))
1379 (modules '((guix build utils)))
1383 (delete-file-recursively "m4")
1385 (build-system gnu-build-system)
1387 `(("pkg-config" ,pkg-config)
1389 ("libx11" ,libx11))) ; for tests
1391 `(("libxcb" ,libxcb)
1392 ("xcb-util" ,xcb-util)))
1393 (home-page "https://github.com/Airblader/xcb-util-xrm")
1394 (synopsis "XCB utility functions for the X resource manager")
1396 "The XCB util module provides a number of libraries which sit on
1397 top of libxcb, the core X protocol library, and some of the extension
1398 libraries. These experimental libraries provide convenience functions
1399 and interfaces which make the raw X protocol more usable. Some of the
1400 libraries also provide client-side code which is not strictly part of
1401 the X protocol but which has traditionally been provided by Xlib.
1403 XCB util-xrm module provides the following libraries:
1405 - xrm: utility functions for the X resource manager.")
1406 (license license:x11)))
1408 (define-public xcalib
1412 (home-page "https://github.com/OpenICC/xcalib")
1420 "05fzdjmhiafgi2jf0k41i3nm0837a78sb6yv59cwc23nla8g0bhr"))
1423 ;; Add missing documentation for the new --output option.
1424 ;; This upstream patch can be removed on the next update.
1428 home-page "/commit/"
1429 "ae03889b91fe984b18e925ad2b5e6f2f7354e058.patch"))
1430 (file-name "xcalib-update-man-page.patch")
1433 "0f7b4d5484x4b9n1bwhqmar0kcaa029ffff7bp3xpr734n1qgqb6")))))))
1434 (build-system cmake-build-system)
1436 '(#:tests? #f)) ; no test suite
1437 (inputs `(("libx11" ,libx11)
1438 ("libxext" ,libxext)
1439 ("libxrandr" ,libxrandr)
1440 ("libxxf86vm" ,libxxf86vm)))
1441 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1442 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1443 profiles to the video card's gamma ramp. It does work with most video card
1444 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1445 invert colors on a specific display/screen.")
1446 (license license:gpl2)))
1448 (define-public nxbelld
1455 (url "https://github.com/dusxmt/nxbelld.git")
1459 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1460 (file-name (git-file-name name version))))
1461 (build-system gnu-build-system)
1462 (arguments '(#:configure-flags `("--enable-sound"
1465 (native-inputs `(("autoconf" ,autoconf)
1466 ("automake" ,automake)
1467 ("pkg-config" ,pkg-config)
1469 (inputs `(("libx11" ,libx11)
1470 ("alsa-lib" ,alsa-lib)))
1471 (synopsis "Daemon that performs an action every time the X11 bell is rung")
1472 (description "nxbelld is a tiny utility to aid people who either don't
1473 like the default PC speaker beep, or use a sound driver that doesn't have
1474 support for the PC speaker. The utility performs a given action every time
1475 the X bell is rung. The actions nxbelld can currently perform include running
1476 a specified program, emulating the PC speaker beep using the sound card (default),
1477 or playing a PCM encoded WAVE file.")
1478 (home-page "https://github.com/dusxmt/nxbelld")
1479 (license license:gpl3+)))
1481 (define-public xautolock
1487 (uri (string-append "http://www.ibiblio.org/pub/linux/X11/screensavers/"
1488 name "-" version ".tgz"))
1491 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1492 (build-system gnu-build-system)
1494 `(("imake" ,imake)))
1496 `(("libx11" ,libx11)
1497 ("libxext" ,libxext)
1498 ("libxscrnsaver" ,libxscrnsaver)))
1502 (modify-phases %standard-phases
1504 (lambda* (#:key inputs outputs #:allow-other-keys)
1505 (let ((imake (assoc-ref inputs "imake"))
1506 (out (assoc-ref outputs "out")))
1507 ;; Generate Makefile
1509 (substitute* "Makefile"
1510 ;; These imake variables somehow remain undefined
1511 (("DefaultGcc2[[:graph:]]*Opt") "-O2")
1512 ;; Reset a few variable defaults that are set in imake templates
1514 (("(MANPATH = )[[:graph:]]*" _ front)
1515 (string-append front out "/share/man")))
1516 ;; Old BSD-style 'union wait' is unneeded (defining
1517 ;; _USE_BSD did not seem to fix it)
1518 (substitute* "src/engine.c"
1519 (("union wait status") "int status = 0"))
1521 (add-after 'install 'install/man
1523 (invoke "make" "install.man"))))))
1524 (home-page "http://ibiblio.org/pub/Linux/X11/screensavers/")
1525 (synopsis "Program launcher for idle X sessions")
1526 (description "Xautolock monitors input devices under the X Window
1527 System, and launches a program of your choice if there is no activity after
1528 a user-configurable period of time.")
1529 (license license:gpl2)))
1531 (define-public screen-message
1533 (name "screen-message")
1538 "https://www.joachim-breitner.de/archive/screen-message"
1539 "/screen-message-" version ".tar.gz"))
1542 "1lw955qq5pq010lzmaf32ylj2iprgsri9ih4hx672c3f794ilab0"))))
1543 (build-system gnu-build-system)
1544 (inputs `(("gtk3" ,gtk+)
1547 (native-inputs `(("pkg-config" ,pkg-config)))
1549 ;; The default configure puts the 'sm' binary in games/ instead of bin/ -
1551 `(#:make-flags (list (string-append "execgamesdir=" %output "/bin"))))
1552 (synopsis "Print messages on your screen")
1553 (description "@code{screen-message} is a tool for displaying text on
1554 your screen. It will make the text as large as possible and display it
1555 with black color on a white background (colors are configurable on the
1557 (home-page "https://www.joachim-breitner.de/projects#screen-message")
1558 (license license:gpl2+)))
1560 (define-public xss-lock
1561 ;; xss-lock does not seem to be maintained any longer, but the last commits
1562 ;; fix important issues so we package them.
1563 (let ((version "0.3.0")
1565 (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717"))
1568 (version (git-version version revision commit))
1572 (url "https://bitbucket.org/raymonad/xss-lock.git")
1574 (file-name (git-file-name name version))
1577 "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r"))))
1578 (build-system cmake-build-system)
1579 (inputs `(("glib" ,glib)
1580 ("xcb-util" ,xcb-util)))
1582 `(("python-docutils" ,python-docutils)
1583 ("pkg-config" ,pkg-config)))
1586 (synopsis "Use external screen locker on events")
1587 (description "@code{xss-lock} listens to X signals to fire up a
1588 user-defined screensaver. In effect this allows to automatically lock the
1589 screen when closing a laptop lid or after a period of user inactivity (as set
1590 with @code{xset s TIMEOUT}). The notifier command, if specified, is executed
1591 first. Additionally, xss-lock uses the inhibition logic to lock the screen
1592 before the system goes to sleep.")
1593 (home-page "https://bitbucket.org/raymonad/xss-lock")
1594 (license license:expat))))
1596 (define-public python-pyperclip
1598 (name "python-pyperclip")
1603 (uri (pypi-uri "pyperclip" version))
1606 "1p505c23ji06r28k1y67siihsbdzdf1brhlqpyv9ams4gk9863pp"))))
1607 (build-system python-build-system)
1609 '(#:tests? #f)) ; Not clear how to make tests pass.
1613 (home-page "https://github.com/asweigart/pyperclip")
1614 (synopsis "Python clipboard module")
1616 "Pyperclip is a clipboard module for Python, handling copy/pasting from
1618 (license license:bsd-3)))
1620 (define-public numlockx
1627 ;; It seems that upstream is gone.
1628 (url "https://github.com/rg3/numlockx")
1630 (file-name (git-file-name name version))
1633 "1w49fayhwzn5rx0z1q2lrvm7z8jrd34lgb89p853a024bixc3cf2"))))
1634 (build-system gnu-build-system)
1636 `(("xorg-server" ,xorg-server)))
1637 (home-page "https://github.com/rg3/numlockx")
1638 (synopsis "Turns on the numlock key in X11")
1639 (description "@command{numlockx} is a tiny program that lets you turn on
1640 the numlock key in X11. It can be called from the user's initialization files
1641 to automatically turn it on on login.")
1642 (license license:expat)))
1644 (define-public xrandr-invert-colors
1646 (name "xrandr-invert-colors")
1651 (url "https://github.com/zoltanp/xrandr-invert-colors.git")
1652 (commit (string-append "v" version))))
1653 (file-name (git-file-name name version))
1656 "1br3x9vr6xm4ika06n8cfxx1b3wdchdqvyzjl4y1chmivrml8x9h"))))
1657 (build-system gnu-build-system)
1659 `(#:make-flags (list "CC=gcc")
1660 #:tests? #f ; there are none
1662 (modify-phases %standard-phases
1665 (lambda* (#:key outputs #:allow-other-keys)
1666 (let* ((out (assoc-ref outputs "out"))
1667 (bin (string-append out "/bin")))
1668 (install-file "xrandr-invert-colors.bin" bin)
1671 `(("libxrandr" ,libxrandr)))
1672 (home-page "https://github.com/zoltanp/xrandr-invert-colors")
1673 (synopsis "Invert display colors")
1674 (description "This package provides a small utility for inverting the
1675 colors on all monitors attached to an XRandR-capable X11 display server.")
1676 (license license:gpl3+)))
1686 (string-append "https://www.umaxx.net/dl/sct-"
1690 "0r57z9ki8pvxhawfxys0v5h85z2x211sqxki0xvk1bga88ryldlv"))))
1691 (build-system gnu-build-system)
1693 '(#:make-flags (list "CC=gcc")
1694 #:tests? #f ; No tests exist.
1696 (modify-phases %standard-phases
1698 (add-after 'unpack 'fix-sctd-paths
1699 (lambda* (#:key outputs inputs #:allow-other-keys)
1700 (let ((out (assoc-ref outputs "out"))
1701 (coreutils (assoc-ref inputs "coreutils"))
1702 (inetutils (assoc-ref inputs "inetutils"))
1703 (sed (assoc-ref inputs "sed")))
1704 (substitute* "sctd.sh"
1705 (("\\$\\(which sct\\)") (string-append out "/bin/sct"))
1706 (("date") (string-append coreutils "/bin/date"))
1707 (("printf") (string-append coreutils "/bin/printf"))
1708 (("sleep") (string-append coreutils "/bin/sleep"))
1709 (("logger") (string-append inetutils "/bin/logger"))
1710 (("sed") (string-append sed "/bin/sed"))))))
1712 (lambda* (#:key outputs #:allow-other-keys)
1713 (let ((out (assoc-ref outputs "out")))
1714 (install-file "sct" (string-append out "/bin"))
1715 (install-file "sctd.sh" (string-append out "/bin"))
1716 (install-file "sct.1" (string-append out "/man/man1"))
1717 (install-file "sctd.1" (string-append out "/man/man1"))
1718 (rename-file (string-append out "/bin/sctd.sh")
1719 (string-append out "/bin/sctd"))
1722 `(("coreutils" ,coreutils) ; sctd uses "date", "printf" and "sleep"
1723 ("inetutils" ,inetutils) ; sctd uses "logger"
1724 ("libxrandr" ,libxrandr)
1725 ("sed" ,sed))) ; sctd uses "sed"
1726 (home-page "https://www.umaxx.net")
1727 (synopsis "Set the color temperature of the screen")
1728 (description "@code{sct} is a lightweight utility to set the color
1729 temperature of the screen.")
1730 (license (license:non-copyleft "file://sct.c")))) ; "OpenBSD" license
1732 (define-public wl-clipboard
1734 (name "wl-clipboard")
1735 (version "2.0.0_beta2")
1740 (url "https://github.com/bugaevc/wl-clipboard.git")
1742 (file-name (git-file-name name version))
1744 (base32 "0wyqbaph9v1v6lwfcjf8gjhdl70icpss4wapshzfxcz3l9m1p8hv"))))
1745 (build-system meson-build-system)
1747 `(("pkg-config" ,pkg-config)))
1749 `(("wayland" ,wayland)
1750 ("wayland-protocols" ,wayland-protocols)))
1751 (home-page "https://github.com/bugaevc/wl-clipboard")
1752 (synopsis "Command-line copy/paste utilities for Wayland")
1753 (description "Wl-clipboard is a set of command-line copy/paste utilities for
1755 (license license:gpl3+)))
1757 (define-public autocutsel
1763 (uri (string-append "https://github.com/sigmike/autocutsel"
1764 "/releases/download/" version "/"
1765 "autocutsel-" version ".tar.gz"))
1768 "0gsys2dzh4az51ndcsabhlbbrjn2nm75lnjr45kg6r8sm8q66dx2"))))
1769 (build-system gnu-build-system)
1771 '(#:tests? #f)) ; no "check" target
1772 (native-inputs `(("libx11" ,libx11)
1773 ("libxaw" ,libxaw)))
1774 (home-page "https://www.nongnu.org/autocutsel/")
1775 (synopsis "Automated X11 clipboard and cutbuffer synchronization")
1776 (description "@code{autocutsel} tracks changes in the server's cutbuffer
1777 and clipboard selection. When the clipboard is changed, it updates the
1778 cutbuffer. When the cutbuffer is changed, it owns the clipboard selection.
1779 The cutbuffer and clipboard selection are always synchronized.")
1780 (license license:gpl2+)))