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, 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, 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 hg-download)
62 #:use-module (guix utils)
63 #:use-module (guix build-system cmake)
64 #:use-module (guix build-system gnu)
65 #:use-module (guix build-system glib-or-gtk)
66 #:use-module (guix build-system meson)
67 #:use-module (guix build-system python)
68 #:use-module (guix build-system scons)
69 #:use-module (gnu packages)
70 #:use-module (gnu packages documentation)
71 #:use-module (gnu packages admin)
72 #:use-module (gnu packages base)
73 #:use-module (gnu packages algebra)
74 #:use-module (gnu packages autotools)
75 #:use-module (gnu packages check)
76 #:use-module (gnu packages compression)
77 #:use-module (gnu packages image)
78 #:use-module (gnu packages pkg-config)
79 #:use-module (gnu packages flex)
80 #:use-module (gnu packages freedesktop)
81 #:use-module (gnu packages gawk)
82 #:use-module (gnu packages gettext)
83 #:use-module (gnu packages gl)
84 #:use-module (gnu packages glib)
85 #:use-module (gnu packages gnome)
86 #:use-module (gnu packages haskell-xyz)
87 #:use-module (gnu packages icu4c)
88 #:use-module (gnu packages man)
89 #:use-module (gnu packages maths)
90 #:use-module (gnu packages m4)
91 #:use-module (gnu packages ncurses)
92 #:use-module (gnu packages perl)
93 #:use-module (gnu packages python)
94 #:use-module (gnu packages python-xyz)
95 #:use-module (gnu packages linux)
96 #:use-module (gnu packages gl)
97 #:use-module (gnu packages guile)
98 #:use-module (gnu packages xml)
99 #:use-module (gnu packages gtk)
100 #:use-module (gnu packages qt)
101 #:use-module (gnu packages xorg)
102 #:use-module (gnu packages fontutils)
103 #:use-module (gnu packages bison)
104 #:use-module (ice-9 match))
106 ;; packages outside the x.org system proper
108 (define-public arandr
114 (uri (string-append "https://christian.amsuess.com/tools/arandr"
115 "/files/arandr-" version ".tar.gz"))
118 "135q0llvm077jil2fr92ssw3p095m4r8jfj0lc5rr3m71n4srj6v"))
119 (modules '((guix build utils)))
122 ;; Do not record a timestamp and file name in gzipped man
123 ;; pages (this is equivalent to 'gzip --no-name'.)
124 (substitute* "setup.py"
125 (("gzip\\.open\\(gzfile, 'w', 9\\)")
126 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)"))
128 (build-system python-build-system)
131 (modify-phases %standard-phases
132 (add-before 'build 'configure
133 (lambda* (#:key inputs #:allow-other-keys)
134 (substitute* "screenlayout/xrandr.py"
135 (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr")
138 (add-after 'install 'wrap-gi-typelib
139 (lambda* (#:key inputs outputs #:allow-other-keys)
140 (let ((out (assoc-ref outputs "out"))
141 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
142 (wrap-program (string-append out "/bin/arandr")
143 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
145 #:tests? #f)) ;no tests
146 (inputs `(("gtk+" ,gtk+)
147 ("pycairo" ,python-pycairo)
148 ("pygobject" ,python-pygobject)
150 (native-inputs `(("gettext" ,gettext-minimal)
151 ("python-docutils" ,python-docutils)))
152 (home-page "https://christian.amsuess.com/tools/arandr/")
153 (synopsis "Another RandR graphical user interface")
154 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
155 (description "ARandR is designed to provide a simple visual front end for
156 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
157 shown graphically and can be changed in a drag-and-drop way. Configurations
158 are saved as executable shell scripts which can be loaded without using this
160 (license license:gpl3+)))
162 (define-public autorandr
166 (home-page "https://github.com/phillipberndt/autorandr")
173 (file-name (git-file-name name version))
175 (base32 "1bb0l7fcm5lcx9y02zdxv7pfdqf4v4gsc5br3v1x9gzjvqj64l7n"))))
176 (build-system python-build-system)
182 (modify-phases %standard-phases
183 (add-before 'build 'configure
184 (lambda* (#:key inputs outputs #:allow-other-keys)
185 (let ((xrandr (string-append (assoc-ref inputs "xrandr")
187 (substitute* "contrib/etc/xdg/autostart/autorandr.desktop"
188 (("/usr") (assoc-ref outputs "out")))
189 (substitute* "autorandr.py"
190 (("popen\\(\"xrandr") (string-append "popen(\"" xrandr))
191 (("\\[\"xrandr") (string-append "[\"" xrandr))))
193 (add-after 'install 'install-contrib
194 (lambda* (#:key outputs #:allow-other-keys)
196 (string-append "DESTDIR=" (assoc-ref outputs "out"))
198 "BASH_COMPLETIONS_DIR=etc/bash_completiond.d"
200 "install_bash_completion"
202 "install_autostart_config"))))))
203 (synopsis "Auto-detect connected displays and load appropriate setup")
204 (description "Autorandr wraps around xrandr to help with X11
205 multi-screen configuration management. It allows the user to create profiles
206 for various multi-screen setups. Autorandr automatically detects the profiles
207 that can be activated based on the connected hardware. Hook scripts can be
208 used to further tweak the behaviour of the different profiles.")
209 (license license:gpl3+)))
211 (define-public bemenu
219 (url "https://github.com/Cloudef/bemenu.git")
221 (file-name (git-file-name name version))
223 (base32 "0piax49az5kp96r1g6dcgj87fi6p4jl286wlkxsdvljzpkn8q6gv"))))
224 (build-system cmake-build-system)
226 '(#:configure-flags '("-DBEMENU_WAYLAND_RENDERER=ON")))
230 ("libxkbcomon" ,libxkbcommon)
231 ("libxinerama" ,libxinerama)
235 ("wayland-protocols" ,wayland-protocols)))
237 `(("doxygen" ,doxygen)
238 ("pkg-config" ,pkg-config)))
239 (home-page "https://github.com/Cloudef/bemenu")
240 (synopsis "Dynamic menu library and client program inspired by dmenu")
242 "bemenu is a dynamic menu which allows the user to flexibly select from a
243 list of options (usually programs to launch). It renders the menu graphically
244 with X11 or Wayland, or in a text terminal with ncurses.")
245 (license (list license:gpl3+ ; client program[s] and other sources
246 license:lgpl3+)))) ; library and bindings
255 (url "https://github.com/hluk/CopyQ.git")
256 (commit (string-append "v" version))))
257 (file-name (git-file-name name version))
260 "0wlwq9xg8rzsbj0b29z358k4mbrqy04iraa8x0p26pa95yskgcma"))))
261 (build-system cmake-build-system)
263 `(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release")
264 #:tests? #f)) ; Test suite is a rather manual process.
267 ("qtscript" ,qtscript)
269 ("qtx11extras" ,qtx11extras)))
270 (synopsis "Clipboard manager with advanced features")
271 (description "CopyQ is clipboard manager with editing and scripting
272 features. CopyQ monitors system clipboard and saves its content in customized
273 tabs. Saved clipboard can be later copied and pasted directly into any
275 (home-page "https://hluk.github.io/CopyQ/")
276 (license license:gpl3+)))
286 (url "https://github.com/astrand/xclip.git")
288 (file-name (git-file-name name version))
291 "0q0hmvcjlv8arhh1pzhja2wglyj6n7z209jnpnzd281kqqv4czcs"))))
292 (build-system gnu-build-system)
294 '(#:tests? #f)) ;there is no test suite
296 `(("autoconf" ,autoconf)
297 ("automake" ,automake)))
298 (inputs `(("libxmu" ,libxmu)
300 (home-page "https://github.com/astrand/xclip")
301 (synopsis "Command line interface to X11 clipboard")
302 (description "Xclip is a command line interface to the X11 clipboard. It
303 can also be used for copying files, as an alternative to sftp/scp, thus
304 avoiding password prompts when X11 forwarding has already been setup.")
305 (license license:gpl2+)))
307 (define-public libxkbcommon
309 (name "libxkbcommon")
313 (uri (string-append "https://xkbcommon.org/download/libxkbcommon-"
317 "1wmnl0hngn6vrqrya4r8hvimlkr4jag39yjprls4gyrqvh667hsp"))))
318 (build-system meson-build-system)
323 ("wayland-protocols" ,wayland-protocols)
324 ("xkeyboard-config" ,xkeyboard-config)))
328 ("pkg-config" ,pkg-config)))
331 (list (string-append "-Dxkb-config-root="
332 (assoc-ref %build-inputs "xkeyboard-config")
334 (string-append "-Dx-locale-root="
335 (assoc-ref %build-inputs "libx11")
336 "/share/X11/locale"))))
337 (home-page "https://xkbcommon.org/")
338 (synopsis "Library to handle keyboard descriptions")
339 (description "Xkbcommon is a library to handle keyboard descriptions,
340 including loading them from disk, parsing them and handling their
341 state. It is mainly meant for client toolkits, window systems, and other
342 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
343 Clutter, and more. Despite the name, it is not currently used by anything
345 (license (license:x11-style "file://COPYING"
346 "See 'COPYING' in the distribution."))))
348 (define-public libfakekey
356 (url "https://git.yoctoproject.org/git/libfakekey")
358 (file-name (git-file-name name version))
360 (base32 "1jw1d4wc1ysiijirc7apnz3sryrxbl9akgb92mh06dvfkz2nblj0"))))
361 (build-system gnu-build-system)
363 `(#:make-flags (list "AM_LDFLAGS=-lX11")
365 (modify-phases %standard-phases
367 ;; ./autogen.sh calls ./configure before shebangs have been patched.
369 (invoke "autoreconf" "-vfi"))))))
371 `(("pkg-config" ,pkg-config)
373 ;; For bootstrapping from git.
374 ("autoconf" ,autoconf)
375 ("automake" ,automake)
376 ("libtool" ,libtool)))
378 `(("libxtst" ,libxtst)
380 (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox")
381 (synopsis "X virtual keyboard library")
383 "Libfakekey is a virtual keyboard library for X.")
384 (license license:gpl2)))
386 (define-public xdotool
389 (version "3.20160805.1")
394 "https://github.com/jordansissel/xdotool/releases/download/v"
395 version "/xdotool-" version ".tar.gz"))
398 "1a6c1zr86zb53352yxv104l76l8x21gfl2bgw6h21iphxpv5zgim"))))
399 (build-system gnu-build-system)
401 '(#:tests? #f ; Test suite requires a lot of black magic
403 (modify-phases %standard-phases
405 (lambda* (#:key outputs #:allow-other-keys #:rest args)
406 (let ((out (assoc-ref outputs "out")))
407 (mkdir-p (string-append out "/lib"))
408 (setenv "PREFIX" out)
409 (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib"))
412 (native-inputs `(("perl" ,perl))) ; for pod2man
413 (inputs `(("libx11" ,libx11)
416 ("libxinerama" ,libxinerama)
418 ("libxkbcommon" ,libxkbcommon)))
419 (home-page "https://www.semicomplete.com/projects/xdotool/")
420 (synopsis "Fake keyboard/mouse input, window management, and more")
421 (description "Xdotool lets you simulate keyboard input and mouse activity,
422 move and resize windows, etc. It does this using X11's XTEST extension and
423 other Xlib functions. Additionally, you can search for windows and move,
424 resize, hide, and modify window properties like the title. If your window
425 manager supports it, you can use xdotool to switch desktops, move windows
426 between desktops, and change the number of desktops.")
427 (license license:bsd-3)))
436 (uri (string-append "https://www.x.org/releases/individual/app/"
437 name "-" version ".tar.bz2"))
439 (base32 "0lq5j7fryx1wn998jq6h3icz1h6pqrsbs3adskjzjyhn5l6yrg2p"))))
440 (build-system gnu-build-system)
442 `(("libxext" ,libxext)
444 ("libxrender" ,libxrender)
447 `(("pkg-config" ,pkg-config)))
448 (home-page "https://www.x.org/") ; no dedicated Xeyes page exists
449 (synopsis "Follow-the-mouse X demo")
450 (description "Xeyes is a demo program for x.org. It shows eyes
451 following the mouse.")
452 (license license:x11)))
455 (define-public pixman
462 "https://www.cairographics.org/releases/pixman-"
466 "1ryxzdf048x7wsx4dlvrr1p00gzwfs7lybnhgc7ygbj0dvyxcrns"))
467 (patches (search-patches "pixman-CVE-2016-5296.patch"))))
468 (build-system gnu-build-system)
470 '(#:configure-flags '("--disable-static")))
475 `(("pkg-config" ,pkg-config)))
476 (home-page "http://www.pixman.org/")
477 (synopsis "Low-level pixel manipulation library")
478 (description "Pixman is a low-level software library for pixel
479 manipulation, providing features such as image compositing and trapezoid
481 (license license:x11)))
483 (define-public libdrm
491 "https://dri.freedesktop.org/libdrm/libdrm-"
496 "0p8a1l3a3s40i81mawm8nhrbk7p97ss05qkawp1yx73c30lchz67"))
497 (patches (search-patches "libdrm-symbol-check.patch"))))
498 (build-system meson-build-system)
501 '(,@(match (%current-system)
502 ((or "armhf-linux" "aarch64-linux")
507 "-Dfreedreno-kgsl=true"))
510 #:phases (modify-phases %standard-phases
513 (invoke "meson" "test" "--timeout-multiplier" "5"))))))
515 `(("libpciaccess" ,libpciaccess)))
517 `(("pkg-config" ,pkg-config)))
518 (home-page "https://dri.freedesktop.org/wiki/")
519 (synopsis "Direct rendering userspace library")
520 (description "The Direct Rendering Infrastructure, also known as the DRI,
521 is a framework for allowing direct access to graphics hardware under the
522 X Window System in a safe and efficient manner. It includes changes to the
523 X server, to several client libraries, and to the kernel (DRM, Direct
524 Rendering Manager). The most important use for the DRI is to create fast
525 OpenGL implementations providing hardware acceleration for Mesa.
526 Several 3D accelerated drivers have been written to the DRI specification,
527 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
529 (license license:x11)))
540 "http://bitmath.org/code/mtdev/mtdev-"
544 "1q700h9dqcm3zl6c3gj0qxxjcx6ibw2c51wjijydhwdcm26v5mqm"))))
545 (build-system gnu-build-system)
546 (arguments '(#:configure-flags '("--disable-static")))
547 (home-page "http://bitmath.org/code/mtdev/")
548 (synopsis "Multitouch protocol translation library")
549 (description "Mtdev is a stand-alone library which transforms all
550 variants of kernel MT events to the slotted type B protocol. The events
551 put into mtdev may be from any MT device, specifically type A without
552 contact tracking, type A with contact tracking, or type B with contact
554 (license license:x11)))
556 (define-public startup-notification
558 (name "startup-notification")
563 (uri (string-append "https://www.freedesktop.org/software/" name
564 "/releases/" name "-" version ".tar.gz"))
567 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
568 (build-system gnu-build-system)
569 (native-inputs `(("pkg-config" ,pkg-config)))
572 ("xcb-util" ,xcb-util)))
573 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
574 (synopsis "Application startup notification and feedback library")
576 "Startup-notification contains a reference implementation of the startup
577 notification protocol. The reference implementation is mostly under an X Window
578 System style license, and has no special dependencies.")
579 ;; Most of the code is provided under x11 license.
580 (license license:lgpl2.0+)))
582 (define-public wmctrl
589 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
593 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
594 (patches (search-patches "wmctrl-64-fix.patch"))))
595 (build-system gnu-build-system)
598 (list (string-append "--mandir="
599 (assoc-ref %outputs "out")
602 `(("pkg-config" ,pkg-config)))
607 (home-page "http://tomas.styblo.name/wmctrl/")
608 (synopsis "Command-line tool to control X window managers")
610 "Wmctrl interacts with an X window manager that is compatible
611 with the EWMH/NetWM specification. It can query the window manager for
612 information, and request for certain window management actions (resize and
613 move windows, switch between desktops, etc.).")
614 (license license:gpl2+)))
625 (url "https://github.com/resurrecting-open-source-projects/scrot.git")
627 (file-name (git-file-name name version))
629 (base32 "0x70hd59ik37kqd8xqpwrz46np01jv324iz28x2s0kk36d7sblsj"))))
630 (build-system gnu-build-system)
632 `(("autoconf" ,autoconf)
633 ("autoconf-archive" ,autoconf-archive)
634 ("automake" ,automake)))
638 ("libXcursor" ,libxcursor)
639 ("libXfixes" ,libxfixes)))
640 (home-page "https://github.com/resurrecting-open-source-projects/scrot")
641 (synopsis "Command-line screen capture utility for X Window System")
643 "Scrot saves a screenshot of a full screen, a window or a part
644 of the screen selected by mouse.")
645 ;; This license removes a clause about X Consortium from the original
647 (license (license:x11-style "file://COPYING"
648 "See 'COPYING' in the distribution."))))
657 (url "https://github.com/naelstrof/slop.git")
658 (commit (string-append "v" version))))
659 (file-name (git-file-name name version))
662 "1k8xxb4rj2fylr4vj16yvsf73cyywliz9cy78pl4ibmi03jhg837"))))
663 (build-system cmake-build-system)
665 '(#:tests? #f)) ; no "check" target
671 ("libxrender" ,libxrender)
673 (home-page "https://github.com/naelstrof/slop")
674 (synopsis "Select a region and print its bounds to stdout")
676 "slop (Select Operation) is a tool that queries for a selection from a
677 user and prints the region to stdout. It grabs the mouse and turns it into a
678 crosshair, lets the user click and drag to make a selection (or click on a
679 window) while drawing a pretty box around it, then finally prints the
680 selection's dimensions to stdout.")
681 (license license:gpl3+)))
690 (url "https://github.com/naelstrof/maim.git")
691 (commit (string-append "v" version))))
692 (file-name (git-file-name name version))
695 "181mjjrjb9fs1ficcv9miqbk94v95j1yli7fjp2dj514g7nj9l3x"))))
696 (build-system cmake-build-system)
698 '(#:tests? #f)) ; no "check" target
701 ("libjpeg" ,libjpeg-turbo)
703 ("libxcomposite" ,libxcomposite)
704 ("libxfixes" ,libxfixes)
705 ("libxrandr" ,libxrandr)
709 (home-page "https://github.com/naelstrof/maim")
710 (synopsis "Screenshot utility for X Window System")
712 "maim (Make Image) is a tool that takes screenshots of your desktop and
713 saves it in any format. Along with a full screen, it allows you to capture a
714 predefined region or a particular window. Also, it makes it possible to
715 include cursor in the resulting image.")
716 (license license:gpl3+)))
718 (define-public unclutter
725 "http://ftp.x.org/contrib/utilities/unclutter-"
729 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
730 (build-system gnu-build-system)
732 '(#:tests? #f ; no check target
734 (modify-phases %standard-phases
737 (lambda* (#:key inputs outputs #:allow-other-keys)
738 (let* ((out (assoc-ref outputs "out"))
739 (bin (string-append out "/bin"))
740 (man1 (string-append out "/share/man/man1")))
743 (invoke "make" "install" "install.man"
744 (string-append "BINDIR=" bin)
745 (string-append "MANDIR=" man1))))))))
746 (inputs `(("libx11" ,libx11)))
747 (home-page "http://ftp.x.org/contrib/utilities/")
748 (synopsis "Hide idle mouse cursor")
750 "Unclutter is a program which runs permanently in the background of an
751 X11 session. It checks on the X11 pointer (cursor) position every few
752 seconds, and when it finds it has not moved (and no buttons are pressed
753 on the mouse, and the cursor is not in the root window) it creates a
754 small sub-window as a child of the window the cursor is in. The new
755 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
756 invisible cursor. This allows you to see all the text in an xterm or
757 xedit, for example. The human factors crowd would agree it should make
758 things less distracting.")
759 (license license:public-domain)))
761 (define-public xautomation
768 (uri (string-append "https://www.hoopajoo.net/static/projects/"
769 "xautomation-" version ".tar.gz"))
773 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
774 (build-system gnu-build-system)
779 ("libxtst" ,libxtst)))
781 `(("xorgproto" ,xorgproto)))
782 (synopsis "Tools to automate tasks in X such as detecting on screen images")
784 "Xautomation can control X from the command line for scripts, and
785 do visual scraping to find things on the screen. The control interface
786 allows mouse movement, clicking, button up/down, key up/down, etc, and
787 uses the XTest extension so you don't have the annoying problems that
788 xse has when apps ignore sent events. The visgrep program can find
789 images inside of images and reports the coordinates, allowing programs
790 to find buttons, etc, on the screen to click on.")
791 (home-page "https://www.hoopajoo.net/projects/xautomation.html")
792 (license license:gpl2+)))
794 (define-public xbanish
798 (home-page "https://github.com/jcs/xbanish")
801 (uri (git-reference (url home-page)
802 (commit (string-append "v" version))))
803 (file-name (git-file-name name version))
806 "0ic5f7zgc32p5g1wxas9y5h8dhik0pvsa8wmn6skdry56gw9vg9q"))))
807 (build-system gnu-build-system)
809 `(#:tests? #f ; no tests
810 #:make-flags (list "CC=gcc"
811 (string-append "PREFIX=" (assoc-ref %outputs "out")))
812 #:phases (modify-phases %standard-phases
813 (delete 'configure)))) ; no configure script
816 ("libxfixes" ,libxfixes)
819 (synopsis "Banish the mouse cursor")
821 "@command{xbanish} hides the mouse cursor when you start typing, and
822 shows it again when the mouse cursor moves or a mouse button is pressed.")
823 (license license:bsd-3)))
825 (define-public xlockmore
831 (uri (list (string-append "http://sillycycle.com/xlock/"
832 "xlockmore-" version ".tar.xz")
833 ;; Previous releases are moved to a subdirectory.
834 (string-append "http://sillycycle.com/xlock/"
836 "xlockmore-" version ".tar.xz")))
839 "0b05wgj4mpssy4hd7km5c48i454dfg45p11mfmsr7xjd2gnz5gqi"))))
840 (build-system gnu-build-system)
842 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
843 (assoc-ref %outputs "out")
844 "/lib/X11/app-defaults"))
845 #:tests? #f)) ;no such thing as a test suite
850 ("linux-pam" ,linux-pam)))
851 (home-page "https://sillycycle.com/xlockmore.html")
852 (synopsis "Screen locker for the X Window System")
854 "XLockMore is a classic screen locker and screen saver for the
856 (license (license:non-copyleft #f "See xlock.c.")
857 ))) ; + GPLv2 in modes/glx/biof.c.
866 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
867 name "-" version ".tar.gz"))
870 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
871 (build-system gnu-build-system)
874 (list (string-append "--mandir=" %output "/share/man"))))
879 ("libxinerama" ,libxinerama)))
880 (home-page "https://sourceforge.net/projects/libxosd/")
881 (synopsis "X On Screen Display")
883 "XOSD provides a C library and a simple utility (osd_cat) for displaying
884 transparent text on your screen.")
885 (license license:gpl2+)))
887 (define-public xbindkeys
893 ;; Download from the savannah mirror list fails
895 "http://www.nongnu.org/xbindkeys/xbindkeys-"
900 "060df6d8y727jp1inp7blp44cs8a7jig7vcm8ndsn6gw36z1h3bc"))))
901 (build-system gnu-build-system)
904 ("guile" ,guile-2.0)))
905 (home-page "https://www.nongnu.org/xbindkeys/")
906 (synopsis "Associate a combination of keys with a shell command")
908 "XBindKeys is a program that allows you to launch shell commands with
909 your keyboard or your mouse under the X Window System. It links commands to
910 keys or mouse buttons, using a configuration file. It's independent of the
911 window manager and can capture all keyboard keys (ex: Power, Wake...). It
912 optionally supports a Guile-based configuration file layout, which enables you
913 to access all XBindKeys internals, so you can have key combinations, double
914 clicks or timed double clicks take actions. Also all functions that work in
915 Guile will work for XBindKeys.")
916 (license license:gpl2+)))
926 (url "https://github.com/baskerville/sxhkd")
928 (file-name (git-file-name name version))
930 (base32 "0j7bl2l06r0arrjzpz7al9j6cwzc730knbsijp7ixzz96pq7xa2h"))))
931 (build-system gnu-build-system)
933 `(("asciidoc" ,asciidoc)
935 ("xcb-util" ,xcb-util)
936 ("xcb-util-keysyms" ,xcb-util-keysyms)
937 ("xcb-util-wm" ,xcb-util-wm)))
939 `(#:phases (modify-phases %standard-phases (delete 'configure))
940 #:tests? #f ; no check target
943 (string-append "PREFIX=" %output)
944 ;; Keep the documentation where the build system installs LICENSE.
945 (string-append "DOCPREFIX=" %output
946 "/share/doc/" ,name "-" ,version))))
947 (home-page "https://github.com/baskerville/sxhkd")
948 (synopsis "Simple X hotkey daemon")
949 (description "sxhkd is a simple X hotkey daemon with a powerful and
950 compact configuration syntax.")
951 (license license:bsd-2)))
953 (define-public rxvt-unicode
955 (name "rxvt-unicode")
959 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
960 name "-" version ".tar.bz2"))
961 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
964 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
965 (build-system gnu-build-system)
967 ;; This sets the destination when installing the necessary terminal
968 ;; capability data, which are not provided by 'ncurses'. See
969 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
970 `(#:make-flags (list (string-append "TERMINFO="
971 (assoc-ref %outputs "out")
974 (modify-phases %standard-phases
975 (add-after 'install 'install-desktop-urxvt
976 (lambda* (#:key outputs #:allow-other-keys)
977 (let* ((output (assoc-ref outputs "out"))
978 (desktop (string-append output "/share/applications")))
981 (string-append desktop "/urxvt.desktop")
988 TryExec=~@*~a/bin/urxvt~@
993 (add-after 'install 'install-desktop-urxvtc
994 (lambda* (#:key outputs #:allow-other-keys)
995 (let* ((output (assoc-ref outputs "out"))
996 (desktop (string-append output "/share/applications")))
999 (string-append desktop "/urxvtc.desktop")
1003 Name=rxvt-unicode (client)~@
1004 Comment=Rxvt clone with XFT and unicode support~@
1005 Exec=~a/bin/urxvtc~@
1006 TryExec=~@*~a/bin/urxvtc~@
1012 `(("libXft" ,libxft)
1013 ("libX11" ,libx11)))
1015 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
1017 ("pkg-config" ,pkg-config)))
1018 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
1019 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
1020 (native-search-paths
1021 (list (search-path-specification
1022 (variable "TERMINFO_DIRS")
1023 (files '("share/terminfo")))))
1024 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
1025 (synopsis "Rxvt clone with XFT and unicode support")
1026 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
1027 intended as an xterm replacement for users who do not require features such as
1028 Tektronix 4014 emulation and toolkit-style configurability. It supports
1029 unicode, XFT and may be extended with Perl plugins. It also comes with a
1030 client/daemon pair that lets you open any number of terminal windows from
1031 within a single process.")
1032 (license license:gpl3+)))
1034 (define-public xcape
1041 (url "https://github.com/alols/xcape.git")
1042 (commit (string-append "v" version))))
1043 (file-name (git-file-name name version))
1046 "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm"))))
1047 (build-system gnu-build-system)
1049 `(#:tests? #f ; no check target
1050 ;; no configure script
1051 #:phases (modify-phases %standard-phases (delete 'configure))
1052 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1053 "MANDIR=/share/man/man1"
1056 `(("libxtst" ,libxtst)
1057 ("libx11" ,libx11)))
1059 `(("pkg-config" ,pkg-config)))
1060 (home-page "https://github.com/alols/xcape")
1061 (synopsis "Use a modifier key in X.org as another key")
1063 "This utility for X.org uses a modifier key as another key when
1064 pressed and released on its own. The default behaviour is to generate the
1065 Escape key when Left Control is pressed and released on its own.")
1066 (license license:gpl3+)))
1068 (define-public libwacom
1075 "https://github.com/linuxwacom/libwacom/releases/download/"
1076 "libwacom-" version "/libwacom-" version ".tar.bz2"))
1079 "0g48cdg2qpvrr2nk8ccibjg3iv7iqskdv66izxacqx70w47y1771"))))
1080 (build-system glib-or-gtk-build-system)
1082 `(#:configure-flags '("--disable-static")))
1084 `(("pkg-config" ,pkg-config)))
1087 ("libgudev" ,libgudev)
1089 ("libxml2" ,libxml2)))
1091 ;; libwacom includes header files that include GLib, and libinput uses
1092 ;; those header files.
1094 (home-page "https://linuxwacom.github.io/")
1095 (synopsis "Helper library for Wacom tablet settings")
1097 "Libwacom is a library to help implement Wacom tablet settings. It is
1098 intended to be used by client-programs that need model identification. It is
1099 already being used by the gnome-settings-daemon and the GNOME Control Center
1100 Wacom tablet applet.")
1101 (license license:x11)))
1103 (define-public xf86-input-wacom
1105 (name "xf86-input-wacom")
1111 "https://github.com/linuxwacom/xf86-input-wacom/releases/download/"
1112 "xf86-input-wacom-" version "/"
1113 "xf86-input-wacom-" version ".tar.bz2"))
1115 (base32 "11qk58az6qwii774ga45h5yqzipwn56f0d74kdbajqdv45p85gqj"))))
1118 (list (string-append "--with-sdkdir="
1119 (assoc-ref %outputs "out")
1121 (string-append "--with-xorg-conf-dir="
1122 (assoc-ref %outputs "out")
1123 "/share/X11/xorg.conf.d"))))
1124 (build-system gnu-build-system)
1126 `(("pkg-config" ,pkg-config)))
1128 `(("xorg-server" ,xorg-server)
1129 ("libxrandr" ,libxrandr)
1130 ("libxinerama" ,libxinerama)
1133 (home-page "https://linuxwacom.github.io/")
1134 (synopsis "Wacom input driver for X")
1136 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
1137 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
1138 (license license:x11)))
1140 (define-public redshift
1148 (string-append "https://github.com/jonls/redshift/"
1149 "releases/download/v" version
1150 "/redshift-" version ".tar.xz"))
1153 "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j"))))
1154 (build-system gnu-build-system)
1156 `(#:imported-modules (,@%gnu-build-system-modules
1157 (guix build python-build-system))
1159 (modify-phases %standard-phases
1160 (add-after 'install 'split-outputs
1161 (lambda* (#:key outputs #:allow-other-keys)
1162 (let ((out (assoc-ref outputs "out"))
1163 (gtk (assoc-ref outputs "gtk"))
1164 (desktop-file "/share/applications/redshift-gtk.desktop"))
1165 (mkdir-p (string-append gtk "/bin"))
1166 (link (string-append out "/bin/redshift-gtk")
1167 (string-append gtk "/bin/redshift-gtk"))
1168 (delete-file (string-append out "/bin/redshift-gtk"))
1169 (copy-recursively (string-append out "/lib")
1170 (string-append gtk "/lib"))
1171 (delete-file-recursively (string-append out "/lib"))
1172 (mkdir-p (string-append gtk "/share/applications"))
1173 (link (string-append out desktop-file)
1174 (string-append gtk desktop-file))
1175 (delete-file (string-append out desktop-file))
1176 (with-directory-excursion (string-append out "/share")
1177 (for-each (lambda (dir)
1179 (string-append out "/share/" dir)
1180 (string-append gtk "/share/" dir))
1181 (delete-file-recursively dir))
1182 '("appdata" "icons")))
1184 (add-after 'split-outputs 'wrap
1185 (lambda* (#:key inputs outputs #:allow-other-keys)
1186 (let* ((gtk (assoc-ref outputs "gtk"))
1188 (@ (guix build python-build-system) python-version))
1189 (python (assoc-ref inputs "python"))
1190 (sitedir (string-append gtk "/lib/python"
1191 (python-version python)
1193 (wrap-program (string-append gtk "/bin/redshift-gtk")
1194 `("PYTHONPATH" ":" prefix
1195 (,(string-append sitedir ":" (getenv "PYTHONPATH"))))
1196 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH"))))
1198 (outputs '("out" "gtk"))
1200 `(("pkg-config" ,pkg-config)
1201 ("intltool" ,intltool)))
1203 `(("libdrm" ,libdrm)
1206 ("libxxf86vm" ,libxxf86vm)
1207 ("glib" ,glib) ;for Geoclue2 support
1209 ;; To build the GTK3 GUI, we need these.
1212 ("python-pygobject" ,python-pygobject)
1213 ("python-pyxdg" ,python-pyxdg)))
1214 (home-page "https://github.com/jonls/redshift")
1215 (synopsis "Adjust the color temperature of your screen")
1217 "Redshift adjusts the color temperature according to the position of the
1218 sun. A different color temperature is set during night and daytime. During
1219 twilight and early morning, the color temperature transitions smoothly from
1220 night to daytime temperature to allow your eyes to slowly adapt. At night the
1221 color temperature should be set to match the lamps in your room.")
1222 (license license:gpl3+)))
1224 (define-public redshift-wayland
1225 (let ((commit "7da875d34854a6a34612d5ce4bd8718c32bec804")
1228 (name "redshift-wayland")
1229 (version (string-append "1.12-"
1230 revision "." (string-take commit 7)))
1234 (url "https://github.com/minus7/redshift.git")
1236 (file-name (string-append name "-" version))
1239 "0nbkcw3avmzjg1jr1g9yfpm80kzisy55idl09b6wvzv2sz27n957"))))
1240 (build-system gnu-build-system)
1242 '(#:phases (modify-phases %standard-phases
1243 (add-after 'install 'create-desktop-file
1244 (lambda* (#:key outputs #:allow-other-keys)
1245 ;; For the GeoClue provider to work, a .desktop file
1246 ;; needs to be provided. A template is available,
1247 ;; but it only gets installed when the GUI is enabled.
1248 ;; Install it manually for this Wayland variant.
1249 (let* ((out (assoc-ref outputs "out"))
1252 out "/share/applications/redshift.desktop")))
1253 (mkdir-p (dirname desktop-file))
1254 (copy-file "data/applications/redshift.desktop.in"
1256 (substitute* desktop-file
1260 `(("autoconf" ,autoconf)
1261 ("automake" ,automake)
1262 ("libtool" ,libtool)
1263 ("pkg-config" ,pkg-config)
1264 ("intltool" ,intltool)))
1266 `(("libdrm" ,libdrm)
1269 ("libxxf86vm" ,libxxf86vm)
1270 ("glib" ,glib) ; for Geoclue2 support
1271 ("wayland" ,wayland)))
1272 (home-page "https://github.com/minus7/redshift")
1273 (synopsis "Adjust the color temperature of your screen (with Wayland support)")
1275 "Redshift adjusts the color temperature according to the position of the
1276 sun. A different color temperature is set during night and daytime. During
1277 twilight and early morning, the color temperature transitions smoothly from
1278 night to daytime temperature to allow your eyes to slowly adapt. At night the
1279 color temperature should be set to match the lamps in your room.
1281 This is a fork with added support for Wayland using the wlr-gamma-control
1283 (license license:gpl3+))))
1285 (define-public xscreensaver
1287 (name "xscreensaver")
1293 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
1296 (base32 "15bv05vpfjwsrqbazrjmm382jd7vvw0mp6y9vasn6wvxzjf0in3k"))))
1297 (build-system gnu-build-system)
1299 `(#:tests? #f ; no check target
1301 (modify-phases %standard-phases
1302 (add-before 'configure 'adjust-gtk-resource-paths
1304 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
1305 (("@GTK_DATADIR@") "@datadir@")
1306 (("@PO_DATADIR@") "@datadir@"))
1308 #:configure-flags '("--with-pam" "--with-proc-interrupts"
1309 "--without-readdisplay")
1310 #:make-flags (list (string-append "AD_DIR="
1311 (assoc-ref %outputs "out")
1312 "/lib/X11/app-defaults"))))
1314 `(("pkg-config" ,pkg-config)
1315 ("intltool" ,intltool)))
1317 `(("libx11" ,libx11)
1318 ("libxext" ,libxext)
1324 ("libglade" ,libglade)
1325 ("libxml2" ,libxml2)
1327 ("libjpeg" ,libjpeg-turbo)
1328 ("linux-pam" ,linux-pam)
1334 ("libxrandr" ,libxrandr)
1337 (home-page "https://www.jwz.org/xscreensaver/")
1338 (synopsis "Classic screen saver suite supporting screen locking")
1340 "xscreensaver is a popular screen saver collection with many entertaining
1341 demos. It also acts as a nice screen locker.")
1342 ;; xscreensaver doesn't have a single copyright file and instead relies on
1343 ;; source comment headers, though most files have the same lax
1344 ;; permissions. To reduce complexity, we're pointing at Debian's
1345 ;; breakdown of the copyright information.
1346 (license (license:non-copyleft
1348 "http://metadata.ftp-master.debian.org/changelogs/"
1349 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1357 (uri (string-append "http://www.vergenet.net/~conrad/software"
1358 "/xsel/download/xsel-" version ".tar.gz"))
1361 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1362 (build-system gnu-build-system)
1364 `(("libxt" ,libxt)))
1365 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1366 (synopsis "Manipulate X selection")
1368 "XSel is a command-line program for getting and setting the contents of
1369 the X selection. Normally this is only accessible by manually highlighting
1370 information and pasting it with the middle mouse button.
1372 XSel reads from standard input and writes to standard output by default,
1373 but can also follow a growing file, display contents, delete entries and more.")
1374 (license (license:x11-style "file://COPYING"
1375 "See COPYING in the distribution."))))
1377 (define-public xdpyprobe
1383 (uri (string-append "https://github.com/alezost/" name
1384 "/releases/download/v" version
1385 "/" name "-" version ".tar.gz"))
1388 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1389 (build-system gnu-build-system)
1391 `(("libx11" ,libx11)))
1392 (home-page "https://github.com/alezost/xdpyprobe")
1393 (synopsis "Probe X server for connectivity")
1395 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1396 connectivity of the X server running on a particular @code{DISPLAY}.")
1397 (license license:gpl3+)))
1405 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1406 "releases/download/"
1407 version "/rofi-" version ".tar.xz"))
1410 "1nslmyqyzhfr4hxd4llqkkkb8ap8apkdna32rllvar7r576059ci"))))
1411 (build-system gnu-build-system)
1416 ("startup-notification" ,startup-notification)
1417 ("librsvg" ,librsvg)
1418 ("libxkbcommon" ,libxkbcommon)
1420 ("xcb-util" ,xcb-util)
1421 ("xcb-util-xrm" ,xcb-util-xrm)
1422 ("xcb-util-wm" ,xcb-util-wm)))
1427 ("glib:bin" ,glib "bin")
1428 ("pkg-config" ,pkg-config)))
1430 `(#:parallel-tests? #f ; fails in some circumstances
1432 (modify-phases %standard-phases
1433 (add-before 'configure 'adjust-tests
1435 (substitute* '("test/helper-expand.c")
1438 (("g_get_home_dir \\(\\)") "\"/\""))
1440 (home-page "https://github.com/DaveDavenport/rofi")
1441 (synopsis "Application launcher")
1442 (description "Rofi is a minimalist application launcher. It memorizes which
1443 applications you regularly use and also allows you to search for an application
1445 (license license:expat)))
1447 (define-public tint2
1453 (uri (string-append "https://gitlab.com/o9000/" name
1454 "/repository/archive.tar.gz?ref=" version))
1455 (file-name (string-append name "-" version ".tar.gz"))
1458 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1459 (build-system cmake-build-system)
1461 '(#:tests? #f ;no test target
1463 (modify-phases %standard-phases
1464 (add-after 'unpack 'fix-installation-prefix
1466 (substitute* "CMakeLists.txt"
1467 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))
1472 ("librsvg" ,librsvg)
1473 ("libxcomposite" ,libxcomposite)
1474 ("libxdamage" ,libxdamage)
1476 ("libxinerama" ,libxinerama)
1477 ("libxrandr" ,libxrandr)
1478 ("startup-notification" ,startup-notification)))
1480 `(("gettext" ,gettext-minimal)
1481 ("pkg-config" ,pkg-config)))
1482 (home-page "https://gitlab.com/o9000/tint2")
1483 (synopsis "Lightweight task bar")
1485 "Tint2 is a simple task bar made for modern X window managers. It was
1486 specifically made for Openbox but it should also work with other window
1487 managers (GNOME, KDE, XFCE etc.).
1489 The taskbar includes transparency and color settings for the font, icons,
1490 border, and background. It also supports multihead setups, customized mouse
1491 actions, a built-in clock, a battery monitor and a system tray.")
1492 (license license:gpl2)))
1495 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1499 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1500 revision "." (string-take commit 7)))
1504 (url "https://github.com/robm/dzen.git")
1506 (file-name (string-append name "-" version))
1509 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1510 (build-system gnu-build-system)
1512 `(#:tests? #f ; No test suite.
1513 #:make-flags ; Replacement for `config.mk`.
1515 (string-append "VERSION = " ,version)
1516 (string-append "PREFIX = " %output)
1517 "MANPREFIX = ${PREFIX}/share/man"
1519 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1520 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1521 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1526 (modify-phases %standard-phases
1527 (delete 'configure) ; No configuration script.
1528 ;; Use own make-flags instead of `config.mk`.
1529 (add-before 'build 'dont-include-config-mk
1531 (substitute* "Makefile" (("include config.mk") ""))
1534 `(("libx11" ,libx11)
1537 ("libxinerama" ,libxinerama)))
1538 (native-inputs `(("pkg-config" ,pkg-config)))
1539 (synopsis "General purpose messaging, notification and menuing program for X11")
1540 (description "Dzen is a general purpose messaging, notification and menuing
1541 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1542 (home-page "https://github.com/robm/dzen")
1543 (license license:expat))))
1545 (define-public xftwidth
1548 (version "20170402")
1553 (url "http://github.com/vixus0/xftwidth")
1554 (commit "35ff963908d41a8a6a7101c434c88255728025ee")))
1557 "1jwl25785li24kbp0m1wxfwk4dgxkliynn03nsj813cjr34kq16h"))
1558 (file-name (string-append name "-" version "-checkout"))))
1559 (build-system gnu-build-system)
1560 (inputs `(("freetype" ,freetype)
1562 ("fontconfig" ,fontconfig)
1563 ("libxft" ,libxft)))
1565 `(("pkg-config" ,pkg-config)))
1568 (modify-phases %standard-phases
1569 (add-after 'unpack 'fix-makefile ; /usr/bin doesn't show up in PATH
1570 (lambda _ (substitute* "Makefile" (("usr/") "")) #t))
1571 (delete 'check) ; no check included in Makefile
1572 (delete 'configure))
1574 (let ((out (assoc-ref %outputs "out")))
1575 (list (string-append "DESTDIR=" out)))))
1576 (home-page "https://github.com/vixus0/xftwidth")
1577 (synopsis "Calculator for determining pixel widths of displayed text using Xft fonts")
1578 (description "xftwidth is a small C program for calculating the pixel
1579 widths of displayed text using Xft fonts. It is especially useful in scripts
1580 for displaying text in graphical panels, menus, popups, and notification
1581 windows generated using dzen. These scripts are often used in conjunction with
1582 minimalistic tiling window managers such as herbstluftwm and bspwm.")
1583 (license license:expat)))
1585 (define-public xcb-util-xrm
1587 (name "xcb-util-xrm")
1592 "https://github.com/Airblader/xcb-util-xrm/releases"
1593 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1596 "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h"))
1597 (modules '((guix build utils)))
1601 (delete-file-recursively "m4")
1603 (build-system gnu-build-system)
1605 `(("pkg-config" ,pkg-config)
1607 ("libx11" ,libx11))) ; for tests
1609 `(("libxcb" ,libxcb)
1610 ("xcb-util" ,xcb-util)))
1611 (home-page "https://github.com/Airblader/xcb-util-xrm")
1612 (synopsis "XCB utility functions for the X resource manager")
1614 "The XCB util module provides a number of libraries which sit on
1615 top of libxcb, the core X protocol library, and some of the extension
1616 libraries. These experimental libraries provide convenience functions
1617 and interfaces which make the raw X protocol more usable. Some of the
1618 libraries also provide client-side code which is not strictly part of
1619 the X protocol but which has traditionally been provided by Xlib.
1621 XCB util-xrm module provides the following libraries:
1623 - xrm: utility functions for the X resource manager.")
1624 (license license:x11)))
1626 (define-public xcalib
1630 (home-page "https://github.com/OpenICC/xcalib")
1636 (file-name (git-file-name name version))
1639 "05fzdjmhiafgi2jf0k41i3nm0837a78sb6yv59cwc23nla8g0bhr"))
1642 ;; Add missing documentation for the new --output option.
1643 ;; This upstream patch can be removed on the next update.
1647 home-page "/commit/"
1648 "ae03889b91fe984b18e925ad2b5e6f2f7354e058.patch"))
1649 (file-name "xcalib-update-man-page.patch")
1652 "0f7b4d5484x4b9n1bwhqmar0kcaa029ffff7bp3xpr734n1qgqb6")))))))
1653 (build-system cmake-build-system)
1655 '(#:tests? #f)) ; no test suite
1656 (inputs `(("libx11" ,libx11)
1657 ("libxext" ,libxext)
1658 ("libxrandr" ,libxrandr)
1659 ("libxxf86vm" ,libxxf86vm)))
1660 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1661 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1662 profiles to the video card's gamma ramp. It does work with most video card
1663 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1664 invert colors on a specific display/screen.")
1665 (license license:gpl2)))
1667 (define-public nxbelld
1674 (url "https://github.com/dusxmt/nxbelld.git")
1678 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1679 (file-name (git-file-name name version))))
1680 (build-system gnu-build-system)
1681 (arguments '(#:configure-flags `("--enable-sound"
1684 (native-inputs `(("autoconf" ,autoconf)
1685 ("automake" ,automake)
1686 ("pkg-config" ,pkg-config)
1688 (inputs `(("libx11" ,libx11)
1689 ("alsa-lib" ,alsa-lib)))
1690 (synopsis "Daemon that performs an action every time the X11 bell is rung")
1691 (description "nxbelld is a tiny utility to aid people who either don't
1692 like the default PC speaker beep, or use a sound driver that doesn't have
1693 support for the PC speaker. The utility performs a given action every time
1694 the X bell is rung. The actions nxbelld can currently perform include running
1695 a specified program, emulating the PC speaker beep using the sound card (default),
1696 or playing a PCM encoded WAVE file.")
1697 (home-page "https://github.com/dusxmt/nxbelld")
1698 (license license:gpl3+)))
1700 (define-public xautolock
1706 (uri (string-append "https://www.ibiblio.org/pub/linux/X11/"
1707 "screensavers/xautolock-" version ".tgz"))
1710 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1711 (build-system gnu-build-system)
1713 `(("imake" ,imake)))
1715 `(("libx11" ,libx11)
1716 ("libxext" ,libxext)
1717 ("libxscrnsaver" ,libxscrnsaver)))
1721 (modify-phases %standard-phases
1723 (lambda* (#:key inputs outputs #:allow-other-keys)
1724 (let ((imake (assoc-ref inputs "imake"))
1725 (out (assoc-ref outputs "out")))
1726 ;; Generate Makefile
1728 (substitute* "Makefile"
1729 ;; These imake variables somehow remain undefined
1730 (("DefaultGcc2[[:graph:]]*Opt") "-O2")
1731 ;; Reset a few variable defaults that are set in imake templates
1733 (("(MANPATH = )[[:graph:]]*" _ front)
1734 (string-append front out "/share/man")))
1735 ;; Old BSD-style 'union wait' is unneeded (defining
1736 ;; _USE_BSD did not seem to fix it)
1737 (substitute* "src/engine.c"
1738 (("union wait status") "int status = 0"))
1740 (add-after 'install 'install/man
1742 (invoke "make" "install.man"))))))
1743 (home-page "https://ibiblio.org/pub/Linux/X11/screensavers/")
1744 (synopsis "Program launcher for idle X sessions")
1745 (description "Xautolock monitors input devices under the X Window
1746 System, and launches a program of your choice if there is no activity after
1747 a user-configurable period of time.")
1748 (license license:gpl2)))
1750 (define-public screen-message
1752 (name "screen-message")
1757 "https://www.joachim-breitner.de/archive/screen-message"
1758 "/screen-message-" version ".tar.gz"))
1761 "1lw955qq5pq010lzmaf32ylj2iprgsri9ih4hx672c3f794ilab0"))))
1762 (build-system gnu-build-system)
1763 (inputs `(("gtk3" ,gtk+)
1766 (native-inputs `(("pkg-config" ,pkg-config)))
1768 ;; The default configure puts the 'sm' binary in games/ instead of bin/ -
1770 `(#:make-flags (list (string-append "execgamesdir=" %output "/bin"))))
1771 (synopsis "Print messages on your screen")
1772 (description "@code{screen-message} is a tool for displaying text on
1773 your screen. It will make the text as large as possible and display it
1774 with black color on a white background (colors are configurable on the
1776 (home-page "https://www.joachim-breitner.de/projects#screen-message")
1777 (license license:gpl2+)))
1779 (define-public xss-lock
1780 ;; xss-lock does not seem to be maintained any longer, but the last commits
1781 ;; fix important issues so we package them.
1782 (let ((version "0.3.0")
1784 (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717"))
1787 (version (git-version version revision commit))
1791 (url "https://bitbucket.org/raymonad/xss-lock.git")
1793 (file-name (git-file-name name version))
1796 "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r"))))
1797 (build-system cmake-build-system)
1798 (inputs `(("glib" ,glib)
1799 ("xcb-util" ,xcb-util)))
1801 `(("python-docutils" ,python-docutils)
1802 ("pkg-config" ,pkg-config)))
1805 (synopsis "Use external screen locker on events")
1806 (description "@code{xss-lock} listens to X signals to fire up a
1807 user-defined screensaver. In effect this automatically locks the
1808 screen when closing a laptop lid or after a period of user inactivity (as set
1809 with @code{xset s TIMEOUT}). The notifier command, if specified, is executed
1810 first. Additionally, xss-lock uses the inhibition logic to lock the screen
1811 before the system goes to sleep.")
1812 (home-page "https://bitbucket.org/raymonad/xss-lock")
1813 (license license:expat))))
1815 (define-public python-pyperclip
1817 (name "python-pyperclip")
1822 (uri (pypi-uri "pyperclip" version))
1825 "1p505c23ji06r28k1y67siihsbdzdf1brhlqpyv9ams4gk9863pp"))))
1826 (build-system python-build-system)
1828 '(#:tests? #f)) ; Not clear how to make tests pass.
1832 (home-page "https://github.com/asweigart/pyperclip")
1833 (synopsis "Python clipboard module")
1835 "Pyperclip is a clipboard module for Python, handling copy/pasting from
1837 (license license:bsd-3)))
1839 (define-public numlockx
1846 ;; It seems that upstream is gone.
1847 (url "https://github.com/rg3/numlockx")
1849 (file-name (git-file-name name version))
1852 "1w49fayhwzn5rx0z1q2lrvm7z8jrd34lgb89p853a024bixc3cf2"))))
1853 (build-system gnu-build-system)
1855 `(("xorg-server" ,xorg-server)))
1856 (home-page "https://github.com/rg3/numlockx")
1857 (synopsis "Turns on the numlock key in X11")
1858 (description "@command{numlockx} is a tiny program that lets you turn on
1859 the numlock key in X11. It can be called from the user's initialization files
1860 to automatically turn it on on login.")
1861 (license license:expat)))
1863 (define-public xrandr-invert-colors
1865 (name "xrandr-invert-colors")
1870 (url "https://github.com/zoltanp/xrandr-invert-colors.git")
1871 (commit (string-append "v" version))))
1872 (file-name (git-file-name name version))
1875 "1br3x9vr6xm4ika06n8cfxx1b3wdchdqvyzjl4y1chmivrml8x9h"))))
1876 (build-system gnu-build-system)
1878 `(#:make-flags (list "CC=gcc")
1879 #:tests? #f ; there are none
1881 (modify-phases %standard-phases
1884 (lambda* (#:key outputs #:allow-other-keys)
1885 (let* ((out (assoc-ref outputs "out"))
1886 (bin (string-append out "/bin")))
1887 (install-file "xrandr-invert-colors.bin" bin)
1890 `(("libxrandr" ,libxrandr)))
1891 (home-page "https://github.com/zoltanp/xrandr-invert-colors")
1892 (synopsis "Invert display colors")
1893 (description "This package provides a small utility for inverting the
1894 colors on all monitors attached to an XRandR-capable X11 display server.")
1895 (license license:gpl3+)))
1905 (string-append "https://www.umaxx.net/dl/sct-"
1909 "0r57z9ki8pvxhawfxys0v5h85z2x211sqxki0xvk1bga88ryldlv"))))
1910 (build-system gnu-build-system)
1912 '(#:make-flags (list "CC=gcc")
1913 #:tests? #f ; No tests exist.
1915 (modify-phases %standard-phases
1917 (add-after 'unpack 'fix-sctd-paths
1918 (lambda* (#:key outputs inputs #:allow-other-keys)
1919 (let ((out (assoc-ref outputs "out"))
1920 (coreutils (assoc-ref inputs "coreutils"))
1921 (inetutils (assoc-ref inputs "inetutils"))
1922 (sed (assoc-ref inputs "sed")))
1923 (substitute* "sctd.sh"
1924 (("\\$\\(which sct\\)") (string-append out "/bin/sct"))
1925 (("date") (string-append coreutils "/bin/date"))
1926 (("printf") (string-append coreutils "/bin/printf"))
1927 (("sleep") (string-append coreutils "/bin/sleep"))
1928 (("logger") (string-append inetutils "/bin/logger"))
1929 (("sed") (string-append sed "/bin/sed"))))))
1931 (lambda* (#:key outputs #:allow-other-keys)
1932 (let ((out (assoc-ref outputs "out")))
1933 (install-file "sct" (string-append out "/bin"))
1934 (install-file "sctd.sh" (string-append out "/bin"))
1935 (install-file "sct.1" (string-append out "/man/man1"))
1936 (install-file "sctd.1" (string-append out "/man/man1"))
1937 (rename-file (string-append out "/bin/sctd.sh")
1938 (string-append out "/bin/sctd"))
1941 `(("coreutils" ,coreutils) ; sctd uses "date", "printf" and "sleep"
1942 ("inetutils" ,inetutils) ; sctd uses "logger"
1943 ("libxrandr" ,libxrandr)
1944 ("sed" ,sed))) ; sctd uses "sed"
1945 (home-page "https://www.umaxx.net")
1946 (synopsis "Set the color temperature of the screen")
1947 (description "@code{sct} is a lightweight utility to set the color
1948 temperature of the screen.")
1949 (license (license:non-copyleft "file://sct.c")))) ; "OpenBSD" license
1951 (define-public xsecurelock
1953 (name "xsecurelock")
1958 "https://github.com/google/xsecurelock/releases"
1959 "/download/v" version "/xsecurelock-" version ".tar.gz"))
1961 (base32 "070gknyv0s5hz9hkc6v73m2v7ssyjwgl93b5hd4glayfqxqjbmdp"))))
1962 (build-system gnu-build-system)
1965 '("--with-pam-service-name=login"
1967 "--with-default-authproto-module=/run/setuid-programs/authproto_pam")))
1969 `(("pandoc" ,ghc-pandoc)
1970 ("pkg-config" ,pkg-config)))
1972 `(("fontconfig" ,fontconfig)
1974 ("libxcomposite" ,libxcomposite)
1975 ("libxext" ,libxext)
1976 ("libxfixes" ,libxfixes)
1979 ("libxrandr" ,libxrandr)
1980 ("libxscrnsaver" ,libxscrnsaver)
1981 ("linux-pam" ,linux-pam)))
1982 (home-page "https://github.com/google/xsecurelock")
1983 (synopsis "X11 screen lock utility with the primary goal of security")
1984 (description "@code{xsecurelock} is an X11 screen locker which uses
1985 a modular design to avoid the usual pitfalls of screen locking utility design.
1987 As a consequence of the modular design, the usual screen locker service
1988 shouldn't be used with @code{xsecurelock}. Instead, you need to add a helper
1989 binary to setuid-binaries:
1991 (setuid-programs (cons*
1992 (file-append xsecurelock \"/libexec/xsecurelock/authproto_pam\")
1995 (license license:asl2.0)))
1997 (define-public wl-clipboard
1999 (name "wl-clipboard")
2005 (url "https://github.com/bugaevc/wl-clipboard.git")
2006 (commit (string-append "v" version))))
2007 (file-name (git-file-name name version))
2009 (base32 "0c4w87ipsw09aii34szj9p0xfy0m00wyjpll0gb0aqmwa60p0c5d"))))
2010 (build-system meson-build-system)
2012 `(("pkg-config" ,pkg-config)))
2014 `(("wayland" ,wayland)
2015 ("wayland-protocols" ,wayland-protocols)))
2016 (home-page "https://github.com/bugaevc/wl-clipboard")
2017 (synopsis "Command-line copy/paste utilities for Wayland")
2018 (description "Wl-clipboard is a set of command-line copy/paste utilities for
2020 (license license:gpl3+)))
2022 (define-public autocutsel
2028 (uri (string-append "https://github.com/sigmike/autocutsel"
2029 "/releases/download/" version "/"
2030 "autocutsel-" version ".tar.gz"))
2033 "0gsys2dzh4az51ndcsabhlbbrjn2nm75lnjr45kg6r8sm8q66dx2"))))
2034 (build-system gnu-build-system)
2036 '(#:tests? #f)) ; no "check" target
2037 (native-inputs `(("libx11" ,libx11)
2038 ("libxaw" ,libxaw)))
2039 (home-page "https://www.nongnu.org/autocutsel/")
2040 (synopsis "Automated X11 clipboard and cutbuffer synchronization")
2041 (description "@code{autocutsel} tracks changes in the server's cutbuffer
2042 and clipboard selection. When the clipboard is changed, it updates the
2043 cutbuffer. When the cutbuffer is changed, it owns the clipboard selection.
2044 The cutbuffer and clipboard selection are always synchronized.")
2045 (license license:gpl2+)))
2047 (define-public jgmenu
2055 (url "https://github.com/johanmalm/jgmenu.git")
2056 (commit (string-append "v" version))))
2057 (file-name (git-file-name name version))
2060 "1wsh37rapb1bszlq36hvwxqvfds39hbvbl152m8as4zlh93wfvvk"))))
2061 (build-system gnu-build-system)
2063 `(("cppcheck" ,cppcheck)
2065 ("pkg-config" ,pkg-config)))
2069 ("librsvg" ,librsvg)
2071 ("libxml2" ,libxml2)
2072 ("libxrandr" ,libxrandr)
2076 (modify-phases %standard-phases
2077 (add-after 'unpack 'fix-tests
2079 (substitute* "scripts/cppcheck-wrapper.sh"
2080 (("--library=/usr/share/cppcheck/cfg/gnu\\.cfg")
2084 (lambda* (#:key outputs #:allow-other-keys)
2086 (invoke "./configure"
2087 (string-append "--prefix=" (assoc-ref outputs "out")))
2089 (synopsis "Simple X11 menu")
2091 "This is a simple menu for X11 designed for scripting and tweaking. It
2092 can optionally use some appearance settings from XSettings, tint2 and GTK.")
2093 (home-page "https://jgmenu.github.io/")
2094 (license license:gpl2)))
2096 (define-public xwallpaper
2104 (url "https://github.com/stoeckmann/xwallpaper")
2105 (commit (string-append "v" version))))
2106 (file-name (git-file-name name version))
2109 "175fzifvia58vah2x7509drvfn3xfv5d9szgh9x1w1a1w8rcs2hx"))))
2110 (build-system gnu-build-system)
2112 `(("autoconf" ,autoconf)
2113 ("automake" ,automake)
2114 ("pkg-config" ,pkg-config)))
2116 `(("libjpeg-turbo" ,libjpeg-turbo)
2120 ("xcb-util" ,xcb-util)
2121 ("xcb-util-image" ,xcb-util-image)))
2122 (home-page "https://github.com/stoeckmann/xwallpaper")
2123 (synopsis "Wallpaper setting utility for X")
2125 "The xwallpaper utility allows you to set image files as your X
2126 wallpaper. JPEG, PNG, and XPM file formats are supported.
2128 The wallpaper is also advertised to programs which support semi-transparent
2130 (license license:isc)))
2132 (define-public xwrits
2139 (uri (string-append "https://www.lcdf.org/~eddietwo/xwrits/"
2140 "xwrits-" version ".tar.gz"))
2142 (base32 "1n7y0fqpcvmzznvbsn14hzy5ddaa3lilm8aw6ckscqndnh4lijma"))))
2143 (build-system gnu-build-system)
2146 (modify-phases %standard-phases
2147 (add-after 'install 'install-docs
2148 (lambda* (#:key outputs #:allow-other-keys)
2149 (let* ((out (assoc-ref outputs "out"))
2150 (doc (string-append out "/share/doc/xwrits")))
2151 (install-file "GESTURES" doc)
2152 (install-file "README" doc)
2155 `(("libx11" ,libx11)
2156 ("libxinerama" ,libxinerama)))
2157 (home-page "https://www.lcdf.org/~eddietwo/xwrits/")
2158 (synopsis "Reminds you to take wrist breaks")
2159 (description "Xwrits reminds you to take wrist breaks for prevention or
2160 management of repetitive stress injuries. When you should take a break, it
2161 pops up an X window, the warning window. You click on the warning window,
2162 then take a break. The window changes appearance while you take the break.
2163 It changes again when your break is over. Then you just resume typing.
2164 Xwrits hides itself until you should take another break.")
2165 (license license:gpl2)))
2167 (define-public xsettingsd
2175 (url "https://github.com/derat/xsettingsd.git")
2176 (commit (string-append "v" version))))
2177 (file-name (git-file-name name version))
2180 "05m4jlw0mgwp24cvyklncpziq1prr2lg0cq9c055sh4n9d93d07v"))))
2181 (build-system scons-build-system)
2183 `(("libx11" ,libx11)))
2185 `(("pkg-config" ,pkg-config)
2186 ("googletest" ,googletest)
2187 ("googletest-source" ,(package-source googletest))))
2189 `(#:scons ,scons-python2
2193 (modify-phases %standard-phases
2194 (add-before 'build 'patch-sconstruct
2195 (lambda* (#:key inputs #:allow-other-keys)
2196 (substitute* "SConstruct"
2197 ;; scons doesn't pick up environment variables automatically
2198 ;; so it needs help to find path variables
2199 (("env = Environment\\(")
2202 'PATH': os.environ['PATH'],
2203 'CPATH': os.environ['C_INCLUDE_PATH'],
2204 'LIBRARY_PATH': os.environ['LIBRARY_PATH'],
2205 'PKG_CONFIG_PATH': os.environ['PKG_CONFIG_PATH']
2207 ;; Update path to gtest source files used in tests
2208 (("/usr/src/gtest") (string-append
2209 (assoc-ref inputs "googletest-source")
2211 ;; Exclude one warning that causes a build error
2212 (("-Werror") "-Werror -Wno-error=sign-compare"))
2214 ;; The SConstruct script doesn't configure installation so
2215 ;; binaries must be copied to the output path directly
2217 (lambda* (#:key outputs #:allow-other-keys)
2218 (let* ((out (assoc-ref outputs "out"))
2219 (bin (string-append out "/bin")))
2221 (install-file "xsettingsd" bin)
2222 (install-file "dump_xsettings" bin)
2224 (home-page "https://github.com/derat/xsettingsd")
2225 (synopsis "Xorg settings daemon")
2226 (description "@command{xsettingsd} is a lightweight daemon that provides settings to
2227 Xorg applications via the XSETTINGS specification. It is used for defining
2228 font and theme settings when a complete desktop environment (GNOME, KDE) is
2229 not running. With a simple @file{.xsettingsd} configuration file one can avoid
2230 configuring visual settings in different UI toolkits separately.")
2231 (license license:bsd-3)))
2233 (define-public clipnotify
2241 (url "https://github.com/cdown/clipnotify.git")
2243 (file-name (git-file-name name version))
2246 "1v3ydm5ljy8z1savmdxrjyx7a5bm5013rzw80frp3qbbjaci0wbg"))))
2247 (build-system gnu-build-system)
2250 (modify-phases %standard-phases
2253 (lambda* (#:key inputs outputs #:allow-other-keys)
2254 (let* ((out (assoc-ref outputs "out"))
2255 (bin (string-append out "/bin"))
2256 (doc (string-append %output "/share/doc/" ,name "-" ,version)))
2257 (install-file "clipnotify" bin)
2258 (install-file "README.md" doc)
2260 #:make-flags (list "CC=gcc")
2261 ;; the package provides no test suite:
2264 `(("libx11" ,libx11)
2265 ("libXfixes" ,libxfixes)))
2266 (home-page "https://github.com/cdown/clipnotify")
2267 (synopsis "Notify on new X clipboard events")
2268 (description "@command{clipnotify} is a simple program that, using the
2269 XFIXES extension to X11, waits until a new selection is available and then
2272 It was primarily designed for clipmenu, to avoid polling for new selections.
2274 @command{clipnotify} doesn't try to print anything about the contents of the
2275 selection, it just exits when it changes. This is intentional -- X11's
2276 selection API is verging on the insane, and there are plenty of others who
2277 have already lost their sanity to bring us xclip/xsel/etc. Use one of those
2278 tools to complement clipnotify.")
2279 (license license:public-domain)))
2281 (define-public clipmenu
2282 (let ((commit "bcbe7b144598db4a103f14e8408c4b7327d6d5e1")
2286 (version (string-append "6.0.1-"
2287 revision "." (string-take commit 7)))
2292 (url "https://github.com/cdown/clipmenu.git")
2294 (file-name (git-file-name name version))
2297 "0053j4i14lz5m2bzc5sch5id5ilr1bl196mp8fp0q8x74w3vavs9"))))
2298 (build-system gnu-build-system)
2301 (modify-phases %standard-phases
2305 (lambda* (#:key inputs outputs #:allow-other-keys)
2306 (let* ((out (assoc-ref outputs "out"))
2307 (bin (string-append out "/bin"))
2308 (doc (string-append %output "/share/doc/"
2309 ,name "-" ,version)))
2310 (install-file "clipdel" bin)
2311 (install-file "clipmenu" bin)
2312 (install-file "clipmenud" bin)
2313 (install-file "README.md" doc)
2315 (add-after 'install 'wrap-script
2316 (lambda* (#:key inputs outputs #:allow-other-keys)
2317 (let* ((out (assoc-ref outputs "out"))
2318 (clipnotify (assoc-ref inputs "clipnotify"))
2319 (coreutils-minimal (assoc-ref inputs "coreutils-minimal"))
2320 (gawk (assoc-ref inputs "gawk"))
2321 (util-linux (assoc-ref inputs "util-linux"))
2322 (xdotool (assoc-ref inputs "xdotool"))
2323 (xsel (assoc-ref inputs "xsel")))
2326 (wrap-script (string-append out "/bin/" prog)
2329 (string-append dir "/bin"))
2330 (list clipnotify coreutils-minimal
2331 gawk util-linux xdotool xsel)))))
2332 '("clipmenu" "clipmenud" "clipdel")))
2335 (lambda* (#:key inputs outputs #:allow-other-keys)
2336 ;; substitute a shebang appearing inside a string (the test
2337 ;; file writes this string to a temporary file):
2338 (substitute* "tests/test-clipmenu"
2339 (("#!/usr/bin/env bash")
2340 (string-append "#!" (which "bash"))))
2341 (invoke "tests/test-clipmenu")
2344 `(("clipnotify" ,clipnotify)
2345 ("coreutils-minimal" ,coreutils-minimal)
2347 ("guile" ,guile-3.0) ; for wrap-script
2348 ("util-linux" ,util-linux)
2349 ("xdotool" ,xdotool)
2351 (home-page "https://github.com/cdown/clipmenu")
2352 (synopsis "Simple clipboard manager using dmenu or rofi and xsel")
2353 (description "Start @command{clipmenud}, then run @command{clipmenu} to
2354 select something to put on the clipboard.
2356 When @command{clipmenud} detects changes to the clipboard contents, it writes
2357 them out to the cache directory. @command{clipmenu} reads the cache directory
2358 to find all available clips and launches @command{dmenu} (or @command{rofi},
2359 depending on the value of @code{CM_LAUNCHER}) to let the user select a clip.
2360 After selection, the clip is put onto the PRIMARY and CLIPBOARD X selections.")
2361 (license license:public-domain))))
2371 (url "https://github.com/qnikst/kbdd.git")
2372 (commit (string-append "v" version))))
2373 (file-name (git-file-name name version))
2376 "0qkq75grbd4wkx4nlvswgavpijk9ad0pzqyj89a0ayjsbsn36pqy"))))
2377 (build-system gnu-build-system)
2379 `(("autoconf" ,autoconf)
2380 ("automake" ,automake)
2381 ("glib" ,glib "bin")
2382 ("pkg-config" ,pkg-config)))
2384 `(("dbus-glib", dbus-glib)
2386 ("libx11" ,libx11)))
2387 (home-page "https://github.com/qnikst/kbdd")
2388 (synopsis "Per-window keyboard layout switching daemon for X")
2389 (description "@command{kbdd} is a simple keyboard layout switching
2390 program, which is designed to run in an X11 session and remember
2391 keyboard layouts on a per-window basis. That can be very handy for a
2392 user of a non-US keyboard who does not want to jump through layouts back
2393 and forth while typing in terminals (mostly in a latin alphabet) and
2394 some kind of chat (in native language).
2396 @command{kbdd} also supports D-Bus signals, which makes it possible to
2397 create layout indicator widgets.")
2398 (license license:bsd-2)))
2400 (define-public j4-dmenu-desktop
2402 (name "j4-dmenu-desktop")
2407 (url "https://github.com/enkore/j4-dmenu-desktop.git")
2408 (commit (string-append "r" version))))
2409 (file-name (git-file-name name version))
2412 "0v23fimkn83dcm5p53y2ymhklff3kwppxhf75sm8xmswrzkixpgc"))))
2413 (build-system cmake-build-system)
2415 `(("catch2" ,catch-framework2)))
2417 `(#:configure-flags '("-DWITH_GIT_CATCH=off")
2419 (modify-phases %standard-phases
2422 (invoke "./j4-dmenu-tests" "exclude:SearchPath/XDG_DATA_HOME"))))))
2423 (synopsis "Fast desktop menu")
2425 "j4-dmenu-desktop is a replacement for i3-dmenu-desktop. Its purpose
2426 is to find @file{.desktop} files and offer you a menu to start an application
2427 using @command{dmenu}.")
2428 (home-page "https://github.com/enkore/j4-dmenu-desktop")
2429 (license license:gpl3+)))
2438 (url "https://hg.sr.ht/~scoopta/wofi")
2439 (changeset (string-append "v" version))))
2440 (file-name (git-file-name name version))
2443 "086j5wshawjbwdmmmldivfagc2rr7g5a2gk11l0snqqslm294xsn"))))
2444 (build-system meson-build-system)
2446 `(#:glib-or-gtk? #t))
2448 `(("pkg-config" ,pkg-config)))
2451 ("wayland" ,wayland)))
2452 (synopsis "Launcher/menu program for wayland")
2454 "Wofi is a launcher/menu program for wlroots based wayland compositors
2455 such as sway, similar to @command{rofi}.")
2456 (home-page "https://hg.sr.ht/~scoopta/wofi")
2457 (license license:gpl3+)))