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 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>
49 ;;; This file is part of GNU Guix.
51 ;;; GNU Guix is free software; you can redistribute it and/or modify it
52 ;;; under the terms of the GNU General Public License as published by
53 ;;; the Free Software Foundation; either version 3 of the License, or (at
54 ;;; your option) any later version.
56 ;;; GNU Guix is distributed in the hope that it will be useful, but
57 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
58 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
59 ;;; GNU General Public License for more details.
61 ;;; You should have received a copy of the GNU General Public License
62 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
64 (define-module (gnu packages xdisorg)
65 #:use-module (guix build-system cmake)
66 #:use-module (guix build-system glib-or-gtk)
67 #:use-module (guix build-system gnu)
68 #:use-module (guix build-system meson)
69 #:use-module (guix build-system python)
70 #:use-module (guix build-system scons)
71 #:use-module (guix download)
72 #:use-module (guix git-download)
73 #:use-module (guix hg-download)
74 #:use-module ((guix licenses) #:prefix license:)
75 #:use-module (guix packages)
76 #:use-module (guix utils)
77 #:use-module (gnu packages admin)
78 #:use-module (gnu packages algebra)
79 #:use-module (gnu packages autotools)
80 #:use-module (gnu packages base)
81 #:use-module (gnu packages bison)
82 #:use-module (gnu packages check)
83 #:use-module (gnu packages compression)
84 #:use-module (gnu packages documentation)
85 #:use-module (gnu packages flex)
86 #:use-module (gnu packages fontutils)
87 #:use-module (gnu packages freedesktop)
88 #:use-module (gnu packages gawk)
89 #:use-module (gnu packages gettext)
90 #:use-module (gnu packages gl)
91 #:use-module (gnu packages gl)
92 #:use-module (gnu packages glib)
93 #:use-module (gnu packages gnome)
94 #:use-module (gnu packages gtk)
95 #:use-module (gnu packages guile)
96 #:use-module (gnu packages haskell-xyz)
97 #:use-module (gnu packages icu4c)
98 #:use-module (gnu packages image)
99 #:use-module (gnu packages linux)
100 #:use-module (gnu packages m4)
101 #:use-module (gnu packages man)
102 #:use-module (gnu packages maths)
103 #:use-module (gnu packages ncurses)
104 #:use-module (gnu packages perl)
105 #:use-module (gnu packages pkg-config)
106 #:use-module (gnu packages python)
107 #:use-module (gnu packages python-xyz)
108 #:use-module (gnu packages qt)
109 #:use-module (gnu packages sphinx)
110 #:use-module (gnu packages tcl)
111 #:use-module (gnu packages xml)
112 #:use-module (gnu packages xorg)
113 #:use-module (gnu packages)
114 #:use-module (ice-9 match))
116 ;; packages outside the x.org system proper
118 (define-public xtitle
126 (url "https://github.com/baskerville/xtitle")
128 (file-name (git-file-name name version))
130 (base32 "0f5070k2bwarghl1vq886pl52xck1x5p7x3qhlfchsc2y3dcqms9"))))
131 (build-system gnu-build-system)
134 ("xcb-util" ,xcb-util)
135 ("xcb-util-wm" ,xcb-util-wm)))
137 `(#:tests? #f ;no test suite
138 #:make-flags (list (string-append "CC=" ,(cc-for-target))
139 (string-append "PREFIX=" %output))
140 #:phases (modify-phases %standard-phases (delete 'configure))))
141 (home-page "https://github.com/baskerville/xtitle")
142 (synopsis "Output X window titles")
144 "If arguments are given, @code{xtitle} outputs the title of each
145 specified window, otherwise it outputs the title of the active window. With
146 @emph{snoop} mode on, it continuously monitors the specified windows and
147 outputs when titles change.")
148 (license license:unlicense)))
150 (define-public arandr
156 (uri (string-append "https://christian.amsuess.com/tools/arandr"
157 "/files/arandr-" version ".tar.gz"))
160 "135q0llvm077jil2fr92ssw3p095m4r8jfj0lc5rr3m71n4srj6v"))
161 (modules '((guix build utils)))
164 ;; Do not record a timestamp and file name in gzipped man
165 ;; pages (this is equivalent to 'gzip --no-name'.)
166 (substitute* "setup.py"
167 (("gzip\\.open\\(gzfile, 'w', 9\\)")
168 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)"))
170 (build-system python-build-system)
173 (modify-phases %standard-phases
174 (add-before 'build 'configure
175 (lambda* (#:key inputs #:allow-other-keys)
176 (substitute* "screenlayout/xrandr.py"
177 (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr")
180 (add-after 'install 'wrap-gi-typelib
181 (lambda* (#:key inputs outputs #:allow-other-keys)
182 (let ((out (assoc-ref outputs "out"))
183 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
184 (wrap-program (string-append out "/bin/arandr")
185 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
187 #:tests? #f)) ;no tests
188 (inputs `(("gtk+" ,gtk+)
189 ("pycairo" ,python-pycairo)
190 ("pygobject" ,python-pygobject)
192 (native-inputs `(("gettext" ,gettext-minimal)
193 ("python-docutils" ,python-docutils)))
194 (home-page "https://christian.amsuess.com/tools/arandr/")
195 (synopsis "Another RandR graphical user interface")
196 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
197 (description "ARandR is designed to provide a simple visual front end for
198 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
199 shown graphically and can be changed in a drag-and-drop way. Configurations
200 are saved as executable shell scripts which can be loaded without using this
202 (license license:gpl3+)))
204 (define-public autorandr
208 (home-page "https://github.com/phillipberndt/autorandr")
215 (file-name (git-file-name name version))
217 (base32 "0msw9b1hdy3gbq9w5d04mfizhyirz1c648x84mlcbzl8salm7vpg"))))
218 (build-system python-build-system)
220 `(("pkg-config" ,pkg-config)))
226 (modify-phases %standard-phases
227 (add-before 'build 'configure
228 (lambda* (#:key inputs outputs #:allow-other-keys)
229 (let ((xrandr (string-append (assoc-ref inputs "xrandr")
231 (substitute* "contrib/etc/xdg/autostart/autorandr.desktop"
232 (("/usr") (assoc-ref outputs "out")))
233 (substitute* "autorandr.py"
234 (("popen\\(\"xrandr") (string-append "popen(\"" xrandr))
235 (("\\[\"xrandr") (string-append "[\"" xrandr)))
236 (substitute* "contrib/autorandr_launcher/autorandr_launcher.c"
237 (("/usr/bin/autorandr")
238 (string-append (assoc-ref outputs "out") "/bin/autorandr")))
241 (add-after 'install 'install-contrib
242 (lambda* (#:key outputs #:allow-other-keys)
244 (string-append "DESTDIR=" (assoc-ref outputs "out"))
246 "BASH_COMPLETIONS_DIR=etc/bash_completion.d"
248 "TARGETS=autorandr launcher manpage bash_completion"))))))
249 (synopsis "Auto-detect connected displays and load appropriate setup")
250 (description "Autorandr wraps around xrandr to help with X11
251 multi-screen configuration management. It allows the user to create profiles
252 for various multi-screen setups. Autorandr automatically detects the profiles
253 that can be activated based on the connected hardware. Hook scripts can be
254 used to further tweak the behaviour of the different profiles.")
255 (license license:gpl3+)))
257 (define-public bemenu
265 (url "https://github.com/Cloudef/bemenu")
267 (file-name (git-file-name name version))
269 (base32 "1fjcs9d3533ay3nz79cx3c0lmy2chgragr2lhsy0xl2ckr0iins0"))))
270 (build-system gnu-build-system)
273 #:make-flags (list "CC=gcc"
275 (string-append "LDFLAGS=-Wl,-rpath="
276 (assoc-ref %outputs "out") "/lib")
277 (string-append "PREFIX=" (assoc-ref %outputs "out")))
279 (modify-phases %standard-phases
280 (delete 'configure))))
284 ("libxkbcomon" ,libxkbcommon)
285 ("libxinerama" ,libxinerama)
289 ("wayland-protocols" ,wayland-protocols)))
291 `(("doxygen" ,doxygen)
292 ("pkg-config" ,pkg-config)))
293 (home-page "https://github.com/Cloudef/bemenu")
294 (synopsis "Dynamic menu library and client program inspired by dmenu")
296 "bemenu is a dynamic menu which allows the user to flexibly select from a
297 list of options (usually programs to launch). It renders the menu graphically
298 with X11 or Wayland, or in a text terminal with ncurses.")
299 (license (list license:gpl3+ ; client program[s] and other sources
300 license:lgpl3+)))) ; library and bindings
309 (url "https://github.com/hluk/CopyQ")
310 (commit (string-append "v" version))))
311 (file-name (git-file-name name version))
314 "0wlwq9xg8rzsbj0b29z358k4mbrqy04iraa8x0p26pa95yskgcma"))))
315 (build-system cmake-build-system)
317 `(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release")
318 #:tests? #f)) ; Test suite is a rather manual process.
321 ("qtscript" ,qtscript)
323 ("qtx11extras" ,qtx11extras)))
324 (synopsis "Clipboard manager with advanced features")
325 (description "CopyQ is clipboard manager with editing and scripting
326 features. CopyQ monitors system clipboard and saves its content in customized
327 tabs. Saved clipboard can be later copied and pasted directly into any
329 (home-page "https://hluk.github.io/CopyQ/")
330 (license license:gpl3+)))
332 (define-public xkeysnail
339 (uri (pypi-uri "xkeysnail" version))
342 "1xyqp6yqxcwmxaqj86qcsiz0ly7bwr0a2w835myz909irhip3ngf"))))
343 (build-system python-build-system)
345 `(#:tests? #f)) ;tests need /dev/uinput
347 `(("python-appdirs" ,python-appdirs)
348 ("python-evdev" ,python-evdev)
349 ("python-inotify-simple" ,python-inotify-simple)
350 ("python-xlib" ,python-xlib)
351 ("python-six" ,python-six)))
352 (home-page "https://github.com/mooz/xkeysnail")
353 (synopsis "Keyboard remapping tool for the X11 environment")
355 "Xkeysnail is an X environment keyboard remapping tool, featuring
356 high-level and flexible remapping mechanisms. It affects the low-level
357 layers (evdev and uinput), making remapping work in almost all the places.")
358 (license license:gpl3+))) ; see README.md (no licence headers)
368 (url "https://github.com/astrand/xclip")
370 (file-name (git-file-name name version))
373 "0q0hmvcjlv8arhh1pzhja2wglyj6n7z209jnpnzd281kqqv4czcs"))))
374 (build-system gnu-build-system)
376 '(#:tests? #f)) ;there is no test suite
378 `(("autoconf" ,autoconf)
379 ("automake" ,automake)))
380 (inputs `(("libxmu" ,libxmu)
382 (home-page "https://github.com/astrand/xclip")
383 (synopsis "Command line interface to X11 clipboard")
384 (description "Xclip is a command line interface to the X11 clipboard. It
385 can also be used for copying files, as an alternative to sftp/scp, thus
386 avoiding password prompts when X11 forwarding has already been setup.")
387 (license license:gpl2+)))
389 (define-public libxkbcommon
391 (name "libxkbcommon")
395 (uri (string-append "https://xkbcommon.org/download/libxkbcommon-"
399 "0lmwglj16anhpaq0h830xsl1ivknv75i4lir9bk88aq73s2jy852"))))
400 (build-system meson-build-system)
406 ("wayland-protocols" ,wayland-protocols)
407 ("xkeyboard-config" ,xkeyboard-config)))
411 ("pkg-config" ,pkg-config)))
414 (list (string-append "-Dxkb-config-root="
415 (assoc-ref %build-inputs "xkeyboard-config")
417 (string-append "-Dx-locale-root="
418 (assoc-ref %build-inputs "libx11")
419 "/share/X11/locale"))))
420 (home-page "https://xkbcommon.org/")
421 (synopsis "Library to handle keyboard descriptions")
422 (description "Xkbcommon is a library to handle keyboard descriptions,
423 including loading them from disk, parsing them and handling their
424 state. It is mainly meant for client toolkits, window systems, and other
425 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
426 Clutter, and more. Despite the name, it is not currently used by anything
428 (license (license:x11-style "file://COPYING"
429 "See 'COPYING' in the distribution."))
430 (properties '((cpe-name . "xkbcommon")))))
432 (define-public libfakekey
440 (url "https://git.yoctoproject.org/git/libfakekey")
442 (file-name (git-file-name name version))
444 (base32 "1jw1d4wc1ysiijirc7apnz3sryrxbl9akgb92mh06dvfkz2nblj0"))))
445 (build-system gnu-build-system)
447 `(#:make-flags (list "AM_LDFLAGS=-lX11")
449 (modify-phases %standard-phases
451 ;; ./autogen.sh calls ./configure before shebangs have been patched.
453 (invoke "autoreconf" "-vfi"))))))
455 `(("pkg-config" ,pkg-config)
457 ;; For bootstrapping from git.
458 ("autoconf" ,autoconf)
459 ("automake" ,automake)
460 ("libtool" ,libtool)))
462 `(("libxtst" ,libxtst)
464 (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox")
465 (synopsis "X virtual keyboard library")
467 "Libfakekey is a virtual keyboard library for X.")
468 (license license:gpl2)))
470 (define-public xdotool
473 (version "3.20160805.1")
478 "https://github.com/jordansissel/xdotool/releases/download/v"
479 version "/xdotool-" version ".tar.gz"))
482 "1a6c1zr86zb53352yxv104l76l8x21gfl2bgw6h21iphxpv5zgim"))))
483 (build-system gnu-build-system)
485 '(#:tests? #f ; Test suite requires a lot of black magic
487 (modify-phases %standard-phases
489 (lambda* (#:key outputs #:allow-other-keys #:rest args)
490 (let ((out (assoc-ref outputs "out")))
491 (mkdir-p (string-append out "/lib"))
492 (setenv "PREFIX" out)
493 (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib"))
496 (native-inputs `(("perl" ,perl))) ; for pod2man
497 (inputs `(("libx11" ,libx11)
500 ("libxinerama" ,libxinerama)
502 ("libxkbcommon" ,libxkbcommon)))
503 (home-page "https://www.semicomplete.com/projects/xdotool/")
504 (synopsis "Fake keyboard/mouse input, window management, and more")
505 (description "Xdotool lets you simulate keyboard input and mouse activity,
506 move and resize windows, etc. It does this using X11's XTEST extension and
507 other Xlib functions. Additionally, you can search for windows and move,
508 resize, hide, and modify window properties like the title. If your window
509 manager supports it, you can use xdotool to switch desktops, move windows
510 between desktops, and change the number of desktops.")
511 (license license:bsd-3)))
520 (uri (string-append "https://www.x.org/releases/individual/app/"
521 name "-" version ".tar.bz2"))
523 (base32 "0lq5j7fryx1wn998jq6h3icz1h6pqrsbs3adskjzjyhn5l6yrg2p"))))
524 (build-system gnu-build-system)
526 `(("libxext" ,libxext)
528 ("libxrender" ,libxrender)
531 `(("pkg-config" ,pkg-config)))
532 (home-page "https://www.x.org/") ; no dedicated Xeyes page exists
533 (synopsis "Follow-the-mouse X demo")
534 (description "Xeyes is a demo program for x.org. It shows eyes
535 following the mouse.")
536 (license license:x11)))
539 (define-public pixman
548 "https://www.cairographics.org/releases/pixman-"
551 (base32 "1ryxzdf048x7wsx4dlvrr1p00gzwfs7lybnhgc7ygbj0dvyxcrns"))
554 "pixman-CVE-2016-5296.patch"))))
555 (build-system gnu-build-system)
557 '(#:configure-flags '("--disable-static")))
559 `(("pkg-config" ,pkg-config)))
563 (synopsis "Low-level pixel manipulation library")
564 (description "Pixman is a low-level software library for pixel
565 manipulation, providing features such as image compositing and trapezoid
567 (home-page "http://www.pixman.org/")
568 (license license:x11)))
570 (define-public libdrm
577 "https://dri.freedesktop.org/libdrm/libdrm-"
581 "08h2nnf4w96b4ql7485mvjgbbsb8rwc0qa93fdm1cq34pbyszq1z"))))
582 (build-system meson-build-system)
585 '(,@(match (%current-system)
586 ((or "armhf-linux" "aarch64-linux")
591 "-Dfreedreno-kgsl=true"))
594 #:phases (modify-phases %standard-phases
597 (invoke "meson" "test" "--timeout-multiplier" "5"))))))
599 `(("libpciaccess" ,libpciaccess)))
601 `(("pkg-config" ,pkg-config)))
602 (home-page "https://dri.freedesktop.org/wiki/")
603 (synopsis "Direct rendering userspace library")
604 (description "The Direct Rendering Infrastructure, also known as the DRI,
605 is a framework for allowing direct access to graphics hardware under the
606 X Window System in a safe and efficient manner. It includes changes to the
607 X server, to several client libraries, and to the kernel (DRM, Direct
608 Rendering Manager). The most important use for the DRI is to create fast
609 OpenGL implementations providing hardware acceleration for Mesa.
610 Several 3D accelerated drivers have been written to the DRI specification,
611 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
613 (license license:x11)))
624 "http://bitmath.org/code/mtdev/mtdev-"
628 "1q700h9dqcm3zl6c3gj0qxxjcx6ibw2c51wjijydhwdcm26v5mqm"))))
629 (build-system gnu-build-system)
630 (arguments '(#:configure-flags '("--disable-static")))
631 (home-page "http://bitmath.org/code/mtdev/")
632 (synopsis "Multitouch protocol translation library")
633 (description "Mtdev is a stand-alone library which transforms all
634 variants of kernel MT events to the slotted type B protocol. The events
635 put into mtdev may be from any MT device, specifically type A without
636 contact tracking, type A with contact tracking, or type B with contact
638 (license license:x11)))
640 (define-public startup-notification
642 (name "startup-notification")
647 (uri (string-append "https://www.freedesktop.org/software/" name
648 "/releases/" name "-" version ".tar.gz"))
651 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
652 (build-system gnu-build-system)
653 (native-inputs `(("pkg-config" ,pkg-config)))
656 ("xcb-util" ,xcb-util)))
657 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
658 (synopsis "Application startup notification and feedback library")
660 "Startup-notification contains a reference implementation of the startup
661 notification protocol. The reference implementation is mostly under an X Window
662 System style license, and has no special dependencies.")
663 ;; Most of the code is provided under x11 license.
664 (license license:lgpl2.0+)))
666 (define-public wmctrl
673 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
677 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
678 (patches (search-patches "wmctrl-64-fix.patch"))))
679 (build-system gnu-build-system)
682 (list (string-append "--mandir="
683 (assoc-ref %outputs "out")
686 `(("pkg-config" ,pkg-config)))
691 (home-page "http://tomas.styblo.name/wmctrl/")
692 (synopsis "Command-line tool to control X window managers")
694 "Wmctrl interacts with an X window manager that is compatible
695 with the EWMH/NetWM specification. It can query the window manager for
696 information, and request for certain window management actions (resize and
697 move windows, switch between desktops, etc.).")
698 (license license:gpl2+)))
709 (url "https://github.com/resurrecting-open-source-projects/scrot")
711 (file-name (git-file-name name version))
714 "12xq6glg70icwsvbnfw9gm4dahlbnrc7b6adpd0mpf89h4sj2gds"))))
715 (build-system gnu-build-system)
717 `(("autoconf" ,autoconf)
718 ("autoconf-archive" ,autoconf-archive)
719 ("automake" ,automake)))
723 ("libXcursor" ,libxcursor)
724 ("libxcomposite" ,libxcomposite)
725 ("libXfixes" ,libxfixes)))
726 (home-page "https://github.com/resurrecting-open-source-projects/scrot")
727 (synopsis "Command-line screen capture utility for X Window System")
729 "Scrot saves a screenshot of a full screen, a window or a part
730 of the screen selected by mouse.")
731 ;; This license removes a clause about X Consortium from the original
733 (license (license:x11-style "file://COPYING"
734 "See 'COPYING' in the distribution."))))
743 (url "https://github.com/naelstrof/slop")
744 (commit (string-append "v" version))))
745 (file-name (git-file-name name version))
748 "1k8xxb4rj2fylr4vj16yvsf73cyywliz9cy78pl4ibmi03jhg837"))))
749 (build-system cmake-build-system)
751 '(#:tests? #f)) ; no "check" target
757 ("libxrender" ,libxrender)
759 (home-page "https://github.com/naelstrof/slop")
760 (synopsis "Select a region and print its bounds to stdout")
762 "slop (Select Operation) is a tool that queries for a selection from a
763 user and prints the region to stdout. It grabs the mouse and turns it into a
764 crosshair, lets the user click and drag to make a selection (or click on a
765 window) while drawing a pretty box around it, then finally prints the
766 selection's dimensions to stdout.")
767 (license license:gpl3+)))
776 (url "https://github.com/naelstrof/maim")
777 (commit (string-append "v" version))))
778 (file-name (git-file-name name version))
781 "181mjjrjb9fs1ficcv9miqbk94v95j1yli7fjp2dj514g7nj9l3x"))))
782 (build-system cmake-build-system)
784 '(#:tests? #f)) ; no "check" target
787 ("libjpeg" ,libjpeg-turbo)
789 ("libxcomposite" ,libxcomposite)
790 ("libxfixes" ,libxfixes)
791 ("libxrandr" ,libxrandr)
795 (home-page "https://github.com/naelstrof/maim")
796 (synopsis "Screenshot utility for X Window System")
798 "maim (Make Image) is a tool that takes screenshots of your desktop and
799 saves it in any format. Along with a full screen, it allows you to capture a
800 predefined region or a particular window. Also, it makes it possible to
801 include cursor in the resulting image.")
802 (license license:gpl3+)))
804 (define-public unclutter
811 "http://ftp.x.org/contrib/utilities/unclutter-"
815 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
816 (build-system gnu-build-system)
818 '(#:tests? #f ; no check target
820 (modify-phases %standard-phases
823 (lambda* (#:key inputs outputs #:allow-other-keys)
824 (let* ((out (assoc-ref outputs "out"))
825 (bin (string-append out "/bin"))
826 (man1 (string-append out "/share/man/man1")))
829 (invoke "make" "install" "install.man"
830 (string-append "BINDIR=" bin)
831 (string-append "MANDIR=" man1))))))))
832 (inputs `(("libx11" ,libx11)))
833 (home-page "http://ftp.x.org/contrib/utilities/")
834 (synopsis "Hide idle mouse cursor")
836 "Unclutter is a program which runs permanently in the background of an
837 X11 session. It checks on the X11 pointer (cursor) position every few
838 seconds, and when it finds it has not moved (and no buttons are pressed
839 on the mouse, and the cursor is not in the root window) it creates a
840 small sub-window as a child of the window the cursor is in. The new
841 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
842 invisible cursor. This allows you to see all the text in an xterm or
843 xedit, for example. The human factors crowd would agree it should make
844 things less distracting.")
845 (license license:public-domain)))
847 (define-public xautomation
854 (uri (string-append "https://www.hoopajoo.net/static/projects/"
855 "xautomation-" version ".tar.gz"))
859 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
860 (build-system gnu-build-system)
865 ("libxtst" ,libxtst)))
867 `(("xorgproto" ,xorgproto)))
868 (synopsis "Tools to automate tasks in X such as detecting on screen images")
870 "Xautomation can control X from the command line for scripts, and
871 do visual scraping to find things on the screen. The control interface
872 allows mouse movement, clicking, button up/down, key up/down, etc, and
873 uses the XTest extension so you don't have the annoying problems that
874 xse has when apps ignore sent events. The visgrep program can find
875 images inside of images and reports the coordinates, allowing programs
876 to find buttons, etc, on the screen to click on.")
877 (home-page "https://www.hoopajoo.net/projects/xautomation.html")
878 (license license:gpl2+)))
880 (define-public xbanish
884 (home-page "https://github.com/jcs/xbanish")
887 (uri (git-reference (url home-page)
888 (commit (string-append "v" version))))
889 (file-name (git-file-name name version))
892 "0ic5f7zgc32p5g1wxas9y5h8dhik0pvsa8wmn6skdry56gw9vg9q"))))
893 (build-system gnu-build-system)
895 `(#:tests? #f ; no tests
896 #:make-flags (list "CC=gcc"
897 (string-append "PREFIX=" (assoc-ref %outputs "out")))
898 #:phases (modify-phases %standard-phases
899 (delete 'configure)))) ; no configure script
902 ("libxfixes" ,libxfixes)
905 (synopsis "Banish the mouse cursor")
907 "@command{xbanish} hides the mouse cursor when you start typing, and
908 shows it again when the mouse cursor moves or a mouse button is pressed.")
909 (license license:bsd-3)))
911 (define-public xlockmore
917 (uri (list (string-append "http://sillycycle.com/xlock/"
918 "xlockmore-" version ".tar.xz")
919 ;; Previous releases are moved to a subdirectory.
920 (string-append "http://sillycycle.com/xlock/"
922 "xlockmore-" version ".tar.xz")))
925 "0wdb7gpyjw3sigmhiplgg1bqxz6wipr0c3n9492x2a18cv1saxjr"))))
926 (build-system gnu-build-system)
928 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
929 (assoc-ref %outputs "out")
930 "/lib/X11/app-defaults"))
931 #:tests? #f)) ;no such thing as a test suite
936 ("linux-pam" ,linux-pam)))
937 (home-page "https://sillycycle.com/xlockmore.html")
938 (synopsis "Screen locker for the X Window System")
940 "XLockMore is a classic screen locker and screen saver for the
942 (license (license:non-copyleft #f "See xlock.c.")
943 ))) ; + GPLv2 in modes/glx/biof.c.
952 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
953 name "-" version ".tar.gz"))
956 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
957 (build-system gnu-build-system)
960 (list (string-append "--mandir=" %output "/share/man"))))
965 ("libxinerama" ,libxinerama)))
966 (home-page "https://sourceforge.net/projects/libxosd/")
967 (synopsis "X On Screen Display")
969 "XOSD provides a C library and a simple utility (osd_cat) for displaying
970 transparent text on your screen.")
971 (license license:gpl2+)))
980 (uri (string-append "https://github.com/francma/wob/releases/download/"
981 version "/wob-" version ".tar.gz"))
983 (base32 "1vgngcg8wxn6zfg34czn9w55ia0zmhlgnpzf0gh31dc72li9353k"))))
984 (build-system meson-build-system)
986 `(("pkg-config" ,pkg-config)
989 `(("libseccomp" ,libseccomp)
991 ("wayland-protocols" ,wayland-protocols)))
992 (home-page "https://github.com/francma/wob")
993 (synopsis "Lightweight overlay bar for Wayland")
995 "Wob, or Wayland Overlay Bar, is a lightweight overlay volume,
996 backlight, progress, or anything bar for Wayland.")
997 (license license:isc)))
999 (define-public xbindkeys
1005 ;; Download from the savannah mirror list fails
1007 "http://www.nongnu.org/xbindkeys/xbindkeys-"
1012 "1wl2vc5alisiwyk8m07y1ryq8w3ll9ym83j27g4apm4ixjl8d6x2"))))
1013 (build-system gnu-build-system)
1016 (modify-phases %standard-phases
1017 (add-after 'unpack 'sanitise-shebang
1018 ;; This wish script uses a strange double shebang that escapes our
1019 ;; patch-shebangs phase. Assume that it's unnecessary & replace it.
1021 (substitute* "xbindkeys_show"
1022 (("^#!.*|^exec wish.*") "")
1023 (("^# \\\\") (string-append "#!" (which "wish"))))
1025 (add-after 'unpack 'patch-references
1026 (lambda* (#:key outputs #:allow-other-keys)
1027 (let ((out (assoc-ref outputs "out")))
1028 (substitute* "xbindkeys_show"
1029 (("\"(xbindkeys)\"" _ command)
1030 (format #f "\"~a/bin/~a\"" out command)))
1033 `(("pkg-config" ,pkg-config)))
1035 `(("guile" ,guile-2.2)
1038 (home-page "https://www.nongnu.org/xbindkeys/")
1039 (synopsis "Associate a combination of keys with a shell command")
1041 "XBindKeys is a program that allows you to launch shell commands with
1042 your keyboard or your mouse under the X Window System. It links commands to
1043 keys or mouse buttons, using a configuration file. It's independent of the
1044 window manager and can capture all keyboard keys (ex: Power, Wake...). It
1045 optionally supports a Guile-based configuration file layout, which enables you
1046 to access all XBindKeys internals, so you can have key combinations, double
1047 clicks or timed double clicks take actions. Also all functions that work in
1048 Guile will work for XBindKeys.")
1049 (license license:gpl2+)))
1051 (define-public sxhkd
1059 (url "https://github.com/baskerville/sxhkd")
1061 (file-name (git-file-name name version))
1063 (base32 "1winwzdy9yxvxnrv8gqpigl9y0c2px27mnms62bdilp4x6llrs9r"))))
1064 (build-system gnu-build-system)
1066 `(("asciidoc" ,asciidoc)
1068 ("xcb-util" ,xcb-util)
1069 ("xcb-util-keysyms" ,xcb-util-keysyms)
1070 ("xcb-util-wm" ,xcb-util-wm)))
1072 `(#:phases (modify-phases %standard-phases (delete 'configure))
1073 #:tests? #f ; no check target
1076 (string-append "PREFIX=" %output)
1077 ;; Keep the documentation where the build system installs LICENSE.
1078 (string-append "DOCPREFIX=" %output
1079 "/share/doc/" ,name "-" ,version))))
1080 (home-page "https://github.com/baskerville/sxhkd")
1081 (synopsis "Simple X hotkey daemon")
1082 (description "sxhkd is a simple X hotkey daemon with a powerful and
1083 compact configuration syntax.")
1084 (license license:bsd-2)))
1086 (define-public rxvt-unicode
1088 (name "rxvt-unicode")
1092 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
1093 name "-" version ".tar.bz2"))
1094 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
1097 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
1098 (build-system gnu-build-system)
1100 ;; This sets the destination when installing the necessary terminal
1101 ;; capability data, which are not provided by 'ncurses'. See
1102 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
1103 `(#:configure-flags (list "--enable-256-color")
1104 #:make-flags (list (string-append "TERMINFO="
1105 (assoc-ref %outputs "out")
1108 (modify-phases %standard-phases
1109 (add-after 'install 'install-desktop-urxvt
1110 (lambda* (#:key outputs #:allow-other-keys)
1111 (let* ((output (assoc-ref outputs "out"))
1112 (desktop (string-append output "/share/applications")))
1114 (with-output-to-file
1115 (string-append desktop "/urxvt.desktop")
1122 TryExec=~@*~a/bin/urxvt~@
1127 (add-after 'install 'install-desktop-urxvtc
1128 (lambda* (#:key outputs #:allow-other-keys)
1129 (let* ((output (assoc-ref outputs "out"))
1130 (desktop (string-append output "/share/applications")))
1132 (with-output-to-file
1133 (string-append desktop "/urxvtc.desktop")
1137 Name=rxvt-unicode (client)~@
1138 Comment=Rxvt clone with XFT and unicode support~@
1139 Exec=~a/bin/urxvtc~@
1140 TryExec=~@*~a/bin/urxvtc~@
1146 `(("libXft" ,libxft)
1147 ("libX11" ,libx11)))
1149 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
1151 ("pkg-config" ,pkg-config)))
1152 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
1153 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
1154 (native-search-paths
1155 (list (search-path-specification
1156 (variable "TERMINFO_DIRS")
1157 (files '("share/terminfo")))))
1158 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
1159 (synopsis "Rxvt clone with XFT and unicode support")
1160 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
1161 intended as an xterm replacement for users who do not require features such as
1162 Tektronix 4014 emulation and toolkit-style configurability. It supports
1163 unicode, XFT and may be extended with Perl plugins. It also comes with a
1164 client/daemon pair that lets you open any number of terminal windows from
1165 within a single process.")
1166 (license license:gpl3+)))
1168 (define-public xcape
1175 (url "https://github.com/alols/xcape")
1176 (commit (string-append "v" version))))
1177 (file-name (git-file-name name version))
1180 "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm"))))
1181 (build-system gnu-build-system)
1183 `(#:tests? #f ; no check target
1184 ;; no configure script
1185 #:phases (modify-phases %standard-phases (delete 'configure))
1186 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1187 "MANDIR=/share/man/man1"
1190 `(("libxtst" ,libxtst)
1191 ("libx11" ,libx11)))
1193 `(("pkg-config" ,pkg-config)))
1194 (home-page "https://github.com/alols/xcape")
1195 (synopsis "Use a modifier key in X.org as another key")
1197 "This utility for X.org uses a modifier key as another key when
1198 pressed and released on its own. The default behaviour is to generate the
1199 Escape key when Left Control is pressed and released on its own.")
1200 (license license:gpl3+)))
1202 (define-public libwacom
1209 "https://github.com/linuxwacom/libwacom/releases/download/"
1210 "libwacom-" version "/libwacom-" version ".tar.bz2"))
1213 "0797gc055dgg2jfqijy9823bd83jwr4wb2z9id992qlcr0xmz1rw"))))
1214 (build-system glib-or-gtk-build-system)
1216 `(#:configure-flags '("--disable-static")))
1218 `(("pkg-config" ,pkg-config)
1220 ("python" ,python)))
1223 ("libgudev" ,libgudev)
1225 ("libxml2" ,libxml2)))
1227 ;; libwacom includes header files that include GLib, and libinput uses
1228 ;; those header files.
1230 (home-page "https://linuxwacom.github.io/")
1231 (synopsis "Helper library for Wacom tablet settings")
1233 "Libwacom is a library to help implement Wacom tablet settings. It is
1234 intended to be used by client-programs that need model identification. It is
1235 already being used by the gnome-settings-daemon and the GNOME Control Center
1236 Wacom tablet applet.")
1237 (license license:x11)))
1239 (define-public xf86-input-wacom
1241 (name "xf86-input-wacom")
1247 "https://github.com/linuxwacom/xf86-input-wacom/releases/download/"
1248 "xf86-input-wacom-" version "/"
1249 "xf86-input-wacom-" version ".tar.bz2"))
1251 (base32 "11qk58az6qwii774ga45h5yqzipwn56f0d74kdbajqdv45p85gqj"))))
1254 (list (string-append "--with-sdkdir="
1255 (assoc-ref %outputs "out")
1257 (string-append "--with-xorg-conf-dir="
1258 (assoc-ref %outputs "out")
1259 "/share/X11/xorg.conf.d"))))
1260 (build-system gnu-build-system)
1262 `(("pkg-config" ,pkg-config)))
1264 `(("xorg-server" ,xorg-server)
1265 ("libxrandr" ,libxrandr)
1266 ("libxinerama" ,libxinerama)
1269 (home-page "https://linuxwacom.github.io/")
1270 (synopsis "Wacom input driver for X")
1272 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
1273 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
1274 (license license:x11)))
1276 (define-public redshift
1284 (string-append "https://github.com/jonls/redshift/"
1285 "releases/download/v" version
1286 "/redshift-" version ".tar.xz"))
1289 "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j"))))
1290 (build-system gnu-build-system)
1292 `(#:imported-modules (,@%gnu-build-system-modules
1293 (guix build python-build-system))
1295 (modify-phases %standard-phases
1296 (add-after 'install 'split-outputs
1297 (lambda* (#:key outputs #:allow-other-keys)
1298 (let ((out (assoc-ref outputs "out"))
1299 (gtk (assoc-ref outputs "gtk"))
1300 (desktop-file "/share/applications/redshift-gtk.desktop"))
1301 (mkdir-p (string-append gtk "/bin"))
1302 (link (string-append out "/bin/redshift-gtk")
1303 (string-append gtk "/bin/redshift-gtk"))
1304 (delete-file (string-append out "/bin/redshift-gtk"))
1305 (copy-recursively (string-append out "/lib")
1306 (string-append gtk "/lib"))
1307 (delete-file-recursively (string-append out "/lib"))
1308 (mkdir-p (string-append gtk "/share/applications"))
1309 (link (string-append out desktop-file)
1310 (string-append gtk desktop-file))
1311 (delete-file (string-append out desktop-file))
1312 (with-directory-excursion (string-append out "/share")
1313 (for-each (lambda (dir)
1315 (string-append out "/share/" dir)
1316 (string-append gtk "/share/" dir))
1317 (delete-file-recursively dir))
1318 '("appdata" "icons")))
1320 (add-after 'split-outputs 'wrap
1321 (lambda* (#:key inputs outputs #:allow-other-keys)
1322 (let* ((gtk (assoc-ref outputs "gtk"))
1324 (@ (guix build python-build-system) python-version))
1325 (python (assoc-ref inputs "python"))
1326 (sitedir (string-append gtk "/lib/python"
1327 (python-version python)
1329 (wrap-program (string-append gtk "/bin/redshift-gtk")
1330 `("PYTHONPATH" ":" prefix
1331 (,(string-append sitedir ":" (getenv "PYTHONPATH"))))
1332 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH"))))
1334 (outputs '("out" "gtk"))
1336 `(("pkg-config" ,pkg-config)
1337 ("intltool" ,intltool)))
1339 `(("libdrm" ,libdrm)
1342 ("libxxf86vm" ,libxxf86vm)
1343 ("glib" ,glib) ;for Geoclue2 support
1345 ;; To build the GTK3 GUI, we need these.
1348 ("python-pygobject" ,python-pygobject)
1349 ("python-pyxdg" ,python-pyxdg)))
1350 (home-page "https://github.com/jonls/redshift")
1351 (synopsis "Adjust the color temperature of your screen")
1353 "Redshift adjusts the color temperature according to the position of the
1354 sun. A different color temperature is set during night and daytime. During
1355 twilight and early morning, the color temperature transitions smoothly from
1356 night to daytime temperature to allow your eyes to slowly adapt. At night the
1357 color temperature should be set to match the lamps in your room.")
1358 (license license:gpl3+)))
1360 (define-public redshift-wayland
1361 (let ((commit "7da875d34854a6a34612d5ce4bd8718c32bec804")
1364 (name "redshift-wayland")
1365 (version (string-append "1.12-"
1366 revision "." (string-take commit 7)))
1370 (url "https://github.com/minus7/redshift")
1372 (file-name (string-append name "-" version))
1375 "0nbkcw3avmzjg1jr1g9yfpm80kzisy55idl09b6wvzv2sz27n957"))))
1376 (build-system gnu-build-system)
1378 '(#:phases (modify-phases %standard-phases
1379 (add-after 'install 'create-desktop-file
1380 (lambda* (#:key outputs #:allow-other-keys)
1381 ;; For the GeoClue provider to work, a .desktop file
1382 ;; needs to be provided. A template is available,
1383 ;; but it only gets installed when the GUI is enabled.
1384 ;; Install it manually for this Wayland variant.
1385 (let* ((out (assoc-ref outputs "out"))
1388 out "/share/applications/redshift.desktop")))
1389 (mkdir-p (dirname desktop-file))
1390 (copy-file "data/applications/redshift.desktop.in"
1392 (substitute* desktop-file
1396 `(("autoconf" ,autoconf)
1397 ("automake" ,automake)
1398 ("libtool" ,libtool)
1399 ("pkg-config" ,pkg-config)
1400 ("intltool" ,intltool)))
1402 `(("libdrm" ,libdrm)
1405 ("libxxf86vm" ,libxxf86vm)
1406 ("glib" ,glib) ; for Geoclue2 support
1407 ("wayland" ,wayland)))
1408 (home-page "https://github.com/minus7/redshift")
1409 (synopsis "Adjust the color temperature of your screen (with Wayland support)")
1411 "Redshift adjusts the color temperature according to the position of the
1412 sun. A different color temperature is set during night and daytime. During
1413 twilight and early morning, the color temperature transitions smoothly from
1414 night to daytime temperature to allow your eyes to slowly adapt. At night the
1415 color temperature should be set to match the lamps in your room.
1417 This is a fork with added support for Wayland using the wlr-gamma-control
1419 (license license:gpl3+))))
1421 (define-public gammastep
1429 (url "https://gitlab.com/chinstrap/gammastep")
1430 (commit (string-append "v" version))))
1431 (file-name (git-file-name name version))
1433 (base32 "11j54rdd3cgngdhjwyapwjbrdm8cii4i7g4zdvfykvmb1w4zdk7g"))))
1434 (build-system gnu-build-system)
1437 (modify-phases %standard-phases
1438 (add-after 'install 'wrap-python-and-typelib
1439 (lambda* (#:key outputs #:allow-other-keys)
1440 ;; Gammastep GUI needs Typelib files from GTK and access
1441 ;; to Python libraries.
1442 (wrap-program (string-append (assoc-ref outputs "out")
1443 "/bin/gammastep-indicator")
1444 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
1445 `("GI_TYPELIB_PATH" ":" prefix
1446 (,(getenv "GI_TYPELIB_PATH")))))))))
1448 `(("autoconf" ,autoconf)
1449 ("automake" ,automake)
1450 ("gettext" ,gettext-minimal)
1451 ("intltool" ,intltool)
1452 ("libtool" ,libtool)
1453 ("pkg-config" ,pkg-config)))
1457 ("libappindicator" ,libappindicator)
1460 ("libxxf86vm" ,libxxf86vm)
1463 ("python-pygobject" ,python-pygobject)
1464 ("python-pyxdg" ,python-pyxdg)
1465 ("wayland" ,wayland)))
1466 (home-page "https://gitlab.com/chinstrap/gammastep")
1467 (synopsis "Adjust the color temperature of your screen")
1469 "Gammastep automatically adjusts the color temperature of your
1470 screen according to your surroundings. This may help your eyes hurt
1471 less if you are working in front of the screen at night.")
1472 (license license:gpl3)))
1474 (define-public xscreensaver
1476 (name "xscreensaver")
1482 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
1485 (base32 "15bv05vpfjwsrqbazrjmm382jd7vvw0mp6y9vasn6wvxzjf0in3k"))))
1486 (build-system gnu-build-system)
1488 `(#:tests? #f ; no check target
1490 (modify-phases %standard-phases
1491 (add-before 'configure 'adjust-gtk-resource-paths
1493 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
1494 (("@GTK_DATADIR@") "@datadir@")
1495 (("@PO_DATADIR@") "@datadir@"))
1497 #:configure-flags '("--with-pam" "--with-proc-interrupts"
1498 "--without-readdisplay")
1499 #:make-flags (list (string-append "AD_DIR="
1500 (assoc-ref %outputs "out")
1501 "/lib/X11/app-defaults"))))
1503 `(("pkg-config" ,pkg-config)
1504 ("intltool" ,intltool)))
1506 `(("libx11" ,libx11)
1507 ("libxext" ,libxext)
1513 ("libglade" ,libglade)
1514 ("libxml2" ,libxml2)
1516 ("libjpeg" ,libjpeg-turbo)
1517 ("linux-pam" ,linux-pam)
1523 ("libxrandr" ,libxrandr)
1526 (home-page "https://www.jwz.org/xscreensaver/")
1527 (synopsis "Classic screen saver suite supporting screen locking")
1529 "xscreensaver is a popular screen saver collection with many entertaining
1530 demos. It also acts as a nice screen locker.")
1531 ;; xscreensaver doesn't have a single copyright file and instead relies on
1532 ;; source comment headers, though most files have the same lax
1533 ;; permissions. To reduce complexity, we're pointing at Debian's
1534 ;; breakdown of the copyright information.
1535 (license (license:non-copyleft
1537 "http://metadata.ftp-master.debian.org/changelogs/"
1538 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1540 (define-public xssproxy
1547 (url "https://github.com/timakro/xssproxy")
1548 (commit (string-append "v" version))))
1549 (file-name (string-append name "-" version "-checkout"))
1552 "0c83wmipnsdnbihc5niyczs7jrkss2s8n6iwwjdia7hkjzbd0hl7"))))
1553 (build-system gnu-build-system)
1554 (arguments `(#:make-flags `("bindir=/bin"
1555 "man1dir=/share/man/man1"
1556 ,(string-append "DESTDIR=" (assoc-ref %outputs "out"))
1558 #:phases (modify-phases %standard-phases
1562 `(("pkg-config" ,pkg-config)))
1566 ("libxext" ,libxext)
1567 ("libxscrnsaver" ,libxscrnsaver)
1569 (synopsis "Forward freedesktop.org Idle Inhibition Service calls to Xss")
1570 (description "xssproxy implements the @code{org.freedesktop.ScreenSaver}
1571 D-Bus interface described in the Idle Inhibition Service Draft by the
1572 freedesktop.org developers. The inhibition of the screensaver is then
1573 controlled using the XScreenSaverSuspend function from the Xss (X11 Screen
1574 Saver extension) library.")
1575 (home-page "https://github.com/timakro/xssproxy")
1576 (license license:gpl3+)))
1584 (uri (string-append "http://www.vergenet.net/~conrad/software"
1585 "/xsel/download/xsel-" version ".tar.gz"))
1588 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1589 (build-system gnu-build-system)
1591 `(("libxt" ,libxt)))
1592 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1593 (synopsis "Manipulate X selection")
1595 "XSel is a command-line program for getting and setting the contents of
1596 the X selection. Normally this is only accessible by manually highlighting
1597 information and pasting it with the middle mouse button.
1599 XSel reads from standard input and writes to standard output by default,
1600 but can also follow a growing file, display contents, delete entries and more.")
1601 (license (license:x11-style "file://COPYING"
1602 "See COPYING in the distribution."))))
1604 (define-public xdpyprobe
1610 (uri (string-append "https://github.com/alezost/" name
1611 "/releases/download/v" version
1612 "/" name "-" version ".tar.gz"))
1615 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1616 (build-system gnu-build-system)
1618 `(("libx11" ,libx11)))
1619 (home-page "https://github.com/alezost/xdpyprobe")
1620 (synopsis "Probe X server for connectivity")
1622 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1623 connectivity of the X server running on a particular @code{DISPLAY}.")
1624 (license license:gpl3+)))
1632 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1633 "releases/download/"
1634 version "/rofi-" version ".tar.xz"))
1637 "12p9z8bl1gg8k024m4a6zfz7gf1zbyffardh98raqgabn6knwk22"))))
1638 (build-system gnu-build-system)
1643 ("startup-notification" ,startup-notification)
1644 ("libjpeg" ,libjpeg-turbo)
1645 ("librsvg" ,librsvg)
1646 ("libxkbcommon" ,libxkbcommon)
1648 ("xcb-util" ,xcb-util)
1649 ("xcb-util-xrm" ,xcb-util-xrm)
1650 ("xcb-util-wm" ,xcb-util-wm)))
1655 ("glib:bin" ,glib "bin")
1656 ("pkg-config" ,pkg-config)))
1658 `(#:parallel-tests? #f ; fails in some circumstances
1660 (modify-phases %standard-phases
1661 (add-before 'configure 'adjust-tests
1663 (substitute* '("test/helper-expand.c")
1666 (("g_get_home_dir \\(\\)") "\"/\""))
1668 (home-page "https://github.com/DaveDavenport/rofi")
1669 (synopsis "Application launcher")
1670 (description "Rofi is a minimalist application launcher. It memorizes which
1671 applications you regularly use and also allows you to search for an application
1673 (license license:expat)))
1675 (define-public tint2
1681 (uri (string-append "https://gitlab.com/o9000/" name
1682 "/repository/archive.tar.gz?ref=" version))
1683 (file-name (string-append name "-" version ".tar.gz"))
1686 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1687 (build-system cmake-build-system)
1689 '(#:tests? #f ;no test target
1691 (modify-phases %standard-phases
1692 (add-after 'unpack 'fix-installation-prefix
1694 (substitute* "CMakeLists.txt"
1695 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))
1700 ("librsvg" ,librsvg)
1701 ("libxcomposite" ,libxcomposite)
1702 ("libxdamage" ,libxdamage)
1704 ("libxinerama" ,libxinerama)
1705 ("libxrandr" ,libxrandr)
1706 ("startup-notification" ,startup-notification)))
1708 `(("gettext" ,gettext-minimal)
1709 ("pkg-config" ,pkg-config)))
1710 (home-page "https://gitlab.com/o9000/tint2")
1711 (synopsis "Lightweight task bar")
1713 "Tint2 is a simple task bar made for modern X window managers. It was
1714 specifically made for Openbox but it should also work with other window
1715 managers (GNOME, KDE, XFCE etc.).
1717 The taskbar includes transparency and color settings for the font, icons,
1718 border, and background. It also supports multihead setups, customized mouse
1719 actions, a built-in clock, a battery monitor and a system tray.")
1720 (license license:gpl2)))
1723 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1727 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1728 revision "." (string-take commit 7)))
1732 (url "https://github.com/robm/dzen")
1734 (file-name (string-append name "-" version))
1737 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1738 (build-system gnu-build-system)
1740 `(#:tests? #f ; No test suite.
1741 #:make-flags ; Replacement for `config.mk`.
1743 (string-append "VERSION = " ,version)
1744 (string-append "PREFIX = " %output)
1745 "MANPREFIX = ${PREFIX}/share/man"
1747 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1748 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1749 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1754 (modify-phases %standard-phases
1755 (delete 'configure) ; No configuration script.
1756 ;; Use own make-flags instead of `config.mk`.
1757 (add-before 'build 'dont-include-config-mk
1759 (substitute* "Makefile" (("include config.mk") ""))
1762 `(("libx11" ,libx11)
1765 ("libxinerama" ,libxinerama)))
1766 (native-inputs `(("pkg-config" ,pkg-config)))
1767 (synopsis "General purpose messaging, notification and menuing program for X11")
1768 (description "Dzen is a general purpose messaging, notification and menuing
1769 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1770 (home-page "https://github.com/robm/dzen")
1771 (license license:expat))))
1773 (define-public xftwidth
1776 (version "20170402")
1781 (url "http://github.com/vixus0/xftwidth")
1782 (commit "35ff963908d41a8a6a7101c434c88255728025ee")))
1785 "1jwl25785li24kbp0m1wxfwk4dgxkliynn03nsj813cjr34kq16h"))
1786 (file-name (string-append name "-" version "-checkout"))))
1787 (build-system gnu-build-system)
1788 (inputs `(("freetype" ,freetype)
1790 ("fontconfig" ,fontconfig)
1791 ("libxft" ,libxft)))
1793 `(("pkg-config" ,pkg-config)))
1796 (modify-phases %standard-phases
1797 (add-after 'unpack 'fix-makefile ; /usr/bin doesn't show up in PATH
1798 (lambda _ (substitute* "Makefile" (("usr/") "")) #t))
1799 (delete 'check) ; no check included in Makefile
1800 (delete 'configure))
1802 (let ((out (assoc-ref %outputs "out")))
1803 (list (string-append "DESTDIR=" out)))))
1804 (home-page "https://github.com/vixus0/xftwidth")
1805 (synopsis "Calculator for determining pixel widths of displayed text using Xft fonts")
1806 (description "xftwidth is a small C program for calculating the pixel
1807 widths of displayed text using Xft fonts. It is especially useful in scripts
1808 for displaying text in graphical panels, menus, popups, and notification
1809 windows generated using dzen. These scripts are often used in conjunction with
1810 minimalistic tiling window managers such as herbstluftwm and bspwm.")
1811 (license license:expat)))
1813 (define-public xcb-util-xrm
1815 (name "xcb-util-xrm")
1820 "https://github.com/Airblader/xcb-util-xrm/releases"
1821 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1824 "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h"))
1825 (modules '((guix build utils)))
1829 (delete-file-recursively "m4")
1831 (build-system gnu-build-system)
1833 `(("pkg-config" ,pkg-config)
1835 ("libx11" ,libx11))) ; for tests
1837 `(("libxcb" ,libxcb)
1838 ("xcb-util" ,xcb-util)))
1839 (home-page "https://github.com/Airblader/xcb-util-xrm")
1840 (synopsis "XCB utility functions for the X resource manager")
1842 "The XCB util module provides a number of libraries which sit on
1843 top of libxcb, the core X protocol library, and some of the extension
1844 libraries. These experimental libraries provide convenience functions
1845 and interfaces which make the raw X protocol more usable. Some of the
1846 libraries also provide client-side code which is not strictly part of
1847 the X protocol but which has traditionally been provided by Xlib.
1849 XCB util-xrm module provides the following libraries:
1851 - xrm: utility functions for the X resource manager.")
1852 (license license:x11)))
1854 (define-public xcalib
1858 (home-page "https://github.com/OpenICC/xcalib")
1864 (file-name (git-file-name name version))
1867 "05fzdjmhiafgi2jf0k41i3nm0837a78sb6yv59cwc23nla8g0bhr"))
1870 ;; Add missing documentation for the new --output option.
1871 ;; This upstream patch can be removed on the next update.
1875 home-page "/commit/"
1876 "ae03889b91fe984b18e925ad2b5e6f2f7354e058.patch"))
1877 (file-name "xcalib-update-man-page.patch")
1880 "0f7b4d5484x4b9n1bwhqmar0kcaa029ffff7bp3xpr734n1qgqb6")))))))
1881 (build-system cmake-build-system)
1883 '(#:tests? #f)) ; no test suite
1884 (inputs `(("libx11" ,libx11)
1885 ("libxext" ,libxext)
1886 ("libxrandr" ,libxrandr)
1887 ("libxxf86vm" ,libxxf86vm)))
1888 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1889 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1890 profiles to the video card's gamma ramp. It does work with most video card
1891 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1892 invert colors on a specific display/screen.")
1893 (license license:gpl2)))
1895 (define-public nxbelld
1902 (url "https://github.com/dusxmt/nxbelld")
1906 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1907 (file-name (git-file-name name version))))
1908 (build-system gnu-build-system)
1909 (arguments '(#:configure-flags `("--enable-sound"
1912 (native-inputs `(("autoconf" ,autoconf)
1913 ("automake" ,automake)
1914 ("pkg-config" ,pkg-config)
1916 (inputs `(("libx11" ,libx11)
1917 ("alsa-lib" ,alsa-lib)))
1918 (synopsis "Daemon that performs an action every time the X11 bell is rung")
1919 (description "nxbelld is a tiny utility to aid people who either don't
1920 like the default PC speaker beep, or use a sound driver that doesn't have
1921 support for the PC speaker. The utility performs a given action every time
1922 the X bell is rung. The actions nxbelld can currently perform include running
1923 a specified program, emulating the PC speaker beep using the sound card (default),
1924 or playing a PCM encoded WAVE file.")
1925 (home-page "https://github.com/dusxmt/nxbelld")
1926 (license license:gpl3+)))
1928 (define-public xautolock
1934 (uri (string-append "https://www.ibiblio.org/pub/linux/X11/"
1935 "screensavers/xautolock-" version ".tgz"))
1938 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1939 (build-system gnu-build-system)
1941 `(("imake" ,imake)))
1943 `(("libx11" ,libx11)
1944 ("libxext" ,libxext)
1945 ("libxscrnsaver" ,libxscrnsaver)))
1949 (modify-phases %standard-phases
1951 (lambda* (#:key inputs outputs #:allow-other-keys)
1952 (let ((imake (assoc-ref inputs "imake"))
1953 (out (assoc-ref outputs "out")))
1954 ;; Generate Makefile
1956 (substitute* "Makefile"
1957 ;; These imake variables somehow remain undefined
1958 (("DefaultGcc2[[:graph:]]*Opt") "-O2")
1959 ;; Reset a few variable defaults that are set in imake templates
1961 (("(MANPATH = )[[:graph:]]*" _ front)
1962 (string-append front out "/share/man")))
1963 ;; Old BSD-style 'union wait' is unneeded (defining
1964 ;; _USE_BSD did not seem to fix it)
1965 (substitute* "src/engine.c"
1966 (("union wait status") "int status = 0"))
1968 (add-after 'install 'install/man
1970 (invoke "make" "install.man"))))))
1971 (home-page "https://ibiblio.org/pub/Linux/X11/screensavers/")
1972 (synopsis "Program launcher for idle X sessions")
1973 (description "Xautolock monitors input devices under the X Window
1974 System, and launches a program of your choice if there is no activity after
1975 a user-configurable period of time.")
1976 (license license:gpl2)))
1978 (define-public screen-message
1980 (name "screen-message")
1985 "https://www.joachim-breitner.de/archive/screen-message"
1986 "/screen-message-" version ".tar.gz"))
1989 "1lw955qq5pq010lzmaf32ylj2iprgsri9ih4hx672c3f794ilab0"))))
1990 (build-system gnu-build-system)
1991 (inputs `(("gtk3" ,gtk+)
1994 (native-inputs `(("pkg-config" ,pkg-config)))
1996 ;; The default configure puts the 'sm' binary in games/ instead of bin/ -
1998 `(#:make-flags (list (string-append "execgamesdir=" %output "/bin"))))
1999 (synopsis "Print messages on your screen")
2000 (description "@code{screen-message} is a tool for displaying text on
2001 your screen. It will make the text as large as possible and display it
2002 with black color on a white background (colors are configurable on the
2004 (home-page "https://www.joachim-breitner.de/projects#screen-message")
2005 (license license:gpl2+)))
2007 (define-public xss-lock
2008 ;; xss-lock does not seem to be maintained any longer, but the last commits
2009 ;; fix important issues so we package them.
2010 (let ((version "0.3.0")
2012 (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717"))
2015 (version (git-version version revision commit))
2019 (url "https://bitbucket.org/raymonad/xss-lock.git")
2021 (file-name (git-file-name name version))
2024 "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r"))))
2025 (build-system cmake-build-system)
2026 (inputs `(("glib" ,glib)
2027 ("xcb-util" ,xcb-util)))
2029 `(("python-docutils" ,python-docutils)
2030 ("pkg-config" ,pkg-config)))
2033 (synopsis "Use external screen locker on events")
2034 (description "@code{xss-lock} listens to X signals to fire up a
2035 user-defined screensaver. In effect this automatically locks the
2036 screen when closing a laptop lid or after a period of user inactivity (as set
2037 with @code{xset s TIMEOUT}). The notifier command, if specified, is executed
2038 first. Additionally, xss-lock uses the inhibition logic to lock the screen
2039 before the system goes to sleep.")
2040 (home-page "https://bitbucket.org/raymonad/xss-lock")
2041 (license license:expat))))
2043 (define-public python-pyperclip
2045 (name "python-pyperclip")
2050 (uri (pypi-uri "pyperclip" version))
2053 "1p505c23ji06r28k1y67siihsbdzdf1brhlqpyv9ams4gk9863pp"))))
2054 (build-system python-build-system)
2056 '(#:tests? #f)) ; Not clear how to make tests pass.
2060 (home-page "https://github.com/asweigart/pyperclip")
2061 (synopsis "Python clipboard module")
2063 "Pyperclip is a clipboard module for Python, handling copy/pasting from
2065 (license license:bsd-3)))
2067 (define-public numlockx
2074 ;; It seems that upstream is gone.
2075 (url "https://github.com/rg3/numlockx")
2077 (file-name (git-file-name name version))
2080 "1w49fayhwzn5rx0z1q2lrvm7z8jrd34lgb89p853a024bixc3cf2"))))
2081 (build-system gnu-build-system)
2083 `(("xorg-server" ,xorg-server)))
2084 (home-page "https://github.com/rg3/numlockx")
2085 (synopsis "Turns on the numlock key in X11")
2086 (description "@command{numlockx} is a tiny program that lets you turn on
2087 the numlock key in X11. It can be called from the user's initialization files
2088 to automatically turn it on on login.")
2089 (license license:expat)))
2091 (define-public xrandr-invert-colors
2093 (name "xrandr-invert-colors")
2098 (url "https://github.com/zoltanp/xrandr-invert-colors")
2099 (commit (string-append "v" version))))
2100 (file-name (git-file-name name version))
2103 "1br3x9vr6xm4ika06n8cfxx1b3wdchdqvyzjl4y1chmivrml8x9h"))))
2104 (build-system gnu-build-system)
2106 `(#:make-flags (list "CC=gcc")
2107 #:tests? #f ; there are none
2109 (modify-phases %standard-phases
2112 (lambda* (#:key outputs #:allow-other-keys)
2113 (let* ((out (assoc-ref outputs "out"))
2114 (bin (string-append out "/bin")))
2115 (install-file "xrandr-invert-colors.bin" bin)
2118 `(("libxrandr" ,libxrandr)))
2119 (home-page "https://github.com/zoltanp/xrandr-invert-colors")
2120 (synopsis "Invert display colors")
2121 (description "This package provides a small utility for inverting the
2122 colors on all monitors attached to an XRandR-capable X11 display server.")
2123 (license license:gpl3+)))
2133 (string-append "https://www.umaxx.net/dl/sct-"
2136 (base32 "0lrhx771iccbw04wrhj0ygids1pzmjfc4hvklm30m3p3flvhqf0m"))))
2137 (build-system gnu-build-system)
2140 (list ,(string-append "CC=" (cc-for-target)))
2141 #:tests? #f ; no test suite
2143 (modify-phases %standard-phases
2145 (add-after 'unpack 'fix-sctd-paths
2146 (lambda* (#:key outputs inputs #:allow-other-keys)
2147 (let ((out (assoc-ref outputs "out"))
2148 (coreutils (assoc-ref inputs "coreutils"))
2149 (inetutils (assoc-ref inputs "inetutils"))
2150 (sed (assoc-ref inputs "sed")))
2151 (substitute* "sctd.sh"
2152 (("\\$\\(which sct\\)") (string-append out "/bin/sct"))
2153 (("date") (string-append coreutils "/bin/date"))
2154 (("printf") (string-append coreutils "/bin/printf"))
2155 (("sleep") (string-append coreutils "/bin/sleep"))
2156 (("logger") (string-append inetutils "/bin/logger"))
2157 (("sed") (string-append sed "/bin/sed"))))))
2159 (lambda* (#:key outputs #:allow-other-keys)
2160 (let ((out (assoc-ref outputs "out")))
2161 (install-file "sct" (string-append out "/bin"))
2162 (install-file "sctd.sh" (string-append out "/bin"))
2163 (install-file "sct.1" (string-append out "/man/man1"))
2164 (install-file "sctd.1" (string-append out "/man/man1"))
2165 (rename-file (string-append out "/bin/sctd.sh")
2166 (string-append out "/bin/sctd"))
2169 `(("coreutils" ,coreutils) ; sctd uses "date", "printf" and "sleep"
2170 ("inetutils" ,inetutils) ; sctd uses "logger"
2171 ("libxrandr" ,libxrandr)
2172 ("sed" ,sed))) ; sctd uses "sed"
2173 (home-page "https://www.umaxx.net")
2174 (synopsis "Set the color temperature of the screen")
2175 (description "@code{sct} is a lightweight utility to set the color
2176 temperature of the screen.")
2177 (license (license:non-copyleft "file://sct.c")))) ; "OpenBSD" license
2179 (define-public xsecurelock
2181 (name "xsecurelock")
2186 "https://github.com/google/xsecurelock/releases"
2187 "/download/v" version "/xsecurelock-" version ".tar.gz"))
2189 (base32 "070gknyv0s5hz9hkc6v73m2v7ssyjwgl93b5hd4glayfqxqjbmdp"))))
2190 (build-system gnu-build-system)
2193 '("--with-pam-service-name=login"
2195 "--with-default-authproto-module=/run/setuid-programs/authproto_pam")))
2197 `(("pandoc" ,pandoc)
2198 ("pkg-config" ,pkg-config)))
2200 `(("fontconfig" ,fontconfig)
2202 ("libxcomposite" ,libxcomposite)
2203 ("libxext" ,libxext)
2204 ("libxfixes" ,libxfixes)
2207 ("libxrandr" ,libxrandr)
2208 ("libxscrnsaver" ,libxscrnsaver)
2209 ("linux-pam" ,linux-pam)))
2210 (home-page "https://github.com/google/xsecurelock")
2211 (synopsis "X11 screen lock utility with the primary goal of security")
2212 (description "@code{xsecurelock} is an X11 screen locker which uses
2213 a modular design to avoid the usual pitfalls of screen locking utility design.
2215 As a consequence of the modular design, the usual screen locker service
2216 shouldn't be used with @code{xsecurelock}. Instead, you need to add a helper
2217 binary to setuid-binaries:
2219 (setuid-programs (cons*
2220 (file-append xsecurelock \"/libexec/xsecurelock/authproto_pam\")
2223 (license license:asl2.0)))
2225 (define-public wl-clipboard
2227 (name "wl-clipboard")
2233 (url "https://github.com/bugaevc/wl-clipboard")
2234 (commit (string-append "v" version))))
2235 (file-name (git-file-name name version))
2237 (base32 "0c4w87ipsw09aii34szj9p0xfy0m00wyjpll0gb0aqmwa60p0c5d"))))
2238 (build-system meson-build-system)
2240 `(("pkg-config" ,pkg-config)))
2242 `(("wayland" ,wayland)
2243 ("wayland-protocols" ,wayland-protocols)))
2244 (home-page "https://github.com/bugaevc/wl-clipboard")
2245 (synopsis "Command-line copy/paste utilities for Wayland")
2246 (description "Wl-clipboard is a set of command-line copy/paste utilities for
2248 (license license:gpl3+)))
2250 (define-public autocutsel
2256 (uri (string-append "https://github.com/sigmike/autocutsel"
2257 "/releases/download/" version "/"
2258 "autocutsel-" version ".tar.gz"))
2261 "0gsys2dzh4az51ndcsabhlbbrjn2nm75lnjr45kg6r8sm8q66dx2"))))
2262 (build-system gnu-build-system)
2264 '(#:tests? #f)) ; no "check" target
2265 (native-inputs `(("libx11" ,libx11)
2266 ("libxaw" ,libxaw)))
2267 (home-page "https://www.nongnu.org/autocutsel/")
2268 (synopsis "Automated X11 clipboard and cutbuffer synchronization")
2269 (description "@code{autocutsel} tracks changes in the server's cutbuffer
2270 and clipboard selection. When the clipboard is changed, it updates the
2271 cutbuffer. When the cutbuffer is changed, it owns the clipboard selection.
2272 The cutbuffer and clipboard selection are always synchronized.")
2273 (license license:gpl2+)))
2275 (define-public jgmenu
2283 (url "https://github.com/johanmalm/jgmenu")
2284 (commit (string-append "v" version))))
2285 (file-name (git-file-name name version))
2288 "1wsh37rapb1bszlq36hvwxqvfds39hbvbl152m8as4zlh93wfvvk"))))
2289 (build-system gnu-build-system)
2291 `(("cppcheck" ,cppcheck)
2293 ("pkg-config" ,pkg-config)))
2297 ("librsvg" ,librsvg)
2299 ("libxml2" ,libxml2)
2300 ("libxrandr" ,libxrandr)
2304 (modify-phases %standard-phases
2305 (add-after 'unpack 'fix-tests
2307 (substitute* "scripts/cppcheck-wrapper.sh"
2308 (("--library=/usr/share/cppcheck/cfg/gnu\\.cfg")
2312 (lambda* (#:key outputs #:allow-other-keys)
2314 (invoke "./configure"
2315 (string-append "--prefix=" (assoc-ref outputs "out")))
2317 (synopsis "Simple X11 menu")
2319 "This is a simple menu for X11 designed for scripting and tweaking. It
2320 can optionally use some appearance settings from XSettings, tint2 and GTK.")
2321 (home-page "https://jgmenu.github.io/")
2322 (license license:gpl2)))
2324 (define-public xwallpaper
2332 (url "https://github.com/stoeckmann/xwallpaper")
2333 (commit (string-append "v" version))))
2334 (file-name (git-file-name name version))
2336 (base32 "10klm81rs3k3l2i7whpvcsg95x51ja11l86fmwbrvg3kq705p2sr"))))
2337 (build-system gnu-build-system)
2339 `(("autoconf" ,autoconf)
2340 ("automake" ,automake)
2341 ("pkg-config" ,pkg-config)))
2343 `(("libjpeg-turbo" ,libjpeg-turbo)
2347 ("xcb-util" ,xcb-util)
2348 ("xcb-util-image" ,xcb-util-image)))
2349 (home-page "https://github.com/stoeckmann/xwallpaper")
2350 (synopsis "Wallpaper setting utility for X")
2352 "The xwallpaper utility allows you to set image files as your X
2353 wallpaper. JPEG, PNG, and XPM file formats are supported.
2355 The wallpaper is also advertised to programs which support semi-transparent
2357 (license license:isc)))
2359 (define-public xwrits
2366 (uri (string-append "https://www.lcdf.org/~eddietwo/xwrits/"
2367 "xwrits-" version ".tar.gz"))
2369 (base32 "1n7y0fqpcvmzznvbsn14hzy5ddaa3lilm8aw6ckscqndnh4lijma"))))
2370 (build-system gnu-build-system)
2373 (modify-phases %standard-phases
2374 (add-after 'install 'install-docs
2375 (lambda* (#:key outputs #:allow-other-keys)
2376 (let* ((out (assoc-ref outputs "out"))
2377 (doc (string-append out "/share/doc/xwrits")))
2378 (install-file "GESTURES" doc)
2379 (install-file "README" doc)
2382 `(("libx11" ,libx11)
2383 ("libxinerama" ,libxinerama)))
2384 (home-page "https://www.lcdf.org/~eddietwo/xwrits/")
2385 (synopsis "Reminds you to take wrist breaks")
2386 (description "Xwrits reminds you to take wrist breaks for prevention or
2387 management of repetitive stress injuries. When you should take a break, it
2388 pops up an X window, the warning window. You click on the warning window,
2389 then take a break. The window changes appearance while you take the break.
2390 It changes again when your break is over. Then you just resume typing.
2391 Xwrits hides itself until you should take another break.")
2392 (license license:gpl2)))
2394 (define-public xsettingsd
2402 (url "https://github.com/derat/xsettingsd")
2403 (commit (string-append "v" version))))
2404 (file-name (git-file-name name version))
2406 (base32 "14gnkz18dipsa2v24f4nm9syxaa7g21iqjm7y65jn849ka2jr1h8"))))
2407 (build-system scons-build-system)
2409 `(("libx11" ,libx11)))
2411 `(("pkg-config" ,pkg-config)
2412 ("googletest" ,googletest)
2413 ("googletest-source" ,(package-source googletest))))
2415 `(#:scons ,scons-python2
2419 (modify-phases %standard-phases
2420 (add-before 'build 'patch-sconstruct
2421 (lambda* (#:key inputs #:allow-other-keys)
2422 (substitute* "SConstruct"
2423 ;; scons doesn't pick up environment variables automatically
2424 ;; so it needs help to find path variables
2425 (("env = Environment\\(")
2428 'PATH': os.environ['PATH'],
2429 'CPATH': os.environ['C_INCLUDE_PATH'],
2430 'LIBRARY_PATH': os.environ['LIBRARY_PATH'],
2431 'PKG_CONFIG_PATH': os.environ['PKG_CONFIG_PATH']
2433 ;; Update path to gtest source files used in tests
2434 (("/usr/src/gtest") (string-append
2435 (assoc-ref inputs "googletest-source")
2437 ;; Exclude one warning that causes a build error
2438 (("-Werror") "-Werror -Wno-error=sign-compare"))
2440 ;; The SConstruct script doesn't configure installation so
2441 ;; binaries must be copied to the output path directly
2443 (lambda* (#:key outputs #:allow-other-keys)
2444 (let* ((out (assoc-ref outputs "out"))
2445 (bin (string-append out "/bin")))
2447 (install-file "xsettingsd" bin)
2448 (install-file "dump_xsettings" bin)
2450 (home-page "https://github.com/derat/xsettingsd")
2451 (synopsis "Xorg settings daemon")
2452 (description "@command{xsettingsd} is a lightweight daemon that provides settings to
2453 Xorg applications via the XSETTINGS specification. It is used for defining
2454 font and theme settings when a complete desktop environment (GNOME, KDE) is
2455 not running. With a simple @file{.xsettingsd} configuration file one can avoid
2456 configuring visual settings in different UI toolkits separately.")
2457 (license license:bsd-3)))
2459 (define-public clipnotify
2467 (url "https://github.com/cdown/clipnotify")
2469 (file-name (git-file-name name version))
2472 "1v3ydm5ljy8z1savmdxrjyx7a5bm5013rzw80frp3qbbjaci0wbg"))))
2473 (build-system gnu-build-system)
2476 (modify-phases %standard-phases
2479 (lambda* (#:key inputs outputs #:allow-other-keys)
2480 (let* ((out (assoc-ref outputs "out"))
2481 (bin (string-append out "/bin"))
2482 (doc (string-append %output "/share/doc/" ,name "-" ,version)))
2483 (install-file "clipnotify" bin)
2484 (install-file "README.md" doc)
2487 (list ,(string-append "CC=" (cc-for-target)))
2488 #:tests? #f)) ; no test suite
2490 `(("libx11" ,libx11)
2491 ("libXfixes" ,libxfixes)))
2492 (home-page "https://github.com/cdown/clipnotify")
2493 (synopsis "Notify on new X clipboard events")
2494 (description "@command{clipnotify} is a simple program that, using the
2495 XFIXES extension to X11, waits until a new selection is available and then
2498 It was primarily designed for clipmenu, to avoid polling for new selections.
2500 @command{clipnotify} doesn't try to print anything about the contents of the
2501 selection, it just exits when it changes. This is intentional -- X11's
2502 selection API is verging on the insane, and there are plenty of others who
2503 have already lost their sanity to bring us xclip/xsel/etc. Use one of those
2504 tools to complement clipnotify.")
2505 (license license:public-domain)))
2507 (define-public clipmenu
2508 (let ((commit "bcbe7b144598db4a103f14e8408c4b7327d6d5e1")
2512 (version (string-append "6.0.1-"
2513 revision "." (string-take commit 7)))
2518 (url "https://github.com/cdown/clipmenu")
2520 (file-name (git-file-name name version))
2523 "0053j4i14lz5m2bzc5sch5id5ilr1bl196mp8fp0q8x74w3vavs9"))))
2524 (build-system gnu-build-system)
2527 (modify-phases %standard-phases
2531 (lambda* (#:key inputs outputs #:allow-other-keys)
2532 (let* ((out (assoc-ref outputs "out"))
2533 (bin (string-append out "/bin"))
2534 (doc (string-append %output "/share/doc/"
2535 ,name "-" ,version)))
2536 (install-file "clipdel" bin)
2537 (install-file "clipmenu" bin)
2538 (install-file "clipmenud" bin)
2539 (install-file "README.md" doc)
2541 (add-after 'install 'wrap-script
2542 (lambda* (#:key inputs outputs #:allow-other-keys)
2543 (let* ((out (assoc-ref outputs "out"))
2544 (clipnotify (assoc-ref inputs "clipnotify"))
2545 (coreutils-minimal (assoc-ref inputs "coreutils-minimal"))
2546 (gawk (assoc-ref inputs "gawk"))
2547 (util-linux (assoc-ref inputs "util-linux"))
2548 (xdotool (assoc-ref inputs "xdotool"))
2549 (xsel (assoc-ref inputs "xsel")))
2552 (wrap-script (string-append out "/bin/" prog)
2555 (string-append dir "/bin"))
2556 (list clipnotify coreutils-minimal
2557 gawk util-linux xdotool xsel)))))
2558 '("clipmenu" "clipmenud" "clipdel")))
2561 (lambda* (#:key inputs outputs #:allow-other-keys)
2562 ;; substitute a shebang appearing inside a string (the test
2563 ;; file writes this string to a temporary file):
2564 (substitute* "tests/test-clipmenu"
2565 (("#!/usr/bin/env bash")
2566 (string-append "#!" (which "bash"))))
2567 (invoke "tests/test-clipmenu")
2570 `(("clipnotify" ,clipnotify)
2571 ("coreutils-minimal" ,coreutils-minimal)
2573 ("guile" ,guile-3.0) ; for wrap-script
2574 ("util-linux" ,util-linux)
2575 ("xdotool" ,xdotool)
2577 (home-page "https://github.com/cdown/clipmenu")
2578 (synopsis "Simple clipboard manager using dmenu or rofi and xsel")
2579 (description "Start @command{clipmenud}, then run @command{clipmenu} to
2580 select something to put on the clipboard.
2582 When @command{clipmenud} detects changes to the clipboard contents, it writes
2583 them out to the cache directory. @command{clipmenu} reads the cache directory
2584 to find all available clips and launches @command{dmenu} (or @command{rofi},
2585 depending on the value of @code{CM_LAUNCHER}) to let the user select a clip.
2586 After selection, the clip is put onto the PRIMARY and CLIPBOARD X selections.")
2587 (license license:public-domain))))
2597 (url "https://github.com/qnikst/kbdd")
2598 (commit (string-append "v" version))))
2599 (file-name (git-file-name name version))
2602 "0qkq75grbd4wkx4nlvswgavpijk9ad0pzqyj89a0ayjsbsn36pqy"))))
2603 (build-system gnu-build-system)
2605 `(("autoconf" ,autoconf)
2606 ("automake" ,automake)
2607 ("glib" ,glib "bin")
2608 ("pkg-config" ,pkg-config)))
2610 `(("dbus-glib" ,dbus-glib)
2612 ("libx11" ,libx11)))
2613 (home-page "https://github.com/qnikst/kbdd")
2614 (synopsis "Per-window keyboard layout switching daemon for X")
2615 (description "@command{kbdd} is a simple keyboard layout switching
2616 program, which is designed to run in an X11 session and remember
2617 keyboard layouts on a per-window basis. That can be very handy for a
2618 user of a non-US keyboard who does not want to jump through layouts back
2619 and forth while typing in terminals (mostly in a latin alphabet) and
2620 some kind of chat (in native language).
2622 @command{kbdd} also supports D-Bus signals, which makes it possible to
2623 create layout indicator widgets.")
2624 (license license:bsd-2)))
2626 (define-public j4-dmenu-desktop
2628 (name "j4-dmenu-desktop")
2633 (url "https://github.com/enkore/j4-dmenu-desktop")
2634 (commit (string-append "r" version))))
2635 (file-name (git-file-name name version))
2638 "1gxpgifzy0hnpd0ymw3r32amzr32z3bgb90ldjzl438p6h1q0i26"))))
2639 (build-system cmake-build-system)
2641 `(("catch2" ,catch-framework2)))
2643 `(#:configure-flags '("-DWITH_GIT_CATCH=off")
2645 (modify-phases %standard-phases
2646 (add-after 'unpack 'find-catch
2648 (substitute* "CMakeLists.txt"
2649 (("PATH_SUFFIXES catch") "PATH_SUFFIXES catch2"))
2653 (invoke "./j4-dmenu-tests" "exclude:SearchPath/XDG_DATA_HOME"))))))
2654 (synopsis "Fast desktop menu")
2656 "j4-dmenu-desktop is a replacement for i3-dmenu-desktop. Its purpose
2657 is to find @file{.desktop} files and offer you a menu to start an application
2658 using @command{dmenu}.")
2659 (home-page "https://github.com/enkore/j4-dmenu-desktop")
2660 (license license:gpl3+)))
2669 (url "https://hg.sr.ht/~scoopta/wofi")
2670 (changeset (string-append "v" version))))
2671 (file-name (git-file-name name version))
2674 "0glpb2gf5n78s01z3rn614ak8ibxhfr824gy6xlljbxclgds264i"))))
2675 (build-system meson-build-system)
2677 `(#:glib-or-gtk? #t))
2679 `(("pkg-config" ,pkg-config)))
2682 ("wayland" ,wayland)))
2683 (synopsis "Launcher/menu program for wayland")
2685 "Wofi is a launcher/menu program for wlroots based wayland compositors
2686 such as sway, similar to @command{rofi}.")
2687 (home-page "https://hg.sr.ht/~scoopta/wofi")
2688 (license license:gpl3+)))
2697 (url (string-append "https://github.com/jceb/dex"))
2698 (commit (string-append "v" version))))
2701 "03aapcywnz4kl548cygpi25m8adwbmqlmwgxa66v4156ax9dqs86"))
2702 (file-name (git-file-name name version))))
2703 (build-system gnu-build-system)
2705 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2707 (modify-phases %standard-phases
2708 (delete 'configure))
2711 `(("python", python)))
2713 `(("python-sphinx" ,python-sphinx)))
2714 (home-page "https://github.com/jceb/dex")
2715 (synopsis "Execute DesktopEntry files")
2717 "@command{dex}, @dfn{DesktopEntry Execution}, is a program to generate
2718 and execute @file{.desktop} files of the Application type.")
2719 (license license:gpl3+)))
2728 (url "https://github.com/Earnestly/sx")
2730 (file-name (git-file-name name version))
2733 "0p24ghp1ygvyc2hv81byhxax7491yhcc5priq5ldv07nzl7akagc"))))
2734 (build-system gnu-build-system)
2736 '(#:tests? #f ; no tests
2738 (let ((out (assoc-ref %outputs "out")))
2739 (list (string-append "PREFIX=" out)))
2741 (modify-phases %standard-phases
2742 ;; no configure script
2743 (delete 'configure))))
2745 `(("xauth" ,xauth)))
2746 (home-page "https://github.com/Earnestly/sx")
2747 (synopsis "Start an xorg server")
2749 "@command{sx} is a simple alternative to both @command{xinit} and
2750 @command{startx} for starting an Xorg server.")
2751 (license license:x11)))
2753 (define-public hsetroot
2757 (home-page "https://github.com/himdel/hsetroot")
2760 (file-name (git-file-name name version))
2766 "1jbk5hlxm48zmjzkaq5946s58rqwg1v1ds2sdyd2ba029hmvr722"))))
2767 (build-system gnu-build-system)
2773 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2775 (modify-phases %standard-phases
2777 (add-before 'install 'mkdir-install-path
2778 (lambda* (#:key outputs #:allow-other-keys)
2779 (let ((out (assoc-ref outputs "out")))
2780 (mkdir-p (string-append out "/bin"))))))))
2782 `(("libx11" ,libx11)
2784 ("libxinerama" ,libxinerama)))
2786 `(("pkg-config" ,pkg-config)))
2787 (synopsis "Imlib2-based wallpaper changer")
2789 "The @command{hsetroot} command composes wallpapers for X.
2790 This package is the fork of hsetroot by Hyriand.")
2791 (license license:gpl2+)))