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 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>
29 ;;; This file is part of GNU Guix.
31 ;;; GNU Guix is free software; you can redistribute it and/or modify it
32 ;;; under the terms of the GNU General Public License as published by
33 ;;; the Free Software Foundation; either version 3 of the License, or (at
34 ;;; your option) any later version.
36 ;;; GNU Guix is distributed in the hope that it will be useful, but
37 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
38 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39 ;;; GNU General Public License for more details.
41 ;;; You should have received a copy of the GNU General Public License
42 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
44 (define-module (gnu packages xdisorg)
45 #:use-module ((guix licenses) #:prefix license:)
46 #:use-module (guix packages)
47 #:use-module (guix download)
48 #:use-module (guix git-download)
49 #:use-module (guix utils)
50 #:use-module (guix build-system cmake)
51 #:use-module (guix build-system gnu)
52 #:use-module (guix build-system glib-or-gtk)
53 #:use-module (guix build-system meson)
54 #:use-module (guix build-system python)
55 #:use-module (gnu packages)
56 #:use-module (gnu packages documentation)
57 #:use-module (gnu packages admin)
58 #:use-module (gnu packages base)
59 #:use-module (gnu packages algebra)
60 #:use-module (gnu packages autotools)
61 #:use-module (gnu packages check)
62 #:use-module (gnu packages compression)
63 #:use-module (gnu packages image)
64 #:use-module (gnu packages pkg-config)
65 #:use-module (gnu packages flex)
66 #:use-module (gnu packages freedesktop)
67 #:use-module (gnu packages gettext)
68 #:use-module (gnu packages gl)
69 #:use-module (gnu packages glib)
70 #:use-module (gnu packages gnome)
71 #:use-module (gnu packages icu4c)
72 #:use-module (gnu packages man)
73 #:use-module (gnu packages maths)
74 #:use-module (gnu packages m4)
75 #:use-module (gnu packages ncurses)
76 #:use-module (gnu packages perl)
77 #:use-module (gnu packages python)
78 #:use-module (gnu packages python-xyz)
79 #:use-module (gnu packages linux)
80 #:use-module (gnu packages gl)
81 #:use-module (gnu packages guile)
82 #:use-module (gnu packages xml)
83 #:use-module (gnu packages gtk)
84 #:use-module (gnu packages xorg)
85 #:use-module (gnu packages bison)
86 #:use-module (ice-9 match))
88 ;; packages outside the x.org system proper
96 (uri (string-append "http://christian.amsuess.com/tools/" name
97 "/files/" name "-" version ".tar.gz"))
100 "1i3f1agixxbfy4kxikb2b241p7c2lg73cl9wqfvlwz3q6zf5faxv"))
101 (modules '((guix build utils)))
104 ;; Do not record a timestamp and file name in gzipped man
105 ;; pages (this is equivalent to 'gzip --no-name'.)
106 (substitute* "setup.py"
107 (("gzip\\.open\\(gzfile, 'w', 9\\)")
108 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)"))
110 (build-system python-build-system)
112 `(#:python ,python-2 ;incompatible with python 3
114 (modify-phases %standard-phases
115 (add-before 'build 'configure
116 (lambda* (#:key inputs #:allow-other-keys)
117 (substitute* "screenlayout/xrandr.py"
118 (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr")
121 #:tests? #f)) ;no tests
122 (inputs `(("pygtk" ,python2-pygtk)
124 (native-inputs `(("gettext" ,gettext-minimal)
125 ("python-docutils" ,python2-docutils)))
126 (home-page "https://christian.amsuess.com/tools/arandr/")
127 (synopsis "Another RandR graphical user interface")
128 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
129 (description "ARandR is designed to provide a simple visual front end for
130 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
131 shown graphically and can be changed in a drag-and-drop way. Configurations
132 are saved as executable shell scripts which can be loaded without using this
134 (license license:gpl3+)))
136 (define-public autorandr
137 ;; Use latest commit since 1.7 lacks many new features such as the
138 ;; autorandr_launcher.
139 (let ((commit "b484c0ea9c9a4838278bbd661a7cc384333c1df8"))
142 (version (git-version "1.7" "1" commit))
143 (home-page "https://github.com/phillipberndt/autorandr")
150 (file-name (git-file-name name version))
153 "0da17kzsisjv3s993j5idkk1n2d2cvjdn7pngs2b0ic1r2h5z02h"))))
154 (build-system python-build-system)
156 `(("man-db" ,man-db)))
162 (modify-phases %standard-phases
163 (add-before 'build 'configure
164 (lambda* (#:key inputs #:allow-other-keys)
165 (substitute* "autorandr.py"
166 (("popen\\(\"xrandr") (string-append "popen(\""
167 (assoc-ref inputs "xrandr")
169 (("\\[\"xrandr") (string-append "[\""
170 (assoc-ref inputs "xrandr")
173 (add-after 'install 'install-contrib
174 (lambda* (#:key outputs #:allow-other-keys)
176 (string-append "DESTDIR=" (assoc-ref outputs "out"))
178 "BASH_COMPLETIONS_DIR=etc/bash_completiond.d"
180 "install_bash_completion"
181 "install_launcher"))))))
182 (synopsis "Auto-detect connected displays and load appropriate setup")
183 (description "Autorandr wraps around xrandr to help with X11
184 multi-screen configuration management. It allows the user to create profiles
185 for various multi-screen setups. Autorandr automatically detects the profiles
186 that can be activated based on the connected hardware. Hook scripts can be
187 used to further tweak the behaviour of the different profiles.")
188 (license license:gpl3+))))
198 (url "https://github.com/astrand/xclip.git")
200 (file-name (git-file-name name version))
203 "0q0hmvcjlv8arhh1pzhja2wglyj6n7z209jnpnzd281kqqv4czcs"))))
204 (build-system gnu-build-system)
206 '(#:tests? #f)) ;there is no test suite
208 `(("autoconf" ,autoconf)
209 ("automake" ,automake)))
210 (inputs `(("libxmu" ,libxmu)
212 (home-page "https://github.com/astrand/xclip")
213 (synopsis "Command line interface to X11 clipboard")
214 (description "Xclip is a command line interface to the X11 clipboard. It
215 can also be used for copying files, as an alternative to sftp/scp, thus
216 avoiding password prompts when X11 forwarding has already been setup.")
217 (license license:gpl2+)))
219 (define-public libxkbcommon
221 (name "libxkbcommon")
225 (uri (string-append "https://xkbcommon.org/download/libxkbcommon-"
229 "12vc91ydhphd5sddz15560r41l7k0i7mq6nma8kkbzdp6bwwzpb0"))))
230 (build-system gnu-build-system)
234 ("xkeyboard-config" ,xkeyboard-config)))
237 ("pkg-config" ,pkg-config)))
240 (list (string-append "--with-xkb-config-root="
241 (assoc-ref %build-inputs "xkeyboard-config")
243 (string-append "--with-x-locale-root="
244 (assoc-ref %build-inputs "libx11")
245 "/share/X11/locale"))))
246 (home-page "https://xkbcommon.org/")
247 (synopsis "Library to handle keyboard descriptions")
248 (description "Xkbcommon is a library to handle keyboard descriptions,
249 including loading them from disk, parsing them and handling their
250 state. It is mainly meant for client toolkits, window systems, and other
251 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
252 Clutter, and more. Despite the name, it is not currently used by anything
254 (license (license:x11-style "file://COPYING"
255 "See 'COPYING' in the distribution."))))
257 (define-public libfakekey
264 (uri (string-append "https://downloads.yoctoproject.org/releases"
265 "/matchbox/libfakekey/" version "/libfakekey-"
269 "1501l0bflcrhqbf12n7a7cqilvr0w4xawxw0vw75p2940nkl4464"))))
270 (build-system gnu-build-system)
272 `(#:make-flags (list "AM_LDFLAGS=-lX11")))
274 `(("pkg-config" ,pkg-config)))
276 `(("libxtst" ,libxtst)
278 (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox")
279 (synopsis "X virtual keyboard library")
281 "Libfakekey is a virtual keyboard library for X.")
282 (license license:gpl2)))
284 (define-public xdotool
287 (version "3.20160805.1")
292 "https://github.com/jordansissel/xdotool/releases/download/v"
293 version "/xdotool-" version ".tar.gz"))
296 "1a6c1zr86zb53352yxv104l76l8x21gfl2bgw6h21iphxpv5zgim"))))
297 (build-system gnu-build-system)
299 '(#:tests? #f ; Test suite requires a lot of black magic
301 (modify-phases %standard-phases
303 (lambda* (#:key outputs #:allow-other-keys #:rest args)
304 (let ((out (assoc-ref outputs "out")))
305 (mkdir-p (string-append out "/lib"))
306 (setenv "PREFIX" out)
307 (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib"))
310 (native-inputs `(("perl" ,perl))) ; for pod2man
311 (inputs `(("libx11" ,libx11)
314 ("libxinerama" ,libxinerama)
316 ("libxkbcommon" ,libxkbcommon)))
317 (home-page "http://www.semicomplete.com/projects/xdotool")
318 (synopsis "Fake keyboard/mouse input, window management, and more")
319 (description "Xdotool lets you simulate keyboard input and mouse activity,
320 move and resize windows, etc. It does this using X11's XTEST extension and
321 other Xlib functions. Additionally, you can search for windows and move,
322 resize, hide, and modify window properties like the title. If your window
323 manager supports it, you can use xdotool to switch desktops, move windows
324 between desktops, and change the number of desktops.")
325 (license license:bsd-3)))
334 (uri (string-append "https://www.x.org/releases/individual/app/"
335 name "-" version ".tar.bz2"))
337 (base32 "0lq5j7fryx1wn998jq6h3icz1h6pqrsbs3adskjzjyhn5l6yrg2p"))))
338 (build-system gnu-build-system)
340 `(("libxext" ,libxext)
342 ("libxrender" ,libxrender)
345 `(("pkg-config" ,pkg-config)))
346 (home-page "https://www.x.org/") ; no dedicated Xeyes page exists
347 (synopsis "Follow-the-mouse X demo")
348 (description "Xeyes is a demo program for x.org. It shows eyes
349 following the mouse.")
350 (license license:x11)))
353 (define-public pixman
360 "https://www.cairographics.org/releases/pixman-"
364 "1blzrx50ssdv0pn56hcv2v0zw0vrjwj1sx22pkgjls1p9n6rr88w"))
365 (patches (search-patches "pixman-CVE-2016-5296.patch"))))
366 (build-system gnu-build-system)
371 `(("pkg-config" ,pkg-config)))
372 (home-page "http://www.pixman.org/")
373 (synopsis "Low-level pixel manipulation library")
374 (description "Pixman is a low-level software library for pixel
375 manipulation, providing features such as image compositing and trapezoid
377 (license license:x11)))
379 (define-public libdrm
387 "https://dri.freedesktop.org/libdrm/libdrm-"
392 "0pnsw4bmajzdbz8pk4wswdmw93shhympf2q9alhbnpfjgsf57gsd"))
393 (patches (search-patches "libdrm-symbol-check.patch"))))
394 (build-system meson-build-system)
397 '(,@(match (%current-system)
398 ((or "armhf-linux" "aarch64-linux")
403 "-Dfreedreno-kgsl=true"))
406 #:phases (modify-phases %standard-phases
409 (invoke "meson" "test" "--timeout-multiplier" "5"))))))
411 `(("libpciaccess" ,libpciaccess)))
413 `(("pkg-config" ,pkg-config)))
414 (home-page "https://dri.freedesktop.org/wiki/")
415 (synopsis "Direct rendering userspace library")
416 (description "The Direct Rendering Infrastructure, also known as the DRI,
417 is a framework for allowing direct access to graphics hardware under the
418 X Window System in a safe and efficient manner. It includes changes to the
419 X server, to several client libraries, and to the kernel (DRM, Direct
420 Rendering Manager). The most important use for the DRI is to create fast
421 OpenGL implementations providing hardware acceleration for Mesa.
422 Several 3D accelerated drivers have been written to the DRI specification,
423 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
425 (license license:x11)))
436 "http://bitmath.org/code/mtdev/mtdev-"
440 "0zxs7shzgbalkvlaiibi25bd902rbmkv9n1lww6q8j3ri9qdaxv6"))))
441 (build-system gnu-build-system)
442 (home-page "http://bitmath.org/code/mtdev/")
443 (synopsis "Multitouch protocol translation library")
444 (description "Mtdev is a stand-alone library which transforms all
445 variants of kernel MT events to the slotted type B protocol. The events
446 put into mtdev may be from any MT device, specifically type A without
447 contact tracking, type A with contact tracking, or type B with contact
449 (license license:x11)))
451 (define-public startup-notification
453 (name "startup-notification")
458 (uri (string-append "https://www.freedesktop.org/software/" name
459 "/releases/" name "-" version ".tar.gz"))
462 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
463 (build-system gnu-build-system)
464 (native-inputs `(("pkg-config" ,pkg-config)))
467 ("xcb-util" ,xcb-util)))
468 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
469 (synopsis "Application startup notification and feedback library")
471 "Startup-notification contains a reference implementation of the startup
472 notification protocol. The reference implementation is mostly under an X Window
473 System style license, and has no special dependencies.")
474 ;; Most of the code is provided under x11 license.
475 (license license:lgpl2.0+)))
477 (define-public wmctrl
484 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
488 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
489 (patches (search-patches "wmctrl-64-fix.patch"))))
490 (build-system gnu-build-system)
493 (list (string-append "--mandir="
494 (assoc-ref %outputs "out")
497 `(("pkg-config" ,pkg-config)))
502 (home-page "http://tomas.styblo.name/wmctrl/")
503 (synopsis "Command-line tool to control X window managers")
505 "Wmctrl allows to interact with an X window manager that is compatible
506 with the EWMH/NetWM specification. It can query the window manager for
507 information, and request for certain window management actions (resize and
508 move windows, switch between desktops, etc.).")
509 (license license:gpl2+)))
520 (url "https://github.com/resurrecting-open-source-projects/scrot.git")
522 (file-name (git-file-name name version))
524 (base32 "1dg0pnmk09p7zlbyxv7d40vf54amrv73y976ds5p7096x6lmlndy"))))
525 (build-system gnu-build-system)
527 `(("autoconf" ,autoconf)
528 ("automake" ,automake)))
532 (home-page "https://github.com/resurrecting-open-source-projects/scrot")
533 (synopsis "Command-line screen capture utility for X Window System")
535 "Scrot allows to save a screenshot of a full screen, a window or a part
536 of the screen selected by mouse.")
537 ;; This license removes a clause about X Consortium from the original
539 (license (license:x11-style "file://COPYING"
540 "See 'COPYING' in the distribution."))))
549 (url "https://github.com/naelstrof/slop.git")
550 (commit (string-append "v" version))))
551 (file-name (git-file-name name version))
554 "0fgd8a2dqkg64all0f96sca92sdss9r3pzmv5kck46b99z2325z6"))))
555 (build-system cmake-build-system)
557 '(#:tests? #f)) ; no "check" target
563 ("libxrender" ,libxrender)
565 (home-page "https://github.com/naelstrof/slop")
566 (synopsis "Select a region and print its bounds to stdout")
568 "slop (Select Operation) is a tool that queries for a selection from a
569 user and prints the region to stdout. It grabs the mouse and turns it into a
570 crosshair, lets the user click and drag to make a selection (or click on a
571 window) while drawing a pretty box around it, then finally prints the
572 selection's dimensions to stdout.")
573 (license license:gpl3+)))
582 (url "https://github.com/naelstrof/maim.git")
583 (commit (string-append "v" version))))
584 (file-name (git-file-name name version))
587 "1kbxsz8whfxl5blwsvpva2q95zwy72argwhi1cfqh5lrhzq5zrpp"))))
588 (build-system cmake-build-system)
590 '(#:tests? #f)) ; no "check" target
593 ("libjpeg" ,libjpeg-turbo)
595 ("libxcomposite" ,libxcomposite)
596 ("libxfixes" ,libxfixes)
597 ("libxrandr" ,libxrandr)
601 (home-page "https://github.com/naelstrof/maim")
602 (synopsis "Screenshot utility for X Window System")
604 "maim (Make Image) is a tool that takes screenshots of your desktop and
605 saves it in any format. Along with a full screen, it allows you to capture a
606 predefined region or a particular window. Also, it makes it possible to
607 include cursor in the resulting image.")
608 (license license:gpl3+)))
610 (define-public unclutter
617 "http://ftp.x.org/contrib/utilities/unclutter-"
621 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
622 (build-system gnu-build-system)
624 '(#:tests? #f ; no check target
626 (modify-phases %standard-phases
629 (lambda* (#:key inputs outputs #:allow-other-keys)
630 (let* ((out (assoc-ref outputs "out"))
631 (bin (string-append out "/bin"))
632 (man1 (string-append out "/share/man/man1")))
635 (invoke "make" "install" "install.man"
636 (string-append "BINDIR=" bin)
637 (string-append "MANDIR=" man1))))))))
638 (inputs `(("libx11" ,libx11)))
639 (home-page "http://ftp.x.org/contrib/utilities/")
640 (synopsis "Hide idle mouse cursor")
642 "Unclutter is a program which runs permanently in the background of an
643 X11 session. It checks on the X11 pointer (cursor) position every few
644 seconds, and when it finds it has not moved (and no buttons are pressed
645 on the mouse, and the cursor is not in the root window) it creates a
646 small sub-window as a child of the window the cursor is in. The new
647 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
648 invisible cursor. This allows you to see all the text in an xterm or
649 xedit, for example. The human factors crowd would agree it should make
650 things less distracting.")
651 (license license:public-domain)))
653 (define-public xautomation
660 (uri (string-append "https://www.hoopajoo.net/static/projects/"
661 "xautomation-" version ".tar.gz"))
665 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
666 (build-system gnu-build-system)
671 ("libxtst" ,libxtst)))
673 `(("xorgproto" ,xorgproto)))
674 (synopsis "Tools to automate tasks in X such as detecting on screen images")
676 "Xautomation can control X from the command line for scripts, and
677 do visual scraping to find things on the screen. The control interface
678 allows mouse movement, clicking, button up/down, key up/down, etc, and
679 uses the XTest extension so you don't have the annoying problems that
680 xse has when apps ignore sent events. The visgrep program can find
681 images inside of images and reports the coordinates, allowing programs
682 to find buttons, etc, on the screen to click on.")
683 (home-page "https://www.hoopajoo.net/projects/xautomation.html")
684 (license license:gpl2+)))
686 (define-public xbanish
690 (home-page "https://github.com/jcs/xbanish")
693 (uri (git-reference (url home-page)
694 (commit (string-append "v" version))))
697 "0vp8ja68hpmqkl61zyjar3czhmny1hbm74m8f393incfz1ymr3i8"))))
698 (build-system gnu-build-system)
700 `(#:tests? #f ;no tests
701 #:make-flags (list "CC=gcc"
702 (string-append "PREFIX=" (assoc-ref %outputs "out")))
703 #:phases (modify-phases %standard-phases
704 (delete 'configure))))
707 ("libxfixes" ,libxfixes)
710 (synopsis "Banish the mouse cursor")
712 "@command{xbanish} hides the mouse cursor when you start typing, and
713 shows it again when the mouse cursor moves or a mouse button is pressed.")
714 (license license:bsd-3)))
716 (define-public xlockmore
722 (uri (list (string-append "http://sillycycle.com/xlock/"
723 name "-" version ".tar.xz")
724 ;; Previous releases are moved to a subdirectory.
725 (string-append "http://sillycycle.com/xlock/"
727 name "-" version ".tar.xz")))
730 "1dg1n79rnswhxqz36mxnl5lp8p37i9fbibnzzyrqknmvf2s8xpd0"))))
731 (build-system gnu-build-system)
733 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
734 (assoc-ref %outputs "out")
735 "/lib/X11/app-defaults"))
736 #:tests? #f)) ;no such thing as a test suite
741 ("linux-pam" ,linux-pam)))
742 (home-page "http://sillycycle.com/xlockmore.html")
743 (synopsis "Screen locker for the X Window System")
745 "XLockMore is a classic screen locker and screen saver for the
747 (license (license:non-copyleft #f "See xlock.c.")
748 ))) ; + GPLv2 in modes/glx/biof.c.
757 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
758 name "-" version ".tar.gz"))
761 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
762 (build-system gnu-build-system)
765 (list (string-append "--mandir=" %output "/share/man"))))
770 ("libxinerama" ,libxinerama)))
771 (home-page "https://sourceforge.net/projects/libxosd/")
772 (synopsis "X On Screen Display")
774 "XOSD provides a C library and a simple utility (osd_cat) for displaying
775 transparent text on your screen.")
776 (license license:gpl2+)))
778 (define-public xbindkeys
784 ;; Download from the savannah mirror list fails
786 "http://www.nongnu.org/xbindkeys/xbindkeys-"
791 "060df6d8y727jp1inp7blp44cs8a7jig7vcm8ndsn6gw36z1h3bc"))))
792 (build-system gnu-build-system)
795 ("guile" ,guile-2.0)))
796 (home-page "https://www.nongnu.org/xbindkeys/")
797 (synopsis "Associate a combination of keys with a shell command")
799 "XBindKeys is a program that allows you to launch shell commands with
800 your keyboard or your mouse under the X Window System. It links commands to
801 keys or mouse buttons, using a configuration file. It's independent of the
802 window manager and can capture all keyboard keys (ex: Power, Wake...). It
803 optionally supports a Guile-based configuration file layout, which enables you
804 to access all XBindKeys internals, so you can have key combinations, double
805 clicks or timed double clicks take actions. Also all functions that work in
806 Guile will work for XBindKeys.")
807 (license license:gpl2+)))
817 (url "https://github.com/baskerville/sxhkd")
820 (base32 "1cz4vkm7fqd51ly9qjkf5q76kdqdzfhaajgvrs4anz5dyzrdpw68"))))
821 (build-system gnu-build-system)
823 `(("asciidoc" ,asciidoc)
825 ("xcb-util" ,xcb-util)
826 ("xcb-util-keysyms" ,xcb-util-keysyms)
827 ("xcb-util-wm" ,xcb-util-wm)))
829 `(#:phases (modify-phases %standard-phases (delete 'configure))
830 #:tests? #f ; no check target
833 (string-append "PREFIX=" %output)
834 ;; Keep the documentation where the build system installs LICENSE.
835 (string-append "DOCPREFIX=" %output
836 "/share/doc/" ,name "-" ,version))))
837 (home-page "https://github.com/baskerville/sxhkd")
838 (synopsis "Simple X hotkey daemon")
839 (description "sxhkd is a simple X hotkey daemon with a powerful and
840 compact configuration syntax.")
841 (license license:bsd-2)))
843 (define-public rxvt-unicode
845 (name "rxvt-unicode")
849 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
850 name "-" version ".tar.bz2"))
851 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
854 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
855 (build-system gnu-build-system)
857 ;; This sets the destination when installing the necessary terminal
858 ;; capability data, which are not provided by 'ncurses'. See
859 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
860 `(#:make-flags (list (string-append "TERMINFO="
861 (assoc-ref %outputs "out")
864 (modify-phases %standard-phases
865 (add-after 'install 'install-desktop-urxvt
866 (lambda* (#:key outputs #:allow-other-keys)
867 (let* ((output (assoc-ref outputs "out"))
868 (desktop (string-append output "/share/applications")))
871 (string-append desktop "/urxvt.desktop")
878 TryExec=~@*~a/bin/urxvt~@
883 (add-after 'install 'install-desktop-urxvtc
884 (lambda* (#:key outputs #:allow-other-keys)
885 (let* ((output (assoc-ref outputs "out"))
886 (desktop (string-append output "/share/applications")))
889 (string-append desktop "/urxvtc.desktop")
893 Name=rxvt-unicode (client)~@
894 Comment=Rxvt clone with XFT and unicode support~@
896 TryExec=~@*~a/bin/urxvtc~@
905 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
907 ("pkg-config" ,pkg-config)))
908 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
909 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
911 (list (search-path-specification
912 (variable "TERMINFO_DIRS")
913 (files '("share/terminfo")))))
914 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
915 (synopsis "Rxvt clone with XFT and unicode support")
916 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
917 intended as an xterm replacement for users who do not require features such as
918 Tektronix 4014 emulation and toolkit-style configurability. It supports
919 unicode, XFT and may be extended with Perl plugins. It also comes with a
920 client/daemon pair that lets you open any number of terminal windows from
921 within a single process.")
922 (license license:gpl3+)))
931 (url "https://github.com/alols/xcape.git")
932 (commit (string-append "v" version))))
933 (file-name (git-file-name name version))
936 "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm"))))
937 (build-system gnu-build-system)
939 `(#:tests? #f ; no check target
940 ;; no configure script
941 #:phases (modify-phases %standard-phases (delete 'configure))
942 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
943 "MANDIR=/share/man/man1"
946 `(("libxtst" ,libxtst)
949 `(("pkg-config" ,pkg-config)))
950 (home-page "https://github.com/alols/xcape")
951 (synopsis "Use a modifier key in X.org as another key")
953 "This utility for X.org allows to use modifier key as another key when
954 pressed and released on its own. The default behaviour is to generate the
955 Escape key when Left Control is pressed and released on its own.")
956 (license license:gpl3+)))
958 (define-public libwacom
965 "https://github.com/linuxwacom/libwacom/releases/download/"
966 "libwacom-" version "/libwacom-" version ".tar.bz2"))
969 "1wnv34y7m9l6avlvwqvfrnksfnsz1lbgb412dn6s7x1h3wvs7y4l"))))
970 (build-system glib-or-gtk-build-system)
972 `(("pkg-config" ,pkg-config)))
975 ("libgudev" ,libgudev)
977 ("libxml2" ,libxml2)))
979 ;; libwacom includes header files that include GLib, and libinput uses
980 ;; those header files.
982 (home-page "https://linuxwacom.github.io/")
983 (synopsis "Helper library for Wacom tablet settings")
985 "Libwacom is a library to help implement Wacom tablet settings. It is
986 intended to be used by client-programs that need model identification. It is
987 already being used by the gnome-settings-daemon and the GNOME Control Center
988 Wacom tablet applet.")
989 (license license:x11)))
991 (define-public xf86-input-wacom
993 (name "xf86-input-wacom")
999 "https://github.com/linuxwacom/xf86-input-wacom/releases/download/"
1000 name "-" version "/" name "-" version ".tar.bz2"))
1003 "029y8varbricba2dzhzhy0ndd7lbfif411ca8c3wxzni9qmbj1ij"))))
1006 (list (string-append "--with-sdkdir="
1007 (assoc-ref %outputs "out")
1009 (string-append "--with-xorg-conf-dir="
1010 (assoc-ref %outputs "out")
1011 "/share/X11/xorg.conf.d"))))
1012 (build-system gnu-build-system)
1014 `(("pkg-config" ,pkg-config)))
1016 `(("xorg-server" ,xorg-server)
1017 ("libxrandr" ,libxrandr)
1018 ("libxinerama" ,libxinerama)
1021 (home-page "https://linuxwacom.github.io/")
1022 (synopsis "Wacom input driver for X")
1024 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
1025 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
1026 (license license:x11)))
1028 (define-public redshift
1036 (string-append "https://github.com/jonls/redshift/"
1037 "releases/download/v" version
1038 "/redshift-" version ".tar.xz"))
1041 "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j"))))
1042 (build-system gnu-build-system)
1044 `(("pkg-config" ,pkg-config)
1045 ("intltool" ,intltool)))
1047 `(("libdrm" ,libdrm)
1050 ("libxxf86vm" ,libxxf86vm)
1051 ("glib" ,glib))) ; for Geoclue2 support
1052 (home-page "https://github.com/jonls/redshift")
1053 (synopsis "Adjust the color temperature of your screen")
1055 "Redshift adjusts the color temperature according to the position of the
1056 sun. A different color temperature is set during night and daytime. During
1057 twilight and early morning, the color temperature transitions smoothly from
1058 night to daytime temperature to allow your eyes to slowly adapt. At night the
1059 color temperature should be set to match the lamps in your room.")
1060 (license license:gpl3+)))
1062 (define-public xscreensaver
1064 (name "xscreensaver")
1070 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
1074 "1qfbsnj7201d03vf0b2lzxmlcq4kvkvzp48r5gcgsjr17c1sl7a4"))))
1075 (build-system gnu-build-system)
1077 `(#:tests? #f ; no check target
1079 (modify-phases %standard-phases
1080 (add-before 'configure 'adjust-gtk-resource-paths
1082 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
1083 (("@GTK_DATADIR@") "@datadir@")
1084 (("@PO_DATADIR@") "@datadir@"))
1086 #:configure-flags '("--with-pam" "--with-proc-interrupts"
1087 "--without-readdisplay")
1088 ;; FIXME: Remove CFLAGS once our default compiler is GCC6 or later.
1089 #:make-flags (list "CFLAGS=-std=c99"
1090 (string-append "AD_DIR="
1091 (assoc-ref %outputs "out")
1092 "/usr/lib/X11/app-defaults"))))
1094 `(("pkg-config" ,pkg-config)
1095 ("intltool" ,intltool)))
1097 `(("libx11" ,libx11)
1098 ("libxext" ,libxext)
1104 ("libglade" ,libglade)
1105 ("libxml2" ,libxml2)
1107 ("libjpeg" ,libjpeg)
1108 ("linux-pam" ,linux-pam)
1114 ("libxrandr" ,libxrandr)
1117 (home-page "https://www.jwz.org/xscreensaver/")
1118 (synopsis "Classic screen saver suite supporting screen locking")
1120 "xscreensaver is a popular screen saver collection with many entertaining
1121 demos. It also acts as a nice screen locker.")
1122 ;; xscreensaver doesn't have a single copyright file and instead relies on
1123 ;; source comment headers, though most files have the same lax
1124 ;; permissions. To reduce complexity, we're pointing at Debian's
1125 ;; breakdown of the copyright information.
1126 (license (license:non-copyleft
1128 "http://metadata.ftp-master.debian.org/changelogs/"
1129 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1137 (uri (string-append "http://www.vergenet.net/~conrad/software"
1138 "/xsel/download/xsel-" version ".tar.gz"))
1141 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1142 (build-system gnu-build-system)
1144 `(("libxt" ,libxt)))
1145 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1146 (synopsis "Manipulate X selection")
1148 "XSel is a command-line program for getting and setting the contents of
1149 the X selection. Normally this is only accessible by manually highlighting
1150 information and pasting it with the middle mouse button.
1152 XSel reads from standard input and writes to standard output by default,
1153 but can also follow a growing file, display contents, delete entries and more.")
1154 (license (license:x11-style "file://COPYING"
1155 "See COPYING in the distribution."))))
1157 (define-public xdpyprobe
1163 (uri (string-append "https://github.com/alezost/" name
1164 "/releases/download/v" version
1165 "/" name "-" version ".tar.gz"))
1168 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1169 (build-system gnu-build-system)
1171 `(("libx11" ,libx11)))
1172 (home-page "https://github.com/alezost/xdpyprobe")
1173 (synopsis "Probe X server for connectivity")
1175 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1176 connectivity of the X server running on a particular @code{DISPLAY}.")
1177 (license license:gpl3+)))
1185 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1186 "releases/download/"
1187 version "/rofi-" version ".tar.xz"))
1190 "0y78ya2va2lg3ww17n11y9awn8lhcp1px2d8gxaimxfqlxczs8la"))))
1191 (build-system gnu-build-system)
1196 ("startup-notification" ,startup-notification)
1197 ("librsvg" ,librsvg)
1198 ("libxkbcommon" ,libxkbcommon)
1200 ("xcb-util" ,xcb-util)
1201 ("xcb-util-xrm" ,xcb-util-xrm)
1202 ("xcb-util-wm" ,xcb-util-wm)))
1207 ("glib:bin" ,glib "bin")
1208 ("pkg-config" ,pkg-config)))
1210 `(#:parallel-tests? #f ; fails in some circumstances
1212 (modify-phases %standard-phases
1213 (add-before 'configure 'adjust-tests
1215 (substitute* '("test/helper-expand.c")
1218 (("g_get_home_dir \\(\\)") "\"/\""))
1220 (home-page "https://github.com/DaveDavenport/rofi")
1221 (synopsis "Application launcher")
1222 (description "Rofi is a minimalist application launcher. It memorizes which
1223 applications you regularly use and also allows you to search for an application
1225 (license license:expat)))
1227 (define-public tint2
1233 (uri (string-append "https://gitlab.com/o9000/" name
1234 "/repository/archive.tar.gz?ref=" version))
1235 (file-name (string-append name "-" version ".tar.gz"))
1238 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1239 (build-system cmake-build-system)
1241 '(#:tests? #f ;no test target
1243 (modify-phases %standard-phases
1244 (add-after 'unpack 'fix-installation-prefix
1246 (substitute* "CMakeLists.txt"
1247 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))
1252 ("librsvg" ,librsvg)
1253 ("libxcomposite" ,libxcomposite)
1254 ("libxdamage" ,libxdamage)
1256 ("libxinerama" ,libxinerama)
1257 ("libxrandr" ,libxrandr)
1258 ("startup-notification" ,startup-notification)))
1260 `(("gettext" ,gettext-minimal)
1261 ("pkg-config" ,pkg-config)))
1262 (home-page "https://gitlab.com/o9000/tint2")
1263 (synopsis "Lightweight task bar")
1265 "Tint2 is a simple task bar made for modern X window managers. It was
1266 specifically made for Openbox but it should also work with other window
1267 managers (GNOME, KDE, XFCE etc.).
1269 The taskbar includes transparency and color settings for the font, icons,
1270 border, and background. It also supports multihead setups, customized mouse
1271 actions, a built-in clock, a battery monitor and a system tray.")
1272 (license license:gpl2)))
1275 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1279 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1280 revision "." (string-take commit 7)))
1284 (url "https://github.com/robm/dzen.git")
1286 (file-name (string-append name "-" version))
1289 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1290 (build-system gnu-build-system)
1292 `(#:tests? #f ; No test suite.
1293 #:make-flags ; Replacement for `config.mk`.
1295 (string-append "VERSION = " ,version)
1296 (string-append "PREFIX = " %output)
1297 "MANPREFIX = ${PREFIX}/share/man"
1299 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1300 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1301 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1306 (modify-phases %standard-phases
1307 (delete 'configure) ; No configuration script.
1308 ;; Use own make-flags instead of `config.mk`.
1309 (add-before 'build 'dont-include-config-mk
1311 (substitute* "Makefile" (("include config.mk") ""))
1314 `(("libx11" ,libx11)
1317 ("libxinerama" ,libxinerama)))
1318 (native-inputs `(("pkg-config" ,pkg-config)))
1319 (synopsis "General purpose messaging, notification and menuing program for X11")
1320 (description "Dzen is a general purpose messaging, notification and menuing
1321 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1322 (home-page "https://github.com/robm/dzen")
1323 (license license:expat))))
1325 (define-public xcb-util-xrm
1327 (name "xcb-util-xrm")
1332 "https://github.com/Airblader/xcb-util-xrm/releases"
1333 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1336 "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h"))
1337 (modules '((guix build utils)))
1341 (delete-file-recursively "m4")
1343 (build-system gnu-build-system)
1345 `(("pkg-config" ,pkg-config)
1347 ("libx11" ,libx11))) ; for tests
1349 `(("libxcb" ,libxcb)
1350 ("xcb-util" ,xcb-util)))
1351 (home-page "https://github.com/Airblader/xcb-util-xrm")
1352 (synopsis "XCB utility functions for the X resource manager")
1354 "The XCB util module provides a number of libraries which sit on
1355 top of libxcb, the core X protocol library, and some of the extension
1356 libraries. These experimental libraries provide convenience functions
1357 and interfaces which make the raw X protocol more usable. Some of the
1358 libraries also provide client-side code which is not strictly part of
1359 the X protocol but which has traditionally been provided by Xlib.
1361 XCB util-xrm module provides the following libraries:
1363 - xrm: utility functions for the X resource manager.")
1364 (license license:x11)))
1366 (define-public xcalib
1370 (home-page "https://github.com/OpenICC/xcalib")
1378 "05fzdjmhiafgi2jf0k41i3nm0837a78sb6yv59cwc23nla8g0bhr"))
1381 ;; Add missing documentation for the new --output option.
1382 ;; This upstream patch can be removed on the next update.
1386 home-page "/commit/"
1387 "ae03889b91fe984b18e925ad2b5e6f2f7354e058.patch"))
1388 (file-name "xcalib-update-man-page.patch")
1391 "0f7b4d5484x4b9n1bwhqmar0kcaa029ffff7bp3xpr734n1qgqb6")))))))
1392 (build-system cmake-build-system)
1394 '(#:tests? #f)) ; no test suite
1395 (inputs `(("libx11" ,libx11)
1396 ("libxext" ,libxext)
1397 ("libxrandr" ,libxrandr)
1398 ("libxxf86vm" ,libxxf86vm)))
1399 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1400 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1401 profiles to the video card's gamma ramp. It does work with most video card
1402 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1403 invert colors on a specific display/screen.")
1404 (license license:gpl2)))
1406 (define-public nxbelld
1413 (url "https://github.com/dusxmt/nxbelld.git")
1417 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1418 (file-name (git-file-name name version))))
1419 (build-system gnu-build-system)
1420 (arguments '(#:configure-flags `("--enable-sound"
1423 (native-inputs `(("autoconf" ,autoconf)
1424 ("automake" ,automake)
1425 ("pkg-config" ,pkg-config)
1427 (inputs `(("libx11" ,libx11)
1428 ("alsa-lib" ,alsa-lib)))
1429 (synopsis "Daemon that performs an action every time the X11 bell is rung")
1430 (description "nxbelld is a tiny utility to aid people who either don't
1431 like the default PC speaker beep, or use a sound driver that doesn't have
1432 support for the PC speaker. The utility performs a given action every time
1433 the X bell is rung. The actions nxbelld can currently perform include running
1434 a specified program, emulating the PC speaker beep using the sound card (default),
1435 or playing a PCM encoded WAVE file.")
1436 (home-page "https://github.com/dusxmt/nxbelld")
1437 (license license:gpl3+)))
1439 (define-public xautolock
1445 (uri (string-append "http://www.ibiblio.org/pub/linux/X11/screensavers/"
1446 name "-" version ".tgz"))
1449 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1450 (build-system gnu-build-system)
1452 `(("imake" ,imake)))
1454 `(("libx11" ,libx11)
1455 ("libxext" ,libxext)
1456 ("libxscrnsaver" ,libxscrnsaver)))
1460 (modify-phases %standard-phases
1462 (lambda* (#:key inputs outputs #:allow-other-keys)
1463 (let ((imake (assoc-ref inputs "imake"))
1464 (out (assoc-ref outputs "out")))
1465 ;; Generate Makefile
1467 (substitute* "Makefile"
1468 ;; These imake variables somehow remain undefined
1469 (("DefaultGcc2[[:graph:]]*Opt") "-O2")
1470 ;; Reset a few variable defaults that are set in imake templates
1472 (("(MANPATH = )[[:graph:]]*" _ front)
1473 (string-append front out "/share/man")))
1474 ;; Old BSD-style 'union wait' is unneeded (defining
1475 ;; _USE_BSD did not seem to fix it)
1476 (substitute* "src/engine.c"
1477 (("union wait status") "int status = 0"))
1479 (add-after 'install 'install/man
1481 (invoke "make" "install.man"))))))
1482 (home-page "http://ibiblio.org/pub/Linux/X11/screensavers/")
1483 (synopsis "Program launcher for idle X sessions")
1484 (description "Xautolock monitors input devices under the X Window
1485 System, and launches a program of your choice if there is no activity after
1486 a user-configurable period of time.")
1487 (license license:gpl2)))
1489 (define-public screen-message
1491 (name "screen-message")
1496 "https://www.joachim-breitner.de/archive/screen-message"
1497 "/screen-message-" version ".tar.gz"))
1500 "1lw955qq5pq010lzmaf32ylj2iprgsri9ih4hx672c3f794ilab0"))))
1501 (build-system gnu-build-system)
1502 (inputs `(("gtk3" ,gtk+)
1505 (native-inputs `(("pkg-config" ,pkg-config)))
1507 ;; The default configure puts the 'sm' binary in games/ instead of bin/ -
1509 `(#:make-flags (list (string-append "execgamesdir=" %output "/bin"))))
1510 (synopsis "Print messages on your screen")
1511 (description "@code{screen-message} is a tool for displaying text on
1512 your screen. It will make the text as large as possible and display it
1513 with black color on a white background (colors are configurable on the
1515 (home-page "https://www.joachim-breitner.de/projects#screen-message")
1516 (license license:gpl2+)))
1518 (define-public xss-lock
1519 ;; xss-lock does not seem to be maintained any longer, but the last commits
1520 ;; fix important issues so we package them.
1521 (let ((version "0.3.0")
1523 (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717"))
1526 (version (git-version version revision commit))
1530 (url "https://bitbucket.org/raymonad/xss-lock.git")
1532 (file-name (git-file-name name version))
1535 "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r"))))
1536 (build-system cmake-build-system)
1537 (inputs `(("glib" ,glib)
1538 ("xcb-util" ,xcb-util)))
1540 `(("python-docutils" ,python-docutils)
1541 ("pkg-config" ,pkg-config)))
1544 (synopsis "Use external screen locker on events")
1545 (description "@code{xss-lock} listens to X signals to fire up a
1546 user-defined screensaver. In effect this allows to automatically lock the
1547 screen when closing a laptop lid or after a period of user inactivity (as set
1548 with @code{xset s TIMEOUT}). The notifier command, if specified, is executed
1549 first. Additionally, xss-lock uses the inhibition logic to lock the screen
1550 before the system goes to sleep.")
1551 (home-page "https://bitbucket.org/raymonad/xss-lock")
1552 (license license:expat))))
1554 (define-public python-pyperclip
1556 (name "python-pyperclip")
1561 (uri (pypi-uri "pyperclip" version))
1564 "1p505c23ji06r28k1y67siihsbdzdf1brhlqpyv9ams4gk9863pp"))))
1565 (build-system python-build-system)
1567 '(#:tests? #f)) ; Not clear how to make tests pass.
1571 (home-page "https://github.com/asweigart/pyperclip")
1572 (synopsis "Python clipboard module")
1574 "Pyperclip is a clipboard module for Python, handling copy/pasting from
1576 (license license:bsd-3)))
1578 (define-public numlockx
1585 ;; It seems that upstream is gone.
1586 (url "https://github.com/rg3/numlockx")
1588 (file-name (git-file-name name version))
1591 "1w49fayhwzn5rx0z1q2lrvm7z8jrd34lgb89p853a024bixc3cf2"))))
1592 (build-system gnu-build-system)
1594 `(("xorg-server" ,xorg-server)))
1595 (home-page "https://github.com/rg3/numlockx")
1596 (synopsis "Turns on the numlock key in X11")
1597 (description "@command{numlockx} is a tiny program that lets you turn on
1598 the numlock key in X11. It can be called from the user's initialization files
1599 to automatically turn it on on login.")
1600 (license license:expat)))
1602 (define-public xrandr-invert-colors
1604 (name "xrandr-invert-colors")
1609 (url "https://github.com/zoltanp/xrandr-invert-colors.git")
1610 (commit (string-append "v" version))))
1611 (file-name (git-file-name name version))
1614 "1br3x9vr6xm4ika06n8cfxx1b3wdchdqvyzjl4y1chmivrml8x9h"))))
1615 (build-system gnu-build-system)
1617 `(#:make-flags (list "CC=gcc")
1618 #:tests? #f ; there are none
1620 (modify-phases %standard-phases
1623 (lambda* (#:key outputs #:allow-other-keys)
1624 (let* ((out (assoc-ref outputs "out"))
1625 (bin (string-append out "/bin")))
1626 (install-file "xrandr-invert-colors.bin" bin)
1629 `(("libxrandr" ,libxrandr)))
1630 (home-page "https://github.com/zoltanp/xrandr-invert-colors")
1631 (synopsis "Invert display colors")
1632 (description "This package provides a small utility for inverting the
1633 colors on all monitors attached to an XRandR-capable X11 display server.")
1634 (license license:gpl3+)))
1644 (string-append "https://www.umaxx.net/dl/sct-"
1648 "0r57z9ki8pvxhawfxys0v5h85z2x211sqxki0xvk1bga88ryldlv"))))
1649 (build-system gnu-build-system)
1651 '(#:make-flags (list "CC=gcc")
1652 #:tests? #f ; No tests exist.
1654 (modify-phases %standard-phases
1656 (add-after 'unpack 'fix-sctd-paths
1657 (lambda* (#:key outputs inputs #:allow-other-keys)
1658 (let ((out (assoc-ref outputs "out"))
1659 (coreutils (assoc-ref inputs "coreutils"))
1660 (inetutils (assoc-ref inputs "inetutils"))
1661 (sed (assoc-ref inputs "sed")))
1662 (substitute* "sctd.sh"
1663 (("\\$\\(which sct\\)") (string-append out "/bin/sct"))
1664 (("date") (string-append coreutils "/bin/date"))
1665 (("printf") (string-append coreutils "/bin/printf"))
1666 (("sleep") (string-append coreutils "/bin/sleep"))
1667 (("logger") (string-append inetutils "/bin/logger"))
1668 (("sed") (string-append sed "/bin/sed"))))))
1670 (lambda* (#:key outputs #:allow-other-keys)
1671 (let ((out (assoc-ref outputs "out")))
1672 (install-file "sct" (string-append out "/bin"))
1673 (install-file "sctd.sh" (string-append out "/bin"))
1674 (install-file "sct.1" (string-append out "/man/man1"))
1675 (install-file "sctd.1" (string-append out "/man/man1"))
1676 (rename-file (string-append out "/bin/sctd.sh")
1677 (string-append out "/bin/sctd"))
1680 `(("coreutils" ,coreutils) ; sctd uses "date", "printf" and "sleep"
1681 ("inetutils" ,inetutils) ; sctd uses "logger"
1682 ("libxrandr" ,libxrandr)
1683 ("sed" ,sed))) ; sctd uses "sed"
1684 (home-page "https://www.umaxx.net")
1685 (synopsis "Set the color temperature of the screen")
1686 (description "@code{sct} is a lightweight utility to set the color
1687 temperature of the screen.")
1688 (license (license:non-copyleft "file://sct.c")))) ; "OpenBSD" license
1690 (define-public wl-clipboard
1692 (name "wl-clipboard")
1698 (url "https://github.com/bugaevc/wl-clipboard.git")
1699 (commit (string-append "v" version))))
1700 (file-name (git-file-name name version))
1702 (base32 "03h6ajcc30w6928bkd4h6xfj4iy2359ww6hdlybq8mr1zwmb2h0q"))))
1703 (build-system meson-build-system)
1705 `(("pkg-config" ,pkg-config)))
1707 `(("wayland" ,wayland)
1708 ("wayland-protocols" ,wayland-protocols)))
1709 (home-page "https://github.com/bugaevc/wl-clipboard")
1710 (synopsis "Command-line copy/paste utilities for Wayland")
1711 (description "Wl-clipboard is a set of command-line copy/paste utilities for
1713 (license license:gpl3+)))