1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
5 ;;; Copyright © 2014, 2015, 2016 Alex Kost <alezost@gmail.com>
6 ;;; Copyright © 2013, 2015, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
7 ;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
8 ;;; Copyright © 2015 Alexander I.Grafov <grafov@gmail.com>
9 ;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
10 ;;; Copyright © 2015 xd1le <elisp.vim@gmail.com>
11 ;;; Copyright © 2015 Florian Paul Schmidt <mista.tapas@gmx.net>
12 ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
13 ;;; Copyright © 2016, 2018 Ricardo Wurmus <rekado@elephly.net>
14 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
15 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
16 ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
17 ;;; Copyright © 2016, 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
18 ;;; Copyright © 2016 Petter <petter@mykolab.ch>
19 ;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com>
20 ;;; Copyright © 2017 Nikita <nikita@n0.is>
21 ;;; Copyright © 2017, 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, 2020 Josh Holland <josh@inv.alid.pw>
31 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
32 ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
33 ;;; Copyright © 2020 David Wilson <david@daviwil.com>
34 ;;; Copyright © 2020 Ivan Vilata i Balaguer <ivan@selidor.net>
35 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
36 ;;; Copyright © 2020 Damien Cassou <damien@cassou.me>
37 ;;; Copyright © 2020 John Soo <jsoo1@asu.edu>
38 ;;; Copyright © 2020 Boris A. Dekshteyn <boris.dekshteyn@gmail.com>
39 ;;; Copyright © 2020 Alex McGrath <amk@amk.ie>
40 ;;; Copyright © 2020 Ivan Kozlov <kanichos@yandex.ru>
41 ;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
42 ;;; Copyright © 2020 Gabriel Arazas <foo.dogsquared@gmail.com>
44 ;;; This file is part of GNU Guix.
46 ;;; GNU Guix is free software; you can redistribute it and/or modify it
47 ;;; under the terms of the GNU General Public License as published by
48 ;;; the Free Software Foundation; either version 3 of the License, or (at
49 ;;; your option) any later version.
51 ;;; GNU Guix is distributed in the hope that it will be useful, but
52 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
53 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
54 ;;; GNU General Public License for more details.
56 ;;; You should have received a copy of the GNU General Public License
57 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
59 (define-module (gnu packages xdisorg)
60 #:use-module ((guix licenses) #:prefix license:)
61 #:use-module (guix packages)
62 #:use-module (guix download)
63 #:use-module (guix git-download)
64 #:use-module (guix hg-download)
65 #:use-module (guix utils)
66 #:use-module (guix build-system cmake)
67 #:use-module (guix build-system gnu)
68 #:use-module (guix build-system glib-or-gtk)
69 #:use-module (guix build-system meson)
70 #:use-module (guix build-system python)
71 #:use-module (guix build-system scons)
72 #:use-module (gnu packages)
73 #:use-module (gnu packages documentation)
74 #:use-module (gnu packages admin)
75 #:use-module (gnu packages base)
76 #:use-module (gnu packages algebra)
77 #:use-module (gnu packages autotools)
78 #:use-module (gnu packages check)
79 #:use-module (gnu packages compression)
80 #:use-module (gnu packages image)
81 #:use-module (gnu packages pkg-config)
82 #:use-module (gnu packages flex)
83 #:use-module (gnu packages freedesktop)
84 #:use-module (gnu packages gawk)
85 #:use-module (gnu packages gettext)
86 #:use-module (gnu packages gl)
87 #:use-module (gnu packages glib)
88 #:use-module (gnu packages gnome)
89 #:use-module (gnu packages haskell-xyz)
90 #:use-module (gnu packages icu4c)
91 #:use-module (gnu packages man)
92 #:use-module (gnu packages maths)
93 #:use-module (gnu packages m4)
94 #:use-module (gnu packages ncurses)
95 #:use-module (gnu packages perl)
96 #:use-module (gnu packages python)
97 #:use-module (gnu packages python-xyz)
98 #:use-module (gnu packages linux)
99 #:use-module (gnu packages gl)
100 #:use-module (gnu packages guile)
101 #:use-module (gnu packages xml)
102 #:use-module (gnu packages gtk)
103 #:use-module (gnu packages qt)
104 #:use-module (gnu packages xorg)
105 #:use-module (gnu packages fontutils)
106 #:use-module (gnu packages bison)
107 #:use-module (ice-9 match))
109 ;; packages outside the x.org system proper
111 (define-public arandr
117 (uri (string-append "https://christian.amsuess.com/tools/arandr"
118 "/files/arandr-" version ".tar.gz"))
121 "135q0llvm077jil2fr92ssw3p095m4r8jfj0lc5rr3m71n4srj6v"))
122 (modules '((guix build utils)))
125 ;; Do not record a timestamp and file name in gzipped man
126 ;; pages (this is equivalent to 'gzip --no-name'.)
127 (substitute* "setup.py"
128 (("gzip\\.open\\(gzfile, 'w', 9\\)")
129 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)"))
131 (build-system python-build-system)
134 (modify-phases %standard-phases
135 (add-before 'build 'configure
136 (lambda* (#:key inputs #:allow-other-keys)
137 (substitute* "screenlayout/xrandr.py"
138 (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr")
141 (add-after 'install 'wrap-gi-typelib
142 (lambda* (#:key inputs outputs #:allow-other-keys)
143 (let ((out (assoc-ref outputs "out"))
144 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
145 (wrap-program (string-append out "/bin/arandr")
146 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
148 #:tests? #f)) ;no tests
149 (inputs `(("gtk+" ,gtk+)
150 ("pycairo" ,python-pycairo)
151 ("pygobject" ,python-pygobject)
153 (native-inputs `(("gettext" ,gettext-minimal)
154 ("python-docutils" ,python-docutils)))
155 (home-page "https://christian.amsuess.com/tools/arandr/")
156 (synopsis "Another RandR graphical user interface")
157 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
158 (description "ARandR is designed to provide a simple visual front end for
159 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
160 shown graphically and can be changed in a drag-and-drop way. Configurations
161 are saved as executable shell scripts which can be loaded without using this
163 (license license:gpl3+)))
165 (define-public autorandr
169 (home-page "https://github.com/phillipberndt/autorandr")
176 (file-name (git-file-name name version))
178 (base32 "0msw9b1hdy3gbq9w5d04mfizhyirz1c648x84mlcbzl8salm7vpg"))))
179 (build-system python-build-system)
181 `(("pkg-config" ,pkg-config)))
187 (modify-phases %standard-phases
188 (add-before 'build 'configure
189 (lambda* (#:key inputs outputs #:allow-other-keys)
190 (let ((xrandr (string-append (assoc-ref inputs "xrandr")
192 (substitute* "contrib/etc/xdg/autostart/autorandr.desktop"
193 (("/usr") (assoc-ref outputs "out")))
194 (substitute* "autorandr.py"
195 (("popen\\(\"xrandr") (string-append "popen(\"" xrandr))
196 (("\\[\"xrandr") (string-append "[\"" xrandr)))
197 (substitute* "contrib/autorandr_launcher/autorandr_launcher.c"
198 (("/usr/bin/autorandr")
199 (string-append (assoc-ref outputs "out") "/bin/autorandr")))
202 (add-after 'install 'install-contrib
203 (lambda* (#:key outputs #:allow-other-keys)
205 (string-append "DESTDIR=" (assoc-ref outputs "out"))
207 "BASH_COMPLETIONS_DIR=etc/bash_completion.d"
209 "TARGETS=autorandr launcher manpage bash_completion"))))))
210 (synopsis "Auto-detect connected displays and load appropriate setup")
211 (description "Autorandr wraps around xrandr to help with X11
212 multi-screen configuration management. It allows the user to create profiles
213 for various multi-screen setups. Autorandr automatically detects the profiles
214 that can be activated based on the connected hardware. Hook scripts can be
215 used to further tweak the behaviour of the different profiles.")
216 (license license:gpl3+)))
218 (define-public bemenu
226 (url "https://github.com/Cloudef/bemenu")
228 (file-name (git-file-name name version))
230 (base32 "1fjcs9d3533ay3nz79cx3c0lmy2chgragr2lhsy0xl2ckr0iins0"))))
231 (build-system gnu-build-system)
234 #:make-flags (list "CC=gcc"
236 (string-append "LDFLAGS=-Wl,-rpath="
237 (assoc-ref %outputs "out") "/lib")
238 (string-append "PREFIX=" (assoc-ref %outputs "out")))
240 (modify-phases %standard-phases
241 (delete 'configure))))
245 ("libxkbcomon" ,libxkbcommon)
246 ("libxinerama" ,libxinerama)
250 ("wayland-protocols" ,wayland-protocols)))
252 `(("doxygen" ,doxygen)
253 ("pkg-config" ,pkg-config)))
254 (home-page "https://github.com/Cloudef/bemenu")
255 (synopsis "Dynamic menu library and client program inspired by dmenu")
257 "bemenu is a dynamic menu which allows the user to flexibly select from a
258 list of options (usually programs to launch). It renders the menu graphically
259 with X11 or Wayland, or in a text terminal with ncurses.")
260 (license (list license:gpl3+ ; client program[s] and other sources
261 license:lgpl3+)))) ; library and bindings
270 (url "https://github.com/hluk/CopyQ")
271 (commit (string-append "v" version))))
272 (file-name (git-file-name name version))
275 "0wlwq9xg8rzsbj0b29z358k4mbrqy04iraa8x0p26pa95yskgcma"))))
276 (build-system cmake-build-system)
278 `(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release")
279 #:tests? #f)) ; Test suite is a rather manual process.
282 ("qtscript" ,qtscript)
284 ("qtx11extras" ,qtx11extras)))
285 (synopsis "Clipboard manager with advanced features")
286 (description "CopyQ is clipboard manager with editing and scripting
287 features. CopyQ monitors system clipboard and saves its content in customized
288 tabs. Saved clipboard can be later copied and pasted directly into any
290 (home-page "https://hluk.github.io/CopyQ/")
291 (license license:gpl3+)))
301 (url "https://github.com/astrand/xclip")
303 (file-name (git-file-name name version))
306 "0q0hmvcjlv8arhh1pzhja2wglyj6n7z209jnpnzd281kqqv4czcs"))))
307 (build-system gnu-build-system)
309 '(#:tests? #f)) ;there is no test suite
311 `(("autoconf" ,autoconf)
312 ("automake" ,automake)))
313 (inputs `(("libxmu" ,libxmu)
315 (home-page "https://github.com/astrand/xclip")
316 (synopsis "Command line interface to X11 clipboard")
317 (description "Xclip is a command line interface to the X11 clipboard. It
318 can also be used for copying files, as an alternative to sftp/scp, thus
319 avoiding password prompts when X11 forwarding has already been setup.")
320 (license license:gpl2+)))
322 (define-public libxkbcommon
324 (name "libxkbcommon")
328 (uri (string-append "https://xkbcommon.org/download/libxkbcommon-"
332 "1wmnl0hngn6vrqrya4r8hvimlkr4jag39yjprls4gyrqvh667hsp"))))
333 (build-system meson-build-system)
338 ("wayland-protocols" ,wayland-protocols)
339 ("xkeyboard-config" ,xkeyboard-config)))
343 ("pkg-config" ,pkg-config)))
346 (list (string-append "-Dxkb-config-root="
347 (assoc-ref %build-inputs "xkeyboard-config")
349 (string-append "-Dx-locale-root="
350 (assoc-ref %build-inputs "libx11")
351 "/share/X11/locale"))))
352 (home-page "https://xkbcommon.org/")
353 (synopsis "Library to handle keyboard descriptions")
354 (description "Xkbcommon is a library to handle keyboard descriptions,
355 including loading them from disk, parsing them and handling their
356 state. It is mainly meant for client toolkits, window systems, and other
357 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
358 Clutter, and more. Despite the name, it is not currently used by anything
360 (license (license:x11-style "file://COPYING"
361 "See 'COPYING' in the distribution."))))
363 (define-public libfakekey
371 (url "https://git.yoctoproject.org/git/libfakekey")
373 (file-name (git-file-name name version))
375 (base32 "1jw1d4wc1ysiijirc7apnz3sryrxbl9akgb92mh06dvfkz2nblj0"))))
376 (build-system gnu-build-system)
378 `(#:make-flags (list "AM_LDFLAGS=-lX11")
380 (modify-phases %standard-phases
382 ;; ./autogen.sh calls ./configure before shebangs have been patched.
384 (invoke "autoreconf" "-vfi"))))))
386 `(("pkg-config" ,pkg-config)
388 ;; For bootstrapping from git.
389 ("autoconf" ,autoconf)
390 ("automake" ,automake)
391 ("libtool" ,libtool)))
393 `(("libxtst" ,libxtst)
395 (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox")
396 (synopsis "X virtual keyboard library")
398 "Libfakekey is a virtual keyboard library for X.")
399 (license license:gpl2)))
401 (define-public xdotool
404 (version "3.20160805.1")
409 "https://github.com/jordansissel/xdotool/releases/download/v"
410 version "/xdotool-" version ".tar.gz"))
413 "1a6c1zr86zb53352yxv104l76l8x21gfl2bgw6h21iphxpv5zgim"))))
414 (build-system gnu-build-system)
416 '(#:tests? #f ; Test suite requires a lot of black magic
418 (modify-phases %standard-phases
420 (lambda* (#:key outputs #:allow-other-keys #:rest args)
421 (let ((out (assoc-ref outputs "out")))
422 (mkdir-p (string-append out "/lib"))
423 (setenv "PREFIX" out)
424 (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib"))
427 (native-inputs `(("perl" ,perl))) ; for pod2man
428 (inputs `(("libx11" ,libx11)
431 ("libxinerama" ,libxinerama)
433 ("libxkbcommon" ,libxkbcommon)))
434 (home-page "https://www.semicomplete.com/projects/xdotool/")
435 (synopsis "Fake keyboard/mouse input, window management, and more")
436 (description "Xdotool lets you simulate keyboard input and mouse activity,
437 move and resize windows, etc. It does this using X11's XTEST extension and
438 other Xlib functions. Additionally, you can search for windows and move,
439 resize, hide, and modify window properties like the title. If your window
440 manager supports it, you can use xdotool to switch desktops, move windows
441 between desktops, and change the number of desktops.")
442 (license license:bsd-3)))
451 (uri (string-append "https://www.x.org/releases/individual/app/"
452 name "-" version ".tar.bz2"))
454 (base32 "0lq5j7fryx1wn998jq6h3icz1h6pqrsbs3adskjzjyhn5l6yrg2p"))))
455 (build-system gnu-build-system)
457 `(("libxext" ,libxext)
459 ("libxrender" ,libxrender)
462 `(("pkg-config" ,pkg-config)))
463 (home-page "https://www.x.org/") ; no dedicated Xeyes page exists
464 (synopsis "Follow-the-mouse X demo")
465 (description "Xeyes is a demo program for x.org. It shows eyes
466 following the mouse.")
467 (license license:x11)))
470 (define-public pixman
477 "https://www.cairographics.org/releases/pixman-"
481 "1ryxzdf048x7wsx4dlvrr1p00gzwfs7lybnhgc7ygbj0dvyxcrns"))
482 (patches (search-patches "pixman-CVE-2016-5296.patch"))))
483 (build-system gnu-build-system)
485 '(#:configure-flags '("--disable-static")))
490 `(("pkg-config" ,pkg-config)))
491 (home-page "http://www.pixman.org/")
492 (synopsis "Low-level pixel manipulation library")
493 (description "Pixman is a low-level software library for pixel
494 manipulation, providing features such as image compositing and trapezoid
496 (license license:x11)))
498 (define-public libdrm
505 "https://dri.freedesktop.org/libdrm/libdrm-"
509 "19vqbhqljhln0lrpnv3s7y3lkhsdcp76dl8bhqj3cis9ism1pwyx"))
510 (patches (search-patches "libdrm-realpath-virtio.patch"))))
511 (build-system meson-build-system)
514 '(,@(match (%current-system)
515 ((or "armhf-linux" "aarch64-linux")
520 "-Dfreedreno-kgsl=true"))
523 #:phases (modify-phases %standard-phases
526 (invoke "meson" "test" "--timeout-multiplier" "5"))))))
528 `(("libpciaccess" ,libpciaccess)))
530 `(("pkg-config" ,pkg-config)))
531 (home-page "https://dri.freedesktop.org/wiki/")
532 (synopsis "Direct rendering userspace library")
533 (description "The Direct Rendering Infrastructure, also known as the DRI,
534 is a framework for allowing direct access to graphics hardware under the
535 X Window System in a safe and efficient manner. It includes changes to the
536 X server, to several client libraries, and to the kernel (DRM, Direct
537 Rendering Manager). The most important use for the DRI is to create fast
538 OpenGL implementations providing hardware acceleration for Mesa.
539 Several 3D accelerated drivers have been written to the DRI specification,
540 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
542 (license license:x11)))
553 "http://bitmath.org/code/mtdev/mtdev-"
557 "1q700h9dqcm3zl6c3gj0qxxjcx6ibw2c51wjijydhwdcm26v5mqm"))))
558 (build-system gnu-build-system)
559 (arguments '(#:configure-flags '("--disable-static")))
560 (home-page "http://bitmath.org/code/mtdev/")
561 (synopsis "Multitouch protocol translation library")
562 (description "Mtdev is a stand-alone library which transforms all
563 variants of kernel MT events to the slotted type B protocol. The events
564 put into mtdev may be from any MT device, specifically type A without
565 contact tracking, type A with contact tracking, or type B with contact
567 (license license:x11)))
569 (define-public startup-notification
571 (name "startup-notification")
576 (uri (string-append "https://www.freedesktop.org/software/" name
577 "/releases/" name "-" version ".tar.gz"))
580 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
581 (build-system gnu-build-system)
582 (native-inputs `(("pkg-config" ,pkg-config)))
585 ("xcb-util" ,xcb-util)))
586 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
587 (synopsis "Application startup notification and feedback library")
589 "Startup-notification contains a reference implementation of the startup
590 notification protocol. The reference implementation is mostly under an X Window
591 System style license, and has no special dependencies.")
592 ;; Most of the code is provided under x11 license.
593 (license license:lgpl2.0+)))
595 (define-public wmctrl
602 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
606 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
607 (patches (search-patches "wmctrl-64-fix.patch"))))
608 (build-system gnu-build-system)
611 (list (string-append "--mandir="
612 (assoc-ref %outputs "out")
615 `(("pkg-config" ,pkg-config)))
620 (home-page "http://tomas.styblo.name/wmctrl/")
621 (synopsis "Command-line tool to control X window managers")
623 "Wmctrl interacts with an X window manager that is compatible
624 with the EWMH/NetWM specification. It can query the window manager for
625 information, and request for certain window management actions (resize and
626 move windows, switch between desktops, etc.).")
627 (license license:gpl2+)))
638 (url "https://github.com/resurrecting-open-source-projects/scrot")
640 (file-name (git-file-name name version))
643 "12xq6glg70icwsvbnfw9gm4dahlbnrc7b6adpd0mpf89h4sj2gds"))))
644 (build-system gnu-build-system)
646 `(("autoconf" ,autoconf)
647 ("autoconf-archive" ,autoconf-archive)
648 ("automake" ,automake)))
652 ("libXcursor" ,libxcursor)
653 ("libxcomposite" ,libxcomposite)
654 ("libXfixes" ,libxfixes)))
655 (home-page "https://github.com/resurrecting-open-source-projects/scrot")
656 (synopsis "Command-line screen capture utility for X Window System")
658 "Scrot saves a screenshot of a full screen, a window or a part
659 of the screen selected by mouse.")
660 ;; This license removes a clause about X Consortium from the original
662 (license (license:x11-style "file://COPYING"
663 "See 'COPYING' in the distribution."))))
672 (url "https://github.com/naelstrof/slop")
673 (commit (string-append "v" version))))
674 (file-name (git-file-name name version))
677 "1k8xxb4rj2fylr4vj16yvsf73cyywliz9cy78pl4ibmi03jhg837"))))
678 (build-system cmake-build-system)
680 '(#:tests? #f)) ; no "check" target
686 ("libxrender" ,libxrender)
688 (home-page "https://github.com/naelstrof/slop")
689 (synopsis "Select a region and print its bounds to stdout")
691 "slop (Select Operation) is a tool that queries for a selection from a
692 user and prints the region to stdout. It grabs the mouse and turns it into a
693 crosshair, lets the user click and drag to make a selection (or click on a
694 window) while drawing a pretty box around it, then finally prints the
695 selection's dimensions to stdout.")
696 (license license:gpl3+)))
705 (url "https://github.com/naelstrof/maim")
706 (commit (string-append "v" version))))
707 (file-name (git-file-name name version))
710 "181mjjrjb9fs1ficcv9miqbk94v95j1yli7fjp2dj514g7nj9l3x"))))
711 (build-system cmake-build-system)
713 '(#:tests? #f)) ; no "check" target
716 ("libjpeg" ,libjpeg-turbo)
718 ("libxcomposite" ,libxcomposite)
719 ("libxfixes" ,libxfixes)
720 ("libxrandr" ,libxrandr)
724 (home-page "https://github.com/naelstrof/maim")
725 (synopsis "Screenshot utility for X Window System")
727 "maim (Make Image) is a tool that takes screenshots of your desktop and
728 saves it in any format. Along with a full screen, it allows you to capture a
729 predefined region or a particular window. Also, it makes it possible to
730 include cursor in the resulting image.")
731 (license license:gpl3+)))
733 (define-public unclutter
740 "http://ftp.x.org/contrib/utilities/unclutter-"
744 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
745 (build-system gnu-build-system)
747 '(#:tests? #f ; no check target
749 (modify-phases %standard-phases
752 (lambda* (#:key inputs outputs #:allow-other-keys)
753 (let* ((out (assoc-ref outputs "out"))
754 (bin (string-append out "/bin"))
755 (man1 (string-append out "/share/man/man1")))
758 (invoke "make" "install" "install.man"
759 (string-append "BINDIR=" bin)
760 (string-append "MANDIR=" man1))))))))
761 (inputs `(("libx11" ,libx11)))
762 (home-page "http://ftp.x.org/contrib/utilities/")
763 (synopsis "Hide idle mouse cursor")
765 "Unclutter is a program which runs permanently in the background of an
766 X11 session. It checks on the X11 pointer (cursor) position every few
767 seconds, and when it finds it has not moved (and no buttons are pressed
768 on the mouse, and the cursor is not in the root window) it creates a
769 small sub-window as a child of the window the cursor is in. The new
770 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
771 invisible cursor. This allows you to see all the text in an xterm or
772 xedit, for example. The human factors crowd would agree it should make
773 things less distracting.")
774 (license license:public-domain)))
776 (define-public xautomation
783 (uri (string-append "https://www.hoopajoo.net/static/projects/"
784 "xautomation-" version ".tar.gz"))
788 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
789 (build-system gnu-build-system)
794 ("libxtst" ,libxtst)))
796 `(("xorgproto" ,xorgproto)))
797 (synopsis "Tools to automate tasks in X such as detecting on screen images")
799 "Xautomation can control X from the command line for scripts, and
800 do visual scraping to find things on the screen. The control interface
801 allows mouse movement, clicking, button up/down, key up/down, etc, and
802 uses the XTest extension so you don't have the annoying problems that
803 xse has when apps ignore sent events. The visgrep program can find
804 images inside of images and reports the coordinates, allowing programs
805 to find buttons, etc, on the screen to click on.")
806 (home-page "https://www.hoopajoo.net/projects/xautomation.html")
807 (license license:gpl2+)))
809 (define-public xbanish
813 (home-page "https://github.com/jcs/xbanish")
816 (uri (git-reference (url home-page)
817 (commit (string-append "v" version))))
818 (file-name (git-file-name name version))
821 "0ic5f7zgc32p5g1wxas9y5h8dhik0pvsa8wmn6skdry56gw9vg9q"))))
822 (build-system gnu-build-system)
824 `(#:tests? #f ; no tests
825 #:make-flags (list "CC=gcc"
826 (string-append "PREFIX=" (assoc-ref %outputs "out")))
827 #:phases (modify-phases %standard-phases
828 (delete 'configure)))) ; no configure script
831 ("libxfixes" ,libxfixes)
834 (synopsis "Banish the mouse cursor")
836 "@command{xbanish} hides the mouse cursor when you start typing, and
837 shows it again when the mouse cursor moves or a mouse button is pressed.")
838 (license license:bsd-3)))
840 (define-public xlockmore
846 (uri (list (string-append "http://sillycycle.com/xlock/"
847 "xlockmore-" version ".tar.xz")
848 ;; Previous releases are moved to a subdirectory.
849 (string-append "http://sillycycle.com/xlock/"
851 "xlockmore-" version ".tar.xz")))
854 "0b05wgj4mpssy4hd7km5c48i454dfg45p11mfmsr7xjd2gnz5gqi"))))
855 (build-system gnu-build-system)
857 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
858 (assoc-ref %outputs "out")
859 "/lib/X11/app-defaults"))
860 #:tests? #f)) ;no such thing as a test suite
865 ("linux-pam" ,linux-pam)))
866 (home-page "https://sillycycle.com/xlockmore.html")
867 (synopsis "Screen locker for the X Window System")
869 "XLockMore is a classic screen locker and screen saver for the
871 (license (license:non-copyleft #f "See xlock.c.")
872 ))) ; + GPLv2 in modes/glx/biof.c.
881 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
882 name "-" version ".tar.gz"))
885 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
886 (build-system gnu-build-system)
889 (list (string-append "--mandir=" %output "/share/man"))))
894 ("libxinerama" ,libxinerama)))
895 (home-page "https://sourceforge.net/projects/libxosd/")
896 (synopsis "X On Screen Display")
898 "XOSD provides a C library and a simple utility (osd_cat) for displaying
899 transparent text on your screen.")
900 (license license:gpl2+)))
902 (define-public xbindkeys
908 ;; Download from the savannah mirror list fails
910 "http://www.nongnu.org/xbindkeys/xbindkeys-"
915 "1wl2vc5alisiwyk8m07y1ryq8w3ll9ym83j27g4apm4ixjl8d6x2"))))
916 (build-system gnu-build-system)
918 `(("pkg-config" ,pkg-config)))
921 ("guile" ,guile-2.2)))
922 (home-page "https://www.nongnu.org/xbindkeys/")
923 (synopsis "Associate a combination of keys with a shell command")
925 "XBindKeys is a program that allows you to launch shell commands with
926 your keyboard or your mouse under the X Window System. It links commands to
927 keys or mouse buttons, using a configuration file. It's independent of the
928 window manager and can capture all keyboard keys (ex: Power, Wake...). It
929 optionally supports a Guile-based configuration file layout, which enables you
930 to access all XBindKeys internals, so you can have key combinations, double
931 clicks or timed double clicks take actions. Also all functions that work in
932 Guile will work for XBindKeys.")
933 (license license:gpl2+)))
943 (url "https://github.com/baskerville/sxhkd")
945 (file-name (git-file-name name version))
947 (base32 "1winwzdy9yxvxnrv8gqpigl9y0c2px27mnms62bdilp4x6llrs9r"))))
948 (build-system gnu-build-system)
950 `(("asciidoc" ,asciidoc)
952 ("xcb-util" ,xcb-util)
953 ("xcb-util-keysyms" ,xcb-util-keysyms)
954 ("xcb-util-wm" ,xcb-util-wm)))
956 `(#:phases (modify-phases %standard-phases (delete 'configure))
957 #:tests? #f ; no check target
960 (string-append "PREFIX=" %output)
961 ;; Keep the documentation where the build system installs LICENSE.
962 (string-append "DOCPREFIX=" %output
963 "/share/doc/" ,name "-" ,version))))
964 (home-page "https://github.com/baskerville/sxhkd")
965 (synopsis "Simple X hotkey daemon")
966 (description "sxhkd is a simple X hotkey daemon with a powerful and
967 compact configuration syntax.")
968 (license license:bsd-2)))
970 (define-public rxvt-unicode
972 (name "rxvt-unicode")
976 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
977 name "-" version ".tar.bz2"))
978 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
981 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
982 (build-system gnu-build-system)
984 ;; This sets the destination when installing the necessary terminal
985 ;; capability data, which are not provided by 'ncurses'. See
986 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
987 `(#:make-flags (list (string-append "TERMINFO="
988 (assoc-ref %outputs "out")
991 (modify-phases %standard-phases
992 (add-after 'install 'install-desktop-urxvt
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 "/urxvt.desktop")
1005 TryExec=~@*~a/bin/urxvt~@
1010 (add-after 'install 'install-desktop-urxvtc
1011 (lambda* (#:key outputs #:allow-other-keys)
1012 (let* ((output (assoc-ref outputs "out"))
1013 (desktop (string-append output "/share/applications")))
1015 (with-output-to-file
1016 (string-append desktop "/urxvtc.desktop")
1020 Name=rxvt-unicode (client)~@
1021 Comment=Rxvt clone with XFT and unicode support~@
1022 Exec=~a/bin/urxvtc~@
1023 TryExec=~@*~a/bin/urxvtc~@
1029 `(("libXft" ,libxft)
1030 ("libX11" ,libx11)))
1032 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
1034 ("pkg-config" ,pkg-config)))
1035 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
1036 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
1037 (native-search-paths
1038 (list (search-path-specification
1039 (variable "TERMINFO_DIRS")
1040 (files '("share/terminfo")))))
1041 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
1042 (synopsis "Rxvt clone with XFT and unicode support")
1043 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
1044 intended as an xterm replacement for users who do not require features such as
1045 Tektronix 4014 emulation and toolkit-style configurability. It supports
1046 unicode, XFT and may be extended with Perl plugins. It also comes with a
1047 client/daemon pair that lets you open any number of terminal windows from
1048 within a single process.")
1049 (license license:gpl3+)))
1051 (define-public xcape
1058 (url "https://github.com/alols/xcape")
1059 (commit (string-append "v" version))))
1060 (file-name (git-file-name name version))
1063 "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm"))))
1064 (build-system gnu-build-system)
1066 `(#:tests? #f ; no check target
1067 ;; no configure script
1068 #:phases (modify-phases %standard-phases (delete 'configure))
1069 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1070 "MANDIR=/share/man/man1"
1073 `(("libxtst" ,libxtst)
1074 ("libx11" ,libx11)))
1076 `(("pkg-config" ,pkg-config)))
1077 (home-page "https://github.com/alols/xcape")
1078 (synopsis "Use a modifier key in X.org as another key")
1080 "This utility for X.org uses a modifier key as another key when
1081 pressed and released on its own. The default behaviour is to generate the
1082 Escape key when Left Control is pressed and released on its own.")
1083 (license license:gpl3+)))
1085 (define-public libwacom
1092 "https://github.com/linuxwacom/libwacom/releases/download/"
1093 "libwacom-" version "/libwacom-" version ".tar.bz2"))
1096 "0yyl6vzpfd7dq8a8k9dn8r494542ci4r1i0pillg1p4f7jvryd3b"))))
1097 (build-system glib-or-gtk-build-system)
1099 `(#:configure-flags '("--disable-static")))
1101 `(("pkg-config" ,pkg-config)))
1104 ("libgudev" ,libgudev)
1106 ("libxml2" ,libxml2)))
1108 ;; libwacom includes header files that include GLib, and libinput uses
1109 ;; those header files.
1111 (home-page "https://linuxwacom.github.io/")
1112 (synopsis "Helper library for Wacom tablet settings")
1114 "Libwacom is a library to help implement Wacom tablet settings. It is
1115 intended to be used by client-programs that need model identification. It is
1116 already being used by the gnome-settings-daemon and the GNOME Control Center
1117 Wacom tablet applet.")
1118 (license license:x11)))
1120 (define-public xf86-input-wacom
1122 (name "xf86-input-wacom")
1128 "https://github.com/linuxwacom/xf86-input-wacom/releases/download/"
1129 "xf86-input-wacom-" version "/"
1130 "xf86-input-wacom-" version ".tar.bz2"))
1132 (base32 "11qk58az6qwii774ga45h5yqzipwn56f0d74kdbajqdv45p85gqj"))))
1135 (list (string-append "--with-sdkdir="
1136 (assoc-ref %outputs "out")
1138 (string-append "--with-xorg-conf-dir="
1139 (assoc-ref %outputs "out")
1140 "/share/X11/xorg.conf.d"))))
1141 (build-system gnu-build-system)
1143 `(("pkg-config" ,pkg-config)))
1145 `(("xorg-server" ,xorg-server)
1146 ("libxrandr" ,libxrandr)
1147 ("libxinerama" ,libxinerama)
1150 (home-page "https://linuxwacom.github.io/")
1151 (synopsis "Wacom input driver for X")
1153 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
1154 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
1155 (license license:x11)))
1157 (define-public redshift
1165 (string-append "https://github.com/jonls/redshift/"
1166 "releases/download/v" version
1167 "/redshift-" version ".tar.xz"))
1170 "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j"))))
1171 (build-system gnu-build-system)
1173 `(#:imported-modules (,@%gnu-build-system-modules
1174 (guix build python-build-system))
1176 (modify-phases %standard-phases
1177 (add-after 'install 'split-outputs
1178 (lambda* (#:key outputs #:allow-other-keys)
1179 (let ((out (assoc-ref outputs "out"))
1180 (gtk (assoc-ref outputs "gtk"))
1181 (desktop-file "/share/applications/redshift-gtk.desktop"))
1182 (mkdir-p (string-append gtk "/bin"))
1183 (link (string-append out "/bin/redshift-gtk")
1184 (string-append gtk "/bin/redshift-gtk"))
1185 (delete-file (string-append out "/bin/redshift-gtk"))
1186 (copy-recursively (string-append out "/lib")
1187 (string-append gtk "/lib"))
1188 (delete-file-recursively (string-append out "/lib"))
1189 (mkdir-p (string-append gtk "/share/applications"))
1190 (link (string-append out desktop-file)
1191 (string-append gtk desktop-file))
1192 (delete-file (string-append out desktop-file))
1193 (with-directory-excursion (string-append out "/share")
1194 (for-each (lambda (dir)
1196 (string-append out "/share/" dir)
1197 (string-append gtk "/share/" dir))
1198 (delete-file-recursively dir))
1199 '("appdata" "icons")))
1201 (add-after 'split-outputs 'wrap
1202 (lambda* (#:key inputs outputs #:allow-other-keys)
1203 (let* ((gtk (assoc-ref outputs "gtk"))
1205 (@ (guix build python-build-system) python-version))
1206 (python (assoc-ref inputs "python"))
1207 (sitedir (string-append gtk "/lib/python"
1208 (python-version python)
1210 (wrap-program (string-append gtk "/bin/redshift-gtk")
1211 `("PYTHONPATH" ":" prefix
1212 (,(string-append sitedir ":" (getenv "PYTHONPATH"))))
1213 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH"))))
1215 (outputs '("out" "gtk"))
1217 `(("pkg-config" ,pkg-config)
1218 ("intltool" ,intltool)))
1220 `(("libdrm" ,libdrm)
1223 ("libxxf86vm" ,libxxf86vm)
1224 ("glib" ,glib) ;for Geoclue2 support
1226 ;; To build the GTK3 GUI, we need these.
1229 ("python-pygobject" ,python-pygobject)
1230 ("python-pyxdg" ,python-pyxdg)))
1231 (home-page "https://github.com/jonls/redshift")
1232 (synopsis "Adjust the color temperature of your screen")
1234 "Redshift adjusts the color temperature according to the position of the
1235 sun. A different color temperature is set during night and daytime. During
1236 twilight and early morning, the color temperature transitions smoothly from
1237 night to daytime temperature to allow your eyes to slowly adapt. At night the
1238 color temperature should be set to match the lamps in your room.")
1239 (license license:gpl3+)))
1241 (define-public redshift-wayland
1242 (let ((commit "7da875d34854a6a34612d5ce4bd8718c32bec804")
1245 (name "redshift-wayland")
1246 (version (string-append "1.12-"
1247 revision "." (string-take commit 7)))
1251 (url "https://github.com/minus7/redshift")
1253 (file-name (string-append name "-" version))
1256 "0nbkcw3avmzjg1jr1g9yfpm80kzisy55idl09b6wvzv2sz27n957"))))
1257 (build-system gnu-build-system)
1259 '(#:phases (modify-phases %standard-phases
1260 (add-after 'install 'create-desktop-file
1261 (lambda* (#:key outputs #:allow-other-keys)
1262 ;; For the GeoClue provider to work, a .desktop file
1263 ;; needs to be provided. A template is available,
1264 ;; but it only gets installed when the GUI is enabled.
1265 ;; Install it manually for this Wayland variant.
1266 (let* ((out (assoc-ref outputs "out"))
1269 out "/share/applications/redshift.desktop")))
1270 (mkdir-p (dirname desktop-file))
1271 (copy-file "data/applications/redshift.desktop.in"
1273 (substitute* desktop-file
1277 `(("autoconf" ,autoconf)
1278 ("automake" ,automake)
1279 ("libtool" ,libtool)
1280 ("pkg-config" ,pkg-config)
1281 ("intltool" ,intltool)))
1283 `(("libdrm" ,libdrm)
1286 ("libxxf86vm" ,libxxf86vm)
1287 ("glib" ,glib) ; for Geoclue2 support
1288 ("wayland" ,wayland)))
1289 (home-page "https://github.com/minus7/redshift")
1290 (synopsis "Adjust the color temperature of your screen (with Wayland support)")
1292 "Redshift adjusts the color temperature according to the position of the
1293 sun. A different color temperature is set during night and daytime. During
1294 twilight and early morning, the color temperature transitions smoothly from
1295 night to daytime temperature to allow your eyes to slowly adapt. At night the
1296 color temperature should be set to match the lamps in your room.
1298 This is a fork with added support for Wayland using the wlr-gamma-control
1300 (license license:gpl3+))))
1302 (define-public xscreensaver
1304 (name "xscreensaver")
1310 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
1313 (base32 "15bv05vpfjwsrqbazrjmm382jd7vvw0mp6y9vasn6wvxzjf0in3k"))))
1314 (build-system gnu-build-system)
1316 `(#:tests? #f ; no check target
1318 (modify-phases %standard-phases
1319 (add-before 'configure 'adjust-gtk-resource-paths
1321 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
1322 (("@GTK_DATADIR@") "@datadir@")
1323 (("@PO_DATADIR@") "@datadir@"))
1325 #:configure-flags '("--with-pam" "--with-proc-interrupts"
1326 "--without-readdisplay")
1327 #:make-flags (list (string-append "AD_DIR="
1328 (assoc-ref %outputs "out")
1329 "/lib/X11/app-defaults"))))
1331 `(("pkg-config" ,pkg-config)
1332 ("intltool" ,intltool)))
1334 `(("libx11" ,libx11)
1335 ("libxext" ,libxext)
1341 ("libglade" ,libglade)
1342 ("libxml2" ,libxml2)
1344 ("libjpeg" ,libjpeg-turbo)
1345 ("linux-pam" ,linux-pam)
1351 ("libxrandr" ,libxrandr)
1354 (home-page "https://www.jwz.org/xscreensaver/")
1355 (synopsis "Classic screen saver suite supporting screen locking")
1357 "xscreensaver is a popular screen saver collection with many entertaining
1358 demos. It also acts as a nice screen locker.")
1359 ;; xscreensaver doesn't have a single copyright file and instead relies on
1360 ;; source comment headers, though most files have the same lax
1361 ;; permissions. To reduce complexity, we're pointing at Debian's
1362 ;; breakdown of the copyright information.
1363 (license (license:non-copyleft
1365 "http://metadata.ftp-master.debian.org/changelogs/"
1366 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1368 (define-public xssproxy
1375 (url "https://github.com/timakro/xssproxy")
1376 (commit (string-append "v" version))))
1377 (file-name (string-append name "-" version "-checkout"))
1380 "0c83wmipnsdnbihc5niyczs7jrkss2s8n6iwwjdia7hkjzbd0hl7"))))
1381 (build-system gnu-build-system)
1382 (arguments `(#:make-flags `("bindir=/bin"
1383 "man1dir=/share/man/man1"
1384 ,(string-append "DESTDIR=" (assoc-ref %outputs "out"))
1386 #:phases (modify-phases %standard-phases
1390 `(("pkg-config" ,pkg-config)))
1394 ("libxext" ,libxext)
1395 ("libxscrnsaver" ,libxscrnsaver)
1397 (synopsis "Forward freedesktop.org Idle Inhibition Service calls to Xss")
1398 (description "xssproxy implements the @code{org.freedesktop.ScreenSaver}
1399 D-Bus interface described in the Idle Inhibition Service Draft by the
1400 freedesktop.org developers. The inhibition of the screensaver is then
1401 controlled using the XScreenSaverSuspend function from the Xss (X11 Screen
1402 Saver extension) library.")
1403 (home-page "https://github.com/timakro/xssproxy")
1404 (license license:gpl3+)))
1412 (uri (string-append "http://www.vergenet.net/~conrad/software"
1413 "/xsel/download/xsel-" version ".tar.gz"))
1416 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1417 (build-system gnu-build-system)
1419 `(("libxt" ,libxt)))
1420 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1421 (synopsis "Manipulate X selection")
1423 "XSel is a command-line program for getting and setting the contents of
1424 the X selection. Normally this is only accessible by manually highlighting
1425 information and pasting it with the middle mouse button.
1427 XSel reads from standard input and writes to standard output by default,
1428 but can also follow a growing file, display contents, delete entries and more.")
1429 (license (license:x11-style "file://COPYING"
1430 "See COPYING in the distribution."))))
1432 (define-public xdpyprobe
1438 (uri (string-append "https://github.com/alezost/" name
1439 "/releases/download/v" version
1440 "/" name "-" version ".tar.gz"))
1443 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1444 (build-system gnu-build-system)
1446 `(("libx11" ,libx11)))
1447 (home-page "https://github.com/alezost/xdpyprobe")
1448 (synopsis "Probe X server for connectivity")
1450 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1451 connectivity of the X server running on a particular @code{DISPLAY}.")
1452 (license license:gpl3+)))
1460 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1461 "releases/download/"
1462 version "/rofi-" version ".tar.xz"))
1465 "0566b499lbpfb1gk4p17iw78ywmk9l2jww1kqjbdanrl22hai1y4"))))
1466 (build-system gnu-build-system)
1471 ("startup-notification" ,startup-notification)
1472 ("libjpeg" ,libjpeg-turbo)
1473 ("librsvg" ,librsvg)
1474 ("libxkbcommon" ,libxkbcommon)
1476 ("xcb-util" ,xcb-util)
1477 ("xcb-util-xrm" ,xcb-util-xrm)
1478 ("xcb-util-wm" ,xcb-util-wm)))
1483 ("glib:bin" ,glib "bin")
1484 ("pkg-config" ,pkg-config)))
1486 `(#:parallel-tests? #f ; fails in some circumstances
1488 (modify-phases %standard-phases
1489 (add-before 'configure 'adjust-tests
1491 (substitute* '("test/helper-expand.c")
1494 (("g_get_home_dir \\(\\)") "\"/\""))
1496 (home-page "https://github.com/DaveDavenport/rofi")
1497 (synopsis "Application launcher")
1498 (description "Rofi is a minimalist application launcher. It memorizes which
1499 applications you regularly use and also allows you to search for an application
1501 (license license:expat)))
1503 (define-public tint2
1509 (uri (string-append "https://gitlab.com/o9000/" name
1510 "/repository/archive.tar.gz?ref=" version))
1511 (file-name (string-append name "-" version ".tar.gz"))
1514 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1515 (build-system cmake-build-system)
1517 '(#:tests? #f ;no test target
1519 (modify-phases %standard-phases
1520 (add-after 'unpack 'fix-installation-prefix
1522 (substitute* "CMakeLists.txt"
1523 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))
1528 ("librsvg" ,librsvg)
1529 ("libxcomposite" ,libxcomposite)
1530 ("libxdamage" ,libxdamage)
1532 ("libxinerama" ,libxinerama)
1533 ("libxrandr" ,libxrandr)
1534 ("startup-notification" ,startup-notification)))
1536 `(("gettext" ,gettext-minimal)
1537 ("pkg-config" ,pkg-config)))
1538 (home-page "https://gitlab.com/o9000/tint2")
1539 (synopsis "Lightweight task bar")
1541 "Tint2 is a simple task bar made for modern X window managers. It was
1542 specifically made for Openbox but it should also work with other window
1543 managers (GNOME, KDE, XFCE etc.).
1545 The taskbar includes transparency and color settings for the font, icons,
1546 border, and background. It also supports multihead setups, customized mouse
1547 actions, a built-in clock, a battery monitor and a system tray.")
1548 (license license:gpl2)))
1551 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1555 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1556 revision "." (string-take commit 7)))
1560 (url "https://github.com/robm/dzen")
1562 (file-name (string-append name "-" version))
1565 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1566 (build-system gnu-build-system)
1568 `(#:tests? #f ; No test suite.
1569 #:make-flags ; Replacement for `config.mk`.
1571 (string-append "VERSION = " ,version)
1572 (string-append "PREFIX = " %output)
1573 "MANPREFIX = ${PREFIX}/share/man"
1575 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1576 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1577 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1582 (modify-phases %standard-phases
1583 (delete 'configure) ; No configuration script.
1584 ;; Use own make-flags instead of `config.mk`.
1585 (add-before 'build 'dont-include-config-mk
1587 (substitute* "Makefile" (("include config.mk") ""))
1590 `(("libx11" ,libx11)
1593 ("libxinerama" ,libxinerama)))
1594 (native-inputs `(("pkg-config" ,pkg-config)))
1595 (synopsis "General purpose messaging, notification and menuing program for X11")
1596 (description "Dzen is a general purpose messaging, notification and menuing
1597 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1598 (home-page "https://github.com/robm/dzen")
1599 (license license:expat))))
1601 (define-public xftwidth
1604 (version "20170402")
1609 (url "http://github.com/vixus0/xftwidth")
1610 (commit "35ff963908d41a8a6a7101c434c88255728025ee")))
1613 "1jwl25785li24kbp0m1wxfwk4dgxkliynn03nsj813cjr34kq16h"))
1614 (file-name (string-append name "-" version "-checkout"))))
1615 (build-system gnu-build-system)
1616 (inputs `(("freetype" ,freetype)
1618 ("fontconfig" ,fontconfig)
1619 ("libxft" ,libxft)))
1621 `(("pkg-config" ,pkg-config)))
1624 (modify-phases %standard-phases
1625 (add-after 'unpack 'fix-makefile ; /usr/bin doesn't show up in PATH
1626 (lambda _ (substitute* "Makefile" (("usr/") "")) #t))
1627 (delete 'check) ; no check included in Makefile
1628 (delete 'configure))
1630 (let ((out (assoc-ref %outputs "out")))
1631 (list (string-append "DESTDIR=" out)))))
1632 (home-page "https://github.com/vixus0/xftwidth")
1633 (synopsis "Calculator for determining pixel widths of displayed text using Xft fonts")
1634 (description "xftwidth is a small C program for calculating the pixel
1635 widths of displayed text using Xft fonts. It is especially useful in scripts
1636 for displaying text in graphical panels, menus, popups, and notification
1637 windows generated using dzen. These scripts are often used in conjunction with
1638 minimalistic tiling window managers such as herbstluftwm and bspwm.")
1639 (license license:expat)))
1641 (define-public xcb-util-xrm
1643 (name "xcb-util-xrm")
1648 "https://github.com/Airblader/xcb-util-xrm/releases"
1649 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1652 "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h"))
1653 (modules '((guix build utils)))
1657 (delete-file-recursively "m4")
1659 (build-system gnu-build-system)
1661 `(("pkg-config" ,pkg-config)
1663 ("libx11" ,libx11))) ; for tests
1665 `(("libxcb" ,libxcb)
1666 ("xcb-util" ,xcb-util)))
1667 (home-page "https://github.com/Airblader/xcb-util-xrm")
1668 (synopsis "XCB utility functions for the X resource manager")
1670 "The XCB util module provides a number of libraries which sit on
1671 top of libxcb, the core X protocol library, and some of the extension
1672 libraries. These experimental libraries provide convenience functions
1673 and interfaces which make the raw X protocol more usable. Some of the
1674 libraries also provide client-side code which is not strictly part of
1675 the X protocol but which has traditionally been provided by Xlib.
1677 XCB util-xrm module provides the following libraries:
1679 - xrm: utility functions for the X resource manager.")
1680 (license license:x11)))
1682 (define-public xcalib
1686 (home-page "https://github.com/OpenICC/xcalib")
1692 (file-name (git-file-name name version))
1695 "05fzdjmhiafgi2jf0k41i3nm0837a78sb6yv59cwc23nla8g0bhr"))
1698 ;; Add missing documentation for the new --output option.
1699 ;; This upstream patch can be removed on the next update.
1703 home-page "/commit/"
1704 "ae03889b91fe984b18e925ad2b5e6f2f7354e058.patch"))
1705 (file-name "xcalib-update-man-page.patch")
1708 "0f7b4d5484x4b9n1bwhqmar0kcaa029ffff7bp3xpr734n1qgqb6")))))))
1709 (build-system cmake-build-system)
1711 '(#:tests? #f)) ; no test suite
1712 (inputs `(("libx11" ,libx11)
1713 ("libxext" ,libxext)
1714 ("libxrandr" ,libxrandr)
1715 ("libxxf86vm" ,libxxf86vm)))
1716 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1717 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1718 profiles to the video card's gamma ramp. It does work with most video card
1719 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1720 invert colors on a specific display/screen.")
1721 (license license:gpl2)))
1723 (define-public nxbelld
1730 (url "https://github.com/dusxmt/nxbelld")
1734 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1735 (file-name (git-file-name name version))))
1736 (build-system gnu-build-system)
1737 (arguments '(#:configure-flags `("--enable-sound"
1740 (native-inputs `(("autoconf" ,autoconf)
1741 ("automake" ,automake)
1742 ("pkg-config" ,pkg-config)
1744 (inputs `(("libx11" ,libx11)
1745 ("alsa-lib" ,alsa-lib)))
1746 (synopsis "Daemon that performs an action every time the X11 bell is rung")
1747 (description "nxbelld is a tiny utility to aid people who either don't
1748 like the default PC speaker beep, or use a sound driver that doesn't have
1749 support for the PC speaker. The utility performs a given action every time
1750 the X bell is rung. The actions nxbelld can currently perform include running
1751 a specified program, emulating the PC speaker beep using the sound card (default),
1752 or playing a PCM encoded WAVE file.")
1753 (home-page "https://github.com/dusxmt/nxbelld")
1754 (license license:gpl3+)))
1756 (define-public xautolock
1762 (uri (string-append "https://www.ibiblio.org/pub/linux/X11/"
1763 "screensavers/xautolock-" version ".tgz"))
1766 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1767 (build-system gnu-build-system)
1769 `(("imake" ,imake)))
1771 `(("libx11" ,libx11)
1772 ("libxext" ,libxext)
1773 ("libxscrnsaver" ,libxscrnsaver)))
1777 (modify-phases %standard-phases
1779 (lambda* (#:key inputs outputs #:allow-other-keys)
1780 (let ((imake (assoc-ref inputs "imake"))
1781 (out (assoc-ref outputs "out")))
1782 ;; Generate Makefile
1784 (substitute* "Makefile"
1785 ;; These imake variables somehow remain undefined
1786 (("DefaultGcc2[[:graph:]]*Opt") "-O2")
1787 ;; Reset a few variable defaults that are set in imake templates
1789 (("(MANPATH = )[[:graph:]]*" _ front)
1790 (string-append front out "/share/man")))
1791 ;; Old BSD-style 'union wait' is unneeded (defining
1792 ;; _USE_BSD did not seem to fix it)
1793 (substitute* "src/engine.c"
1794 (("union wait status") "int status = 0"))
1796 (add-after 'install 'install/man
1798 (invoke "make" "install.man"))))))
1799 (home-page "https://ibiblio.org/pub/Linux/X11/screensavers/")
1800 (synopsis "Program launcher for idle X sessions")
1801 (description "Xautolock monitors input devices under the X Window
1802 System, and launches a program of your choice if there is no activity after
1803 a user-configurable period of time.")
1804 (license license:gpl2)))
1806 (define-public screen-message
1808 (name "screen-message")
1813 "https://www.joachim-breitner.de/archive/screen-message"
1814 "/screen-message-" version ".tar.gz"))
1817 "1lw955qq5pq010lzmaf32ylj2iprgsri9ih4hx672c3f794ilab0"))))
1818 (build-system gnu-build-system)
1819 (inputs `(("gtk3" ,gtk+)
1822 (native-inputs `(("pkg-config" ,pkg-config)))
1824 ;; The default configure puts the 'sm' binary in games/ instead of bin/ -
1826 `(#:make-flags (list (string-append "execgamesdir=" %output "/bin"))))
1827 (synopsis "Print messages on your screen")
1828 (description "@code{screen-message} is a tool for displaying text on
1829 your screen. It will make the text as large as possible and display it
1830 with black color on a white background (colors are configurable on the
1832 (home-page "https://www.joachim-breitner.de/projects#screen-message")
1833 (license license:gpl2+)))
1835 (define-public xss-lock
1836 ;; xss-lock does not seem to be maintained any longer, but the last commits
1837 ;; fix important issues so we package them.
1838 (let ((version "0.3.0")
1840 (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717"))
1843 (version (git-version version revision commit))
1847 (url "https://bitbucket.org/raymonad/xss-lock.git")
1849 (file-name (git-file-name name version))
1852 "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r"))))
1853 (build-system cmake-build-system)
1854 (inputs `(("glib" ,glib)
1855 ("xcb-util" ,xcb-util)))
1857 `(("python-docutils" ,python-docutils)
1858 ("pkg-config" ,pkg-config)))
1861 (synopsis "Use external screen locker on events")
1862 (description "@code{xss-lock} listens to X signals to fire up a
1863 user-defined screensaver. In effect this automatically locks the
1864 screen when closing a laptop lid or after a period of user inactivity (as set
1865 with @code{xset s TIMEOUT}). The notifier command, if specified, is executed
1866 first. Additionally, xss-lock uses the inhibition logic to lock the screen
1867 before the system goes to sleep.")
1868 (home-page "https://bitbucket.org/raymonad/xss-lock")
1869 (license license:expat))))
1871 (define-public python-pyperclip
1873 (name "python-pyperclip")
1878 (uri (pypi-uri "pyperclip" version))
1881 "1p505c23ji06r28k1y67siihsbdzdf1brhlqpyv9ams4gk9863pp"))))
1882 (build-system python-build-system)
1884 '(#:tests? #f)) ; Not clear how to make tests pass.
1888 (home-page "https://github.com/asweigart/pyperclip")
1889 (synopsis "Python clipboard module")
1891 "Pyperclip is a clipboard module for Python, handling copy/pasting from
1893 (license license:bsd-3)))
1895 (define-public numlockx
1902 ;; It seems that upstream is gone.
1903 (url "https://github.com/rg3/numlockx")
1905 (file-name (git-file-name name version))
1908 "1w49fayhwzn5rx0z1q2lrvm7z8jrd34lgb89p853a024bixc3cf2"))))
1909 (build-system gnu-build-system)
1911 `(("xorg-server" ,xorg-server)))
1912 (home-page "https://github.com/rg3/numlockx")
1913 (synopsis "Turns on the numlock key in X11")
1914 (description "@command{numlockx} is a tiny program that lets you turn on
1915 the numlock key in X11. It can be called from the user's initialization files
1916 to automatically turn it on on login.")
1917 (license license:expat)))
1919 (define-public xrandr-invert-colors
1921 (name "xrandr-invert-colors")
1926 (url "https://github.com/zoltanp/xrandr-invert-colors")
1927 (commit (string-append "v" version))))
1928 (file-name (git-file-name name version))
1931 "1br3x9vr6xm4ika06n8cfxx1b3wdchdqvyzjl4y1chmivrml8x9h"))))
1932 (build-system gnu-build-system)
1934 `(#:make-flags (list "CC=gcc")
1935 #:tests? #f ; there are none
1937 (modify-phases %standard-phases
1940 (lambda* (#:key outputs #:allow-other-keys)
1941 (let* ((out (assoc-ref outputs "out"))
1942 (bin (string-append out "/bin")))
1943 (install-file "xrandr-invert-colors.bin" bin)
1946 `(("libxrandr" ,libxrandr)))
1947 (home-page "https://github.com/zoltanp/xrandr-invert-colors")
1948 (synopsis "Invert display colors")
1949 (description "This package provides a small utility for inverting the
1950 colors on all monitors attached to an XRandR-capable X11 display server.")
1951 (license license:gpl3+)))
1961 (string-append "https://www.umaxx.net/dl/sct-"
1964 (base32 "0lrhx771iccbw04wrhj0ygids1pzmjfc4hvklm30m3p3flvhqf0m"))))
1965 (build-system gnu-build-system)
1968 (list ,(string-append "CC=" (cc-for-target)))
1969 #:tests? #f ; no test suite
1971 (modify-phases %standard-phases
1973 (add-after 'unpack 'fix-sctd-paths
1974 (lambda* (#:key outputs inputs #:allow-other-keys)
1975 (let ((out (assoc-ref outputs "out"))
1976 (coreutils (assoc-ref inputs "coreutils"))
1977 (inetutils (assoc-ref inputs "inetutils"))
1978 (sed (assoc-ref inputs "sed")))
1979 (substitute* "sctd.sh"
1980 (("\\$\\(which sct\\)") (string-append out "/bin/sct"))
1981 (("date") (string-append coreutils "/bin/date"))
1982 (("printf") (string-append coreutils "/bin/printf"))
1983 (("sleep") (string-append coreutils "/bin/sleep"))
1984 (("logger") (string-append inetutils "/bin/logger"))
1985 (("sed") (string-append sed "/bin/sed"))))))
1987 (lambda* (#:key outputs #:allow-other-keys)
1988 (let ((out (assoc-ref outputs "out")))
1989 (install-file "sct" (string-append out "/bin"))
1990 (install-file "sctd.sh" (string-append out "/bin"))
1991 (install-file "sct.1" (string-append out "/man/man1"))
1992 (install-file "sctd.1" (string-append out "/man/man1"))
1993 (rename-file (string-append out "/bin/sctd.sh")
1994 (string-append out "/bin/sctd"))
1997 `(("coreutils" ,coreutils) ; sctd uses "date", "printf" and "sleep"
1998 ("inetutils" ,inetutils) ; sctd uses "logger"
1999 ("libxrandr" ,libxrandr)
2000 ("sed" ,sed))) ; sctd uses "sed"
2001 (home-page "https://www.umaxx.net")
2002 (synopsis "Set the color temperature of the screen")
2003 (description "@code{sct} is a lightweight utility to set the color
2004 temperature of the screen.")
2005 (license (license:non-copyleft "file://sct.c")))) ; "OpenBSD" license
2007 (define-public xsecurelock
2009 (name "xsecurelock")
2014 "https://github.com/google/xsecurelock/releases"
2015 "/download/v" version "/xsecurelock-" version ".tar.gz"))
2017 (base32 "070gknyv0s5hz9hkc6v73m2v7ssyjwgl93b5hd4glayfqxqjbmdp"))))
2018 (build-system gnu-build-system)
2021 '("--with-pam-service-name=login"
2023 "--with-default-authproto-module=/run/setuid-programs/authproto_pam")))
2025 `(("pandoc" ,pandoc)
2026 ("pkg-config" ,pkg-config)))
2028 `(("fontconfig" ,fontconfig)
2030 ("libxcomposite" ,libxcomposite)
2031 ("libxext" ,libxext)
2032 ("libxfixes" ,libxfixes)
2035 ("libxrandr" ,libxrandr)
2036 ("libxscrnsaver" ,libxscrnsaver)
2037 ("linux-pam" ,linux-pam)))
2038 (home-page "https://github.com/google/xsecurelock")
2039 (synopsis "X11 screen lock utility with the primary goal of security")
2040 (description "@code{xsecurelock} is an X11 screen locker which uses
2041 a modular design to avoid the usual pitfalls of screen locking utility design.
2043 As a consequence of the modular design, the usual screen locker service
2044 shouldn't be used with @code{xsecurelock}. Instead, you need to add a helper
2045 binary to setuid-binaries:
2047 (setuid-programs (cons*
2048 (file-append xsecurelock \"/libexec/xsecurelock/authproto_pam\")
2051 (license license:asl2.0)))
2053 (define-public wl-clipboard
2055 (name "wl-clipboard")
2061 (url "https://github.com/bugaevc/wl-clipboard")
2062 (commit (string-append "v" version))))
2063 (file-name (git-file-name name version))
2065 (base32 "0c4w87ipsw09aii34szj9p0xfy0m00wyjpll0gb0aqmwa60p0c5d"))))
2066 (build-system meson-build-system)
2068 `(("pkg-config" ,pkg-config)))
2070 `(("wayland" ,wayland)
2071 ("wayland-protocols" ,wayland-protocols)))
2072 (home-page "https://github.com/bugaevc/wl-clipboard")
2073 (synopsis "Command-line copy/paste utilities for Wayland")
2074 (description "Wl-clipboard is a set of command-line copy/paste utilities for
2076 (license license:gpl3+)))
2078 (define-public autocutsel
2084 (uri (string-append "https://github.com/sigmike/autocutsel"
2085 "/releases/download/" version "/"
2086 "autocutsel-" version ".tar.gz"))
2089 "0gsys2dzh4az51ndcsabhlbbrjn2nm75lnjr45kg6r8sm8q66dx2"))))
2090 (build-system gnu-build-system)
2092 '(#:tests? #f)) ; no "check" target
2093 (native-inputs `(("libx11" ,libx11)
2094 ("libxaw" ,libxaw)))
2095 (home-page "https://www.nongnu.org/autocutsel/")
2096 (synopsis "Automated X11 clipboard and cutbuffer synchronization")
2097 (description "@code{autocutsel} tracks changes in the server's cutbuffer
2098 and clipboard selection. When the clipboard is changed, it updates the
2099 cutbuffer. When the cutbuffer is changed, it owns the clipboard selection.
2100 The cutbuffer and clipboard selection are always synchronized.")
2101 (license license:gpl2+)))
2103 (define-public jgmenu
2111 (url "https://github.com/johanmalm/jgmenu")
2112 (commit (string-append "v" version))))
2113 (file-name (git-file-name name version))
2116 "1wsh37rapb1bszlq36hvwxqvfds39hbvbl152m8as4zlh93wfvvk"))))
2117 (build-system gnu-build-system)
2119 `(("cppcheck" ,cppcheck)
2121 ("pkg-config" ,pkg-config)))
2125 ("librsvg" ,librsvg)
2127 ("libxml2" ,libxml2)
2128 ("libxrandr" ,libxrandr)
2132 (modify-phases %standard-phases
2133 (add-after 'unpack 'fix-tests
2135 (substitute* "scripts/cppcheck-wrapper.sh"
2136 (("--library=/usr/share/cppcheck/cfg/gnu\\.cfg")
2140 (lambda* (#:key outputs #:allow-other-keys)
2142 (invoke "./configure"
2143 (string-append "--prefix=" (assoc-ref outputs "out")))
2145 (synopsis "Simple X11 menu")
2147 "This is a simple menu for X11 designed for scripting and tweaking. It
2148 can optionally use some appearance settings from XSettings, tint2 and GTK.")
2149 (home-page "https://jgmenu.github.io/")
2150 (license license:gpl2)))
2152 (define-public xwallpaper
2160 (url "https://github.com/stoeckmann/xwallpaper")
2161 (commit (string-append "v" version))))
2162 (file-name (git-file-name name version))
2164 (base32 "121ai4dc0v65qk12gn9w62ixly8hc8a5qrygkbb82vy8ck4jqxj7"))))
2165 (build-system gnu-build-system)
2167 `(("autoconf" ,autoconf)
2168 ("automake" ,automake)
2169 ("pkg-config" ,pkg-config)))
2171 `(("libjpeg-turbo" ,libjpeg-turbo)
2175 ("xcb-util" ,xcb-util)
2176 ("xcb-util-image" ,xcb-util-image)))
2177 (home-page "https://github.com/stoeckmann/xwallpaper")
2178 (synopsis "Wallpaper setting utility for X")
2180 "The xwallpaper utility allows you to set image files as your X
2181 wallpaper. JPEG, PNG, and XPM file formats are supported.
2183 The wallpaper is also advertised to programs which support semi-transparent
2185 (license license:isc)))
2187 (define-public xwrits
2194 (uri (string-append "https://www.lcdf.org/~eddietwo/xwrits/"
2195 "xwrits-" version ".tar.gz"))
2197 (base32 "1n7y0fqpcvmzznvbsn14hzy5ddaa3lilm8aw6ckscqndnh4lijma"))))
2198 (build-system gnu-build-system)
2201 (modify-phases %standard-phases
2202 (add-after 'install 'install-docs
2203 (lambda* (#:key outputs #:allow-other-keys)
2204 (let* ((out (assoc-ref outputs "out"))
2205 (doc (string-append out "/share/doc/xwrits")))
2206 (install-file "GESTURES" doc)
2207 (install-file "README" doc)
2210 `(("libx11" ,libx11)
2211 ("libxinerama" ,libxinerama)))
2212 (home-page "https://www.lcdf.org/~eddietwo/xwrits/")
2213 (synopsis "Reminds you to take wrist breaks")
2214 (description "Xwrits reminds you to take wrist breaks for prevention or
2215 management of repetitive stress injuries. When you should take a break, it
2216 pops up an X window, the warning window. You click on the warning window,
2217 then take a break. The window changes appearance while you take the break.
2218 It changes again when your break is over. Then you just resume typing.
2219 Xwrits hides itself until you should take another break.")
2220 (license license:gpl2)))
2222 (define-public xsettingsd
2230 (url "https://github.com/derat/xsettingsd")
2231 (commit (string-append "v" version))))
2232 (file-name (git-file-name name version))
2235 "05m4jlw0mgwp24cvyklncpziq1prr2lg0cq9c055sh4n9d93d07v"))))
2236 (build-system scons-build-system)
2238 `(("libx11" ,libx11)))
2240 `(("pkg-config" ,pkg-config)
2241 ("googletest" ,googletest)
2242 ("googletest-source" ,(package-source googletest))))
2244 `(#:scons ,scons-python2
2248 (modify-phases %standard-phases
2249 (add-before 'build 'patch-sconstruct
2250 (lambda* (#:key inputs #:allow-other-keys)
2251 (substitute* "SConstruct"
2252 ;; scons doesn't pick up environment variables automatically
2253 ;; so it needs help to find path variables
2254 (("env = Environment\\(")
2257 'PATH': os.environ['PATH'],
2258 'CPATH': os.environ['C_INCLUDE_PATH'],
2259 'LIBRARY_PATH': os.environ['LIBRARY_PATH'],
2260 'PKG_CONFIG_PATH': os.environ['PKG_CONFIG_PATH']
2262 ;; Update path to gtest source files used in tests
2263 (("/usr/src/gtest") (string-append
2264 (assoc-ref inputs "googletest-source")
2266 ;; Exclude one warning that causes a build error
2267 (("-Werror") "-Werror -Wno-error=sign-compare"))
2269 ;; The SConstruct script doesn't configure installation so
2270 ;; binaries must be copied to the output path directly
2272 (lambda* (#:key outputs #:allow-other-keys)
2273 (let* ((out (assoc-ref outputs "out"))
2274 (bin (string-append out "/bin")))
2276 (install-file "xsettingsd" bin)
2277 (install-file "dump_xsettings" bin)
2279 (home-page "https://github.com/derat/xsettingsd")
2280 (synopsis "Xorg settings daemon")
2281 (description "@command{xsettingsd} is a lightweight daemon that provides settings to
2282 Xorg applications via the XSETTINGS specification. It is used for defining
2283 font and theme settings when a complete desktop environment (GNOME, KDE) is
2284 not running. With a simple @file{.xsettingsd} configuration file one can avoid
2285 configuring visual settings in different UI toolkits separately.")
2286 (license license:bsd-3)))
2288 (define-public clipnotify
2296 (url "https://github.com/cdown/clipnotify")
2298 (file-name (git-file-name name version))
2301 "1v3ydm5ljy8z1savmdxrjyx7a5bm5013rzw80frp3qbbjaci0wbg"))))
2302 (build-system gnu-build-system)
2305 (modify-phases %standard-phases
2308 (lambda* (#:key inputs outputs #:allow-other-keys)
2309 (let* ((out (assoc-ref outputs "out"))
2310 (bin (string-append out "/bin"))
2311 (doc (string-append %output "/share/doc/" ,name "-" ,version)))
2312 (install-file "clipnotify" bin)
2313 (install-file "README.md" doc)
2316 (list ,(string-append "CC=" (cc-for-target)))
2317 #:tests? #f)) ; no test suite
2319 `(("libx11" ,libx11)
2320 ("libXfixes" ,libxfixes)))
2321 (home-page "https://github.com/cdown/clipnotify")
2322 (synopsis "Notify on new X clipboard events")
2323 (description "@command{clipnotify} is a simple program that, using the
2324 XFIXES extension to X11, waits until a new selection is available and then
2327 It was primarily designed for clipmenu, to avoid polling for new selections.
2329 @command{clipnotify} doesn't try to print anything about the contents of the
2330 selection, it just exits when it changes. This is intentional -- X11's
2331 selection API is verging on the insane, and there are plenty of others who
2332 have already lost their sanity to bring us xclip/xsel/etc. Use one of those
2333 tools to complement clipnotify.")
2334 (license license:public-domain)))
2336 (define-public clipmenu
2337 (let ((commit "bcbe7b144598db4a103f14e8408c4b7327d6d5e1")
2341 (version (string-append "6.0.1-"
2342 revision "." (string-take commit 7)))
2347 (url "https://github.com/cdown/clipmenu")
2349 (file-name (git-file-name name version))
2352 "0053j4i14lz5m2bzc5sch5id5ilr1bl196mp8fp0q8x74w3vavs9"))))
2353 (build-system gnu-build-system)
2356 (modify-phases %standard-phases
2360 (lambda* (#:key inputs outputs #:allow-other-keys)
2361 (let* ((out (assoc-ref outputs "out"))
2362 (bin (string-append out "/bin"))
2363 (doc (string-append %output "/share/doc/"
2364 ,name "-" ,version)))
2365 (install-file "clipdel" bin)
2366 (install-file "clipmenu" bin)
2367 (install-file "clipmenud" bin)
2368 (install-file "README.md" doc)
2370 (add-after 'install 'wrap-script
2371 (lambda* (#:key inputs outputs #:allow-other-keys)
2372 (let* ((out (assoc-ref outputs "out"))
2373 (clipnotify (assoc-ref inputs "clipnotify"))
2374 (coreutils-minimal (assoc-ref inputs "coreutils-minimal"))
2375 (gawk (assoc-ref inputs "gawk"))
2376 (util-linux (assoc-ref inputs "util-linux"))
2377 (xdotool (assoc-ref inputs "xdotool"))
2378 (xsel (assoc-ref inputs "xsel")))
2381 (wrap-script (string-append out "/bin/" prog)
2384 (string-append dir "/bin"))
2385 (list clipnotify coreutils-minimal
2386 gawk util-linux xdotool xsel)))))
2387 '("clipmenu" "clipmenud" "clipdel")))
2390 (lambda* (#:key inputs outputs #:allow-other-keys)
2391 ;; substitute a shebang appearing inside a string (the test
2392 ;; file writes this string to a temporary file):
2393 (substitute* "tests/test-clipmenu"
2394 (("#!/usr/bin/env bash")
2395 (string-append "#!" (which "bash"))))
2396 (invoke "tests/test-clipmenu")
2399 `(("clipnotify" ,clipnotify)
2400 ("coreutils-minimal" ,coreutils-minimal)
2402 ("guile" ,guile-3.0) ; for wrap-script
2403 ("util-linux" ,util-linux)
2404 ("xdotool" ,xdotool)
2406 (home-page "https://github.com/cdown/clipmenu")
2407 (synopsis "Simple clipboard manager using dmenu or rofi and xsel")
2408 (description "Start @command{clipmenud}, then run @command{clipmenu} to
2409 select something to put on the clipboard.
2411 When @command{clipmenud} detects changes to the clipboard contents, it writes
2412 them out to the cache directory. @command{clipmenu} reads the cache directory
2413 to find all available clips and launches @command{dmenu} (or @command{rofi},
2414 depending on the value of @code{CM_LAUNCHER}) to let the user select a clip.
2415 After selection, the clip is put onto the PRIMARY and CLIPBOARD X selections.")
2416 (license license:public-domain))))
2426 (url "https://github.com/qnikst/kbdd")
2427 (commit (string-append "v" version))))
2428 (file-name (git-file-name name version))
2431 "0qkq75grbd4wkx4nlvswgavpijk9ad0pzqyj89a0ayjsbsn36pqy"))))
2432 (build-system gnu-build-system)
2434 `(("autoconf" ,autoconf)
2435 ("automake" ,automake)
2436 ("glib" ,glib "bin")
2437 ("pkg-config" ,pkg-config)))
2439 `(("dbus-glib", dbus-glib)
2441 ("libx11" ,libx11)))
2442 (home-page "https://github.com/qnikst/kbdd")
2443 (synopsis "Per-window keyboard layout switching daemon for X")
2444 (description "@command{kbdd} is a simple keyboard layout switching
2445 program, which is designed to run in an X11 session and remember
2446 keyboard layouts on a per-window basis. That can be very handy for a
2447 user of a non-US keyboard who does not want to jump through layouts back
2448 and forth while typing in terminals (mostly in a latin alphabet) and
2449 some kind of chat (in native language).
2451 @command{kbdd} also supports D-Bus signals, which makes it possible to
2452 create layout indicator widgets.")
2453 (license license:bsd-2)))
2455 (define-public j4-dmenu-desktop
2457 (name "j4-dmenu-desktop")
2462 (url "https://github.com/enkore/j4-dmenu-desktop")
2463 (commit (string-append "r" version))))
2464 (file-name (git-file-name name version))
2467 "0v23fimkn83dcm5p53y2ymhklff3kwppxhf75sm8xmswrzkixpgc"))))
2468 (build-system cmake-build-system)
2470 `(("catch2" ,catch-framework2)))
2472 `(#:configure-flags '("-DWITH_GIT_CATCH=off")
2474 (modify-phases %standard-phases
2475 (add-after 'unpack 'find-catch
2477 (substitute* "CMakeLists.txt"
2478 (("PATH_SUFFIXES catch") "PATH_SUFFIXES catch2"))
2482 (invoke "./j4-dmenu-tests" "exclude:SearchPath/XDG_DATA_HOME"))))))
2483 (synopsis "Fast desktop menu")
2485 "j4-dmenu-desktop is a replacement for i3-dmenu-desktop. Its purpose
2486 is to find @file{.desktop} files and offer you a menu to start an application
2487 using @command{dmenu}.")
2488 (home-page "https://github.com/enkore/j4-dmenu-desktop")
2489 (license license:gpl3+)))
2498 (url "https://hg.sr.ht/~scoopta/wofi")
2499 (changeset (string-append "v" version))))
2500 (file-name (git-file-name name version))
2503 "086j5wshawjbwdmmmldivfagc2rr7g5a2gk11l0snqqslm294xsn"))))
2504 (build-system meson-build-system)
2506 `(#:glib-or-gtk? #t))
2508 `(("pkg-config" ,pkg-config)))
2511 ("wayland" ,wayland)))
2512 (synopsis "Launcher/menu program for wayland")
2514 "Wofi is a launcher/menu program for wlroots based wayland compositors
2515 such as sway, similar to @command{rofi}.")
2516 (home-page "https://hg.sr.ht/~scoopta/wofi")
2517 (license license:gpl3+)))