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, 2020 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, 2020 Marius Bakke <mbakke@fastmail.com>
18 ;;; Copyright © 2016 Petter <petter@mykolab.ch>
19 ;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com>
20 ;;; Copyright © 2017 Nikita <nikita@n0.is>
21 ;;; Copyright © 2017–2021 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>
30 ;;; Copyright © 2019, 2020 Josh Holland <josh@inv.alid.pw>
31 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
32 ;;; Copyright © 2020, 2021 Guillaume Le Vaillant <glv@posteo.net>
33 ;;; Copyright © 2020 David Wilson <david@daviwil.com>
34 ;;; Copyright © 2020 Ivan Vilata i Balaguer <ivan@selidor.net>
35 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
36 ;;; Copyright © 2020 Damien Cassou <damien@cassou.me>
37 ;;; Copyright © 2020 John Soo <jsoo1@asu.edu>
38 ;;; Copyright © 2020 Boris A. Dekshteyn <boris.dekshteyn@gmail.com>
39 ;;; Copyright © 2020 Alex McGrath <amk@amk.ie>
40 ;;; Copyright © 2020 Ivan Kozlov <kanichos@yandex.ru>
41 ;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
42 ;;; Copyright © 2020 Gabriel Arazas <foo.dogsquared@gmail.com>
43 ;;; Copyright © 2020 James Smith <jsubuntuxp@disroot.org>
44 ;;; Copyright © 2020 B. Wilson <elaexuotee@wilsonb.com>
45 ;;; Copyright © 2020, 2021 Zheng Junjie <873216071@qq.com>
46 ;;; Copyright © 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
47 ;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
48 ;;; Copyright © 2021 Renzo Poddighe <renzo@poddighe.nl>
50 ;;; This file is part of GNU Guix.
52 ;;; GNU Guix is free software; you can redistribute it and/or modify it
53 ;;; under the terms of the GNU General Public License as published by
54 ;;; the Free Software Foundation; either version 3 of the License, or (at
55 ;;; your option) any later version.
57 ;;; GNU Guix is distributed in the hope that it will be useful, but
58 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
59 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
60 ;;; GNU General Public License for more details.
62 ;;; You should have received a copy of the GNU General Public License
63 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
65 (define-module (gnu packages xdisorg)
66 #:use-module (guix build-system cmake)
67 #:use-module (guix build-system glib-or-gtk)
68 #:use-module (guix build-system gnu)
69 #:use-module (guix build-system meson)
70 #:use-module (guix build-system python)
71 #:use-module (guix build-system scons)
72 #:use-module (guix download)
73 #:use-module (guix git-download)
74 #:use-module (guix hg-download)
75 #:use-module ((guix licenses) #:prefix license:)
76 #:use-module (guix packages)
77 #:use-module (guix utils)
78 #:use-module (gnu packages admin)
79 #:use-module (gnu packages algebra)
80 #:use-module (gnu packages autotools)
81 #:use-module (gnu packages base)
82 #:use-module (gnu packages bison)
83 #:use-module (gnu packages check)
84 #:use-module (gnu packages compression)
85 #:use-module (gnu packages documentation)
86 #:use-module (gnu packages flex)
87 #:use-module (gnu packages fontutils)
88 #:use-module (gnu packages freedesktop)
89 #:use-module (gnu packages gawk)
90 #:use-module (gnu packages gettext)
91 #:use-module (gnu packages gl)
92 #:use-module (gnu packages gl)
93 #:use-module (gnu packages glib)
94 #:use-module (gnu packages gnome)
95 #:use-module (gnu packages gtk)
96 #:use-module (gnu packages guile)
97 #:use-module (gnu packages haskell-xyz)
98 #:use-module (gnu packages icu4c)
99 #:use-module (gnu packages image)
100 #:use-module (gnu packages linux)
101 #:use-module (gnu packages m4)
102 #:use-module (gnu packages man)
103 #:use-module (gnu packages maths)
104 #:use-module (gnu packages ncurses)
105 #:use-module (gnu packages perl)
106 #:use-module (gnu packages pkg-config)
107 #:use-module (gnu packages python)
108 #:use-module (gnu packages python-xyz)
109 #:use-module (gnu packages qt)
110 #:use-module (gnu packages sphinx)
111 #:use-module (gnu packages tcl)
112 #:use-module (gnu packages xml)
113 #:use-module (gnu packages xorg)
114 #:use-module (gnu packages)
115 #:use-module (ice-9 match))
117 ;; packages outside the x.org system proper
119 (define-public xtitle
127 (url "https://github.com/baskerville/xtitle")
129 (file-name (git-file-name name version))
131 (base32 "0f5070k2bwarghl1vq886pl52xck1x5p7x3qhlfchsc2y3dcqms9"))))
132 (build-system gnu-build-system)
135 ("xcb-util" ,xcb-util)
136 ("xcb-util-wm" ,xcb-util-wm)))
138 `(#:tests? #f ;no test suite
139 #:make-flags (list (string-append "CC=" ,(cc-for-target))
140 (string-append "PREFIX=" %output))
141 #:phases (modify-phases %standard-phases (delete 'configure))))
142 (home-page "https://github.com/baskerville/xtitle")
143 (synopsis "Output X window titles")
145 "If arguments are given, @code{xtitle} outputs the title of each
146 specified window, otherwise it outputs the title of the active window. With
147 @emph{snoop} mode on, it continuously monitors the specified windows and
148 outputs when titles change.")
149 (license license:unlicense)))
151 (define-public arandr
157 (uri (string-append "https://christian.amsuess.com/tools/arandr"
158 "/files/arandr-" version ".tar.gz"))
161 "135q0llvm077jil2fr92ssw3p095m4r8jfj0lc5rr3m71n4srj6v"))
162 (modules '((guix build utils)))
165 ;; Do not record a timestamp and file name in gzipped man
166 ;; pages (this is equivalent to 'gzip --no-name'.)
167 (substitute* "setup.py"
168 (("gzip\\.open\\(gzfile, 'w', 9\\)")
169 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)"))
171 (build-system python-build-system)
174 (modify-phases %standard-phases
175 (add-before 'build 'configure
176 (lambda* (#:key inputs #:allow-other-keys)
177 (substitute* "screenlayout/xrandr.py"
178 (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr")
181 (add-after 'install 'wrap-gi-typelib
182 (lambda* (#:key inputs outputs #:allow-other-keys)
183 (let ((out (assoc-ref outputs "out"))
184 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
185 (wrap-program (string-append out "/bin/arandr")
186 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
188 #:tests? #f)) ;no tests
189 (inputs `(("gtk+" ,gtk+)
190 ("pycairo" ,python-pycairo)
191 ("pygobject" ,python-pygobject)
193 (native-inputs `(("gettext" ,gettext-minimal)
194 ("python-docutils" ,python-docutils)))
195 (home-page "https://christian.amsuess.com/tools/arandr/")
196 (synopsis "Another RandR graphical user interface")
197 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
198 (description "ARandR is designed to provide a simple visual front end for
199 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
200 shown graphically and can be changed in a drag-and-drop way. Configurations
201 are saved as executable shell scripts which can be loaded without using this
203 (license license:gpl3+)))
205 (define-public autorandr
209 (home-page "https://github.com/phillipberndt/autorandr")
216 (file-name (git-file-name name version))
218 (base32 "0msw9b1hdy3gbq9w5d04mfizhyirz1c648x84mlcbzl8salm7vpg"))))
219 (build-system python-build-system)
221 `(("pkg-config" ,pkg-config)))
227 (modify-phases %standard-phases
228 (add-before 'build 'configure
229 (lambda* (#:key inputs outputs #:allow-other-keys)
230 (let ((xrandr (string-append (assoc-ref inputs "xrandr")
232 (substitute* "contrib/etc/xdg/autostart/autorandr.desktop"
233 (("/usr") (assoc-ref outputs "out")))
234 (substitute* "autorandr.py"
235 (("popen\\(\"xrandr") (string-append "popen(\"" xrandr))
236 (("\\[\"xrandr") (string-append "[\"" xrandr)))
237 (substitute* "contrib/autorandr_launcher/autorandr_launcher.c"
238 (("/usr/bin/autorandr")
239 (string-append (assoc-ref outputs "out") "/bin/autorandr")))
242 (add-after 'install 'install-contrib
243 (lambda* (#:key outputs #:allow-other-keys)
245 (string-append "DESTDIR=" (assoc-ref outputs "out"))
247 "BASH_COMPLETIONS_DIR=etc/bash_completion.d"
249 "TARGETS=autorandr launcher manpage bash_completion"))))))
250 (synopsis "Auto-detect connected displays and load appropriate setup")
251 (description "Autorandr wraps around xrandr to help with X11
252 multi-screen configuration management. It allows the user to create profiles
253 for various multi-screen setups. Autorandr automatically detects the profiles
254 that can be activated based on the connected hardware. Hook scripts can be
255 used to further tweak the behaviour of the different profiles.")
256 (license license:gpl3+)))
258 (define-public bemenu
266 (url "https://github.com/Cloudef/bemenu")
268 (file-name (git-file-name name version))
270 (base32 "1fjcs9d3533ay3nz79cx3c0lmy2chgragr2lhsy0xl2ckr0iins0"))))
271 (build-system gnu-build-system)
274 #:make-flags (list ,(string-append "CC=" (cc-for-target))
276 (string-append "LDFLAGS=-Wl,-rpath="
277 (assoc-ref %outputs "out") "/lib")
278 (string-append "PREFIX=" (assoc-ref %outputs "out")))
280 (modify-phases %standard-phases
281 (delete 'configure))))
285 ("libxkbcomon" ,libxkbcommon)
286 ("libxinerama" ,libxinerama)
290 ("wayland-protocols" ,wayland-protocols)))
292 `(("doxygen" ,doxygen)
293 ("pkg-config" ,pkg-config)))
294 (home-page "https://github.com/Cloudef/bemenu")
295 (synopsis "Dynamic menu library and client program inspired by dmenu")
297 "bemenu is a dynamic menu which allows the user to flexibly select from a
298 list of options (usually programs to launch). It renders the menu graphically
299 with X11 or Wayland, or in a text terminal with ncurses.")
300 (license (list license:gpl3+ ; client program[s] and other sources
301 license:lgpl3+)))) ; library and bindings
310 (url "https://github.com/hluk/CopyQ")
311 (commit (string-append "v" version))))
312 (file-name (git-file-name name version))
315 "0wlwq9xg8rzsbj0b29z358k4mbrqy04iraa8x0p26pa95yskgcma"))))
316 (build-system cmake-build-system)
318 `(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release")
319 #:tests? #f)) ; Test suite is a rather manual process.
322 ("qtscript" ,qtscript)
324 ("qtx11extras" ,qtx11extras)))
325 (synopsis "Clipboard manager with advanced features")
326 (description "CopyQ is clipboard manager with editing and scripting
327 features. CopyQ monitors system clipboard and saves its content in customized
328 tabs. Saved clipboard can be later copied and pasted directly into any
330 (home-page "https://hluk.github.io/CopyQ/")
331 (license license:gpl3+)))
333 (define-public xkeysnail
340 (uri (pypi-uri "xkeysnail" version))
343 "1xyqp6yqxcwmxaqj86qcsiz0ly7bwr0a2w835myz909irhip3ngf"))))
344 (build-system python-build-system)
346 `(#:tests? #f)) ;tests need /dev/uinput
348 `(("python-appdirs" ,python-appdirs)
349 ("python-evdev" ,python-evdev)
350 ("python-inotify-simple" ,python-inotify-simple)
351 ("python-xlib" ,python-xlib)
352 ("python-six" ,python-six)))
353 (home-page "https://github.com/mooz/xkeysnail")
354 (synopsis "Keyboard remapping tool for the X11 environment")
356 "Xkeysnail is an X environment keyboard remapping tool, featuring
357 high-level and flexible remapping mechanisms. It affects the low-level
358 layers (evdev and uinput), making remapping work in almost all the places.")
359 (license license:gpl3+))) ; see README.md (no licence headers)
369 (url "https://github.com/astrand/xclip")
371 (file-name (git-file-name name version))
374 "0q0hmvcjlv8arhh1pzhja2wglyj6n7z209jnpnzd281kqqv4czcs"))))
375 (build-system gnu-build-system)
377 '(#:tests? #f)) ;there is no test suite
379 `(("autoconf" ,autoconf)
380 ("automake" ,automake)))
381 (inputs `(("libxmu" ,libxmu)
383 (home-page "https://github.com/astrand/xclip")
384 (synopsis "Command line interface to X11 clipboard")
385 (description "Xclip is a command line interface to the X11 clipboard. It
386 can also be used for copying files, as an alternative to sftp/scp, thus
387 avoiding password prompts when X11 forwarding has already been setup.")
388 (license license:gpl2+)))
390 (define-public libxkbcommon
392 (name "libxkbcommon")
396 (uri (string-append "https://xkbcommon.org/download/libxkbcommon-"
400 "0lmwglj16anhpaq0h830xsl1ivknv75i4lir9bk88aq73s2jy852"))))
401 (build-system meson-build-system)
407 ("wayland-protocols" ,wayland-protocols)
408 ("xkeyboard-config" ,xkeyboard-config)))
412 ("pkg-config" ,pkg-config)))
415 (list (string-append "-Dxkb-config-root="
416 (assoc-ref %build-inputs "xkeyboard-config")
418 (string-append "-Dx-locale-root="
419 (assoc-ref %build-inputs "libx11")
420 "/share/X11/locale"))))
421 (home-page "https://xkbcommon.org/")
422 (synopsis "Library to handle keyboard descriptions")
423 (description "Xkbcommon is a library to handle keyboard descriptions,
424 including loading them from disk, parsing them and handling their
425 state. It is mainly meant for client toolkits, window systems, and other
426 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
427 Clutter, and more. Despite the name, it is not currently used by anything
429 (license (license:x11-style "file://COPYING"
430 "See 'COPYING' in the distribution."))
431 (properties '((cpe-name . "xkbcommon")))))
433 (define-public libfakekey
441 (url "https://git.yoctoproject.org/git/libfakekey")
443 (file-name (git-file-name name version))
445 (base32 "1jw1d4wc1ysiijirc7apnz3sryrxbl9akgb92mh06dvfkz2nblj0"))))
446 (build-system gnu-build-system)
448 `(#:make-flags (list "AM_LDFLAGS=-lX11")
450 (modify-phases %standard-phases
452 ;; ./autogen.sh calls ./configure before shebangs have been patched.
454 (invoke "autoreconf" "-vfi"))))))
456 `(("pkg-config" ,pkg-config)
458 ;; For bootstrapping from git.
459 ("autoconf" ,autoconf)
460 ("automake" ,automake)
461 ("libtool" ,libtool)))
463 `(("libxtst" ,libxtst)
465 (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox")
466 (synopsis "X virtual keyboard library")
468 "Libfakekey is a virtual keyboard library for X.")
469 (license license:gpl2)))
471 (define-public xdotool
474 (version "3.20160805.1")
479 "https://github.com/jordansissel/xdotool/releases/download/v"
480 version "/xdotool-" version ".tar.gz"))
483 "1a6c1zr86zb53352yxv104l76l8x21gfl2bgw6h21iphxpv5zgim"))))
484 (build-system gnu-build-system)
486 '(#:tests? #f ; Test suite requires a lot of black magic
488 (modify-phases %standard-phases
490 (lambda* (#:key outputs #:allow-other-keys #:rest args)
491 (let ((out (assoc-ref outputs "out")))
492 (mkdir-p (string-append out "/lib"))
493 (setenv "PREFIX" out)
494 (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib"))
497 (native-inputs `(("perl" ,perl))) ; for pod2man
498 (inputs `(("libx11" ,libx11)
501 ("libxinerama" ,libxinerama)
503 ("libxkbcommon" ,libxkbcommon)))
504 (home-page "https://www.semicomplete.com/projects/xdotool/")
505 (synopsis "Fake keyboard/mouse input, window management, and more")
506 (description "Xdotool lets you simulate keyboard input and mouse activity,
507 move and resize windows, etc. It does this using X11's XTEST extension and
508 other Xlib functions. Additionally, you can search for windows and move,
509 resize, hide, and modify window properties like the title. If your window
510 manager supports it, you can use xdotool to switch desktops, move windows
511 between desktops, and change the number of desktops.")
512 (license license:bsd-3)))
522 (url "https://github.com/baskerville/xdo")
524 (file-name (git-file-name name version))
526 (base32 "1h3jrygcjjbavdbkpx2hscsf0yf97gk487lzjdlvymd7dxdv9hy9"))))
527 (build-system gnu-build-system)
529 `(#:tests? #f ; no tests
531 (list (string-append "CC=" ,(cc-for-target))
532 (string-append "PREFIX=" %output))
534 (modify-phases %standard-phases
535 (delete 'configure))))
538 ("xcb-util-wm" ,xcb-util-wm)
539 ("xcb-util" ,xcb-util)))
540 (home-page "https://github.com/baskerville/xdo")
541 (synopsis "Small X utility to perform elementary actions on windows")
543 "Apply the given action to the given windows. If no window IDs and no
544 options are given, the action applies to the focused window.")
545 (license license:bsd-2)))
554 (uri (string-append "https://www.x.org/releases/individual/app/"
555 name "-" version ".tar.bz2"))
557 (base32 "0lq5j7fryx1wn998jq6h3icz1h6pqrsbs3adskjzjyhn5l6yrg2p"))))
558 (build-system gnu-build-system)
560 `(("libxext" ,libxext)
562 ("libxrender" ,libxrender)
565 `(("pkg-config" ,pkg-config)))
566 (home-page "https://www.x.org/") ; no dedicated Xeyes page exists
567 (synopsis "Follow-the-mouse X demo")
568 (description "Xeyes is a demo program for x.org. It shows eyes
569 following the mouse.")
570 (license license:x11)))
573 (define-public pixman
582 "https://www.cairographics.org/releases/pixman-"
585 (base32 "1ryxzdf048x7wsx4dlvrr1p00gzwfs7lybnhgc7ygbj0dvyxcrns"))
588 "pixman-CVE-2016-5296.patch"))))
589 (build-system gnu-build-system)
591 '(#:configure-flags '("--disable-static")))
593 `(("pkg-config" ,pkg-config)))
597 (synopsis "Low-level pixel manipulation library")
598 (description "Pixman is a low-level software library for pixel
599 manipulation, providing features such as image compositing and trapezoid
601 (home-page "http://www.pixman.org/")
602 (license license:x11)))
604 (define-public libdrm
611 "https://dri.freedesktop.org/libdrm/libdrm-"
615 "08h2nnf4w96b4ql7485mvjgbbsb8rwc0qa93fdm1cq34pbyszq1z"))))
616 (build-system meson-build-system)
619 '(,@(match (%current-system)
620 ((or "armhf-linux" "aarch64-linux")
625 "-Dfreedreno-kgsl=true"))
628 #:phases (modify-phases %standard-phases
631 (invoke "meson" "test" "--timeout-multiplier" "5"))))))
633 `(("libpciaccess" ,libpciaccess)))
635 `(("pkg-config" ,pkg-config)))
636 (home-page "https://dri.freedesktop.org/wiki/")
637 (synopsis "Direct rendering userspace library")
638 (description "The Direct Rendering Infrastructure, also known as the DRI,
639 is a framework for allowing direct access to graphics hardware under the
640 X Window System in a safe and efficient manner. It includes changes to the
641 X server, to several client libraries, and to the kernel (DRM, Direct
642 Rendering Manager). The most important use for the DRI is to create fast
643 OpenGL implementations providing hardware acceleration for Mesa.
644 Several 3D accelerated drivers have been written to the DRI specification,
645 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
647 (license license:x11)))
658 "http://bitmath.org/code/mtdev/mtdev-"
662 "1q700h9dqcm3zl6c3gj0qxxjcx6ibw2c51wjijydhwdcm26v5mqm"))))
663 (build-system gnu-build-system)
664 (arguments '(#:configure-flags '("--disable-static")))
665 (home-page "http://bitmath.org/code/mtdev/")
666 (synopsis "Multitouch protocol translation library")
667 (description "Mtdev is a stand-alone library which transforms all
668 variants of kernel MT events to the slotted type B protocol. The events
669 put into mtdev may be from any MT device, specifically type A without
670 contact tracking, type A with contact tracking, or type B with contact
672 (license license:x11)))
674 (define-public startup-notification
676 (name "startup-notification")
681 (uri (string-append "https://www.freedesktop.org/software/" name
682 "/releases/" name "-" version ".tar.gz"))
685 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
686 (build-system gnu-build-system)
687 (native-inputs `(("pkg-config" ,pkg-config)))
690 ("xcb-util" ,xcb-util)))
691 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
692 (synopsis "Application startup notification and feedback library")
694 "Startup-notification contains a reference implementation of the startup
695 notification protocol. The reference implementation is mostly under an X Window
696 System style license, and has no special dependencies.")
697 ;; Most of the code is provided under x11 license.
698 (license license:lgpl2.0+)))
700 (define-public wmctrl
707 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
711 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
712 (patches (search-patches "wmctrl-64-fix.patch"))))
713 (build-system gnu-build-system)
716 (list (string-append "--mandir="
717 (assoc-ref %outputs "out")
720 `(("pkg-config" ,pkg-config)))
725 (home-page "http://tomas.styblo.name/wmctrl/")
726 (synopsis "Command-line tool to control X window managers")
728 "Wmctrl interacts with an X window manager that is compatible
729 with the EWMH/NetWM specification. It can query the window manager for
730 information, and request for certain window management actions (resize and
731 move windows, switch between desktops, etc.).")
732 (license license:gpl2+)))
743 (url "https://github.com/resurrecting-open-source-projects/scrot")
745 (file-name (git-file-name name version))
747 (base32 "0x64b7xqi5cbq29pb8s8r2kzbxaday1f5k0j70n3s2p7sahjxy72"))))
748 (build-system gnu-build-system)
750 `(("autoconf" ,autoconf)
751 ("autoconf-archive" ,autoconf-archive)
752 ("automake" ,automake)))
756 ("libxcomposite" ,libxcomposite)
758 ("libXfixes" ,libxfixes)))
759 (home-page "https://github.com/resurrecting-open-source-projects/scrot")
760 (synopsis "Command-line screen capture utility for X Window System")
762 "Scrot saves a screenshot of a full screen, a window or a part
763 of the screen selected by mouse.")
764 ;; This license removes a clause about X Consortium from the original
766 (license (license:x11-style "file://COPYING"
767 "See 'COPYING' in the distribution."))))
776 (url "https://github.com/naelstrof/slop")
777 (commit (string-append "v" version))))
778 (file-name (git-file-name name version))
781 "1k8xxb4rj2fylr4vj16yvsf73cyywliz9cy78pl4ibmi03jhg837"))))
782 (build-system cmake-build-system)
784 '(#:tests? #f)) ; no "check" target
790 ("libxrender" ,libxrender)
792 (home-page "https://github.com/naelstrof/slop")
793 (synopsis "Select a region and print its bounds to stdout")
795 "slop (Select Operation) is a tool that queries for a selection from a
796 user and prints the region to stdout. It grabs the mouse and turns it into a
797 crosshair, lets the user click and drag to make a selection (or click on a
798 window) while drawing a pretty box around it, then finally prints the
799 selection's dimensions to stdout.")
800 (license license:gpl3+)))
809 (url "https://github.com/naelstrof/maim")
810 (commit (string-append "v" version))))
811 (file-name (git-file-name name version))
814 "181mjjrjb9fs1ficcv9miqbk94v95j1yli7fjp2dj514g7nj9l3x"))))
815 (build-system cmake-build-system)
817 '(#:tests? #f)) ; no "check" target
820 ("libjpeg" ,libjpeg-turbo)
822 ("libxcomposite" ,libxcomposite)
823 ("libxfixes" ,libxfixes)
824 ("libxrandr" ,libxrandr)
828 (home-page "https://github.com/naelstrof/maim")
829 (synopsis "Screenshot utility for X Window System")
831 "maim (Make Image) is a tool that takes screenshots of your desktop and
832 saves it in any format. Along with a full screen, it allows you to capture a
833 predefined region or a particular window. Also, it makes it possible to
834 include cursor in the resulting image.")
835 (license license:gpl3+)))
837 (define-public unclutter
844 "http://ftp.x.org/contrib/utilities/unclutter-"
848 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
849 (build-system gnu-build-system)
851 '(#:tests? #f ; no check target
853 (modify-phases %standard-phases
856 (lambda* (#:key inputs outputs #:allow-other-keys)
857 (let* ((out (assoc-ref outputs "out"))
858 (bin (string-append out "/bin"))
859 (man1 (string-append out "/share/man/man1")))
862 (invoke "make" "install" "install.man"
863 (string-append "BINDIR=" bin)
864 (string-append "MANDIR=" man1))))))))
865 (inputs `(("libx11" ,libx11)))
866 (home-page "http://ftp.x.org/contrib/utilities/")
867 (synopsis "Hide idle mouse cursor")
869 "Unclutter is a program which runs permanently in the background of an
870 X11 session. It checks on the X11 pointer (cursor) position every few
871 seconds, and when it finds it has not moved (and no buttons are pressed
872 on the mouse, and the cursor is not in the root window) it creates a
873 small sub-window as a child of the window the cursor is in. The new
874 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
875 invisible cursor. This allows you to see all the text in an xterm or
876 xedit, for example. The human factors crowd would agree it should make
877 things less distracting.")
878 (license license:public-domain)))
880 (define-public xautomation
887 (uri (string-append "https://www.hoopajoo.net/static/projects/"
888 "xautomation-" version ".tar.gz"))
892 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
893 (build-system gnu-build-system)
898 ("libxtst" ,libxtst)))
900 `(("xorgproto" ,xorgproto)))
901 (synopsis "Tools to automate tasks in X such as detecting on screen images")
903 "Xautomation can control X from the command line for scripts, and
904 do visual scraping to find things on the screen. The control interface
905 allows mouse movement, clicking, button up/down, key up/down, etc, and
906 uses the XTest extension so you don't have the annoying problems that
907 xse has when apps ignore sent events. The visgrep program can find
908 images inside of images and reports the coordinates, allowing programs
909 to find buttons, etc, on the screen to click on.")
910 (home-page "https://www.hoopajoo.net/projects/xautomation.html")
911 (license license:gpl2+)))
913 (define-public xbanish
917 (home-page "https://github.com/jcs/xbanish")
920 (uri (git-reference (url home-page)
921 (commit (string-append "v" version))))
922 (file-name (git-file-name name version))
925 "0ic5f7zgc32p5g1wxas9y5h8dhik0pvsa8wmn6skdry56gw9vg9q"))))
926 (build-system gnu-build-system)
928 `(#:tests? #f ; no tests
929 #:make-flags (list ,(string-append "CC=" (cc-for-target))
930 (string-append "PREFIX=" (assoc-ref %outputs "out")))
931 #:phases (modify-phases %standard-phases
932 (delete 'configure)))) ; no configure script
935 ("libxfixes" ,libxfixes)
938 (synopsis "Banish the mouse cursor")
940 "@command{xbanish} hides the mouse cursor when you start typing, and
941 shows it again when the mouse cursor moves or a mouse button is pressed.")
942 (license license:bsd-3)))
944 (define-public xlockmore
950 (uri (list (string-append "http://sillycycle.com/xlock/"
951 "xlockmore-" version ".tar.xz")
952 ;; Previous releases are moved to a subdirectory.
953 (string-append "http://sillycycle.com/xlock/"
955 "xlockmore-" version ".tar.xz")))
958 "0wdb7gpyjw3sigmhiplgg1bqxz6wipr0c3n9492x2a18cv1saxjr"))))
959 (build-system gnu-build-system)
961 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
962 (assoc-ref %outputs "out")
963 "/lib/X11/app-defaults"))
964 #:tests? #f)) ;no such thing as a test suite
969 ("linux-pam" ,linux-pam)))
970 (home-page "https://sillycycle.com/xlockmore.html")
971 (synopsis "Screen locker for the X Window System")
973 "XLockMore is a classic screen locker and screen saver for the
975 (license (license:non-copyleft #f "See xlock.c.")
976 ))) ; + GPLv2 in modes/glx/biof.c.
985 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
986 name "-" version ".tar.gz"))
989 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
990 (build-system gnu-build-system)
993 (list (string-append "--mandir=" %output "/share/man"))))
998 ("libxinerama" ,libxinerama)))
999 (home-page "https://sourceforge.net/projects/libxosd/")
1000 (synopsis "X On Screen Display")
1002 "XOSD provides a C library and a simple utility (osd_cat) for displaying
1003 transparent text on your screen.")
1004 (license license:gpl2+)))
1013 (uri (string-append "https://github.com/francma/wob/releases/download/"
1014 version "/wob-" version ".tar.gz"))
1016 (base32 "1vgngcg8wxn6zfg34czn9w55ia0zmhlgnpzf0gh31dc72li9353k"))))
1017 (build-system meson-build-system)
1019 `(("pkg-config" ,pkg-config)
1022 `(("libseccomp" ,libseccomp)
1023 ("wayland" ,wayland)
1024 ("wayland-protocols" ,wayland-protocols)))
1025 (home-page "https://github.com/francma/wob")
1026 (synopsis "Lightweight overlay bar for Wayland")
1028 "Wob, or Wayland Overlay Bar, is a lightweight overlay volume,
1029 backlight, progress, or anything bar for Wayland.")
1030 (license license:isc)))
1032 (define-public xbindkeys
1038 ;; Download from the savannah mirror list fails
1040 "http://www.nongnu.org/xbindkeys/xbindkeys-"
1045 "1wl2vc5alisiwyk8m07y1ryq8w3ll9ym83j27g4apm4ixjl8d6x2"))))
1046 (build-system gnu-build-system)
1049 (modify-phases %standard-phases
1050 (add-after 'unpack 'sanitise-shebang
1051 ;; This wish script uses a strange double shebang that escapes our
1052 ;; patch-shebangs phase. Assume that it's unnecessary & replace it.
1054 (substitute* "xbindkeys_show"
1055 (("^#!.*|^exec wish.*") "")
1056 (("^# \\\\") (string-append "#!" (which "wish"))))
1058 (add-after 'unpack 'patch-references
1059 (lambda* (#:key outputs #:allow-other-keys)
1060 (let ((out (assoc-ref outputs "out")))
1061 (substitute* "xbindkeys_show"
1062 (("\"(xbindkeys)\"" _ command)
1063 (format #f "\"~a/bin/~a\"" out command)))
1066 `(("pkg-config" ,pkg-config)))
1068 `(("guile" ,guile-2.2)
1071 (home-page "https://www.nongnu.org/xbindkeys/")
1072 (synopsis "Associate a combination of keys with a shell command")
1074 "XBindKeys is a program that allows you to launch shell commands with
1075 your keyboard or your mouse under the X Window System. It links commands to
1076 keys or mouse buttons, using a configuration file. It's independent of the
1077 window manager and can capture all keyboard keys (ex: Power, Wake...). It
1078 optionally supports a Guile-based configuration file layout, which enables you
1079 to access all XBindKeys internals, so you can have key combinations, double
1080 clicks or timed double clicks take actions. Also all functions that work in
1081 Guile will work for XBindKeys.")
1082 (license license:gpl2+)))
1084 (define-public sxhkd
1092 (url "https://github.com/baskerville/sxhkd")
1094 (file-name (git-file-name name version))
1096 (base32 "1winwzdy9yxvxnrv8gqpigl9y0c2px27mnms62bdilp4x6llrs9r"))))
1097 (build-system gnu-build-system)
1099 `(("asciidoc" ,asciidoc)
1101 ("xcb-util" ,xcb-util)
1102 ("xcb-util-keysyms" ,xcb-util-keysyms)
1103 ("xcb-util-wm" ,xcb-util-wm)))
1105 `(#:phases (modify-phases %standard-phases (delete 'configure))
1106 #:tests? #f ; no check target
1108 (list ,(string-append "CC=" (cc-for-target))
1109 (string-append "PREFIX=" %output)
1110 ;; Keep the documentation where the build system installs LICENSE.
1111 (string-append "DOCPREFIX=" %output
1112 "/share/doc/" ,name "-" ,version))))
1113 (home-page "https://github.com/baskerville/sxhkd")
1114 (synopsis "Simple X hotkey daemon")
1115 (description "sxhkd is a simple X hotkey daemon with a powerful and
1116 compact configuration syntax.")
1117 (license license:bsd-2)))
1119 (define-public rxvt-unicode
1121 (name "rxvt-unicode")
1125 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
1126 name "-" version ".tar.bz2"))
1129 "12y9p32q0v7n7rhjla0j2g9d5rj2dmwk20c9yhlssaaxlawiccb4"))))
1130 (build-system gnu-build-system)
1132 ;; This sets the destination when installing the necessary terminal
1133 ;; capability data, which are not provided by 'ncurses'. See
1134 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
1135 `(#:configure-flags (list "--enable-256-color")
1136 #:make-flags (list (string-append "TERMINFO="
1137 (assoc-ref %outputs "out")
1140 (modify-phases %standard-phases
1141 (add-after 'install 'install-desktop-urxvt
1142 (lambda* (#:key outputs #:allow-other-keys)
1143 (let* ((output (assoc-ref outputs "out"))
1144 (desktop (string-append output "/share/applications")))
1146 (with-output-to-file
1147 (string-append desktop "/urxvt.desktop")
1154 TryExec=~@*~a/bin/urxvt~@
1159 (add-after 'install 'install-desktop-urxvtc
1160 (lambda* (#:key outputs #:allow-other-keys)
1161 (let* ((output (assoc-ref outputs "out"))
1162 (desktop (string-append output "/share/applications")))
1164 (with-output-to-file
1165 (string-append desktop "/urxvtc.desktop")
1169 Name=rxvt-unicode (client)~@
1170 Comment=Rxvt clone with XFT and unicode support~@
1171 Exec=~a/bin/urxvtc~@
1172 TryExec=~@*~a/bin/urxvtc~@
1178 `(("libXft" ,libxft)
1182 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
1184 ("pkg-config" ,pkg-config)))
1185 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
1186 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
1187 (native-search-paths
1188 (list (search-path-specification
1189 (variable "TERMINFO_DIRS")
1190 (files '("share/terminfo")))))
1191 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
1192 (synopsis "Rxvt clone with XFT and unicode support")
1193 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
1194 intended as an xterm replacement for users who do not require features such as
1195 Tektronix 4014 emulation and toolkit-style configurability. It supports
1196 unicode, XFT and may be extended with Perl plugins. It also comes with a
1197 client/daemon pair that lets you open any number of terminal windows from
1198 within a single process.")
1199 (license license:gpl3+)))
1201 (define-public xcape
1208 (url "https://github.com/alols/xcape")
1209 (commit (string-append "v" version))))
1210 (file-name (git-file-name name version))
1213 "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm"))))
1214 (build-system gnu-build-system)
1216 `(#:tests? #f ; no check target
1217 ;; no configure script
1218 #:phases (modify-phases %standard-phases (delete 'configure))
1219 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1220 "MANDIR=/share/man/man1"
1221 ,(string-append "CC=" (cc-for-target)))))
1223 `(("libxtst" ,libxtst)
1224 ("libx11" ,libx11)))
1226 `(("pkg-config" ,pkg-config)))
1227 (home-page "https://github.com/alols/xcape")
1228 (synopsis "Use a modifier key in X.org as another key")
1230 "This utility for X.org uses a modifier key as another key when
1231 pressed and released on its own. The default behaviour is to generate the
1232 Escape key when Left Control is pressed and released on its own.")
1233 (license license:gpl3+)))
1235 (define-public libwacom
1242 "https://github.com/linuxwacom/libwacom/releases/download/"
1243 "libwacom-" version "/libwacom-" version ".tar.bz2"))
1246 "14aj4ss1chxxgaprs9sfriia2ch9wj9rqay0ndkzk1m7jx2qrjgn"))))
1247 (build-system glib-or-gtk-build-system)
1249 `(#:configure-flags '("--disable-static")))
1251 `(("pkg-config" ,pkg-config)
1253 ("python" ,python)))
1256 ("libgudev" ,libgudev)
1258 ("libxml2" ,libxml2)))
1260 ;; libwacom includes header files that include GLib, and libinput uses
1261 ;; those header files.
1263 (home-page "https://linuxwacom.github.io/")
1264 (synopsis "Helper library for Wacom tablet settings")
1266 "Libwacom is a library to help implement Wacom tablet settings. It is
1267 intended to be used by client-programs that need model identification. It is
1268 already being used by the gnome-settings-daemon and the GNOME Control Center
1269 Wacom tablet applet.")
1270 (license license:x11)))
1272 (define-public xf86-input-wacom
1274 (name "xf86-input-wacom")
1280 "https://github.com/linuxwacom/xf86-input-wacom/releases/download/"
1281 "xf86-input-wacom-" version "/"
1282 "xf86-input-wacom-" version ".tar.bz2"))
1284 (base32 "11qk58az6qwii774ga45h5yqzipwn56f0d74kdbajqdv45p85gqj"))))
1287 (list (string-append "--with-sdkdir="
1288 (assoc-ref %outputs "out")
1290 (string-append "--with-xorg-conf-dir="
1291 (assoc-ref %outputs "out")
1292 "/share/X11/xorg.conf.d"))))
1293 (build-system gnu-build-system)
1295 `(("pkg-config" ,pkg-config)))
1297 `(("xorg-server" ,xorg-server)
1298 ("libxrandr" ,libxrandr)
1299 ("libxinerama" ,libxinerama)
1302 (home-page "https://linuxwacom.github.io/")
1303 (synopsis "Wacom input driver for X")
1305 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
1306 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
1307 (license license:x11)))
1309 (define-public redshift
1317 (string-append "https://github.com/jonls/redshift/"
1318 "releases/download/v" version
1319 "/redshift-" version ".tar.xz"))
1322 "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j"))))
1323 (build-system gnu-build-system)
1325 `(#:imported-modules (,@%gnu-build-system-modules
1326 (guix build python-build-system))
1328 (modify-phases %standard-phases
1329 (add-after 'install 'split-outputs
1330 (lambda* (#:key outputs #:allow-other-keys)
1331 (let ((out (assoc-ref outputs "out"))
1332 (gtk (assoc-ref outputs "gtk"))
1333 (desktop-file "/share/applications/redshift-gtk.desktop"))
1334 (mkdir-p (string-append gtk "/bin"))
1335 (link (string-append out "/bin/redshift-gtk")
1336 (string-append gtk "/bin/redshift-gtk"))
1337 (delete-file (string-append out "/bin/redshift-gtk"))
1338 (copy-recursively (string-append out "/lib")
1339 (string-append gtk "/lib"))
1340 (delete-file-recursively (string-append out "/lib"))
1341 (mkdir-p (string-append gtk "/share/applications"))
1342 (link (string-append out desktop-file)
1343 (string-append gtk desktop-file))
1344 (delete-file (string-append out desktop-file))
1345 (with-directory-excursion (string-append out "/share")
1346 (for-each (lambda (dir)
1348 (string-append out "/share/" dir)
1349 (string-append gtk "/share/" dir))
1350 (delete-file-recursively dir))
1351 '("appdata" "icons")))
1353 (add-after 'split-outputs 'wrap
1354 (lambda* (#:key inputs outputs #:allow-other-keys)
1355 (let* ((gtk (assoc-ref outputs "gtk"))
1357 (@ (guix build python-build-system) python-version))
1358 (python (assoc-ref inputs "python"))
1359 (sitedir (string-append gtk "/lib/python"
1360 (python-version python)
1362 (wrap-program (string-append gtk "/bin/redshift-gtk")
1363 `("PYTHONPATH" ":" prefix
1364 (,(string-append sitedir ":" (getenv "PYTHONPATH"))))
1365 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH"))))
1367 (outputs '("out" "gtk"))
1369 `(("pkg-config" ,pkg-config)
1370 ("intltool" ,intltool)))
1372 `(("libdrm" ,libdrm)
1375 ("libxxf86vm" ,libxxf86vm)
1376 ("glib" ,glib) ;for Geoclue2 support
1378 ;; To build the GTK3 GUI, we need these.
1381 ("python-pygobject" ,python-pygobject)
1382 ("python-pyxdg" ,python-pyxdg)))
1383 (home-page "https://github.com/jonls/redshift")
1384 (synopsis "Adjust the color temperature of your screen")
1386 "Redshift adjusts the color temperature according to the position of the
1387 sun. A different color temperature is set during night and daytime. During
1388 twilight and early morning, the color temperature transitions smoothly from
1389 night to daytime temperature to allow your eyes to slowly adapt. At night the
1390 color temperature should be set to match the lamps in your room.")
1391 (license license:gpl3+)))
1393 (define-public redshift-wayland
1394 (let ((commit "7da875d34854a6a34612d5ce4bd8718c32bec804")
1397 (name "redshift-wayland")
1398 (version (string-append "1.12-"
1399 revision "." (string-take commit 7)))
1403 (url "https://github.com/minus7/redshift")
1405 (file-name (string-append name "-" version))
1408 "0nbkcw3avmzjg1jr1g9yfpm80kzisy55idl09b6wvzv2sz27n957"))))
1409 (build-system gnu-build-system)
1411 '(#:phases (modify-phases %standard-phases
1412 (add-after 'install 'create-desktop-file
1413 (lambda* (#:key outputs #:allow-other-keys)
1414 ;; For the GeoClue provider to work, a .desktop file
1415 ;; needs to be provided. A template is available,
1416 ;; but it only gets installed when the GUI is enabled.
1417 ;; Install it manually for this Wayland variant.
1418 (let* ((out (assoc-ref outputs "out"))
1421 out "/share/applications/redshift.desktop")))
1422 (mkdir-p (dirname desktop-file))
1423 (copy-file "data/applications/redshift.desktop.in"
1425 (substitute* desktop-file
1429 `(("autoconf" ,autoconf)
1430 ("automake" ,automake)
1431 ("libtool" ,libtool)
1432 ("pkg-config" ,pkg-config)
1433 ("intltool" ,intltool)))
1435 `(("libdrm" ,libdrm)
1438 ("libxxf86vm" ,libxxf86vm)
1439 ("glib" ,glib) ; for Geoclue2 support
1440 ("wayland" ,wayland)))
1441 (home-page "https://github.com/minus7/redshift")
1442 (synopsis "Adjust the color temperature of your screen (with Wayland support)")
1444 "Redshift adjusts the color temperature according to the position of the
1445 sun. A different color temperature is set during night and daytime. During
1446 twilight and early morning, the color temperature transitions smoothly from
1447 night to daytime temperature to allow your eyes to slowly adapt. At night the
1448 color temperature should be set to match the lamps in your room.
1450 This is a fork with added support for Wayland using the wlr-gamma-control
1452 (license license:gpl3+))))
1454 (define-public gammastep
1462 (url "https://gitlab.com/chinstrap/gammastep")
1463 (commit (string-append "v" version))))
1464 (file-name (git-file-name name version))
1466 (base32 "11j54rdd3cgngdhjwyapwjbrdm8cii4i7g4zdvfykvmb1w4zdk7g"))))
1467 (build-system gnu-build-system)
1470 (modify-phases %standard-phases
1471 (add-after 'install 'wrap-python-and-typelib
1472 (lambda* (#:key outputs #:allow-other-keys)
1473 ;; Gammastep GUI needs Typelib files from GTK and access
1474 ;; to Python libraries.
1475 (wrap-program (string-append (assoc-ref outputs "out")
1476 "/bin/gammastep-indicator")
1477 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
1478 `("GI_TYPELIB_PATH" ":" prefix
1479 (,(getenv "GI_TYPELIB_PATH")))))))))
1481 `(("autoconf" ,autoconf)
1482 ("automake" ,automake)
1483 ("gettext" ,gettext-minimal)
1484 ("intltool" ,intltool)
1485 ("libtool" ,libtool)
1486 ("pkg-config" ,pkg-config)))
1490 ("libappindicator" ,libappindicator)
1493 ("libxxf86vm" ,libxxf86vm)
1496 ("python-pygobject" ,python-pygobject)
1497 ("python-pyxdg" ,python-pyxdg)
1498 ("wayland" ,wayland)))
1499 (home-page "https://gitlab.com/chinstrap/gammastep")
1500 (synopsis "Adjust the color temperature of your screen")
1502 "Gammastep automatically adjusts the color temperature of your
1503 screen according to your surroundings. This may help your eyes hurt
1504 less if you are working in front of the screen at night.")
1505 (license license:gpl3)))
1507 (define-public xscreensaver
1509 (name "xscreensaver")
1515 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
1518 (base32 "03fmyjlwjinzv7mih6n07glmys8s877snd8zijk2c0ds6rkxy5kh"))))
1519 (build-system gnu-build-system)
1521 `(#:tests? #f ; no check target
1523 (modify-phases %standard-phases
1524 (add-before 'configure 'adjust-gtk-resource-paths
1526 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
1527 (("@GTK_DATADIR@") "@datadir@")
1528 (("@PO_DATADIR@") "@datadir@"))
1530 #:configure-flags '("--with-pam" "--with-proc-interrupts"
1531 "--without-readdisplay")
1532 #:make-flags (list (string-append "AD_DIR="
1533 (assoc-ref %outputs "out")
1534 "/lib/X11/app-defaults"))))
1536 `(("pkg-config" ,pkg-config)
1537 ("intltool" ,intltool)))
1539 `(("libx11" ,libx11)
1540 ("libxext" ,libxext)
1546 ("libglade" ,libglade)
1547 ("libxml2" ,libxml2)
1549 ("libjpeg" ,libjpeg-turbo)
1550 ("linux-pam" ,linux-pam)
1556 ("libxrandr" ,libxrandr)
1559 (home-page "https://www.jwz.org/xscreensaver/")
1560 (synopsis "Classic screen saver suite supporting screen locking")
1562 "xscreensaver is a popular screen saver collection with many entertaining
1563 demos. It also acts as a nice screen locker.")
1564 ;; xscreensaver doesn't have a single copyright file and instead relies on
1565 ;; source comment headers, though most files have the same lax
1566 ;; permissions. To reduce complexity, we're pointing at Debian's
1567 ;; breakdown of the copyright information.
1568 (license (license:non-copyleft
1570 "http://metadata.ftp-master.debian.org/changelogs/"
1571 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1573 (define-public xssproxy
1580 (url "https://github.com/timakro/xssproxy")
1581 (commit (string-append "v" version))))
1582 (file-name (string-append name "-" version "-checkout"))
1585 "0c83wmipnsdnbihc5niyczs7jrkss2s8n6iwwjdia7hkjzbd0hl7"))))
1586 (build-system gnu-build-system)
1587 (arguments `(#:make-flags `("bindir=/bin"
1588 "man1dir=/share/man/man1"
1589 ,(string-append "DESTDIR=" (assoc-ref %outputs "out"))
1590 ,,(string-append "CC=" (cc-for-target)))
1591 #:phases (modify-phases %standard-phases
1595 `(("pkg-config" ,pkg-config)))
1599 ("libxext" ,libxext)
1600 ("libxscrnsaver" ,libxscrnsaver)
1602 (synopsis "Forward freedesktop.org Idle Inhibition Service calls to Xss")
1603 (description "xssproxy implements the @code{org.freedesktop.ScreenSaver}
1604 D-Bus interface described in the Idle Inhibition Service Draft by the
1605 freedesktop.org developers. The inhibition of the screensaver is then
1606 controlled using the XScreenSaverSuspend function from the Xss (X11 Screen
1607 Saver extension) library.")
1608 (home-page "https://github.com/timakro/xssproxy")
1609 (license license:gpl3+)))
1617 (uri (string-append "http://www.vergenet.net/~conrad/software"
1618 "/xsel/download/xsel-" version ".tar.gz"))
1621 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1622 (build-system gnu-build-system)
1624 `(("libxt" ,libxt)))
1625 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1626 (synopsis "Manipulate X selection")
1628 "XSel is a command-line program for getting and setting the contents of
1629 the X selection. Normally this is only accessible by manually highlighting
1630 information and pasting it with the middle mouse button.
1632 XSel reads from standard input and writes to standard output by default,
1633 but can also follow a growing file, display contents, delete entries and more.")
1634 (license (license:x11-style "file://COPYING"
1635 "See COPYING in the distribution."))))
1637 (define-public xdpyprobe
1643 (uri (string-append "https://github.com/alezost/" name
1644 "/releases/download/v" version
1645 "/" name "-" version ".tar.gz"))
1648 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1649 (build-system gnu-build-system)
1651 `(("libx11" ,libx11)))
1652 (home-page "https://github.com/alezost/xdpyprobe")
1653 (synopsis "Probe X server for connectivity")
1655 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1656 connectivity of the X server running on a particular @code{DISPLAY}.")
1657 (license license:gpl3+)))
1665 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1666 "releases/download/"
1667 version "/rofi-" version ".tar.xz"))
1670 "12p9z8bl1gg8k024m4a6zfz7gf1zbyffardh98raqgabn6knwk22"))))
1671 (build-system gnu-build-system)
1676 ("startup-notification" ,startup-notification)
1677 ("libjpeg" ,libjpeg-turbo)
1678 ("librsvg" ,librsvg)
1679 ("libxkbcommon" ,libxkbcommon)
1681 ("xcb-util" ,xcb-util)
1682 ("xcb-util-xrm" ,xcb-util-xrm)
1683 ("xcb-util-wm" ,xcb-util-wm)))
1688 ("glib:bin" ,glib "bin")
1689 ("pkg-config" ,pkg-config)))
1691 `(#:parallel-tests? #f ; fails in some circumstances
1693 (modify-phases %standard-phases
1694 (add-before 'configure 'adjust-tests
1696 (substitute* '("test/helper-expand.c")
1699 (("g_get_home_dir \\(\\)") "\"/\""))
1701 (home-page "https://github.com/DaveDavenport/rofi")
1702 (synopsis "Application launcher")
1703 (description "Rofi is a minimalist application launcher. It memorizes which
1704 applications you regularly use and also allows you to search for an application
1706 (license license:expat)))
1708 (define-public tint2
1714 (uri (string-append "https://gitlab.com/o9000/" name
1715 "/repository/archive.tar.gz?ref=" version))
1716 (file-name (string-append name "-" version ".tar.gz"))
1719 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1720 (build-system cmake-build-system)
1722 '(#:tests? #f ;no test target
1724 (modify-phases %standard-phases
1725 (add-after 'unpack 'fix-installation-prefix
1727 (substitute* "CMakeLists.txt"
1728 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))
1733 ("librsvg" ,librsvg)
1734 ("libxcomposite" ,libxcomposite)
1735 ("libxdamage" ,libxdamage)
1737 ("libxinerama" ,libxinerama)
1738 ("libxrandr" ,libxrandr)
1739 ("startup-notification" ,startup-notification)))
1741 `(("gettext" ,gettext-minimal)
1742 ("pkg-config" ,pkg-config)))
1743 (home-page "https://gitlab.com/o9000/tint2")
1744 (synopsis "Lightweight task bar")
1746 "Tint2 is a simple task bar made for modern X window managers. It was
1747 specifically made for Openbox but it should also work with other window
1748 managers (GNOME, KDE, XFCE etc.).
1750 The taskbar includes transparency and color settings for the font, icons,
1751 border, and background. It also supports multihead setups, customized mouse
1752 actions, a built-in clock, a battery monitor and a system tray.")
1753 (license license:gpl2)))
1756 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1760 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1761 revision "." (string-take commit 7)))
1765 (url "https://github.com/robm/dzen")
1767 (file-name (string-append name "-" version))
1770 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1771 (build-system gnu-build-system)
1773 `(#:tests? #f ; No test suite.
1774 #:make-flags ; Replacement for `config.mk`.
1776 (string-append "VERSION = " ,version)
1777 (string-append "PREFIX = " %output)
1778 "MANPREFIX = ${PREFIX}/share/man"
1780 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1781 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1782 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1787 (modify-phases %standard-phases
1788 (delete 'configure) ; No configuration script.
1789 ;; Use own make-flags instead of `config.mk`.
1790 (add-before 'build 'dont-include-config-mk
1792 (substitute* "Makefile" (("include config.mk") ""))
1795 `(("libx11" ,libx11)
1798 ("libxinerama" ,libxinerama)))
1799 (native-inputs `(("pkg-config" ,pkg-config)))
1800 (synopsis "General purpose messaging, notification and menuing program for X11")
1801 (description "Dzen is a general purpose messaging, notification and menuing
1802 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1803 (home-page "https://github.com/robm/dzen")
1804 (license license:expat))))
1806 (define-public xftwidth
1809 (version "20170402")
1814 (url "http://github.com/vixus0/xftwidth")
1815 (commit "35ff963908d41a8a6a7101c434c88255728025ee")))
1818 "1jwl25785li24kbp0m1wxfwk4dgxkliynn03nsj813cjr34kq16h"))
1819 (file-name (string-append name "-" version "-checkout"))))
1820 (build-system gnu-build-system)
1821 (inputs `(("freetype" ,freetype)
1823 ("fontconfig" ,fontconfig)
1824 ("libxft" ,libxft)))
1826 `(("pkg-config" ,pkg-config)))
1829 (modify-phases %standard-phases
1830 (add-after 'unpack 'fix-makefile ; /usr/bin doesn't show up in PATH
1831 (lambda _ (substitute* "Makefile" (("usr/") "")) #t))
1832 (delete 'check) ; no check included in Makefile
1833 (delete 'configure))
1835 (let ((out (assoc-ref %outputs "out")))
1836 (list (string-append "DESTDIR=" out)))))
1837 (home-page "https://github.com/vixus0/xftwidth")
1838 (synopsis "Calculator for determining pixel widths of displayed text using Xft fonts")
1839 (description "xftwidth is a small C program for calculating the pixel
1840 widths of displayed text using Xft fonts. It is especially useful in scripts
1841 for displaying text in graphical panels, menus, popups, and notification
1842 windows generated using dzen. These scripts are often used in conjunction with
1843 minimalistic tiling window managers such as herbstluftwm and bspwm.")
1844 (license license:expat)))
1846 (define-public xcb-util-xrm
1848 (name "xcb-util-xrm")
1853 "https://github.com/Airblader/xcb-util-xrm/releases"
1854 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1857 "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h"))
1858 (modules '((guix build utils)))
1862 (delete-file-recursively "m4")
1864 (build-system gnu-build-system)
1866 `(("pkg-config" ,pkg-config)
1868 ("libx11" ,libx11))) ; for tests
1870 `(("libxcb" ,libxcb)
1871 ("xcb-util" ,xcb-util)))
1872 (home-page "https://github.com/Airblader/xcb-util-xrm")
1873 (synopsis "XCB utility functions for the X resource manager")
1875 "The XCB util module provides a number of libraries which sit on
1876 top of libxcb, the core X protocol library, and some of the extension
1877 libraries. These experimental libraries provide convenience functions
1878 and interfaces which make the raw X protocol more usable. Some of the
1879 libraries also provide client-side code which is not strictly part of
1880 the X protocol but which has traditionally been provided by Xlib.
1882 XCB util-xrm module provides the following libraries:
1884 - xrm: utility functions for the X resource manager.")
1885 (license license:x11)))
1887 (define-public xcalib
1891 (home-page "https://github.com/OpenICC/xcalib")
1897 (file-name (git-file-name name version))
1900 "05fzdjmhiafgi2jf0k41i3nm0837a78sb6yv59cwc23nla8g0bhr"))
1903 ;; Add missing documentation for the new --output option.
1904 ;; This upstream patch can be removed on the next update.
1908 home-page "/commit/"
1909 "ae03889b91fe984b18e925ad2b5e6f2f7354e058.patch"))
1910 (file-name "xcalib-update-man-page.patch")
1913 "0f7b4d5484x4b9n1bwhqmar0kcaa029ffff7bp3xpr734n1qgqb6")))))))
1914 (build-system cmake-build-system)
1916 '(#:tests? #f)) ; no test suite
1917 (inputs `(("libx11" ,libx11)
1918 ("libxext" ,libxext)
1919 ("libxrandr" ,libxrandr)
1920 ("libxxf86vm" ,libxxf86vm)))
1921 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1922 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1923 profiles to the video card's gamma ramp. It does work with most video card
1924 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1925 invert colors on a specific display/screen.")
1926 (license license:gpl2)))
1928 (define-public nxbelld
1935 (url "https://github.com/dusxmt/nxbelld")
1939 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1940 (file-name (git-file-name name version))))
1941 (build-system gnu-build-system)
1942 (arguments '(#:configure-flags `("--enable-sound"
1945 (native-inputs `(("autoconf" ,autoconf)
1946 ("automake" ,automake)
1947 ("pkg-config" ,pkg-config)
1949 (inputs `(("libx11" ,libx11)
1950 ("alsa-lib" ,alsa-lib)))
1951 (synopsis "Daemon that performs an action every time the X11 bell is rung")
1952 (description "nxbelld is a tiny utility to aid people who either don't
1953 like the default PC speaker beep, or use a sound driver that doesn't have
1954 support for the PC speaker. The utility performs a given action every time
1955 the X bell is rung. The actions nxbelld can currently perform include running
1956 a specified program, emulating the PC speaker beep using the sound card (default),
1957 or playing a PCM encoded WAVE file.")
1958 (home-page "https://github.com/dusxmt/nxbelld")
1959 (license license:gpl3+)))
1961 (define-public xautolock
1967 (uri (string-append "https://www.ibiblio.org/pub/linux/X11/"
1968 "screensavers/xautolock-" version ".tgz"))
1971 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1972 (build-system gnu-build-system)
1974 `(("imake" ,imake)))
1976 `(("libx11" ,libx11)
1977 ("libxext" ,libxext)
1978 ("libxscrnsaver" ,libxscrnsaver)))
1982 (modify-phases %standard-phases
1984 (lambda* (#:key inputs outputs #:allow-other-keys)
1985 (let ((imake (assoc-ref inputs "imake"))
1986 (out (assoc-ref outputs "out")))
1987 ;; Generate Makefile
1989 (substitute* "Makefile"
1990 ;; These imake variables somehow remain undefined
1991 (("DefaultGcc2[[:graph:]]*Opt") "-O2")
1992 ;; Reset a few variable defaults that are set in imake templates
1994 (("(MANPATH = )[[:graph:]]*" _ front)
1995 (string-append front out "/share/man")))
1996 ;; Old BSD-style 'union wait' is unneeded (defining
1997 ;; _USE_BSD did not seem to fix it)
1998 (substitute* "src/engine.c"
1999 (("union wait status") "int status = 0"))
2001 (add-after 'install 'install/man
2003 (invoke "make" "install.man"))))))
2004 (home-page "https://ibiblio.org/pub/Linux/X11/screensavers/")
2005 (synopsis "Program launcher for idle X sessions")
2006 (description "Xautolock monitors input devices under the X Window
2007 System, and launches a program of your choice if there is no activity after
2008 a user-configurable period of time.")
2009 (license license:gpl2)))
2011 (define-public screen-message
2013 (name "screen-message")
2018 "https://www.joachim-breitner.de/archive/screen-message"
2019 "/screen-message-" version ".tar.gz"))
2022 "0dwgm4z3dfk6xz41w8xiv0hmnwr74gf3ykb91b090hc4ffwsf4mw"))))
2023 (build-system gnu-build-system)
2024 (inputs `(("gtk3" ,gtk+)
2027 (native-inputs `(("pkg-config" ,pkg-config)))
2029 ;; The default configure puts the 'sm' binary in games/ instead of bin/ -
2031 `(#:make-flags (list (string-append "execgamesdir=" %output "/bin"))))
2032 (synopsis "Print messages on your screen")
2033 (description "@code{screen-message} is a tool for displaying text on
2034 your screen. It will make the text as large as possible and display it
2035 with black color on a white background (colors are configurable on the
2037 (home-page "https://www.joachim-breitner.de/projects#screen-message")
2038 (license license:gpl2+)))
2040 (define-public xss-lock
2041 ;; xss-lock does not seem to be maintained any longer, but the last commits
2042 ;; fix important issues so we package them.
2043 (let ((version "0.3.0")
2045 (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717"))
2048 (version (git-version version revision commit))
2052 (url "https://bitbucket.org/raymonad/xss-lock.git")
2054 (file-name (git-file-name name version))
2057 "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r"))))
2058 (build-system cmake-build-system)
2059 (inputs `(("glib" ,glib)
2060 ("xcb-util" ,xcb-util)))
2062 `(("python-docutils" ,python-docutils)
2063 ("pkg-config" ,pkg-config)))
2066 (synopsis "Use external screen locker on events")
2067 (description "@code{xss-lock} listens to X signals to fire up a
2068 user-defined screensaver. In effect this automatically locks the
2069 screen when closing a laptop lid or after a period of user inactivity (as set
2070 with @code{xset s TIMEOUT}). The notifier command, if specified, is executed
2071 first. Additionally, xss-lock uses the inhibition logic to lock the screen
2072 before the system goes to sleep.")
2073 (home-page "https://bitbucket.org/raymonad/xss-lock")
2074 (license license:expat))))
2076 (define-public python-pyperclip
2078 (name "python-pyperclip")
2083 (uri (pypi-uri "pyperclip" version))
2086 "1p505c23ji06r28k1y67siihsbdzdf1brhlqpyv9ams4gk9863pp"))))
2087 (build-system python-build-system)
2089 '(#:tests? #f)) ; Not clear how to make tests pass.
2093 (home-page "https://github.com/asweigart/pyperclip")
2094 (synopsis "Python clipboard module")
2096 "Pyperclip is a clipboard module for Python, handling copy/pasting from
2098 (license license:bsd-3)))
2100 (define-public numlockx
2107 ;; It seems that upstream is gone.
2108 (url "https://github.com/rg3/numlockx")
2110 (file-name (git-file-name name version))
2113 "1w49fayhwzn5rx0z1q2lrvm7z8jrd34lgb89p853a024bixc3cf2"))))
2114 (build-system gnu-build-system)
2116 `(("xorg-server" ,xorg-server)))
2117 (home-page "https://github.com/rg3/numlockx")
2118 (synopsis "Turns on the numlock key in X11")
2119 (description "@command{numlockx} is a tiny program that lets you turn on
2120 the numlock key in X11. It can be called from the user's initialization files
2121 to automatically turn it on on login.")
2122 (license license:expat)))
2124 (define-public xrandr-invert-colors
2126 (name "xrandr-invert-colors")
2131 (url "https://github.com/zoltanp/xrandr-invert-colors")
2132 (commit (string-append "v" version))))
2133 (file-name (git-file-name name version))
2136 "1br3x9vr6xm4ika06n8cfxx1b3wdchdqvyzjl4y1chmivrml8x9h"))))
2137 (build-system gnu-build-system)
2139 `(#:make-flags (list ,(string-append "CC=" (cc-for-target)))
2140 #:tests? #f ; there are none
2142 (modify-phases %standard-phases
2145 (lambda* (#:key outputs #:allow-other-keys)
2146 (let* ((out (assoc-ref outputs "out"))
2147 (bin (string-append out "/bin")))
2148 (install-file "xrandr-invert-colors.bin" bin)
2151 `(("libxrandr" ,libxrandr)))
2152 (home-page "https://github.com/zoltanp/xrandr-invert-colors")
2153 (synopsis "Invert display colors")
2154 (description "This package provides a small utility for inverting the
2155 colors on all monitors attached to an XRandR-capable X11 display server.")
2156 (license license:gpl3+)))
2166 (string-append "https://www.umaxx.net/dl/sct-"
2169 (base32 "0lrhx771iccbw04wrhj0ygids1pzmjfc4hvklm30m3p3flvhqf0m"))))
2170 (build-system gnu-build-system)
2173 (list ,(string-append "CC=" (cc-for-target)))
2174 #:tests? #f ; no test suite
2176 (modify-phases %standard-phases
2178 (add-after 'unpack 'fix-sctd-paths
2179 (lambda* (#:key outputs inputs #:allow-other-keys)
2180 (let ((out (assoc-ref outputs "out"))
2181 (coreutils (assoc-ref inputs "coreutils"))
2182 (inetutils (assoc-ref inputs "inetutils"))
2183 (sed (assoc-ref inputs "sed")))
2184 (substitute* "sctd.sh"
2185 (("\\$\\(which sct\\)") (string-append out "/bin/sct"))
2186 (("date") (string-append coreutils "/bin/date"))
2187 (("printf") (string-append coreutils "/bin/printf"))
2188 (("sleep") (string-append coreutils "/bin/sleep"))
2189 (("logger") (string-append inetutils "/bin/logger"))
2190 (("sed") (string-append sed "/bin/sed"))))))
2192 (lambda* (#:key outputs #:allow-other-keys)
2193 (let ((out (assoc-ref outputs "out")))
2194 (install-file "sct" (string-append out "/bin"))
2195 (install-file "sctd.sh" (string-append out "/bin"))
2196 (install-file "sct.1" (string-append out "/man/man1"))
2197 (install-file "sctd.1" (string-append out "/man/man1"))
2198 (rename-file (string-append out "/bin/sctd.sh")
2199 (string-append out "/bin/sctd"))
2202 `(("coreutils" ,coreutils) ; sctd uses "date", "printf" and "sleep"
2203 ("inetutils" ,inetutils) ; sctd uses "logger"
2204 ("libxrandr" ,libxrandr)
2205 ("sed" ,sed))) ; sctd uses "sed"
2206 (home-page "https://www.umaxx.net")
2207 (synopsis "Set the color temperature of the screen")
2208 (description "@code{sct} is a lightweight utility to set the color
2209 temperature of the screen.")
2210 (license (license:non-copyleft "file://sct.c")))) ; "OpenBSD" license
2212 (define-public xsecurelock
2214 (name "xsecurelock")
2219 "https://github.com/google/xsecurelock/releases"
2220 "/download/v" version "/xsecurelock-" version ".tar.gz"))
2222 (base32 "070gknyv0s5hz9hkc6v73m2v7ssyjwgl93b5hd4glayfqxqjbmdp"))))
2223 (build-system gnu-build-system)
2226 '("--with-pam-service-name=login"
2228 "--with-default-authproto-module=/run/setuid-programs/authproto_pam")))
2230 `(("pandoc" ,pandoc)
2231 ("pkg-config" ,pkg-config)))
2233 `(("fontconfig" ,fontconfig)
2235 ("libxcomposite" ,libxcomposite)
2236 ("libxext" ,libxext)
2237 ("libxfixes" ,libxfixes)
2240 ("libxrandr" ,libxrandr)
2241 ("libxscrnsaver" ,libxscrnsaver)
2242 ("linux-pam" ,linux-pam)))
2243 (home-page "https://github.com/google/xsecurelock")
2244 (synopsis "X11 screen lock utility with the primary goal of security")
2245 (description "@code{xsecurelock} is an X11 screen locker which uses
2246 a modular design to avoid the usual pitfalls of screen locking utility design.
2248 As a consequence of the modular design, the usual screen locker service
2249 shouldn't be used with @code{xsecurelock}. Instead, you need to add a helper
2250 binary to setuid-binaries:
2252 (setuid-programs (cons*
2253 (file-append xsecurelock \"/libexec/xsecurelock/authproto_pam\")
2256 (license license:asl2.0)))
2258 (define-public wl-clipboard
2260 (name "wl-clipboard")
2266 (url "https://github.com/bugaevc/wl-clipboard")
2267 (commit (string-append "v" version))))
2268 (file-name (git-file-name name version))
2270 (base32 "0c4w87ipsw09aii34szj9p0xfy0m00wyjpll0gb0aqmwa60p0c5d"))))
2271 (build-system meson-build-system)
2274 (modify-phases %standard-phases
2275 (add-after 'unpack 'patch-file-names
2276 (lambda* (#:key inputs #:allow-other-keys)
2277 (substitute* (find-files "src" "\\.c$")
2278 (("\"(cat|rm)\"" _ command)
2279 (string-append "\"" (assoc-ref inputs "coreutils")
2280 "/bin/" command "\""))
2282 (string-append "\"" (assoc-ref inputs "xdg-utils")
2283 "/bin/xdg-mime\""))))))))
2285 `(("pkg-config" ,pkg-config)))
2287 `(("coreutils" ,coreutils)
2288 ("wayland" ,wayland)
2289 ("wayland-protocols" ,wayland-protocols)
2290 ("xdg-utils" ,xdg-utils)))
2291 (home-page "https://github.com/bugaevc/wl-clipboard")
2292 (synopsis "Command-line copy/paste utilities for Wayland")
2293 (description "Wl-clipboard is a set of command-line copy/paste utilities for
2295 (license license:gpl3+)))
2297 (define-public autocutsel
2303 (uri (string-append "https://github.com/sigmike/autocutsel"
2304 "/releases/download/" version "/"
2305 "autocutsel-" version ".tar.gz"))
2308 "05zb85imp42birvrc320q20r98qddc5vxx169dnl753l5za0czpi"))))
2309 (build-system gnu-build-system)
2311 '(#:tests? #f)) ; no "check" target
2312 (native-inputs `(("libx11" ,libx11)
2313 ("libxaw" ,libxaw)))
2314 (home-page "https://www.nongnu.org/autocutsel/")
2315 (synopsis "Automated X11 clipboard and cutbuffer synchronization")
2316 (description "@code{autocutsel} tracks changes in the server's cutbuffer
2317 and clipboard selection. When the clipboard is changed, it updates the
2318 cutbuffer. When the cutbuffer is changed, it owns the clipboard selection.
2319 The cutbuffer and clipboard selection are always synchronized.")
2320 (license license:gpl2+)))
2322 (define-public jgmenu
2330 (url "https://github.com/johanmalm/jgmenu")
2331 (commit (string-append "v" version))))
2332 (file-name (git-file-name name version))
2334 (base32 "13y4ra2hjfqbn2vxyyn4ar5iqklbabyfwksbryc2gzxspw1vz4zq"))))
2335 (build-system gnu-build-system)
2337 `(("cppcheck" ,cppcheck)
2339 ("pkg-config" ,pkg-config)))
2343 ("librsvg" ,librsvg)
2345 ("libxml2" ,libxml2)
2346 ("libxrandr" ,libxrandr)
2349 `(#:test-target "test"
2351 (modify-phases %standard-phases
2353 (lambda* (#:key outputs #:allow-other-keys)
2354 (setenv "CC" ,(cc-for-target))
2355 (invoke "./configure"
2356 (string-append "--prefix=" (assoc-ref outputs "out")))
2358 (synopsis "Simple X11 menu")
2360 "This is a simple menu for X11 designed for scripting and tweaking. It
2361 can optionally use some appearance settings from XSettings, tint2 and GTK.")
2362 (home-page "https://jgmenu.github.io/")
2363 (license license:gpl2)))
2365 (define-public xwallpaper
2373 (url "https://github.com/stoeckmann/xwallpaper")
2374 (commit (string-append "v" version))))
2375 (file-name (git-file-name name version))
2377 (base32 "10klm81rs3k3l2i7whpvcsg95x51ja11l86fmwbrvg3kq705p2sr"))))
2378 (build-system gnu-build-system)
2380 `(("autoconf" ,autoconf)
2381 ("automake" ,automake)
2382 ("pkg-config" ,pkg-config)))
2384 `(("libjpeg-turbo" ,libjpeg-turbo)
2388 ("xcb-util" ,xcb-util)
2389 ("xcb-util-image" ,xcb-util-image)))
2390 (home-page "https://github.com/stoeckmann/xwallpaper")
2391 (synopsis "Wallpaper setting utility for X")
2393 "The xwallpaper utility allows you to set image files as your X
2394 wallpaper. JPEG, PNG, and XPM file formats are supported.
2396 The wallpaper is also advertised to programs which support semi-transparent
2398 (license license:isc)))
2400 (define-public xwrits
2407 (uri (string-append "https://www.lcdf.org/~eddietwo/xwrits/"
2408 "xwrits-" version ".tar.gz"))
2410 (base32 "1n7y0fqpcvmzznvbsn14hzy5ddaa3lilm8aw6ckscqndnh4lijma"))))
2411 (build-system gnu-build-system)
2414 (modify-phases %standard-phases
2415 (add-after 'install 'install-docs
2416 (lambda* (#:key outputs #:allow-other-keys)
2417 (let* ((out (assoc-ref outputs "out"))
2418 (doc (string-append out "/share/doc/xwrits")))
2419 (install-file "GESTURES" doc)
2420 (install-file "README" doc)
2423 `(("libx11" ,libx11)
2424 ("libxinerama" ,libxinerama)))
2425 (home-page "https://www.lcdf.org/~eddietwo/xwrits/")
2426 (synopsis "Reminds you to take wrist breaks")
2427 (description "Xwrits reminds you to take wrist breaks for prevention or
2428 management of repetitive stress injuries. When you should take a break, it
2429 pops up an X window, the warning window. You click on the warning window,
2430 then take a break. The window changes appearance while you take the break.
2431 It changes again when your break is over. Then you just resume typing.
2432 Xwrits hides itself until you should take another break.")
2433 (license license:gpl2)))
2435 (define-public xsettingsd
2443 (url "https://github.com/derat/xsettingsd")
2444 (commit (string-append "v" version))))
2445 (file-name (git-file-name name version))
2447 (base32 "14gnkz18dipsa2v24f4nm9syxaa7g21iqjm7y65jn849ka2jr1h8"))))
2448 (build-system scons-build-system)
2450 `(("libx11" ,libx11)))
2452 `(("pkg-config" ,pkg-config)
2453 ("googletest" ,googletest)
2454 ("googletest-source" ,(package-source googletest))))
2456 `(#:scons ,scons-python2
2458 (list ,(string-append "CC=" (cc-for-target)))
2460 (modify-phases %standard-phases
2461 (add-before 'build 'patch-sconstruct
2462 (lambda* (#:key inputs #:allow-other-keys)
2463 (substitute* "SConstruct"
2464 ;; scons doesn't pick up environment variables automatically
2465 ;; so it needs help to find path variables
2466 (("env = Environment\\(")
2469 'PATH': os.environ['PATH'],
2470 'CPATH': os.environ['C_INCLUDE_PATH'],
2471 'LIBRARY_PATH': os.environ['LIBRARY_PATH'],
2472 'PKG_CONFIG_PATH': os.environ['PKG_CONFIG_PATH']
2474 ;; Update path to gtest source files used in tests
2475 (("/usr/src/gtest") (string-append
2476 (assoc-ref inputs "googletest-source")
2478 ;; Exclude one warning that causes a build error
2479 (("-Werror") "-Werror -Wno-error=sign-compare"))
2481 ;; The SConstruct script doesn't configure installation so
2482 ;; binaries must be copied to the output path directly
2484 (lambda* (#:key outputs #:allow-other-keys)
2485 (let* ((out (assoc-ref outputs "out"))
2486 (bin (string-append out "/bin")))
2488 (install-file "xsettingsd" bin)
2489 (install-file "dump_xsettings" bin)
2491 (home-page "https://github.com/derat/xsettingsd")
2492 (synopsis "Xorg settings daemon")
2493 (description "@command{xsettingsd} is a lightweight daemon that provides settings to
2494 Xorg applications via the XSETTINGS specification. It is used for defining
2495 font and theme settings when a complete desktop environment (GNOME, KDE) is
2496 not running. With a simple @file{.xsettingsd} configuration file one can avoid
2497 configuring visual settings in different UI toolkits separately.")
2498 (license license:bsd-3)))
2500 (define-public clipnotify
2508 (url "https://github.com/cdown/clipnotify")
2510 (file-name (git-file-name name version))
2513 "1v3ydm5ljy8z1savmdxrjyx7a5bm5013rzw80frp3qbbjaci0wbg"))))
2514 (build-system gnu-build-system)
2517 (modify-phases %standard-phases
2520 (lambda* (#:key inputs outputs #:allow-other-keys)
2521 (let* ((out (assoc-ref outputs "out"))
2522 (bin (string-append out "/bin"))
2523 (doc (string-append %output "/share/doc/" ,name "-" ,version)))
2524 (install-file "clipnotify" bin)
2525 (install-file "README.md" doc)
2528 (list ,(string-append "CC=" (cc-for-target)))
2529 #:tests? #f)) ; no test suite
2531 `(("libx11" ,libx11)
2532 ("libXfixes" ,libxfixes)))
2533 (home-page "https://github.com/cdown/clipnotify")
2534 (synopsis "Notify on new X clipboard events")
2535 (description "@command{clipnotify} is a simple program that, using the
2536 XFIXES extension to X11, waits until a new selection is available and then
2539 It was primarily designed for clipmenu, to avoid polling for new selections.
2541 @command{clipnotify} doesn't try to print anything about the contents of the
2542 selection, it just exits when it changes. This is intentional -- X11's
2543 selection API is verging on the insane, and there are plenty of others who
2544 have already lost their sanity to bring us xclip/xsel/etc. Use one of those
2545 tools to complement clipnotify.")
2546 (license license:public-domain)))
2548 (define-public clipmenu
2549 (let ((commit "bcbe7b144598db4a103f14e8408c4b7327d6d5e1")
2553 (version (string-append "6.0.1-"
2554 revision "." (string-take commit 7)))
2559 (url "https://github.com/cdown/clipmenu")
2561 (file-name (git-file-name name version))
2564 "0053j4i14lz5m2bzc5sch5id5ilr1bl196mp8fp0q8x74w3vavs9"))))
2565 (build-system gnu-build-system)
2568 (modify-phases %standard-phases
2572 (lambda* (#:key inputs outputs #:allow-other-keys)
2573 (let* ((out (assoc-ref outputs "out"))
2574 (bin (string-append out "/bin"))
2575 (doc (string-append %output "/share/doc/"
2576 ,name "-" ,version)))
2577 (install-file "clipdel" bin)
2578 (install-file "clipmenu" bin)
2579 (install-file "clipmenud" bin)
2580 (install-file "README.md" doc)
2582 (add-after 'install 'wrap-script
2583 (lambda* (#:key inputs outputs #:allow-other-keys)
2584 (let* ((out (assoc-ref outputs "out"))
2585 (clipnotify (assoc-ref inputs "clipnotify"))
2586 (coreutils-minimal (assoc-ref inputs "coreutils-minimal"))
2587 (gawk (assoc-ref inputs "gawk"))
2588 (util-linux (assoc-ref inputs "util-linux"))
2589 (xdotool (assoc-ref inputs "xdotool"))
2590 (xsel (assoc-ref inputs "xsel")))
2593 (wrap-script (string-append out "/bin/" prog)
2596 (string-append dir "/bin"))
2597 (list clipnotify coreutils-minimal
2598 gawk util-linux xdotool xsel)))))
2599 '("clipmenu" "clipmenud" "clipdel")))
2602 (lambda* (#:key inputs outputs #:allow-other-keys)
2603 ;; substitute a shebang appearing inside a string (the test
2604 ;; file writes this string to a temporary file):
2605 (substitute* "tests/test-clipmenu"
2606 (("#!/usr/bin/env bash")
2607 (string-append "#!" (which "bash"))))
2608 (invoke "tests/test-clipmenu")
2611 `(("clipnotify" ,clipnotify)
2612 ("coreutils-minimal" ,coreutils-minimal)
2614 ("guile" ,guile-3.0) ; for wrap-script
2615 ("util-linux" ,util-linux)
2616 ("xdotool" ,xdotool)
2618 (home-page "https://github.com/cdown/clipmenu")
2619 (synopsis "Simple clipboard manager using dmenu or rofi and xsel")
2620 (description "Start @command{clipmenud}, then run @command{clipmenu} to
2621 select something to put on the clipboard.
2623 When @command{clipmenud} detects changes to the clipboard contents, it writes
2624 them out to the cache directory. @command{clipmenu} reads the cache directory
2625 to find all available clips and launches @command{dmenu} (or @command{rofi},
2626 depending on the value of @code{CM_LAUNCHER}) to let the user select a clip.
2627 After selection, the clip is put onto the PRIMARY and CLIPBOARD X selections.")
2628 (license license:public-domain))))
2638 (url "https://github.com/qnikst/kbdd")
2639 (commit (string-append "v" version))))
2640 (file-name (git-file-name name version))
2643 "0qkq75grbd4wkx4nlvswgavpijk9ad0pzqyj89a0ayjsbsn36pqy"))))
2644 (build-system gnu-build-system)
2646 `(("autoconf" ,autoconf)
2647 ("automake" ,automake)
2648 ("glib" ,glib "bin")
2649 ("pkg-config" ,pkg-config)))
2651 `(("dbus-glib" ,dbus-glib)
2653 ("libx11" ,libx11)))
2654 (home-page "https://github.com/qnikst/kbdd")
2655 (synopsis "Per-window keyboard layout switching daemon for X")
2656 (description "@command{kbdd} is a simple keyboard layout switching
2657 program, which is designed to run in an X11 session and remember
2658 keyboard layouts on a per-window basis. That can be very handy for a
2659 user of a non-US keyboard who does not want to jump through layouts back
2660 and forth while typing in terminals (mostly in a latin alphabet) and
2661 some kind of chat (in native language).
2663 @command{kbdd} also supports D-Bus signals, which makes it possible to
2664 create layout indicator widgets.")
2665 (license license:bsd-2)))
2667 (define-public j4-dmenu-desktop
2669 (name "j4-dmenu-desktop")
2674 (url "https://github.com/enkore/j4-dmenu-desktop")
2675 (commit (string-append "r" version))))
2676 (file-name (git-file-name name version))
2679 "1gxpgifzy0hnpd0ymw3r32amzr32z3bgb90ldjzl438p6h1q0i26"))))
2680 (build-system cmake-build-system)
2682 `(("catch2" ,catch-framework2)))
2684 `(#:configure-flags '("-DWITH_GIT_CATCH=off")
2686 (modify-phases %standard-phases
2687 (add-after 'unpack 'find-catch
2689 (substitute* "CMakeLists.txt"
2690 (("PATH_SUFFIXES catch") "PATH_SUFFIXES catch2"))
2694 (invoke "./j4-dmenu-tests" "exclude:SearchPath/XDG_DATA_HOME"))))))
2695 (synopsis "Fast desktop menu")
2697 "j4-dmenu-desktop is a replacement for i3-dmenu-desktop. Its purpose
2698 is to find @file{.desktop} files and offer you a menu to start an application
2699 using @command{dmenu}.")
2700 (home-page "https://github.com/enkore/j4-dmenu-desktop")
2701 (license license:gpl3+)))
2710 (url "https://hg.sr.ht/~scoopta/wofi")
2711 (changeset (string-append "v" version))))
2712 (file-name (git-file-name name version))
2715 "1bnf078fg1kwslzwm1mjxwcqqq3bhk1dzymwfw9gk3brqbxrl75c"))))
2716 (build-system meson-build-system)
2718 `(#:glib-or-gtk? #t))
2720 `(("pkg-config" ,pkg-config)))
2723 ("wayland" ,wayland)))
2724 (synopsis "Launcher/menu program for wayland")
2726 "Wofi is a launcher/menu program for wlroots based wayland compositors
2727 such as sway, similar to @command{rofi}.")
2728 (home-page "https://hg.sr.ht/~scoopta/wofi")
2729 (license license:gpl3+)))
2738 (url (string-append "https://github.com/jceb/dex"))
2739 (commit (string-append "v" version))))
2742 "03aapcywnz4kl548cygpi25m8adwbmqlmwgxa66v4156ax9dqs86"))
2743 (file-name (git-file-name name version))))
2744 (build-system gnu-build-system)
2746 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2748 (modify-phases %standard-phases
2749 (delete 'configure))
2752 `(("python" ,python)))
2754 `(("python-sphinx" ,python-sphinx)))
2755 (home-page "https://github.com/jceb/dex")
2756 (synopsis "Execute DesktopEntry files")
2758 "@command{dex}, @dfn{DesktopEntry Execution}, is a program to generate
2759 and execute @file{.desktop} files of the Application type.")
2760 (license license:gpl3+)))
2769 (url "https://github.com/Earnestly/sx")
2771 (file-name (git-file-name name version))
2774 "0p24ghp1ygvyc2hv81byhxax7491yhcc5priq5ldv07nzl7akagc"))))
2775 (build-system gnu-build-system)
2777 '(#:tests? #f ; no tests
2779 (let ((out (assoc-ref %outputs "out")))
2780 (list (string-append "PREFIX=" out)))
2782 (modify-phases %standard-phases
2783 ;; no configure script
2784 (delete 'configure))))
2786 `(("xauth" ,xauth)))
2787 (home-page "https://github.com/Earnestly/sx")
2788 (synopsis "Start an xorg server")
2790 "@command{sx} is a simple alternative to both @command{xinit} and
2791 @command{startx} for starting an Xorg server.")
2792 (license license:x11)))
2794 (define-public hsetroot
2798 (home-page "https://github.com/himdel/hsetroot")
2801 (file-name (git-file-name name version))
2807 "1jbk5hlxm48zmjzkaq5946s58rqwg1v1ds2sdyd2ba029hmvr722"))))
2808 (build-system gnu-build-system)
2813 ,(string-append "CC=" (cc-for-target))
2814 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2816 (modify-phases %standard-phases
2818 (add-before 'install 'mkdir-install-path
2819 (lambda* (#:key outputs #:allow-other-keys)
2820 (let ((out (assoc-ref outputs "out")))
2821 (mkdir-p (string-append out "/bin"))))))))
2823 `(("libx11" ,libx11)
2825 ("libxinerama" ,libxinerama)))
2827 `(("pkg-config" ,pkg-config)))
2828 (synopsis "Imlib2-based wallpaper changer")
2830 "The @command{hsetroot} command composes wallpapers for X.
2831 This package is the fork of hsetroot by Hyriand.")
2832 (license license:gpl2+)))
2834 (define-public jumpapp
2842 (url "https://github.com/mkropat/jumpapp")
2843 (commit (string-append "v" version))))
2844 (file-name (git-file-name name version))
2846 (base32 "1jrk4mm42sz6ca2gkb6w3dad53d4im4shpgsq8s4vr6xpl3b43ry"))))
2847 (build-system gnu-build-system)
2848 (arguments `(#:phases
2849 (modify-phases %standard-phases
2852 (add-before 'install 'set-prefix-in-makefile
2853 (lambda* (#:key outputs #:allow-other-keys)
2854 (let ((out (assoc-ref outputs "out")))
2855 (substitute* "Makefile"
2857 (string-append "PREFIX = " out "\n")))
2860 `(("wmctrl" ,wmctrl)
2861 ("xdotool" ,xdotool)
2864 `(("pandoc" ,pandoc)
2866 (synopsis "Run-or-raise application switcher for any X11 desktop")
2868 "Bind a key for any given application that will launch the application,
2869 if it's not already running, or focus the application's window,if it is running.
2870 Pressing the key again will cycle to the application's next window,
2871 if there's more than one.")
2872 (home-page "https://github.com/mkropat/jumpapp")
2873 (license license:expat)))