1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
5 ;;; Copyright © 2014, 2015, 2016 Alex Kost <alezost@gmail.com>
6 ;;; Copyright © 2013, 2015, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
7 ;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
8 ;;; Copyright © 2015 Alexander I.Grafov <grafov@gmail.com>
9 ;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
10 ;;; Copyright © 2015 xd1le <elisp.vim@gmail.com>
11 ;;; Copyright © 2015 Florian Paul Schmidt <mista.tapas@gmx.net>
12 ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
13 ;;; Copyright © 2016, 2018 Ricardo Wurmus <rekado@elephly.net>
14 ;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
15 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
16 ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
17 ;;; Copyright © 2016, 2017, 2019 Marius Bakke <mbakke@fastmail.com>
18 ;;; Copyright © 2016 Petter <petter@mykolab.ch>
19 ;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com>
20 ;;; Copyright © 2017 Nikita <nikita@n0.is>
21 ;;; Copyright © 2017, 2018, 2019, 2020 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 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>
41 ;;; This file is part of GNU Guix.
43 ;;; GNU Guix is free software; you can redistribute it and/or modify it
44 ;;; under the terms of the GNU General Public License as published by
45 ;;; the Free Software Foundation; either version 3 of the License, or (at
46 ;;; your option) any later version.
48 ;;; GNU Guix is distributed in the hope that it will be useful, but
49 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
50 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
51 ;;; GNU General Public License for more details.
53 ;;; You should have received a copy of the GNU General Public License
54 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
56 (define-module (gnu packages xdisorg)
57 #:use-module ((guix licenses) #:prefix license:)
58 #:use-module (guix packages)
59 #:use-module (guix download)
60 #:use-module (guix git-download)
61 #:use-module (guix utils)
62 #:use-module (guix build-system cmake)
63 #:use-module (guix build-system gnu)
64 #:use-module (guix build-system glib-or-gtk)
65 #:use-module (guix build-system meson)
66 #:use-module (guix build-system python)
67 #:use-module (guix build-system scons)
68 #:use-module (gnu packages)
69 #:use-module (gnu packages documentation)
70 #:use-module (gnu packages admin)
71 #:use-module (gnu packages base)
72 #:use-module (gnu packages algebra)
73 #:use-module (gnu packages autotools)
74 #:use-module (gnu packages check)
75 #:use-module (gnu packages compression)
76 #:use-module (gnu packages image)
77 #:use-module (gnu packages pkg-config)
78 #:use-module (gnu packages flex)
79 #:use-module (gnu packages freedesktop)
80 #:use-module (gnu packages gawk)
81 #:use-module (gnu packages gettext)
82 #:use-module (gnu packages gl)
83 #:use-module (gnu packages glib)
84 #:use-module (gnu packages gnome)
85 #:use-module (gnu packages haskell-xyz)
86 #:use-module (gnu packages icu4c)
87 #:use-module (gnu packages man)
88 #:use-module (gnu packages maths)
89 #:use-module (gnu packages m4)
90 #:use-module (gnu packages ncurses)
91 #:use-module (gnu packages perl)
92 #:use-module (gnu packages python)
93 #:use-module (gnu packages python-xyz)
94 #:use-module (gnu packages linux)
95 #:use-module (gnu packages gl)
96 #:use-module (gnu packages guile)
97 #:use-module (gnu packages xml)
98 #:use-module (gnu packages gtk)
99 #:use-module (gnu packages qt)
100 #:use-module (gnu packages xorg)
101 #:use-module (gnu packages fontutils)
102 #:use-module (gnu packages bison)
103 #:use-module (ice-9 match))
105 ;; packages outside the x.org system proper
107 (define-public arandr
113 (uri (string-append "https://christian.amsuess.com/tools/arandr"
114 "/files/arandr-" version ".tar.gz"))
117 "135q0llvm077jil2fr92ssw3p095m4r8jfj0lc5rr3m71n4srj6v"))
118 (modules '((guix build utils)))
121 ;; Do not record a timestamp and file name in gzipped man
122 ;; pages (this is equivalent to 'gzip --no-name'.)
123 (substitute* "setup.py"
124 (("gzip\\.open\\(gzfile, 'w', 9\\)")
125 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)"))
127 (build-system python-build-system)
130 (modify-phases %standard-phases
131 (add-before 'build 'configure
132 (lambda* (#:key inputs #:allow-other-keys)
133 (substitute* "screenlayout/xrandr.py"
134 (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr")
137 (add-after 'install 'wrap-gi-typelib
138 (lambda* (#:key inputs outputs #:allow-other-keys)
139 (let ((out (assoc-ref outputs "out"))
140 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
141 (wrap-program (string-append out "/bin/arandr")
142 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
144 #:tests? #f)) ;no tests
145 (inputs `(("gtk+" ,gtk+)
146 ("pycairo" ,python-pycairo)
147 ("pygobject" ,python-pygobject)
149 (native-inputs `(("gettext" ,gettext-minimal)
150 ("python-docutils" ,python-docutils)))
151 (home-page "https://christian.amsuess.com/tools/arandr/")
152 (synopsis "Another RandR graphical user interface")
153 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
154 (description "ARandR is designed to provide a simple visual front end for
155 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
156 shown graphically and can be changed in a drag-and-drop way. Configurations
157 are saved as executable shell scripts which can be loaded without using this
159 (license license:gpl3+)))
161 (define-public autorandr
165 (home-page "https://github.com/phillipberndt/autorandr")
172 (file-name (git-file-name name version))
174 (base32 "1bb0l7fcm5lcx9y02zdxv7pfdqf4v4gsc5br3v1x9gzjvqj64l7n"))))
175 (build-system python-build-system)
181 (modify-phases %standard-phases
182 (add-before 'build 'configure
183 (lambda* (#:key inputs outputs #:allow-other-keys)
184 (let ((xrandr (string-append (assoc-ref inputs "xrandr")
186 (substitute* "contrib/etc/xdg/autostart/autorandr.desktop"
187 (("/usr") (assoc-ref outputs "out")))
188 (substitute* "autorandr.py"
189 (("popen\\(\"xrandr") (string-append "popen(\"" xrandr))
190 (("\\[\"xrandr") (string-append "[\"" xrandr))))
192 (add-after 'install 'install-contrib
193 (lambda* (#:key outputs #:allow-other-keys)
195 (string-append "DESTDIR=" (assoc-ref outputs "out"))
197 "BASH_COMPLETIONS_DIR=etc/bash_completiond.d"
199 "install_bash_completion"
201 "install_autostart_config"))))))
202 (synopsis "Auto-detect connected displays and load appropriate setup")
203 (description "Autorandr wraps around xrandr to help with X11
204 multi-screen configuration management. It allows the user to create profiles
205 for various multi-screen setups. Autorandr automatically detects the profiles
206 that can be activated based on the connected hardware. Hook scripts can be
207 used to further tweak the behaviour of the different profiles.")
208 (license license:gpl3+)))
210 (define-public bemenu
218 (url "https://github.com/Cloudef/bemenu.git")
220 (file-name (git-file-name name version))
222 (base32 "0piax49az5kp96r1g6dcgj87fi6p4jl286wlkxsdvljzpkn8q6gv"))))
223 (build-system cmake-build-system)
225 '(#:configure-flags '("-DBEMENU_WAYLAND_RENDERER=ON")))
229 ("libxkbcomon" ,libxkbcommon)
230 ("libxinerama" ,libxinerama)
234 ("wayland-protocols" ,wayland-protocols)))
236 `(("doxygen" ,doxygen)
237 ("pkg-config" ,pkg-config)))
238 (home-page "https://github.com/Cloudef/bemenu")
239 (synopsis "Dynamic menu library and client program inspired by dmenu")
241 "bemenu is a dynamic menu which allows the user to flexibly select from a
242 list of options (usually programs to launch). It renders the menu graphically
243 with X11 or Wayland, or in a text terminal with ncurses.")
244 (license (list license:gpl3+ ; client program[s] and other sources
245 license:lgpl3+)))) ; library and bindings
254 (url "https://github.com/hluk/CopyQ.git")
255 (commit (string-append "v" version))))
256 (file-name (git-file-name name version))
259 "0wlwq9xg8rzsbj0b29z358k4mbrqy04iraa8x0p26pa95yskgcma"))))
260 (build-system cmake-build-system)
262 `(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release")
263 #:tests? #f)) ; Test suite is a rather manual process.
266 ("qtscript" ,qtscript)
268 ("qtx11extras" ,qtx11extras)))
269 (synopsis "Clipboard manager with advanced features")
270 (description "CopyQ is clipboard manager with editing and scripting
271 features. CopyQ monitors system clipboard and saves its content in customized
272 tabs. Saved clipboard can be later copied and pasted directly into any
274 (home-page "https://hluk.github.io/CopyQ/")
275 (license license:gpl3+)))
285 (url "https://github.com/astrand/xclip.git")
287 (file-name (git-file-name name version))
290 "0q0hmvcjlv8arhh1pzhja2wglyj6n7z209jnpnzd281kqqv4czcs"))))
291 (build-system gnu-build-system)
293 '(#:tests? #f)) ;there is no test suite
295 `(("autoconf" ,autoconf)
296 ("automake" ,automake)))
297 (inputs `(("libxmu" ,libxmu)
299 (home-page "https://github.com/astrand/xclip")
300 (synopsis "Command line interface to X11 clipboard")
301 (description "Xclip is a command line interface to the X11 clipboard. It
302 can also be used for copying files, as an alternative to sftp/scp, thus
303 avoiding password prompts when X11 forwarding has already been setup.")
304 (license license:gpl2+)))
306 (define-public libxkbcommon
308 (name "libxkbcommon")
312 (uri (string-append "https://xkbcommon.org/download/libxkbcommon-"
316 "1wmnl0hngn6vrqrya4r8hvimlkr4jag39yjprls4gyrqvh667hsp"))))
317 (build-system meson-build-system)
322 ("wayland-protocols" ,wayland-protocols)
323 ("xkeyboard-config" ,xkeyboard-config)))
327 ("pkg-config" ,pkg-config)))
330 (list (string-append "-Dxkb-config-root="
331 (assoc-ref %build-inputs "xkeyboard-config")
333 (string-append "-Dx-locale-root="
334 (assoc-ref %build-inputs "libx11")
335 "/share/X11/locale"))))
336 (home-page "https://xkbcommon.org/")
337 (synopsis "Library to handle keyboard descriptions")
338 (description "Xkbcommon is a library to handle keyboard descriptions,
339 including loading them from disk, parsing them and handling their
340 state. It is mainly meant for client toolkits, window systems, and other
341 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
342 Clutter, and more. Despite the name, it is not currently used by anything
344 (license (license:x11-style "file://COPYING"
345 "See 'COPYING' in the distribution."))))
347 (define-public libfakekey
355 (url "https://git.yoctoproject.org/git/libfakekey")
357 (file-name (git-file-name name version))
359 (base32 "1jw1d4wc1ysiijirc7apnz3sryrxbl9akgb92mh06dvfkz2nblj0"))))
360 (build-system gnu-build-system)
362 `(#:make-flags (list "AM_LDFLAGS=-lX11")
364 (modify-phases %standard-phases
366 ;; ./autogen.sh calls ./configure before shebangs have been patched.
368 (invoke "autoreconf" "-vfi"))))))
370 `(("pkg-config" ,pkg-config)
372 ;; For bootstrapping from git.
373 ("autoconf" ,autoconf)
374 ("automake" ,automake)
375 ("libtool" ,libtool)))
377 `(("libxtst" ,libxtst)
379 (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox")
380 (synopsis "X virtual keyboard library")
382 "Libfakekey is a virtual keyboard library for X.")
383 (license license:gpl2)))
385 (define-public xdotool
388 (version "3.20160805.1")
393 "https://github.com/jordansissel/xdotool/releases/download/v"
394 version "/xdotool-" version ".tar.gz"))
397 "1a6c1zr86zb53352yxv104l76l8x21gfl2bgw6h21iphxpv5zgim"))))
398 (build-system gnu-build-system)
400 '(#:tests? #f ; Test suite requires a lot of black magic
402 (modify-phases %standard-phases
404 (lambda* (#:key outputs #:allow-other-keys #:rest args)
405 (let ((out (assoc-ref outputs "out")))
406 (mkdir-p (string-append out "/lib"))
407 (setenv "PREFIX" out)
408 (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib"))
411 (native-inputs `(("perl" ,perl))) ; for pod2man
412 (inputs `(("libx11" ,libx11)
415 ("libxinerama" ,libxinerama)
417 ("libxkbcommon" ,libxkbcommon)))
418 (home-page "https://www.semicomplete.com/projects/xdotool/")
419 (synopsis "Fake keyboard/mouse input, window management, and more")
420 (description "Xdotool lets you simulate keyboard input and mouse activity,
421 move and resize windows, etc. It does this using X11's XTEST extension and
422 other Xlib functions. Additionally, you can search for windows and move,
423 resize, hide, and modify window properties like the title. If your window
424 manager supports it, you can use xdotool to switch desktops, move windows
425 between desktops, and change the number of desktops.")
426 (license license:bsd-3)))
435 (uri (string-append "https://www.x.org/releases/individual/app/"
436 name "-" version ".tar.bz2"))
438 (base32 "0lq5j7fryx1wn998jq6h3icz1h6pqrsbs3adskjzjyhn5l6yrg2p"))))
439 (build-system gnu-build-system)
441 `(("libxext" ,libxext)
443 ("libxrender" ,libxrender)
446 `(("pkg-config" ,pkg-config)))
447 (home-page "https://www.x.org/") ; no dedicated Xeyes page exists
448 (synopsis "Follow-the-mouse X demo")
449 (description "Xeyes is a demo program for x.org. It shows eyes
450 following the mouse.")
451 (license license:x11)))
454 (define-public pixman
461 "https://www.cairographics.org/releases/pixman-"
465 "1ryxzdf048x7wsx4dlvrr1p00gzwfs7lybnhgc7ygbj0dvyxcrns"))
466 (patches (search-patches "pixman-CVE-2016-5296.patch"))))
467 (build-system gnu-build-system)
469 '(#:configure-flags '("--disable-static")))
474 `(("pkg-config" ,pkg-config)))
475 (home-page "http://www.pixman.org/")
476 (synopsis "Low-level pixel manipulation library")
477 (description "Pixman is a low-level software library for pixel
478 manipulation, providing features such as image compositing and trapezoid
480 (license license:x11)))
482 (define-public libdrm
490 "https://dri.freedesktop.org/libdrm/libdrm-"
495 "0p8a1l3a3s40i81mawm8nhrbk7p97ss05qkawp1yx73c30lchz67"))
496 (patches (search-patches "libdrm-symbol-check.patch"))))
497 (build-system meson-build-system)
500 '(,@(match (%current-system)
501 ((or "armhf-linux" "aarch64-linux")
506 "-Dfreedreno-kgsl=true"))
509 #:phases (modify-phases %standard-phases
512 (invoke "meson" "test" "--timeout-multiplier" "5"))))))
514 `(("libpciaccess" ,libpciaccess)))
516 `(("pkg-config" ,pkg-config)))
517 (home-page "https://dri.freedesktop.org/wiki/")
518 (synopsis "Direct rendering userspace library")
519 (description "The Direct Rendering Infrastructure, also known as the DRI,
520 is a framework for allowing direct access to graphics hardware under the
521 X Window System in a safe and efficient manner. It includes changes to the
522 X server, to several client libraries, and to the kernel (DRM, Direct
523 Rendering Manager). The most important use for the DRI is to create fast
524 OpenGL implementations providing hardware acceleration for Mesa.
525 Several 3D accelerated drivers have been written to the DRI specification,
526 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
528 (license license:x11)))
539 "http://bitmath.org/code/mtdev/mtdev-"
543 "1q700h9dqcm3zl6c3gj0qxxjcx6ibw2c51wjijydhwdcm26v5mqm"))))
544 (build-system gnu-build-system)
545 (arguments '(#:configure-flags '("--disable-static")))
546 (home-page "http://bitmath.org/code/mtdev/")
547 (synopsis "Multitouch protocol translation library")
548 (description "Mtdev is a stand-alone library which transforms all
549 variants of kernel MT events to the slotted type B protocol. The events
550 put into mtdev may be from any MT device, specifically type A without
551 contact tracking, type A with contact tracking, or type B with contact
553 (license license:x11)))
555 (define-public startup-notification
557 (name "startup-notification")
562 (uri (string-append "https://www.freedesktop.org/software/" name
563 "/releases/" name "-" version ".tar.gz"))
566 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
567 (build-system gnu-build-system)
568 (native-inputs `(("pkg-config" ,pkg-config)))
571 ("xcb-util" ,xcb-util)))
572 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
573 (synopsis "Application startup notification and feedback library")
575 "Startup-notification contains a reference implementation of the startup
576 notification protocol. The reference implementation is mostly under an X Window
577 System style license, and has no special dependencies.")
578 ;; Most of the code is provided under x11 license.
579 (license license:lgpl2.0+)))
581 (define-public wmctrl
588 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
592 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
593 (patches (search-patches "wmctrl-64-fix.patch"))))
594 (build-system gnu-build-system)
597 (list (string-append "--mandir="
598 (assoc-ref %outputs "out")
601 `(("pkg-config" ,pkg-config)))
606 (home-page "http://tomas.styblo.name/wmctrl/")
607 (synopsis "Command-line tool to control X window managers")
609 "Wmctrl interacts with an X window manager that is compatible
610 with the EWMH/NetWM specification. It can query the window manager for
611 information, and request for certain window management actions (resize and
612 move windows, switch between desktops, etc.).")
613 (license license:gpl2+)))
624 (url "https://github.com/resurrecting-open-source-projects/scrot.git")
626 (file-name (git-file-name name version))
628 (base32 "08gkdby0ysx2mki57z81zlm7vfnq9c1gq692xw67cg5vv2p3320w"))))
629 (build-system gnu-build-system)
631 `(("autoconf" ,autoconf)
632 ("autoconf-archive" ,autoconf-archive)
633 ("automake" ,automake)))
637 ("libXcursor" ,libxcursor)
638 ("libXfixes" ,libxfixes)))
639 (home-page "https://github.com/resurrecting-open-source-projects/scrot")
640 (synopsis "Command-line screen capture utility for X Window System")
642 "Scrot saves a screenshot of a full screen, a window or a part
643 of the screen selected by mouse.")
644 ;; This license removes a clause about X Consortium from the original
646 (license (license:x11-style "file://COPYING"
647 "See 'COPYING' in the distribution."))))
656 (url "https://github.com/naelstrof/slop.git")
657 (commit (string-append "v" version))))
658 (file-name (git-file-name name version))
661 "1k8xxb4rj2fylr4vj16yvsf73cyywliz9cy78pl4ibmi03jhg837"))))
662 (build-system cmake-build-system)
664 '(#:tests? #f)) ; no "check" target
670 ("libxrender" ,libxrender)
672 (home-page "https://github.com/naelstrof/slop")
673 (synopsis "Select a region and print its bounds to stdout")
675 "slop (Select Operation) is a tool that queries for a selection from a
676 user and prints the region to stdout. It grabs the mouse and turns it into a
677 crosshair, lets the user click and drag to make a selection (or click on a
678 window) while drawing a pretty box around it, then finally prints the
679 selection's dimensions to stdout.")
680 (license license:gpl3+)))
689 (url "https://github.com/naelstrof/maim.git")
690 (commit (string-append "v" version))))
691 (file-name (git-file-name name version))
694 "181mjjrjb9fs1ficcv9miqbk94v95j1yli7fjp2dj514g7nj9l3x"))))
695 (build-system cmake-build-system)
697 '(#:tests? #f)) ; no "check" target
700 ("libjpeg" ,libjpeg-turbo)
702 ("libxcomposite" ,libxcomposite)
703 ("libxfixes" ,libxfixes)
704 ("libxrandr" ,libxrandr)
708 (home-page "https://github.com/naelstrof/maim")
709 (synopsis "Screenshot utility for X Window System")
711 "maim (Make Image) is a tool that takes screenshots of your desktop and
712 saves it in any format. Along with a full screen, it allows you to capture a
713 predefined region or a particular window. Also, it makes it possible to
714 include cursor in the resulting image.")
715 (license license:gpl3+)))
717 (define-public unclutter
724 "http://ftp.x.org/contrib/utilities/unclutter-"
728 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
729 (build-system gnu-build-system)
731 '(#:tests? #f ; no check target
733 (modify-phases %standard-phases
736 (lambda* (#:key inputs outputs #:allow-other-keys)
737 (let* ((out (assoc-ref outputs "out"))
738 (bin (string-append out "/bin"))
739 (man1 (string-append out "/share/man/man1")))
742 (invoke "make" "install" "install.man"
743 (string-append "BINDIR=" bin)
744 (string-append "MANDIR=" man1))))))))
745 (inputs `(("libx11" ,libx11)))
746 (home-page "http://ftp.x.org/contrib/utilities/")
747 (synopsis "Hide idle mouse cursor")
749 "Unclutter is a program which runs permanently in the background of an
750 X11 session. It checks on the X11 pointer (cursor) position every few
751 seconds, and when it finds it has not moved (and no buttons are pressed
752 on the mouse, and the cursor is not in the root window) it creates a
753 small sub-window as a child of the window the cursor is in. The new
754 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
755 invisible cursor. This allows you to see all the text in an xterm or
756 xedit, for example. The human factors crowd would agree it should make
757 things less distracting.")
758 (license license:public-domain)))
760 (define-public xautomation
767 (uri (string-append "https://www.hoopajoo.net/static/projects/"
768 "xautomation-" version ".tar.gz"))
772 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
773 (build-system gnu-build-system)
778 ("libxtst" ,libxtst)))
780 `(("xorgproto" ,xorgproto)))
781 (synopsis "Tools to automate tasks in X such as detecting on screen images")
783 "Xautomation can control X from the command line for scripts, and
784 do visual scraping to find things on the screen. The control interface
785 allows mouse movement, clicking, button up/down, key up/down, etc, and
786 uses the XTest extension so you don't have the annoying problems that
787 xse has when apps ignore sent events. The visgrep program can find
788 images inside of images and reports the coordinates, allowing programs
789 to find buttons, etc, on the screen to click on.")
790 (home-page "https://www.hoopajoo.net/projects/xautomation.html")
791 (license license:gpl2+)))
793 (define-public xbanish
797 (home-page "https://github.com/jcs/xbanish")
800 (uri (git-reference (url home-page)
801 (commit (string-append "v" version))))
802 (file-name (git-file-name name version))
805 "0vp8ja68hpmqkl61zyjar3czhmny1hbm74m8f393incfz1ymr3i8"))))
806 (build-system gnu-build-system)
808 `(#:tests? #f ;no tests
809 #:make-flags (list "CC=gcc"
810 (string-append "PREFIX=" (assoc-ref %outputs "out")))
811 #:phases (modify-phases %standard-phases
812 (delete 'configure))))
815 ("libxfixes" ,libxfixes)
818 (synopsis "Banish the mouse cursor")
820 "@command{xbanish} hides the mouse cursor when you start typing, and
821 shows it again when the mouse cursor moves or a mouse button is pressed.")
822 (license license:bsd-3)))
824 (define-public xlockmore
830 (uri (list (string-append "http://sillycycle.com/xlock/"
831 "xlockmore-" version ".tar.xz")
832 ;; Previous releases are moved to a subdirectory.
833 (string-append "http://sillycycle.com/xlock/"
835 "xlockmore-" version ".tar.xz")))
838 "0b05wgj4mpssy4hd7km5c48i454dfg45p11mfmsr7xjd2gnz5gqi"))))
839 (build-system gnu-build-system)
841 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
842 (assoc-ref %outputs "out")
843 "/lib/X11/app-defaults"))
844 #:tests? #f)) ;no such thing as a test suite
849 ("linux-pam" ,linux-pam)))
850 (home-page "https://sillycycle.com/xlockmore.html")
851 (synopsis "Screen locker for the X Window System")
853 "XLockMore is a classic screen locker and screen saver for the
855 (license (license:non-copyleft #f "See xlock.c.")
856 ))) ; + GPLv2 in modes/glx/biof.c.
865 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
866 name "-" version ".tar.gz"))
869 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
870 (build-system gnu-build-system)
873 (list (string-append "--mandir=" %output "/share/man"))))
878 ("libxinerama" ,libxinerama)))
879 (home-page "https://sourceforge.net/projects/libxosd/")
880 (synopsis "X On Screen Display")
882 "XOSD provides a C library and a simple utility (osd_cat) for displaying
883 transparent text on your screen.")
884 (license license:gpl2+)))
886 (define-public xbindkeys
892 ;; Download from the savannah mirror list fails
894 "http://www.nongnu.org/xbindkeys/xbindkeys-"
899 "060df6d8y727jp1inp7blp44cs8a7jig7vcm8ndsn6gw36z1h3bc"))))
900 (build-system gnu-build-system)
903 ("guile" ,guile-2.0)))
904 (home-page "https://www.nongnu.org/xbindkeys/")
905 (synopsis "Associate a combination of keys with a shell command")
907 "XBindKeys is a program that allows you to launch shell commands with
908 your keyboard or your mouse under the X Window System. It links commands to
909 keys or mouse buttons, using a configuration file. It's independent of the
910 window manager and can capture all keyboard keys (ex: Power, Wake...). It
911 optionally supports a Guile-based configuration file layout, which enables you
912 to access all XBindKeys internals, so you can have key combinations, double
913 clicks or timed double clicks take actions. Also all functions that work in
914 Guile will work for XBindKeys.")
915 (license license:gpl2+)))
925 (url "https://github.com/baskerville/sxhkd")
927 (file-name (git-file-name name version))
929 (base32 "0j7bl2l06r0arrjzpz7al9j6cwzc730knbsijp7ixzz96pq7xa2h"))))
930 (build-system gnu-build-system)
932 `(("asciidoc" ,asciidoc)
934 ("xcb-util" ,xcb-util)
935 ("xcb-util-keysyms" ,xcb-util-keysyms)
936 ("xcb-util-wm" ,xcb-util-wm)))
938 `(#:phases (modify-phases %standard-phases (delete 'configure))
939 #:tests? #f ; no check target
942 (string-append "PREFIX=" %output)
943 ;; Keep the documentation where the build system installs LICENSE.
944 (string-append "DOCPREFIX=" %output
945 "/share/doc/" ,name "-" ,version))))
946 (home-page "https://github.com/baskerville/sxhkd")
947 (synopsis "Simple X hotkey daemon")
948 (description "sxhkd is a simple X hotkey daemon with a powerful and
949 compact configuration syntax.")
950 (license license:bsd-2)))
952 (define-public rxvt-unicode
954 (name "rxvt-unicode")
958 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
959 name "-" version ".tar.bz2"))
960 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
963 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
964 (build-system gnu-build-system)
966 ;; This sets the destination when installing the necessary terminal
967 ;; capability data, which are not provided by 'ncurses'. See
968 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
969 `(#:make-flags (list (string-append "TERMINFO="
970 (assoc-ref %outputs "out")
973 (modify-phases %standard-phases
974 (add-after 'install 'install-desktop-urxvt
975 (lambda* (#:key outputs #:allow-other-keys)
976 (let* ((output (assoc-ref outputs "out"))
977 (desktop (string-append output "/share/applications")))
980 (string-append desktop "/urxvt.desktop")
987 TryExec=~@*~a/bin/urxvt~@
992 (add-after 'install 'install-desktop-urxvtc
993 (lambda* (#:key outputs #:allow-other-keys)
994 (let* ((output (assoc-ref outputs "out"))
995 (desktop (string-append output "/share/applications")))
998 (string-append desktop "/urxvtc.desktop")
1002 Name=rxvt-unicode (client)~@
1003 Comment=Rxvt clone with XFT and unicode support~@
1004 Exec=~a/bin/urxvtc~@
1005 TryExec=~@*~a/bin/urxvtc~@
1011 `(("libXft" ,libxft)
1012 ("libX11" ,libx11)))
1014 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
1016 ("pkg-config" ,pkg-config)))
1017 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
1018 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
1019 (native-search-paths
1020 (list (search-path-specification
1021 (variable "TERMINFO_DIRS")
1022 (files '("share/terminfo")))))
1023 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
1024 (synopsis "Rxvt clone with XFT and unicode support")
1025 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
1026 intended as an xterm replacement for users who do not require features such as
1027 Tektronix 4014 emulation and toolkit-style configurability. It supports
1028 unicode, XFT and may be extended with Perl plugins. It also comes with a
1029 client/daemon pair that lets you open any number of terminal windows from
1030 within a single process.")
1031 (license license:gpl3+)))
1033 (define-public xcape
1040 (url "https://github.com/alols/xcape.git")
1041 (commit (string-append "v" version))))
1042 (file-name (git-file-name name version))
1045 "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm"))))
1046 (build-system gnu-build-system)
1048 `(#:tests? #f ; no check target
1049 ;; no configure script
1050 #:phases (modify-phases %standard-phases (delete 'configure))
1051 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1052 "MANDIR=/share/man/man1"
1055 `(("libxtst" ,libxtst)
1056 ("libx11" ,libx11)))
1058 `(("pkg-config" ,pkg-config)))
1059 (home-page "https://github.com/alols/xcape")
1060 (synopsis "Use a modifier key in X.org as another key")
1062 "This utility for X.org uses a modifier key as another key when
1063 pressed and released on its own. The default behaviour is to generate the
1064 Escape key when Left Control is pressed and released on its own.")
1065 (license license:gpl3+)))
1067 (define-public libwacom
1074 "https://github.com/linuxwacom/libwacom/releases/download/"
1075 "libwacom-" version "/libwacom-" version ".tar.bz2"))
1078 "0g48cdg2qpvrr2nk8ccibjg3iv7iqskdv66izxacqx70w47y1771"))))
1079 (build-system glib-or-gtk-build-system)
1081 `(#:configure-flags '("--disable-static")))
1083 `(("pkg-config" ,pkg-config)))
1086 ("libgudev" ,libgudev)
1088 ("libxml2" ,libxml2)))
1090 ;; libwacom includes header files that include GLib, and libinput uses
1091 ;; those header files.
1093 (home-page "https://linuxwacom.github.io/")
1094 (synopsis "Helper library for Wacom tablet settings")
1096 "Libwacom is a library to help implement Wacom tablet settings. It is
1097 intended to be used by client-programs that need model identification. It is
1098 already being used by the gnome-settings-daemon and the GNOME Control Center
1099 Wacom tablet applet.")
1100 (license license:x11)))
1102 (define-public xf86-input-wacom
1104 (name "xf86-input-wacom")
1110 "https://github.com/linuxwacom/xf86-input-wacom/releases/download/"
1111 "xf86-input-wacom-" version "/"
1112 "xf86-input-wacom-" version ".tar.bz2"))
1114 (base32 "11qk58az6qwii774ga45h5yqzipwn56f0d74kdbajqdv45p85gqj"))))
1117 (list (string-append "--with-sdkdir="
1118 (assoc-ref %outputs "out")
1120 (string-append "--with-xorg-conf-dir="
1121 (assoc-ref %outputs "out")
1122 "/share/X11/xorg.conf.d"))))
1123 (build-system gnu-build-system)
1125 `(("pkg-config" ,pkg-config)))
1127 `(("xorg-server" ,xorg-server)
1128 ("libxrandr" ,libxrandr)
1129 ("libxinerama" ,libxinerama)
1132 (home-page "https://linuxwacom.github.io/")
1133 (synopsis "Wacom input driver for X")
1135 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
1136 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
1137 (license license:x11)))
1139 (define-public redshift
1147 (string-append "https://github.com/jonls/redshift/"
1148 "releases/download/v" version
1149 "/redshift-" version ".tar.xz"))
1152 "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j"))))
1153 (build-system gnu-build-system)
1155 `(("pkg-config" ,pkg-config)
1156 ("intltool" ,intltool)))
1158 `(("libdrm" ,libdrm)
1161 ("libxxf86vm" ,libxxf86vm)
1162 ("glib" ,glib))) ; for Geoclue2 support
1163 (home-page "https://github.com/jonls/redshift")
1164 (synopsis "Adjust the color temperature of your screen")
1166 "Redshift adjusts the color temperature according to the position of the
1167 sun. A different color temperature is set during night and daytime. During
1168 twilight and early morning, the color temperature transitions smoothly from
1169 night to daytime temperature to allow your eyes to slowly adapt. At night the
1170 color temperature should be set to match the lamps in your room.")
1171 (license license:gpl3+)))
1173 (define-public redshift-wayland
1174 (let ((commit "7da875d34854a6a34612d5ce4bd8718c32bec804")
1177 (name "redshift-wayland")
1178 (version (string-append "1.12-"
1179 revision "." (string-take commit 7)))
1183 (url "https://github.com/minus7/redshift.git")
1185 (file-name (string-append name "-" version))
1188 "0nbkcw3avmzjg1jr1g9yfpm80kzisy55idl09b6wvzv2sz27n957"))))
1189 (build-system gnu-build-system)
1191 `(("autoconf" ,autoconf)
1192 ("automake" ,automake)
1193 ("libtool" ,libtool)
1194 ("pkg-config" ,pkg-config)
1195 ("intltool" ,intltool)))
1197 `(("libdrm" ,libdrm)
1200 ("libxxf86vm" ,libxxf86vm)
1201 ("glib" ,glib) ; for Geoclue2 support
1202 ("wayland" ,wayland)))
1203 (home-page "https://github.com/minus7/redshift")
1204 (synopsis "Adjust the color temperature of your screen (with Wayland support)")
1206 "Redshift adjusts the color temperature according to the position of the
1207 sun. A different color temperature is set during night and daytime. During
1208 twilight and early morning, the color temperature transitions smoothly from
1209 night to daytime temperature to allow your eyes to slowly adapt. At night the
1210 color temperature should be set to match the lamps in your room.
1212 This is a fork with added support for Wayland using the wlr-gamma-control
1214 (license license:gpl3+))))
1216 (define-public xscreensaver
1218 (name "xscreensaver")
1224 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
1227 (base32 "15bv05vpfjwsrqbazrjmm382jd7vvw0mp6y9vasn6wvxzjf0in3k"))))
1228 (build-system gnu-build-system)
1230 `(#:tests? #f ; no check target
1232 (modify-phases %standard-phases
1233 (add-before 'configure 'adjust-gtk-resource-paths
1235 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
1236 (("@GTK_DATADIR@") "@datadir@")
1237 (("@PO_DATADIR@") "@datadir@"))
1239 #:configure-flags '("--with-pam" "--with-proc-interrupts"
1240 "--without-readdisplay")
1241 #:make-flags (list (string-append "AD_DIR="
1242 (assoc-ref %outputs "out")
1243 "/lib/X11/app-defaults"))))
1245 `(("pkg-config" ,pkg-config)
1246 ("intltool" ,intltool)))
1248 `(("libx11" ,libx11)
1249 ("libxext" ,libxext)
1255 ("libglade" ,libglade)
1256 ("libxml2" ,libxml2)
1258 ("libjpeg" ,libjpeg-turbo)
1259 ("linux-pam" ,linux-pam)
1265 ("libxrandr" ,libxrandr)
1268 (home-page "https://www.jwz.org/xscreensaver/")
1269 (synopsis "Classic screen saver suite supporting screen locking")
1271 "xscreensaver is a popular screen saver collection with many entertaining
1272 demos. It also acts as a nice screen locker.")
1273 ;; xscreensaver doesn't have a single copyright file and instead relies on
1274 ;; source comment headers, though most files have the same lax
1275 ;; permissions. To reduce complexity, we're pointing at Debian's
1276 ;; breakdown of the copyright information.
1277 (license (license:non-copyleft
1279 "http://metadata.ftp-master.debian.org/changelogs/"
1280 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1288 (uri (string-append "http://www.vergenet.net/~conrad/software"
1289 "/xsel/download/xsel-" version ".tar.gz"))
1292 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1293 (build-system gnu-build-system)
1295 `(("libxt" ,libxt)))
1296 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1297 (synopsis "Manipulate X selection")
1299 "XSel is a command-line program for getting and setting the contents of
1300 the X selection. Normally this is only accessible by manually highlighting
1301 information and pasting it with the middle mouse button.
1303 XSel reads from standard input and writes to standard output by default,
1304 but can also follow a growing file, display contents, delete entries and more.")
1305 (license (license:x11-style "file://COPYING"
1306 "See COPYING in the distribution."))))
1308 (define-public xdpyprobe
1314 (uri (string-append "https://github.com/alezost/" name
1315 "/releases/download/v" version
1316 "/" name "-" version ".tar.gz"))
1319 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1320 (build-system gnu-build-system)
1322 `(("libx11" ,libx11)))
1323 (home-page "https://github.com/alezost/xdpyprobe")
1324 (synopsis "Probe X server for connectivity")
1326 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1327 connectivity of the X server running on a particular @code{DISPLAY}.")
1328 (license license:gpl3+)))
1336 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1337 "releases/download/"
1338 version "/rofi-" version ".tar.xz"))
1341 "1nslmyqyzhfr4hxd4llqkkkb8ap8apkdna32rllvar7r576059ci"))))
1342 (build-system gnu-build-system)
1347 ("startup-notification" ,startup-notification)
1348 ("librsvg" ,librsvg)
1349 ("libxkbcommon" ,libxkbcommon)
1351 ("xcb-util" ,xcb-util)
1352 ("xcb-util-xrm" ,xcb-util-xrm)
1353 ("xcb-util-wm" ,xcb-util-wm)))
1358 ("glib:bin" ,glib "bin")
1359 ("pkg-config" ,pkg-config)))
1361 `(#:parallel-tests? #f ; fails in some circumstances
1363 (modify-phases %standard-phases
1364 (add-before 'configure 'adjust-tests
1366 (substitute* '("test/helper-expand.c")
1369 (("g_get_home_dir \\(\\)") "\"/\""))
1371 (home-page "https://github.com/DaveDavenport/rofi")
1372 (synopsis "Application launcher")
1373 (description "Rofi is a minimalist application launcher. It memorizes which
1374 applications you regularly use and also allows you to search for an application
1376 (license license:expat)))
1378 (define-public tint2
1384 (uri (string-append "https://gitlab.com/o9000/" name
1385 "/repository/archive.tar.gz?ref=" version))
1386 (file-name (string-append name "-" version ".tar.gz"))
1389 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1390 (build-system cmake-build-system)
1392 '(#:tests? #f ;no test target
1394 (modify-phases %standard-phases
1395 (add-after 'unpack 'fix-installation-prefix
1397 (substitute* "CMakeLists.txt"
1398 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))
1403 ("librsvg" ,librsvg)
1404 ("libxcomposite" ,libxcomposite)
1405 ("libxdamage" ,libxdamage)
1407 ("libxinerama" ,libxinerama)
1408 ("libxrandr" ,libxrandr)
1409 ("startup-notification" ,startup-notification)))
1411 `(("gettext" ,gettext-minimal)
1412 ("pkg-config" ,pkg-config)))
1413 (home-page "https://gitlab.com/o9000/tint2")
1414 (synopsis "Lightweight task bar")
1416 "Tint2 is a simple task bar made for modern X window managers. It was
1417 specifically made for Openbox but it should also work with other window
1418 managers (GNOME, KDE, XFCE etc.).
1420 The taskbar includes transparency and color settings for the font, icons,
1421 border, and background. It also supports multihead setups, customized mouse
1422 actions, a built-in clock, a battery monitor and a system tray.")
1423 (license license:gpl2)))
1426 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1430 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1431 revision "." (string-take commit 7)))
1435 (url "https://github.com/robm/dzen.git")
1437 (file-name (string-append name "-" version))
1440 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1441 (build-system gnu-build-system)
1443 `(#:tests? #f ; No test suite.
1444 #:make-flags ; Replacement for `config.mk`.
1446 (string-append "VERSION = " ,version)
1447 (string-append "PREFIX = " %output)
1448 "MANPREFIX = ${PREFIX}/share/man"
1450 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1451 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1452 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1457 (modify-phases %standard-phases
1458 (delete 'configure) ; No configuration script.
1459 ;; Use own make-flags instead of `config.mk`.
1460 (add-before 'build 'dont-include-config-mk
1462 (substitute* "Makefile" (("include config.mk") ""))
1465 `(("libx11" ,libx11)
1468 ("libxinerama" ,libxinerama)))
1469 (native-inputs `(("pkg-config" ,pkg-config)))
1470 (synopsis "General purpose messaging, notification and menuing program for X11")
1471 (description "Dzen is a general purpose messaging, notification and menuing
1472 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1473 (home-page "https://github.com/robm/dzen")
1474 (license license:expat))))
1476 (define-public xftwidth
1479 (version "20170402")
1484 (url "http://github.com/vixus0/xftwidth")
1485 (commit "35ff963908d41a8a6a7101c434c88255728025ee")))
1488 "1jwl25785li24kbp0m1wxfwk4dgxkliynn03nsj813cjr34kq16h"))
1489 (file-name (string-append name "-" version "-checkout"))))
1490 (build-system gnu-build-system)
1491 (inputs `(("freetype" ,freetype)
1493 ("fontconfig" ,fontconfig)
1494 ("libxft" ,libxft)))
1496 `(("pkg-config" ,pkg-config)))
1499 (modify-phases %standard-phases
1500 (add-after 'unpack 'fix-makefile ; /usr/bin doesn't show up in PATH
1501 (lambda _ (substitute* "Makefile" (("usr/") "")) #t))
1502 (delete 'check) ; no check included in Makefile
1503 (delete 'configure))
1505 (let ((out (assoc-ref %outputs "out")))
1506 (list (string-append "DESTDIR=" out)))))
1507 (synopsis "Calculator for determining pixel widths of displayed text using Xft fonts")
1508 (description "xftwidth is a small C program for calculating the pixel
1509 widths of displayed text using Xft fonts. It is especially useful in scripts
1510 for displaying text in graphical panels, menus, popups, and notification
1511 windows generated using dzen. These scripts are often used in conjunction with
1512 minimalistic tiling window managers such as herbstluftwm and bspwm.")
1513 (home-page "http://github.com/vixus0/xftwidth")
1514 (license license:expat)))
1516 (define-public xcb-util-xrm
1518 (name "xcb-util-xrm")
1523 "https://github.com/Airblader/xcb-util-xrm/releases"
1524 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1527 "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h"))
1528 (modules '((guix build utils)))
1532 (delete-file-recursively "m4")
1534 (build-system gnu-build-system)
1536 `(("pkg-config" ,pkg-config)
1538 ("libx11" ,libx11))) ; for tests
1540 `(("libxcb" ,libxcb)
1541 ("xcb-util" ,xcb-util)))
1542 (home-page "https://github.com/Airblader/xcb-util-xrm")
1543 (synopsis "XCB utility functions for the X resource manager")
1545 "The XCB util module provides a number of libraries which sit on
1546 top of libxcb, the core X protocol library, and some of the extension
1547 libraries. These experimental libraries provide convenience functions
1548 and interfaces which make the raw X protocol more usable. Some of the
1549 libraries also provide client-side code which is not strictly part of
1550 the X protocol but which has traditionally been provided by Xlib.
1552 XCB util-xrm module provides the following libraries:
1554 - xrm: utility functions for the X resource manager.")
1555 (license license:x11)))
1557 (define-public xcalib
1561 (home-page "https://github.com/OpenICC/xcalib")
1567 (file-name (git-file-name name version))
1570 "05fzdjmhiafgi2jf0k41i3nm0837a78sb6yv59cwc23nla8g0bhr"))
1573 ;; Add missing documentation for the new --output option.
1574 ;; This upstream patch can be removed on the next update.
1578 home-page "/commit/"
1579 "ae03889b91fe984b18e925ad2b5e6f2f7354e058.patch"))
1580 (file-name "xcalib-update-man-page.patch")
1583 "0f7b4d5484x4b9n1bwhqmar0kcaa029ffff7bp3xpr734n1qgqb6")))))))
1584 (build-system cmake-build-system)
1586 '(#:tests? #f)) ; no test suite
1587 (inputs `(("libx11" ,libx11)
1588 ("libxext" ,libxext)
1589 ("libxrandr" ,libxrandr)
1590 ("libxxf86vm" ,libxxf86vm)))
1591 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1592 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1593 profiles to the video card's gamma ramp. It does work with most video card
1594 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1595 invert colors on a specific display/screen.")
1596 (license license:gpl2)))
1598 (define-public nxbelld
1605 (url "https://github.com/dusxmt/nxbelld.git")
1609 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1610 (file-name (git-file-name name version))))
1611 (build-system gnu-build-system)
1612 (arguments '(#:configure-flags `("--enable-sound"
1615 (native-inputs `(("autoconf" ,autoconf)
1616 ("automake" ,automake)
1617 ("pkg-config" ,pkg-config)
1619 (inputs `(("libx11" ,libx11)
1620 ("alsa-lib" ,alsa-lib)))
1621 (synopsis "Daemon that performs an action every time the X11 bell is rung")
1622 (description "nxbelld is a tiny utility to aid people who either don't
1623 like the default PC speaker beep, or use a sound driver that doesn't have
1624 support for the PC speaker. The utility performs a given action every time
1625 the X bell is rung. The actions nxbelld can currently perform include running
1626 a specified program, emulating the PC speaker beep using the sound card (default),
1627 or playing a PCM encoded WAVE file.")
1628 (home-page "https://github.com/dusxmt/nxbelld")
1629 (license license:gpl3+)))
1631 (define-public xautolock
1637 (uri (string-append "https://www.ibiblio.org/pub/linux/X11/"
1638 "screensavers/xautolock-" version ".tgz"))
1641 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1642 (build-system gnu-build-system)
1644 `(("imake" ,imake)))
1646 `(("libx11" ,libx11)
1647 ("libxext" ,libxext)
1648 ("libxscrnsaver" ,libxscrnsaver)))
1652 (modify-phases %standard-phases
1654 (lambda* (#:key inputs outputs #:allow-other-keys)
1655 (let ((imake (assoc-ref inputs "imake"))
1656 (out (assoc-ref outputs "out")))
1657 ;; Generate Makefile
1659 (substitute* "Makefile"
1660 ;; These imake variables somehow remain undefined
1661 (("DefaultGcc2[[:graph:]]*Opt") "-O2")
1662 ;; Reset a few variable defaults that are set in imake templates
1664 (("(MANPATH = )[[:graph:]]*" _ front)
1665 (string-append front out "/share/man")))
1666 ;; Old BSD-style 'union wait' is unneeded (defining
1667 ;; _USE_BSD did not seem to fix it)
1668 (substitute* "src/engine.c"
1669 (("union wait status") "int status = 0"))
1671 (add-after 'install 'install/man
1673 (invoke "make" "install.man"))))))
1674 (home-page "https://ibiblio.org/pub/Linux/X11/screensavers/")
1675 (synopsis "Program launcher for idle X sessions")
1676 (description "Xautolock monitors input devices under the X Window
1677 System, and launches a program of your choice if there is no activity after
1678 a user-configurable period of time.")
1679 (license license:gpl2)))
1681 (define-public screen-message
1683 (name "screen-message")
1688 "https://www.joachim-breitner.de/archive/screen-message"
1689 "/screen-message-" version ".tar.gz"))
1692 "1lw955qq5pq010lzmaf32ylj2iprgsri9ih4hx672c3f794ilab0"))))
1693 (build-system gnu-build-system)
1694 (inputs `(("gtk3" ,gtk+)
1697 (native-inputs `(("pkg-config" ,pkg-config)))
1699 ;; The default configure puts the 'sm' binary in games/ instead of bin/ -
1701 `(#:make-flags (list (string-append "execgamesdir=" %output "/bin"))))
1702 (synopsis "Print messages on your screen")
1703 (description "@code{screen-message} is a tool for displaying text on
1704 your screen. It will make the text as large as possible and display it
1705 with black color on a white background (colors are configurable on the
1707 (home-page "https://www.joachim-breitner.de/projects#screen-message")
1708 (license license:gpl2+)))
1710 (define-public xss-lock
1711 ;; xss-lock does not seem to be maintained any longer, but the last commits
1712 ;; fix important issues so we package them.
1713 (let ((version "0.3.0")
1715 (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717"))
1718 (version (git-version version revision commit))
1722 (url "https://bitbucket.org/raymonad/xss-lock.git")
1724 (file-name (git-file-name name version))
1727 "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r"))))
1728 (build-system cmake-build-system)
1729 (inputs `(("glib" ,glib)
1730 ("xcb-util" ,xcb-util)))
1732 `(("python-docutils" ,python-docutils)
1733 ("pkg-config" ,pkg-config)))
1736 (synopsis "Use external screen locker on events")
1737 (description "@code{xss-lock} listens to X signals to fire up a
1738 user-defined screensaver. In effect this automatically locks the
1739 screen when closing a laptop lid or after a period of user inactivity (as set
1740 with @code{xset s TIMEOUT}). The notifier command, if specified, is executed
1741 first. Additionally, xss-lock uses the inhibition logic to lock the screen
1742 before the system goes to sleep.")
1743 (home-page "https://bitbucket.org/raymonad/xss-lock")
1744 (license license:expat))))
1746 (define-public python-pyperclip
1748 (name "python-pyperclip")
1753 (uri (pypi-uri "pyperclip" version))
1756 "1p505c23ji06r28k1y67siihsbdzdf1brhlqpyv9ams4gk9863pp"))))
1757 (build-system python-build-system)
1759 '(#:tests? #f)) ; Not clear how to make tests pass.
1763 (home-page "https://github.com/asweigart/pyperclip")
1764 (synopsis "Python clipboard module")
1766 "Pyperclip is a clipboard module for Python, handling copy/pasting from
1768 (license license:bsd-3)))
1770 (define-public numlockx
1777 ;; It seems that upstream is gone.
1778 (url "https://github.com/rg3/numlockx")
1780 (file-name (git-file-name name version))
1783 "1w49fayhwzn5rx0z1q2lrvm7z8jrd34lgb89p853a024bixc3cf2"))))
1784 (build-system gnu-build-system)
1786 `(("xorg-server" ,xorg-server)))
1787 (home-page "https://github.com/rg3/numlockx")
1788 (synopsis "Turns on the numlock key in X11")
1789 (description "@command{numlockx} is a tiny program that lets you turn on
1790 the numlock key in X11. It can be called from the user's initialization files
1791 to automatically turn it on on login.")
1792 (license license:expat)))
1794 (define-public xrandr-invert-colors
1796 (name "xrandr-invert-colors")
1801 (url "https://github.com/zoltanp/xrandr-invert-colors.git")
1802 (commit (string-append "v" version))))
1803 (file-name (git-file-name name version))
1806 "1br3x9vr6xm4ika06n8cfxx1b3wdchdqvyzjl4y1chmivrml8x9h"))))
1807 (build-system gnu-build-system)
1809 `(#:make-flags (list "CC=gcc")
1810 #:tests? #f ; there are none
1812 (modify-phases %standard-phases
1815 (lambda* (#:key outputs #:allow-other-keys)
1816 (let* ((out (assoc-ref outputs "out"))
1817 (bin (string-append out "/bin")))
1818 (install-file "xrandr-invert-colors.bin" bin)
1821 `(("libxrandr" ,libxrandr)))
1822 (home-page "https://github.com/zoltanp/xrandr-invert-colors")
1823 (synopsis "Invert display colors")
1824 (description "This package provides a small utility for inverting the
1825 colors on all monitors attached to an XRandR-capable X11 display server.")
1826 (license license:gpl3+)))
1836 (string-append "https://www.umaxx.net/dl/sct-"
1840 "0r57z9ki8pvxhawfxys0v5h85z2x211sqxki0xvk1bga88ryldlv"))))
1841 (build-system gnu-build-system)
1843 '(#:make-flags (list "CC=gcc")
1844 #:tests? #f ; No tests exist.
1846 (modify-phases %standard-phases
1848 (add-after 'unpack 'fix-sctd-paths
1849 (lambda* (#:key outputs inputs #:allow-other-keys)
1850 (let ((out (assoc-ref outputs "out"))
1851 (coreutils (assoc-ref inputs "coreutils"))
1852 (inetutils (assoc-ref inputs "inetutils"))
1853 (sed (assoc-ref inputs "sed")))
1854 (substitute* "sctd.sh"
1855 (("\\$\\(which sct\\)") (string-append out "/bin/sct"))
1856 (("date") (string-append coreutils "/bin/date"))
1857 (("printf") (string-append coreutils "/bin/printf"))
1858 (("sleep") (string-append coreutils "/bin/sleep"))
1859 (("logger") (string-append inetutils "/bin/logger"))
1860 (("sed") (string-append sed "/bin/sed"))))))
1862 (lambda* (#:key outputs #:allow-other-keys)
1863 (let ((out (assoc-ref outputs "out")))
1864 (install-file "sct" (string-append out "/bin"))
1865 (install-file "sctd.sh" (string-append out "/bin"))
1866 (install-file "sct.1" (string-append out "/man/man1"))
1867 (install-file "sctd.1" (string-append out "/man/man1"))
1868 (rename-file (string-append out "/bin/sctd.sh")
1869 (string-append out "/bin/sctd"))
1872 `(("coreutils" ,coreutils) ; sctd uses "date", "printf" and "sleep"
1873 ("inetutils" ,inetutils) ; sctd uses "logger"
1874 ("libxrandr" ,libxrandr)
1875 ("sed" ,sed))) ; sctd uses "sed"
1876 (home-page "https://www.umaxx.net")
1877 (synopsis "Set the color temperature of the screen")
1878 (description "@code{sct} is a lightweight utility to set the color
1879 temperature of the screen.")
1880 (license (license:non-copyleft "file://sct.c")))) ; "OpenBSD" license
1882 (define-public xsecurelock
1884 (name "xsecurelock")
1889 "https://github.com/google/xsecurelock/releases"
1890 "/download/v" version "/xsecurelock-" version ".tar.gz"))
1892 (base32 "070gknyv0s5hz9hkc6v73m2v7ssyjwgl93b5hd4glayfqxqjbmdp"))))
1893 (build-system gnu-build-system)
1896 '("--with-pam-service-name=login"
1898 "--with-default-authproto-module=/run/setuid-programs/authproto_pam")))
1900 `(("pandoc" ,ghc-pandoc)
1901 ("pkg-config" ,pkg-config)))
1903 `(("fontconfig" ,fontconfig)
1905 ("libxcomposite" ,libxcomposite)
1906 ("libxext" ,libxext)
1907 ("libxfixes" ,libxfixes)
1910 ("libxrandr" ,libxrandr)
1911 ("libxscrnsaver" ,libxscrnsaver)
1912 ("linux-pam" ,linux-pam)))
1913 (home-page "https://github.com/google/xsecurelock")
1914 (synopsis "X11 screen lock utility with the primary goal of security")
1915 (description "@code{xsecurelock} is an X11 screen locker which uses
1916 a modular design to avoid the usual pitfalls of screen locking utility design.
1918 As a consequence of the modular design, the usual screen locker service
1919 shouldn't be used with @code{xsecurelock}. Instead, you need to add a helper
1920 binary to setuid-binaries:
1922 (setuid-programs (cons*
1923 (file-append xsecurelock \"/libexec/xsecurelock/authproto_pam\")
1926 (license license:asl2.0)))
1928 (define-public wl-clipboard
1930 (name "wl-clipboard")
1936 (url "https://github.com/bugaevc/wl-clipboard.git")
1937 (commit (string-append "v" version))))
1938 (file-name (git-file-name name version))
1940 (base32 "0c4w87ipsw09aii34szj9p0xfy0m00wyjpll0gb0aqmwa60p0c5d"))))
1941 (build-system meson-build-system)
1943 `(("pkg-config" ,pkg-config)))
1945 `(("wayland" ,wayland)
1946 ("wayland-protocols" ,wayland-protocols)))
1947 (home-page "https://github.com/bugaevc/wl-clipboard")
1948 (synopsis "Command-line copy/paste utilities for Wayland")
1949 (description "Wl-clipboard is a set of command-line copy/paste utilities for
1951 (license license:gpl3+)))
1953 (define-public autocutsel
1959 (uri (string-append "https://github.com/sigmike/autocutsel"
1960 "/releases/download/" version "/"
1961 "autocutsel-" version ".tar.gz"))
1964 "0gsys2dzh4az51ndcsabhlbbrjn2nm75lnjr45kg6r8sm8q66dx2"))))
1965 (build-system gnu-build-system)
1967 '(#:tests? #f)) ; no "check" target
1968 (native-inputs `(("libx11" ,libx11)
1969 ("libxaw" ,libxaw)))
1970 (home-page "https://www.nongnu.org/autocutsel/")
1971 (synopsis "Automated X11 clipboard and cutbuffer synchronization")
1972 (description "@code{autocutsel} tracks changes in the server's cutbuffer
1973 and clipboard selection. When the clipboard is changed, it updates the
1974 cutbuffer. When the cutbuffer is changed, it owns the clipboard selection.
1975 The cutbuffer and clipboard selection are always synchronized.")
1976 (license license:gpl2+)))
1978 (define-public jgmenu
1986 (url "https://github.com/johanmalm/jgmenu.git")
1987 (commit (string-append "v" version))))
1988 (file-name (git-file-name name version))
1991 "1wsh37rapb1bszlq36hvwxqvfds39hbvbl152m8as4zlh93wfvvk"))))
1992 (build-system gnu-build-system)
1994 `(("cppcheck" ,cppcheck)
1996 ("pkg-config" ,pkg-config)))
2000 ("librsvg" ,librsvg)
2002 ("libxml2" ,libxml2)
2003 ("libxrandr" ,libxrandr)
2007 (modify-phases %standard-phases
2008 (add-after 'unpack 'fix-tests
2010 (substitute* "scripts/cppcheck-wrapper.sh"
2011 (("--library=/usr/share/cppcheck/cfg/gnu\\.cfg")
2015 (lambda* (#:key outputs #:allow-other-keys)
2017 (invoke "./configure"
2018 (string-append "--prefix=" (assoc-ref outputs "out")))
2020 (synopsis "Simple X11 menu")
2022 "This is a simple menu for X11 designed for scripting and tweaking. It
2023 can optionally use some appearance settings from XSettings, tint2 and GTK.")
2024 (home-page "https://jgmenu.github.io/")
2025 (license license:gpl2)))
2027 (define-public xwallpaper
2035 (url "https://github.com/stoeckmann/xwallpaper")
2036 (commit (string-append "v" version))))
2037 (file-name (git-file-name name version))
2040 "175fzifvia58vah2x7509drvfn3xfv5d9szgh9x1w1a1w8rcs2hx"))))
2041 (build-system gnu-build-system)
2043 `(("autoconf" ,autoconf)
2044 ("automake" ,automake)
2045 ("pkg-config" ,pkg-config)))
2047 `(("libjpeg-turbo" ,libjpeg-turbo)
2051 ("xcb-util" ,xcb-util)
2052 ("xcb-util-image" ,xcb-util-image)))
2053 (home-page "https://github.com/stoeckmann/xwallpaper")
2054 (synopsis "Wallpaper setting utility for X")
2056 "The xwallpaper utility allows you to set image files as your X
2057 wallpaper. JPEG, PNG, and XPM file formats are supported.
2059 The wallpaper is also advertised to programs which support semi-transparent
2061 (license license:isc)))
2063 (define-public xwrits
2070 (uri (string-append "https://www.lcdf.org/~eddietwo/xwrits/"
2071 "xwrits-" version ".tar.gz"))
2073 (base32 "1n7y0fqpcvmzznvbsn14hzy5ddaa3lilm8aw6ckscqndnh4lijma"))))
2074 (build-system gnu-build-system)
2077 (modify-phases %standard-phases
2078 (add-after 'install 'install-docs
2079 (lambda* (#:key outputs #:allow-other-keys)
2080 (let* ((out (assoc-ref outputs "out"))
2081 (doc (string-append out "/share/doc/xwrits")))
2082 (install-file "GESTURES" doc)
2083 (install-file "README" doc)
2086 `(("libx11" ,libx11)
2087 ("libxinerama" ,libxinerama)))
2088 (home-page "https://www.lcdf.org/~eddietwo/xwrits/")
2089 (synopsis "Reminds you to take wrist breaks")
2090 (description "Xwrits reminds you to take wrist breaks for prevention or
2091 management of repetitive stress injuries. When you should take a break, it
2092 pops up an X window, the warning window. You click on the warning window,
2093 then take a break. The window changes appearance while you take the break.
2094 It changes again when your break is over. Then you just resume typing.
2095 Xwrits hides itself until you should take another break.")
2096 (license license:gpl2)))
2098 (define-public xsettingsd
2106 (url "https://github.com/derat/xsettingsd.git")
2107 (commit (string-append "v" version))))
2108 (file-name (git-file-name name version))
2111 "05m4jlw0mgwp24cvyklncpziq1prr2lg0cq9c055sh4n9d93d07v"))))
2112 (build-system scons-build-system)
2114 `(("libx11" ,libx11)))
2116 `(("pkg-config" ,pkg-config)
2117 ("googletest" ,googletest)
2118 ("googletest-source" ,(package-source googletest))))
2120 `(#:scons ,scons-python2
2124 (modify-phases %standard-phases
2125 (add-before 'build 'patch-sconstruct
2126 (lambda* (#:key inputs #:allow-other-keys)
2127 (substitute* "SConstruct"
2128 ;; scons doesn't pick up environment variables automatically
2129 ;; so it needs help to find path variables
2130 (("env = Environment\\(")
2133 'PATH': os.environ['PATH'],
2134 'CPATH': os.environ['C_INCLUDE_PATH'],
2135 'LIBRARY_PATH': os.environ['LIBRARY_PATH'],
2136 'PKG_CONFIG_PATH': os.environ['PKG_CONFIG_PATH']
2138 ;; Update path to gtest source files used in tests
2139 (("/usr/src/gtest") (string-append
2140 (assoc-ref inputs "googletest-source")
2142 ;; Exclude one warning that causes a build error
2143 (("-Werror") "-Werror -Wno-error=sign-compare"))
2145 ;; The SConstruct script doesn't configure installation so
2146 ;; binaries must be copied to the output path directly
2148 (lambda* (#:key outputs #:allow-other-keys)
2149 (let* ((out (assoc-ref outputs "out"))
2150 (bin (string-append out "/bin")))
2152 (install-file "xsettingsd" bin)
2153 (install-file "dump_xsettings" bin)
2155 (home-page "https://github.com/derat/xsettingsd")
2156 (synopsis "Xorg settings daemon")
2157 (description "@command{xsettingsd} is a lightweight daemon that provides settings to
2158 Xorg applications via the XSETTINGS specification. It is used for defining
2159 font and theme settings when a complete desktop environment (GNOME, KDE) is
2160 not running. With a simple @file{.xsettingsd} configuration file one can avoid
2161 configuring visual settings in different UI toolkits separately.")
2162 (license license:bsd-3)))
2164 (define-public clipnotify
2172 (url "https://github.com/cdown/clipnotify.git")
2174 (file-name (git-file-name name version))
2177 "1v3ydm5ljy8z1savmdxrjyx7a5bm5013rzw80frp3qbbjaci0wbg"))))
2178 (build-system gnu-build-system)
2181 (modify-phases %standard-phases
2184 (lambda* (#:key inputs outputs #:allow-other-keys)
2185 (let* ((out (assoc-ref outputs "out"))
2186 (bin (string-append out "/bin"))
2187 (doc (string-append %output "/share/doc/" ,name "-" ,version)))
2188 (install-file "clipnotify" bin)
2189 (install-file "README.md" doc)
2191 #:make-flags (list "CC=gcc")
2192 ;; the package provides no test suite:
2195 `(("libx11" ,libx11)
2196 ("libXfixes" ,libxfixes)))
2197 (home-page "https://github.com/cdown/clipnotify")
2198 (synopsis "Notify on new X clipboard events")
2199 (description "@command{clipnotify} is a simple program that, using the
2200 XFIXES extension to X11, waits until a new selection is available and then
2203 It was primarily designed for clipmenu, to avoid polling for new selections.
2205 @command{clipnotify} doesn't try to print anything about the contents of the
2206 selection, it just exits when it changes. This is intentional -- X11's
2207 selection API is verging on the insane, and there are plenty of others who
2208 have already lost their sanity to bring us xclip/xsel/etc. Use one of those
2209 tools to complement clipnotify.")
2210 (license license:public-domain)))
2212 (define-public clipmenu
2213 (let ((commit "bcbe7b144598db4a103f14e8408c4b7327d6d5e1")
2217 (version (string-append "6.0.1-"
2218 revision "." (string-take commit 7)))
2223 (url "https://github.com/cdown/clipmenu.git")
2225 (file-name (git-file-name name version))
2228 "0053j4i14lz5m2bzc5sch5id5ilr1bl196mp8fp0q8x74w3vavs9"))))
2229 (build-system gnu-build-system)
2232 (modify-phases %standard-phases
2236 (lambda* (#:key inputs outputs #:allow-other-keys)
2237 (let* ((out (assoc-ref outputs "out"))
2238 (bin (string-append out "/bin"))
2239 (doc (string-append %output "/share/doc/"
2240 ,name "-" ,version)))
2241 (install-file "clipdel" bin)
2242 (install-file "clipmenu" bin)
2243 (install-file "clipmenud" bin)
2244 (install-file "README.md" doc)
2246 (add-after 'install 'wrap-script
2247 (lambda* (#:key inputs outputs #:allow-other-keys)
2248 (let* ((out (assoc-ref outputs "out"))
2249 (clipnotify (assoc-ref inputs "clipnotify"))
2250 (coreutils-minimal (assoc-ref inputs "coreutils-minimal"))
2251 (gawk (assoc-ref inputs "gawk"))
2252 (util-linux (assoc-ref inputs "util-linux"))
2253 (xdotool (assoc-ref inputs "xdotool"))
2254 (xsel (assoc-ref inputs "xsel")))
2257 (wrap-script (string-append out "/bin/" prog)
2260 (string-append dir "/bin"))
2261 (list clipnotify coreutils-minimal
2262 gawk util-linux xdotool xsel)))))
2263 '("clipmenu" "clipmenud" "clipdel")))
2266 (lambda* (#:key inputs outputs #:allow-other-keys)
2267 ;; substitute a shebang appearing inside a string (the test
2268 ;; file writes this string to a temporary file):
2269 (substitute* "tests/test-clipmenu"
2270 (("#!/usr/bin/env bash")
2271 (string-append "#!" (which "bash"))))
2272 (invoke "tests/test-clipmenu")
2275 `(("clipnotify" ,clipnotify)
2276 ("coreutils-minimal" ,coreutils-minimal)
2278 ("guile" ,guile-3.0) ; for wrap-script
2279 ("util-linux" ,util-linux)
2280 ("xdotool" ,xdotool)
2282 (home-page "https://github.com/cdown/clipmenu")
2283 (synopsis "Simple clipboard manager using dmenu or rofi and xsel")
2284 (description "Start @command{clipmenud}, then run @command{clipmenu} to
2285 select something to put on the clipboard.
2287 When @command{clipmenud} detects changes to the clipboard contents, it writes
2288 them out to the cache directory. @command{clipmenu} reads the cache directory
2289 to find all available clips and launches @command{dmenu} (or @command{rofi},
2290 depending on the value of @code{CM_LAUNCHER}) to let the user select a clip.
2291 After selection, the clip is put onto the PRIMARY and CLIPBOARD X selections.")
2292 (license license:public-domain))))
2302 (url "https://github.com/qnikst/kbdd.git")
2303 (commit (string-append "v" version))))
2304 (file-name (git-file-name name version))
2307 "0qkq75grbd4wkx4nlvswgavpijk9ad0pzqyj89a0ayjsbsn36pqy"))))
2308 (build-system gnu-build-system)
2310 `(("autoconf" ,autoconf)
2311 ("automake" ,automake)
2312 ("glib" ,glib "bin")
2313 ("pkg-config" ,pkg-config)))
2315 `(("dbus-glib", dbus-glib)
2317 ("libx11" ,libx11)))
2318 (home-page "https://github.com/qnikst/kbdd")
2319 (synopsis "Per-window keyboard layout switching daemon for X")
2320 (description "@command{kbdd} is a simple keyboard layout switching
2321 program, which is designed to run in an X11 session and remember
2322 keyboard layouts on a per-window basis. That can be very handy for a
2323 user of a non-US keyboard who does not want to jump through layouts back
2324 and forth while typing in terminals (mostly in a latin alphabet) and
2325 some kind of chat (in native language).
2327 @command{kbdd} also supports D-Bus signals, which makes it possible to
2328 create layout indicator widgets.")
2329 (license license:bsd-2)))
2331 (define-public j4-dmenu-desktop
2333 (name "j4-dmenu-desktop")
2338 (url "https://github.com/enkore/j4-dmenu-desktop.git")
2339 (commit (string-append "r" version))))
2340 (file-name (git-file-name name version))
2343 "0v23fimkn83dcm5p53y2ymhklff3kwppxhf75sm8xmswrzkixpgc"))))
2344 (build-system cmake-build-system)
2346 `(("catch2" ,catch-framework2)))
2348 `(#:configure-flags '("-DWITH_GIT_CATCH=off")
2350 (modify-phases %standard-phases
2353 (invoke "./j4-dmenu-tests" "exclude:SearchPath/XDG_DATA_HOME"))))))
2354 (synopsis "Fast desktop menu")
2356 "j4-dmenu-desktop is a replacement for i3-dmenu-desktop. Its purpose
2357 is to find @file{.desktop} files and offer you a menu to start an application
2358 using @command{dmenu}.")
2359 (home-page "https://github.com/enkore/j4-dmenu-desktop")
2360 (license license:gpl3+)))