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>
43 ;;; This file is part of GNU Guix.
45 ;;; GNU Guix is free software; you can redistribute it and/or modify it
46 ;;; under the terms of the GNU General Public License as published by
47 ;;; the Free Software Foundation; either version 3 of the License, or (at
48 ;;; your option) any later version.
50 ;;; GNU Guix is distributed in the hope that it will be useful, but
51 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
52 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
53 ;;; GNU General Public License for more details.
55 ;;; You should have received a copy of the GNU General Public License
56 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
58 (define-module (gnu packages xdisorg)
59 #:use-module ((guix licenses) #:prefix license:)
60 #:use-module (guix packages)
61 #:use-module (guix download)
62 #:use-module (guix git-download)
63 #:use-module (guix hg-download)
64 #:use-module (guix utils)
65 #:use-module (guix build-system cmake)
66 #:use-module (guix build-system gnu)
67 #:use-module (guix build-system glib-or-gtk)
68 #:use-module (guix build-system meson)
69 #:use-module (guix build-system python)
70 #:use-module (guix build-system scons)
71 #:use-module (gnu packages)
72 #:use-module (gnu packages documentation)
73 #:use-module (gnu packages admin)
74 #:use-module (gnu packages base)
75 #:use-module (gnu packages algebra)
76 #:use-module (gnu packages autotools)
77 #:use-module (gnu packages check)
78 #:use-module (gnu packages compression)
79 #:use-module (gnu packages image)
80 #:use-module (gnu packages pkg-config)
81 #:use-module (gnu packages flex)
82 #:use-module (gnu packages freedesktop)
83 #:use-module (gnu packages gawk)
84 #:use-module (gnu packages gettext)
85 #:use-module (gnu packages gl)
86 #:use-module (gnu packages glib)
87 #:use-module (gnu packages gnome)
88 #:use-module (gnu packages haskell-xyz)
89 #:use-module (gnu packages icu4c)
90 #:use-module (gnu packages man)
91 #:use-module (gnu packages maths)
92 #:use-module (gnu packages m4)
93 #:use-module (gnu packages ncurses)
94 #:use-module (gnu packages perl)
95 #:use-module (gnu packages python)
96 #:use-module (gnu packages python-xyz)
97 #:use-module (gnu packages linux)
98 #:use-module (gnu packages gl)
99 #:use-module (gnu packages guile)
100 #:use-module (gnu packages xml)
101 #:use-module (gnu packages gtk)
102 #:use-module (gnu packages qt)
103 #:use-module (gnu packages xorg)
104 #:use-module (gnu packages fontutils)
105 #:use-module (gnu packages bison)
106 #:use-module (ice-9 match))
108 ;; packages outside the x.org system proper
110 (define-public arandr
116 (uri (string-append "https://christian.amsuess.com/tools/arandr"
117 "/files/arandr-" version ".tar.gz"))
120 "135q0llvm077jil2fr92ssw3p095m4r8jfj0lc5rr3m71n4srj6v"))
121 (modules '((guix build utils)))
124 ;; Do not record a timestamp and file name in gzipped man
125 ;; pages (this is equivalent to 'gzip --no-name'.)
126 (substitute* "setup.py"
127 (("gzip\\.open\\(gzfile, 'w', 9\\)")
128 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)"))
130 (build-system python-build-system)
133 (modify-phases %standard-phases
134 (add-before 'build 'configure
135 (lambda* (#:key inputs #:allow-other-keys)
136 (substitute* "screenlayout/xrandr.py"
137 (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr")
140 (add-after 'install 'wrap-gi-typelib
141 (lambda* (#:key inputs outputs #:allow-other-keys)
142 (let ((out (assoc-ref outputs "out"))
143 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
144 (wrap-program (string-append out "/bin/arandr")
145 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
147 #:tests? #f)) ;no tests
148 (inputs `(("gtk+" ,gtk+)
149 ("pycairo" ,python-pycairo)
150 ("pygobject" ,python-pygobject)
152 (native-inputs `(("gettext" ,gettext-minimal)
153 ("python-docutils" ,python-docutils)))
154 (home-page "https://christian.amsuess.com/tools/arandr/")
155 (synopsis "Another RandR graphical user interface")
156 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
157 (description "ARandR is designed to provide a simple visual front end for
158 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
159 shown graphically and can be changed in a drag-and-drop way. Configurations
160 are saved as executable shell scripts which can be loaded without using this
162 (license license:gpl3+)))
164 (define-public autorandr
168 (home-page "https://github.com/phillipberndt/autorandr")
175 (file-name (git-file-name name version))
177 (base32 "0msw9b1hdy3gbq9w5d04mfizhyirz1c648x84mlcbzl8salm7vpg"))))
178 (build-system python-build-system)
180 `(("pkg-config" ,pkg-config)))
186 (modify-phases %standard-phases
187 (add-before 'build 'configure
188 (lambda* (#:key inputs outputs #:allow-other-keys)
189 (let ((xrandr (string-append (assoc-ref inputs "xrandr")
191 (substitute* "contrib/etc/xdg/autostart/autorandr.desktop"
192 (("/usr") (assoc-ref outputs "out")))
193 (substitute* "autorandr.py"
194 (("popen\\(\"xrandr") (string-append "popen(\"" xrandr))
195 (("\\[\"xrandr") (string-append "[\"" xrandr)))
196 (substitute* "contrib/autorandr_launcher/autorandr_launcher.c"
197 (("/usr/bin/autorandr")
198 (string-append (assoc-ref outputs "out") "/bin/autorandr")))
201 (add-after 'install 'install-contrib
202 (lambda* (#:key outputs #:allow-other-keys)
204 (string-append "DESTDIR=" (assoc-ref outputs "out"))
206 "BASH_COMPLETIONS_DIR=etc/bash_completion.d"
208 "TARGETS=autorandr launcher manpage bash_completion"))))))
209 (synopsis "Auto-detect connected displays and load appropriate setup")
210 (description "Autorandr wraps around xrandr to help with X11
211 multi-screen configuration management. It allows the user to create profiles
212 for various multi-screen setups. Autorandr automatically detects the profiles
213 that can be activated based on the connected hardware. Hook scripts can be
214 used to further tweak the behaviour of the different profiles.")
215 (license license:gpl3+)))
217 (define-public bemenu
225 (url "https://github.com/Cloudef/bemenu")
227 (file-name (git-file-name name version))
229 (base32 "1fjcs9d3533ay3nz79cx3c0lmy2chgragr2lhsy0xl2ckr0iins0"))))
230 (build-system gnu-build-system)
233 #:make-flags (list "CC=gcc"
235 (string-append "LDFLAGS=-Wl,-rpath="
236 (assoc-ref %outputs "out") "/lib")
237 (string-append "PREFIX=" (assoc-ref %outputs "out")))
239 (modify-phases %standard-phases
240 (delete 'configure))))
244 ("libxkbcomon" ,libxkbcommon)
245 ("libxinerama" ,libxinerama)
249 ("wayland-protocols" ,wayland-protocols)))
251 `(("doxygen" ,doxygen)
252 ("pkg-config" ,pkg-config)))
253 (home-page "https://github.com/Cloudef/bemenu")
254 (synopsis "Dynamic menu library and client program inspired by dmenu")
256 "bemenu is a dynamic menu which allows the user to flexibly select from a
257 list of options (usually programs to launch). It renders the menu graphically
258 with X11 or Wayland, or in a text terminal with ncurses.")
259 (license (list license:gpl3+ ; client program[s] and other sources
260 license:lgpl3+)))) ; library and bindings
269 (url "https://github.com/hluk/CopyQ")
270 (commit (string-append "v" version))))
271 (file-name (git-file-name name version))
274 "0wlwq9xg8rzsbj0b29z358k4mbrqy04iraa8x0p26pa95yskgcma"))))
275 (build-system cmake-build-system)
277 `(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release")
278 #:tests? #f)) ; Test suite is a rather manual process.
281 ("qtscript" ,qtscript)
283 ("qtx11extras" ,qtx11extras)))
284 (synopsis "Clipboard manager with advanced features")
285 (description "CopyQ is clipboard manager with editing and scripting
286 features. CopyQ monitors system clipboard and saves its content in customized
287 tabs. Saved clipboard can be later copied and pasted directly into any
289 (home-page "https://hluk.github.io/CopyQ/")
290 (license license:gpl3+)))
300 (url "https://github.com/astrand/xclip")
302 (file-name (git-file-name name version))
305 "0q0hmvcjlv8arhh1pzhja2wglyj6n7z209jnpnzd281kqqv4czcs"))))
306 (build-system gnu-build-system)
308 '(#:tests? #f)) ;there is no test suite
310 `(("autoconf" ,autoconf)
311 ("automake" ,automake)))
312 (inputs `(("libxmu" ,libxmu)
314 (home-page "https://github.com/astrand/xclip")
315 (synopsis "Command line interface to X11 clipboard")
316 (description "Xclip is a command line interface to the X11 clipboard. It
317 can also be used for copying files, as an alternative to sftp/scp, thus
318 avoiding password prompts when X11 forwarding has already been setup.")
319 (license license:gpl2+)))
321 (define-public libxkbcommon
323 (name "libxkbcommon")
327 (uri (string-append "https://xkbcommon.org/download/libxkbcommon-"
331 "1wmnl0hngn6vrqrya4r8hvimlkr4jag39yjprls4gyrqvh667hsp"))))
332 (build-system meson-build-system)
337 ("wayland-protocols" ,wayland-protocols)
338 ("xkeyboard-config" ,xkeyboard-config)))
342 ("pkg-config" ,pkg-config)))
345 (list (string-append "-Dxkb-config-root="
346 (assoc-ref %build-inputs "xkeyboard-config")
348 (string-append "-Dx-locale-root="
349 (assoc-ref %build-inputs "libx11")
350 "/share/X11/locale"))))
351 (home-page "https://xkbcommon.org/")
352 (synopsis "Library to handle keyboard descriptions")
353 (description "Xkbcommon is a library to handle keyboard descriptions,
354 including loading them from disk, parsing them and handling their
355 state. It is mainly meant for client toolkits, window systems, and other
356 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
357 Clutter, and more. Despite the name, it is not currently used by anything
359 (license (license:x11-style "file://COPYING"
360 "See 'COPYING' in the distribution."))))
362 (define-public libfakekey
370 (url "https://git.yoctoproject.org/git/libfakekey")
372 (file-name (git-file-name name version))
374 (base32 "1jw1d4wc1ysiijirc7apnz3sryrxbl9akgb92mh06dvfkz2nblj0"))))
375 (build-system gnu-build-system)
377 `(#:make-flags (list "AM_LDFLAGS=-lX11")
379 (modify-phases %standard-phases
381 ;; ./autogen.sh calls ./configure before shebangs have been patched.
383 (invoke "autoreconf" "-vfi"))))))
385 `(("pkg-config" ,pkg-config)
387 ;; For bootstrapping from git.
388 ("autoconf" ,autoconf)
389 ("automake" ,automake)
390 ("libtool" ,libtool)))
392 `(("libxtst" ,libxtst)
394 (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox")
395 (synopsis "X virtual keyboard library")
397 "Libfakekey is a virtual keyboard library for X.")
398 (license license:gpl2)))
400 (define-public xdotool
403 (version "3.20160805.1")
408 "https://github.com/jordansissel/xdotool/releases/download/v"
409 version "/xdotool-" version ".tar.gz"))
412 "1a6c1zr86zb53352yxv104l76l8x21gfl2bgw6h21iphxpv5zgim"))))
413 (build-system gnu-build-system)
415 '(#:tests? #f ; Test suite requires a lot of black magic
417 (modify-phases %standard-phases
419 (lambda* (#:key outputs #:allow-other-keys #:rest args)
420 (let ((out (assoc-ref outputs "out")))
421 (mkdir-p (string-append out "/lib"))
422 (setenv "PREFIX" out)
423 (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib"))
426 (native-inputs `(("perl" ,perl))) ; for pod2man
427 (inputs `(("libx11" ,libx11)
430 ("libxinerama" ,libxinerama)
432 ("libxkbcommon" ,libxkbcommon)))
433 (home-page "https://www.semicomplete.com/projects/xdotool/")
434 (synopsis "Fake keyboard/mouse input, window management, and more")
435 (description "Xdotool lets you simulate keyboard input and mouse activity,
436 move and resize windows, etc. It does this using X11's XTEST extension and
437 other Xlib functions. Additionally, you can search for windows and move,
438 resize, hide, and modify window properties like the title. If your window
439 manager supports it, you can use xdotool to switch desktops, move windows
440 between desktops, and change the number of desktops.")
441 (license license:bsd-3)))
450 (uri (string-append "https://www.x.org/releases/individual/app/"
451 name "-" version ".tar.bz2"))
453 (base32 "0lq5j7fryx1wn998jq6h3icz1h6pqrsbs3adskjzjyhn5l6yrg2p"))))
454 (build-system gnu-build-system)
456 `(("libxext" ,libxext)
458 ("libxrender" ,libxrender)
461 `(("pkg-config" ,pkg-config)))
462 (home-page "https://www.x.org/") ; no dedicated Xeyes page exists
463 (synopsis "Follow-the-mouse X demo")
464 (description "Xeyes is a demo program for x.org. It shows eyes
465 following the mouse.")
466 (license license:x11)))
469 (define-public pixman
476 "https://www.cairographics.org/releases/pixman-"
480 "1ryxzdf048x7wsx4dlvrr1p00gzwfs7lybnhgc7ygbj0dvyxcrns"))
481 (patches (search-patches "pixman-CVE-2016-5296.patch"))))
482 (build-system gnu-build-system)
484 '(#:configure-flags '("--disable-static")))
489 `(("pkg-config" ,pkg-config)))
490 (home-page "http://www.pixman.org/")
491 (synopsis "Low-level pixel manipulation library")
492 (description "Pixman is a low-level software library for pixel
493 manipulation, providing features such as image compositing and trapezoid
495 (license license:x11)))
497 (define-public libdrm
504 "https://dri.freedesktop.org/libdrm/libdrm-"
508 "0nx0bd9dhymdsd99v4ifib77yjirkvkxf5hzdkbr7qr8dhrzkjwb"))))
509 (build-system meson-build-system)
512 '(,@(match (%current-system)
513 ((or "armhf-linux" "aarch64-linux")
518 "-Dfreedreno-kgsl=true"))
521 #:phases (modify-phases %standard-phases
524 (invoke "meson" "test" "--timeout-multiplier" "5"))))))
526 `(("libpciaccess" ,libpciaccess)))
528 `(("pkg-config" ,pkg-config)))
529 (home-page "https://dri.freedesktop.org/wiki/")
530 (synopsis "Direct rendering userspace library")
531 (description "The Direct Rendering Infrastructure, also known as the DRI,
532 is a framework for allowing direct access to graphics hardware under the
533 X Window System in a safe and efficient manner. It includes changes to the
534 X server, to several client libraries, and to the kernel (DRM, Direct
535 Rendering Manager). The most important use for the DRI is to create fast
536 OpenGL implementations providing hardware acceleration for Mesa.
537 Several 3D accelerated drivers have been written to the DRI specification,
538 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
540 (license license:x11)))
551 "http://bitmath.org/code/mtdev/mtdev-"
555 "1q700h9dqcm3zl6c3gj0qxxjcx6ibw2c51wjijydhwdcm26v5mqm"))))
556 (build-system gnu-build-system)
557 (arguments '(#:configure-flags '("--disable-static")))
558 (home-page "http://bitmath.org/code/mtdev/")
559 (synopsis "Multitouch protocol translation library")
560 (description "Mtdev is a stand-alone library which transforms all
561 variants of kernel MT events to the slotted type B protocol. The events
562 put into mtdev may be from any MT device, specifically type A without
563 contact tracking, type A with contact tracking, or type B with contact
565 (license license:x11)))
567 (define-public startup-notification
569 (name "startup-notification")
574 (uri (string-append "https://www.freedesktop.org/software/" name
575 "/releases/" name "-" version ".tar.gz"))
578 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
579 (build-system gnu-build-system)
580 (native-inputs `(("pkg-config" ,pkg-config)))
583 ("xcb-util" ,xcb-util)))
584 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
585 (synopsis "Application startup notification and feedback library")
587 "Startup-notification contains a reference implementation of the startup
588 notification protocol. The reference implementation is mostly under an X Window
589 System style license, and has no special dependencies.")
590 ;; Most of the code is provided under x11 license.
591 (license license:lgpl2.0+)))
593 (define-public wmctrl
600 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
604 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
605 (patches (search-patches "wmctrl-64-fix.patch"))))
606 (build-system gnu-build-system)
609 (list (string-append "--mandir="
610 (assoc-ref %outputs "out")
613 `(("pkg-config" ,pkg-config)))
618 (home-page "http://tomas.styblo.name/wmctrl/")
619 (synopsis "Command-line tool to control X window managers")
621 "Wmctrl interacts with an X window manager that is compatible
622 with the EWMH/NetWM specification. It can query the window manager for
623 information, and request for certain window management actions (resize and
624 move windows, switch between desktops, etc.).")
625 (license license:gpl2+)))
636 (url "https://github.com/resurrecting-open-source-projects/scrot")
638 (file-name (git-file-name name version))
641 "12xq6glg70icwsvbnfw9gm4dahlbnrc7b6adpd0mpf89h4sj2gds"))))
642 (build-system gnu-build-system)
644 `(("autoconf" ,autoconf)
645 ("autoconf-archive" ,autoconf-archive)
646 ("automake" ,automake)))
650 ("libXcursor" ,libxcursor)
651 ("libxcomposite" ,libxcomposite)
652 ("libXfixes" ,libxfixes)))
653 (home-page "https://github.com/resurrecting-open-source-projects/scrot")
654 (synopsis "Command-line screen capture utility for X Window System")
656 "Scrot saves a screenshot of a full screen, a window or a part
657 of the screen selected by mouse.")
658 ;; This license removes a clause about X Consortium from the original
660 (license (license:x11-style "file://COPYING"
661 "See 'COPYING' in the distribution."))))
670 (url "https://github.com/naelstrof/slop")
671 (commit (string-append "v" version))))
672 (file-name (git-file-name name version))
675 "1k8xxb4rj2fylr4vj16yvsf73cyywliz9cy78pl4ibmi03jhg837"))))
676 (build-system cmake-build-system)
678 '(#:tests? #f)) ; no "check" target
684 ("libxrender" ,libxrender)
686 (home-page "https://github.com/naelstrof/slop")
687 (synopsis "Select a region and print its bounds to stdout")
689 "slop (Select Operation) is a tool that queries for a selection from a
690 user and prints the region to stdout. It grabs the mouse and turns it into a
691 crosshair, lets the user click and drag to make a selection (or click on a
692 window) while drawing a pretty box around it, then finally prints the
693 selection's dimensions to stdout.")
694 (license license:gpl3+)))
703 (url "https://github.com/naelstrof/maim")
704 (commit (string-append "v" version))))
705 (file-name (git-file-name name version))
708 "181mjjrjb9fs1ficcv9miqbk94v95j1yli7fjp2dj514g7nj9l3x"))))
709 (build-system cmake-build-system)
711 '(#:tests? #f)) ; no "check" target
714 ("libjpeg" ,libjpeg-turbo)
716 ("libxcomposite" ,libxcomposite)
717 ("libxfixes" ,libxfixes)
718 ("libxrandr" ,libxrandr)
722 (home-page "https://github.com/naelstrof/maim")
723 (synopsis "Screenshot utility for X Window System")
725 "maim (Make Image) is a tool that takes screenshots of your desktop and
726 saves it in any format. Along with a full screen, it allows you to capture a
727 predefined region or a particular window. Also, it makes it possible to
728 include cursor in the resulting image.")
729 (license license:gpl3+)))
731 (define-public unclutter
738 "http://ftp.x.org/contrib/utilities/unclutter-"
742 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
743 (build-system gnu-build-system)
745 '(#:tests? #f ; no check target
747 (modify-phases %standard-phases
750 (lambda* (#:key inputs outputs #:allow-other-keys)
751 (let* ((out (assoc-ref outputs "out"))
752 (bin (string-append out "/bin"))
753 (man1 (string-append out "/share/man/man1")))
756 (invoke "make" "install" "install.man"
757 (string-append "BINDIR=" bin)
758 (string-append "MANDIR=" man1))))))))
759 (inputs `(("libx11" ,libx11)))
760 (home-page "http://ftp.x.org/contrib/utilities/")
761 (synopsis "Hide idle mouse cursor")
763 "Unclutter is a program which runs permanently in the background of an
764 X11 session. It checks on the X11 pointer (cursor) position every few
765 seconds, and when it finds it has not moved (and no buttons are pressed
766 on the mouse, and the cursor is not in the root window) it creates a
767 small sub-window as a child of the window the cursor is in. The new
768 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
769 invisible cursor. This allows you to see all the text in an xterm or
770 xedit, for example. The human factors crowd would agree it should make
771 things less distracting.")
772 (license license:public-domain)))
774 (define-public xautomation
781 (uri (string-append "https://www.hoopajoo.net/static/projects/"
782 "xautomation-" version ".tar.gz"))
786 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
787 (build-system gnu-build-system)
792 ("libxtst" ,libxtst)))
794 `(("xorgproto" ,xorgproto)))
795 (synopsis "Tools to automate tasks in X such as detecting on screen images")
797 "Xautomation can control X from the command line for scripts, and
798 do visual scraping to find things on the screen. The control interface
799 allows mouse movement, clicking, button up/down, key up/down, etc, and
800 uses the XTest extension so you don't have the annoying problems that
801 xse has when apps ignore sent events. The visgrep program can find
802 images inside of images and reports the coordinates, allowing programs
803 to find buttons, etc, on the screen to click on.")
804 (home-page "https://www.hoopajoo.net/projects/xautomation.html")
805 (license license:gpl2+)))
807 (define-public xbanish
811 (home-page "https://github.com/jcs/xbanish")
814 (uri (git-reference (url home-page)
815 (commit (string-append "v" version))))
816 (file-name (git-file-name name version))
819 "0ic5f7zgc32p5g1wxas9y5h8dhik0pvsa8wmn6skdry56gw9vg9q"))))
820 (build-system gnu-build-system)
822 `(#:tests? #f ; no tests
823 #:make-flags (list "CC=gcc"
824 (string-append "PREFIX=" (assoc-ref %outputs "out")))
825 #:phases (modify-phases %standard-phases
826 (delete 'configure)))) ; no configure script
829 ("libxfixes" ,libxfixes)
832 (synopsis "Banish the mouse cursor")
834 "@command{xbanish} hides the mouse cursor when you start typing, and
835 shows it again when the mouse cursor moves or a mouse button is pressed.")
836 (license license:bsd-3)))
838 (define-public xlockmore
844 (uri (list (string-append "http://sillycycle.com/xlock/"
845 "xlockmore-" version ".tar.xz")
846 ;; Previous releases are moved to a subdirectory.
847 (string-append "http://sillycycle.com/xlock/"
849 "xlockmore-" version ".tar.xz")))
852 "0b05wgj4mpssy4hd7km5c48i454dfg45p11mfmsr7xjd2gnz5gqi"))))
853 (build-system gnu-build-system)
855 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
856 (assoc-ref %outputs "out")
857 "/lib/X11/app-defaults"))
858 #:tests? #f)) ;no such thing as a test suite
863 ("linux-pam" ,linux-pam)))
864 (home-page "https://sillycycle.com/xlockmore.html")
865 (synopsis "Screen locker for the X Window System")
867 "XLockMore is a classic screen locker and screen saver for the
869 (license (license:non-copyleft #f "See xlock.c.")
870 ))) ; + GPLv2 in modes/glx/biof.c.
879 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
880 name "-" version ".tar.gz"))
883 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
884 (build-system gnu-build-system)
887 (list (string-append "--mandir=" %output "/share/man"))))
892 ("libxinerama" ,libxinerama)))
893 (home-page "https://sourceforge.net/projects/libxosd/")
894 (synopsis "X On Screen Display")
896 "XOSD provides a C library and a simple utility (osd_cat) for displaying
897 transparent text on your screen.")
898 (license license:gpl2+)))
900 (define-public xbindkeys
906 ;; Download from the savannah mirror list fails
908 "http://www.nongnu.org/xbindkeys/xbindkeys-"
913 "1wl2vc5alisiwyk8m07y1ryq8w3ll9ym83j27g4apm4ixjl8d6x2"))))
914 (build-system gnu-build-system)
916 `(("pkg-config" ,pkg-config)))
919 ("guile" ,guile-2.2)))
920 (home-page "https://www.nongnu.org/xbindkeys/")
921 (synopsis "Associate a combination of keys with a shell command")
923 "XBindKeys is a program that allows you to launch shell commands with
924 your keyboard or your mouse under the X Window System. It links commands to
925 keys or mouse buttons, using a configuration file. It's independent of the
926 window manager and can capture all keyboard keys (ex: Power, Wake...). It
927 optionally supports a Guile-based configuration file layout, which enables you
928 to access all XBindKeys internals, so you can have key combinations, double
929 clicks or timed double clicks take actions. Also all functions that work in
930 Guile will work for XBindKeys.")
931 (license license:gpl2+)))
941 (url "https://github.com/baskerville/sxhkd")
943 (file-name (git-file-name name version))
945 (base32 "1winwzdy9yxvxnrv8gqpigl9y0c2px27mnms62bdilp4x6llrs9r"))))
946 (build-system gnu-build-system)
948 `(("asciidoc" ,asciidoc)
950 ("xcb-util" ,xcb-util)
951 ("xcb-util-keysyms" ,xcb-util-keysyms)
952 ("xcb-util-wm" ,xcb-util-wm)))
954 `(#:phases (modify-phases %standard-phases (delete 'configure))
955 #:tests? #f ; no check target
958 (string-append "PREFIX=" %output)
959 ;; Keep the documentation where the build system installs LICENSE.
960 (string-append "DOCPREFIX=" %output
961 "/share/doc/" ,name "-" ,version))))
962 (home-page "https://github.com/baskerville/sxhkd")
963 (synopsis "Simple X hotkey daemon")
964 (description "sxhkd is a simple X hotkey daemon with a powerful and
965 compact configuration syntax.")
966 (license license:bsd-2)))
968 (define-public rxvt-unicode
970 (name "rxvt-unicode")
974 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
975 name "-" version ".tar.bz2"))
976 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
979 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
980 (build-system gnu-build-system)
982 ;; This sets the destination when installing the necessary terminal
983 ;; capability data, which are not provided by 'ncurses'. See
984 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
985 `(#:make-flags (list (string-append "TERMINFO="
986 (assoc-ref %outputs "out")
989 (modify-phases %standard-phases
990 (add-after 'install 'install-desktop-urxvt
991 (lambda* (#:key outputs #:allow-other-keys)
992 (let* ((output (assoc-ref outputs "out"))
993 (desktop (string-append output "/share/applications")))
996 (string-append desktop "/urxvt.desktop")
1003 TryExec=~@*~a/bin/urxvt~@
1008 (add-after 'install 'install-desktop-urxvtc
1009 (lambda* (#:key outputs #:allow-other-keys)
1010 (let* ((output (assoc-ref outputs "out"))
1011 (desktop (string-append output "/share/applications")))
1013 (with-output-to-file
1014 (string-append desktop "/urxvtc.desktop")
1018 Name=rxvt-unicode (client)~@
1019 Comment=Rxvt clone with XFT and unicode support~@
1020 Exec=~a/bin/urxvtc~@
1021 TryExec=~@*~a/bin/urxvtc~@
1027 `(("libXft" ,libxft)
1028 ("libX11" ,libx11)))
1030 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
1032 ("pkg-config" ,pkg-config)))
1033 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
1034 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
1035 (native-search-paths
1036 (list (search-path-specification
1037 (variable "TERMINFO_DIRS")
1038 (files '("share/terminfo")))))
1039 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
1040 (synopsis "Rxvt clone with XFT and unicode support")
1041 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
1042 intended as an xterm replacement for users who do not require features such as
1043 Tektronix 4014 emulation and toolkit-style configurability. It supports
1044 unicode, XFT and may be extended with Perl plugins. It also comes with a
1045 client/daemon pair that lets you open any number of terminal windows from
1046 within a single process.")
1047 (license license:gpl3+)))
1049 (define-public xcape
1056 (url "https://github.com/alols/xcape")
1057 (commit (string-append "v" version))))
1058 (file-name (git-file-name name version))
1061 "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm"))))
1062 (build-system gnu-build-system)
1064 `(#:tests? #f ; no check target
1065 ;; no configure script
1066 #:phases (modify-phases %standard-phases (delete 'configure))
1067 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1068 "MANDIR=/share/man/man1"
1071 `(("libxtst" ,libxtst)
1072 ("libx11" ,libx11)))
1074 `(("pkg-config" ,pkg-config)))
1075 (home-page "https://github.com/alols/xcape")
1076 (synopsis "Use a modifier key in X.org as another key")
1078 "This utility for X.org uses a modifier key as another key when
1079 pressed and released on its own. The default behaviour is to generate the
1080 Escape key when Left Control is pressed and released on its own.")
1081 (license license:gpl3+)))
1083 (define-public libwacom
1090 "https://github.com/linuxwacom/libwacom/releases/download/"
1091 "libwacom-" version "/libwacom-" version ".tar.bz2"))
1094 "0yyl6vzpfd7dq8a8k9dn8r494542ci4r1i0pillg1p4f7jvryd3b"))))
1095 (build-system glib-or-gtk-build-system)
1097 `(#:configure-flags '("--disable-static")))
1099 `(("pkg-config" ,pkg-config)))
1102 ("libgudev" ,libgudev)
1104 ("libxml2" ,libxml2)))
1106 ;; libwacom includes header files that include GLib, and libinput uses
1107 ;; those header files.
1109 (home-page "https://linuxwacom.github.io/")
1110 (synopsis "Helper library for Wacom tablet settings")
1112 "Libwacom is a library to help implement Wacom tablet settings. It is
1113 intended to be used by client-programs that need model identification. It is
1114 already being used by the gnome-settings-daemon and the GNOME Control Center
1115 Wacom tablet applet.")
1116 (license license:x11)))
1118 (define-public xf86-input-wacom
1120 (name "xf86-input-wacom")
1126 "https://github.com/linuxwacom/xf86-input-wacom/releases/download/"
1127 "xf86-input-wacom-" version "/"
1128 "xf86-input-wacom-" version ".tar.bz2"))
1130 (base32 "11qk58az6qwii774ga45h5yqzipwn56f0d74kdbajqdv45p85gqj"))))
1133 (list (string-append "--with-sdkdir="
1134 (assoc-ref %outputs "out")
1136 (string-append "--with-xorg-conf-dir="
1137 (assoc-ref %outputs "out")
1138 "/share/X11/xorg.conf.d"))))
1139 (build-system gnu-build-system)
1141 `(("pkg-config" ,pkg-config)))
1143 `(("xorg-server" ,xorg-server)
1144 ("libxrandr" ,libxrandr)
1145 ("libxinerama" ,libxinerama)
1148 (home-page "https://linuxwacom.github.io/")
1149 (synopsis "Wacom input driver for X")
1151 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
1152 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
1153 (license license:x11)))
1155 (define-public redshift
1163 (string-append "https://github.com/jonls/redshift/"
1164 "releases/download/v" version
1165 "/redshift-" version ".tar.xz"))
1168 "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j"))))
1169 (build-system gnu-build-system)
1171 `(#:imported-modules (,@%gnu-build-system-modules
1172 (guix build python-build-system))
1174 (modify-phases %standard-phases
1175 (add-after 'install 'split-outputs
1176 (lambda* (#:key outputs #:allow-other-keys)
1177 (let ((out (assoc-ref outputs "out"))
1178 (gtk (assoc-ref outputs "gtk"))
1179 (desktop-file "/share/applications/redshift-gtk.desktop"))
1180 (mkdir-p (string-append gtk "/bin"))
1181 (link (string-append out "/bin/redshift-gtk")
1182 (string-append gtk "/bin/redshift-gtk"))
1183 (delete-file (string-append out "/bin/redshift-gtk"))
1184 (copy-recursively (string-append out "/lib")
1185 (string-append gtk "/lib"))
1186 (delete-file-recursively (string-append out "/lib"))
1187 (mkdir-p (string-append gtk "/share/applications"))
1188 (link (string-append out desktop-file)
1189 (string-append gtk desktop-file))
1190 (delete-file (string-append out desktop-file))
1191 (with-directory-excursion (string-append out "/share")
1192 (for-each (lambda (dir)
1194 (string-append out "/share/" dir)
1195 (string-append gtk "/share/" dir))
1196 (delete-file-recursively dir))
1197 '("appdata" "icons")))
1199 (add-after 'split-outputs 'wrap
1200 (lambda* (#:key inputs outputs #:allow-other-keys)
1201 (let* ((gtk (assoc-ref outputs "gtk"))
1203 (@ (guix build python-build-system) python-version))
1204 (python (assoc-ref inputs "python"))
1205 (sitedir (string-append gtk "/lib/python"
1206 (python-version python)
1208 (wrap-program (string-append gtk "/bin/redshift-gtk")
1209 `("PYTHONPATH" ":" prefix
1210 (,(string-append sitedir ":" (getenv "PYTHONPATH"))))
1211 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH"))))
1213 (outputs '("out" "gtk"))
1215 `(("pkg-config" ,pkg-config)
1216 ("intltool" ,intltool)))
1218 `(("libdrm" ,libdrm)
1221 ("libxxf86vm" ,libxxf86vm)
1222 ("glib" ,glib) ;for Geoclue2 support
1224 ;; To build the GTK3 GUI, we need these.
1227 ("python-pygobject" ,python-pygobject)
1228 ("python-pyxdg" ,python-pyxdg)))
1229 (home-page "https://github.com/jonls/redshift")
1230 (synopsis "Adjust the color temperature of your screen")
1232 "Redshift adjusts the color temperature according to the position of the
1233 sun. A different color temperature is set during night and daytime. During
1234 twilight and early morning, the color temperature transitions smoothly from
1235 night to daytime temperature to allow your eyes to slowly adapt. At night the
1236 color temperature should be set to match the lamps in your room.")
1237 (license license:gpl3+)))
1239 (define-public redshift-wayland
1240 (let ((commit "7da875d34854a6a34612d5ce4bd8718c32bec804")
1243 (name "redshift-wayland")
1244 (version (string-append "1.12-"
1245 revision "." (string-take commit 7)))
1249 (url "https://github.com/minus7/redshift")
1251 (file-name (string-append name "-" version))
1254 "0nbkcw3avmzjg1jr1g9yfpm80kzisy55idl09b6wvzv2sz27n957"))))
1255 (build-system gnu-build-system)
1257 '(#:phases (modify-phases %standard-phases
1258 (add-after 'install 'create-desktop-file
1259 (lambda* (#:key outputs #:allow-other-keys)
1260 ;; For the GeoClue provider to work, a .desktop file
1261 ;; needs to be provided. A template is available,
1262 ;; but it only gets installed when the GUI is enabled.
1263 ;; Install it manually for this Wayland variant.
1264 (let* ((out (assoc-ref outputs "out"))
1267 out "/share/applications/redshift.desktop")))
1268 (mkdir-p (dirname desktop-file))
1269 (copy-file "data/applications/redshift.desktop.in"
1271 (substitute* desktop-file
1275 `(("autoconf" ,autoconf)
1276 ("automake" ,automake)
1277 ("libtool" ,libtool)
1278 ("pkg-config" ,pkg-config)
1279 ("intltool" ,intltool)))
1281 `(("libdrm" ,libdrm)
1284 ("libxxf86vm" ,libxxf86vm)
1285 ("glib" ,glib) ; for Geoclue2 support
1286 ("wayland" ,wayland)))
1287 (home-page "https://github.com/minus7/redshift")
1288 (synopsis "Adjust the color temperature of your screen (with Wayland support)")
1290 "Redshift adjusts the color temperature according to the position of the
1291 sun. A different color temperature is set during night and daytime. During
1292 twilight and early morning, the color temperature transitions smoothly from
1293 night to daytime temperature to allow your eyes to slowly adapt. At night the
1294 color temperature should be set to match the lamps in your room.
1296 This is a fork with added support for Wayland using the wlr-gamma-control
1298 (license license:gpl3+))))
1300 (define-public xscreensaver
1302 (name "xscreensaver")
1308 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
1311 (base32 "15bv05vpfjwsrqbazrjmm382jd7vvw0mp6y9vasn6wvxzjf0in3k"))))
1312 (build-system gnu-build-system)
1314 `(#:tests? #f ; no check target
1316 (modify-phases %standard-phases
1317 (add-before 'configure 'adjust-gtk-resource-paths
1319 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
1320 (("@GTK_DATADIR@") "@datadir@")
1321 (("@PO_DATADIR@") "@datadir@"))
1323 #:configure-flags '("--with-pam" "--with-proc-interrupts"
1324 "--without-readdisplay")
1325 #:make-flags (list (string-append "AD_DIR="
1326 (assoc-ref %outputs "out")
1327 "/lib/X11/app-defaults"))))
1329 `(("pkg-config" ,pkg-config)
1330 ("intltool" ,intltool)))
1332 `(("libx11" ,libx11)
1333 ("libxext" ,libxext)
1339 ("libglade" ,libglade)
1340 ("libxml2" ,libxml2)
1342 ("libjpeg" ,libjpeg-turbo)
1343 ("linux-pam" ,linux-pam)
1349 ("libxrandr" ,libxrandr)
1352 (home-page "https://www.jwz.org/xscreensaver/")
1353 (synopsis "Classic screen saver suite supporting screen locking")
1355 "xscreensaver is a popular screen saver collection with many entertaining
1356 demos. It also acts as a nice screen locker.")
1357 ;; xscreensaver doesn't have a single copyright file and instead relies on
1358 ;; source comment headers, though most files have the same lax
1359 ;; permissions. To reduce complexity, we're pointing at Debian's
1360 ;; breakdown of the copyright information.
1361 (license (license:non-copyleft
1363 "http://metadata.ftp-master.debian.org/changelogs/"
1364 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1366 (define-public xssproxy
1373 (url "https://github.com/timakro/xssproxy")
1374 (commit (string-append "v" version))))
1375 (file-name (string-append name "-" version "-checkout"))
1378 "0c83wmipnsdnbihc5niyczs7jrkss2s8n6iwwjdia7hkjzbd0hl7"))))
1379 (build-system gnu-build-system)
1380 (arguments `(#:make-flags `("bindir=/bin"
1381 "man1dir=/share/man/man1"
1382 ,(string-append "DESTDIR=" (assoc-ref %outputs "out"))
1384 #:phases (modify-phases %standard-phases
1388 `(("pkg-config" ,pkg-config)))
1392 ("libxext" ,libxext)
1393 ("libxscrnsaver" ,libxscrnsaver)
1395 (synopsis "Forward freedesktop.org Idle Inhibition Service calls to Xss")
1396 (description "xssproxy implements the @code{org.freedesktop.ScreenSaver}
1397 D-Bus interface described in the Idle Inhibition Service Draft by the
1398 freedesktop.org developers. The inhibition of the screensaver is then
1399 controlled using the XScreenSaverSuspend function from the Xss (X11 Screen
1400 Saver extension) library.")
1401 (home-page "https://github.com/timakro/xssproxy")
1402 (license license:gpl3+)))
1410 (uri (string-append "http://www.vergenet.net/~conrad/software"
1411 "/xsel/download/xsel-" version ".tar.gz"))
1414 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1415 (build-system gnu-build-system)
1417 `(("libxt" ,libxt)))
1418 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1419 (synopsis "Manipulate X selection")
1421 "XSel is a command-line program for getting and setting the contents of
1422 the X selection. Normally this is only accessible by manually highlighting
1423 information and pasting it with the middle mouse button.
1425 XSel reads from standard input and writes to standard output by default,
1426 but can also follow a growing file, display contents, delete entries and more.")
1427 (license (license:x11-style "file://COPYING"
1428 "See COPYING in the distribution."))))
1430 (define-public xdpyprobe
1436 (uri (string-append "https://github.com/alezost/" name
1437 "/releases/download/v" version
1438 "/" name "-" version ".tar.gz"))
1441 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1442 (build-system gnu-build-system)
1444 `(("libx11" ,libx11)))
1445 (home-page "https://github.com/alezost/xdpyprobe")
1446 (synopsis "Probe X server for connectivity")
1448 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1449 connectivity of the X server running on a particular @code{DISPLAY}.")
1450 (license license:gpl3+)))
1458 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1459 "releases/download/"
1460 version "/rofi-" version ".tar.xz"))
1463 "1nslmyqyzhfr4hxd4llqkkkb8ap8apkdna32rllvar7r576059ci"))))
1464 (build-system gnu-build-system)
1469 ("startup-notification" ,startup-notification)
1470 ("librsvg" ,librsvg)
1471 ("libxkbcommon" ,libxkbcommon)
1473 ("xcb-util" ,xcb-util)
1474 ("xcb-util-xrm" ,xcb-util-xrm)
1475 ("xcb-util-wm" ,xcb-util-wm)))
1480 ("glib:bin" ,glib "bin")
1481 ("pkg-config" ,pkg-config)))
1483 `(#:parallel-tests? #f ; fails in some circumstances
1485 (modify-phases %standard-phases
1486 (add-before 'configure 'adjust-tests
1488 (substitute* '("test/helper-expand.c")
1491 (("g_get_home_dir \\(\\)") "\"/\""))
1493 (home-page "https://github.com/DaveDavenport/rofi")
1494 (synopsis "Application launcher")
1495 (description "Rofi is a minimalist application launcher. It memorizes which
1496 applications you regularly use and also allows you to search for an application
1498 (license license:expat)))
1500 (define-public tint2
1506 (uri (string-append "https://gitlab.com/o9000/" name
1507 "/repository/archive.tar.gz?ref=" version))
1508 (file-name (string-append name "-" version ".tar.gz"))
1511 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1512 (build-system cmake-build-system)
1514 '(#:tests? #f ;no test target
1516 (modify-phases %standard-phases
1517 (add-after 'unpack 'fix-installation-prefix
1519 (substitute* "CMakeLists.txt"
1520 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))
1525 ("librsvg" ,librsvg)
1526 ("libxcomposite" ,libxcomposite)
1527 ("libxdamage" ,libxdamage)
1529 ("libxinerama" ,libxinerama)
1530 ("libxrandr" ,libxrandr)
1531 ("startup-notification" ,startup-notification)))
1533 `(("gettext" ,gettext-minimal)
1534 ("pkg-config" ,pkg-config)))
1535 (home-page "https://gitlab.com/o9000/tint2")
1536 (synopsis "Lightweight task bar")
1538 "Tint2 is a simple task bar made for modern X window managers. It was
1539 specifically made for Openbox but it should also work with other window
1540 managers (GNOME, KDE, XFCE etc.).
1542 The taskbar includes transparency and color settings for the font, icons,
1543 border, and background. It also supports multihead setups, customized mouse
1544 actions, a built-in clock, a battery monitor and a system tray.")
1545 (license license:gpl2)))
1548 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1552 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1553 revision "." (string-take commit 7)))
1557 (url "https://github.com/robm/dzen")
1559 (file-name (string-append name "-" version))
1562 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1563 (build-system gnu-build-system)
1565 `(#:tests? #f ; No test suite.
1566 #:make-flags ; Replacement for `config.mk`.
1568 (string-append "VERSION = " ,version)
1569 (string-append "PREFIX = " %output)
1570 "MANPREFIX = ${PREFIX}/share/man"
1572 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1573 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1574 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1579 (modify-phases %standard-phases
1580 (delete 'configure) ; No configuration script.
1581 ;; Use own make-flags instead of `config.mk`.
1582 (add-before 'build 'dont-include-config-mk
1584 (substitute* "Makefile" (("include config.mk") ""))
1587 `(("libx11" ,libx11)
1590 ("libxinerama" ,libxinerama)))
1591 (native-inputs `(("pkg-config" ,pkg-config)))
1592 (synopsis "General purpose messaging, notification and menuing program for X11")
1593 (description "Dzen is a general purpose messaging, notification and menuing
1594 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1595 (home-page "https://github.com/robm/dzen")
1596 (license license:expat))))
1598 (define-public xftwidth
1601 (version "20170402")
1606 (url "http://github.com/vixus0/xftwidth")
1607 (commit "35ff963908d41a8a6a7101c434c88255728025ee")))
1610 "1jwl25785li24kbp0m1wxfwk4dgxkliynn03nsj813cjr34kq16h"))
1611 (file-name (string-append name "-" version "-checkout"))))
1612 (build-system gnu-build-system)
1613 (inputs `(("freetype" ,freetype)
1615 ("fontconfig" ,fontconfig)
1616 ("libxft" ,libxft)))
1618 `(("pkg-config" ,pkg-config)))
1621 (modify-phases %standard-phases
1622 (add-after 'unpack 'fix-makefile ; /usr/bin doesn't show up in PATH
1623 (lambda _ (substitute* "Makefile" (("usr/") "")) #t))
1624 (delete 'check) ; no check included in Makefile
1625 (delete 'configure))
1627 (let ((out (assoc-ref %outputs "out")))
1628 (list (string-append "DESTDIR=" out)))))
1629 (home-page "https://github.com/vixus0/xftwidth")
1630 (synopsis "Calculator for determining pixel widths of displayed text using Xft fonts")
1631 (description "xftwidth is a small C program for calculating the pixel
1632 widths of displayed text using Xft fonts. It is especially useful in scripts
1633 for displaying text in graphical panels, menus, popups, and notification
1634 windows generated using dzen. These scripts are often used in conjunction with
1635 minimalistic tiling window managers such as herbstluftwm and bspwm.")
1636 (license license:expat)))
1638 (define-public xcb-util-xrm
1640 (name "xcb-util-xrm")
1645 "https://github.com/Airblader/xcb-util-xrm/releases"
1646 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1649 "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h"))
1650 (modules '((guix build utils)))
1654 (delete-file-recursively "m4")
1656 (build-system gnu-build-system)
1658 `(("pkg-config" ,pkg-config)
1660 ("libx11" ,libx11))) ; for tests
1662 `(("libxcb" ,libxcb)
1663 ("xcb-util" ,xcb-util)))
1664 (home-page "https://github.com/Airblader/xcb-util-xrm")
1665 (synopsis "XCB utility functions for the X resource manager")
1667 "The XCB util module provides a number of libraries which sit on
1668 top of libxcb, the core X protocol library, and some of the extension
1669 libraries. These experimental libraries provide convenience functions
1670 and interfaces which make the raw X protocol more usable. Some of the
1671 libraries also provide client-side code which is not strictly part of
1672 the X protocol but which has traditionally been provided by Xlib.
1674 XCB util-xrm module provides the following libraries:
1676 - xrm: utility functions for the X resource manager.")
1677 (license license:x11)))
1679 (define-public xcalib
1683 (home-page "https://github.com/OpenICC/xcalib")
1689 (file-name (git-file-name name version))
1692 "05fzdjmhiafgi2jf0k41i3nm0837a78sb6yv59cwc23nla8g0bhr"))
1695 ;; Add missing documentation for the new --output option.
1696 ;; This upstream patch can be removed on the next update.
1700 home-page "/commit/"
1701 "ae03889b91fe984b18e925ad2b5e6f2f7354e058.patch"))
1702 (file-name "xcalib-update-man-page.patch")
1705 "0f7b4d5484x4b9n1bwhqmar0kcaa029ffff7bp3xpr734n1qgqb6")))))))
1706 (build-system cmake-build-system)
1708 '(#:tests? #f)) ; no test suite
1709 (inputs `(("libx11" ,libx11)
1710 ("libxext" ,libxext)
1711 ("libxrandr" ,libxrandr)
1712 ("libxxf86vm" ,libxxf86vm)))
1713 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1714 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1715 profiles to the video card's gamma ramp. It does work with most video card
1716 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1717 invert colors on a specific display/screen.")
1718 (license license:gpl2)))
1720 (define-public nxbelld
1727 (url "https://github.com/dusxmt/nxbelld")
1731 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1732 (file-name (git-file-name name version))))
1733 (build-system gnu-build-system)
1734 (arguments '(#:configure-flags `("--enable-sound"
1737 (native-inputs `(("autoconf" ,autoconf)
1738 ("automake" ,automake)
1739 ("pkg-config" ,pkg-config)
1741 (inputs `(("libx11" ,libx11)
1742 ("alsa-lib" ,alsa-lib)))
1743 (synopsis "Daemon that performs an action every time the X11 bell is rung")
1744 (description "nxbelld is a tiny utility to aid people who either don't
1745 like the default PC speaker beep, or use a sound driver that doesn't have
1746 support for the PC speaker. The utility performs a given action every time
1747 the X bell is rung. The actions nxbelld can currently perform include running
1748 a specified program, emulating the PC speaker beep using the sound card (default),
1749 or playing a PCM encoded WAVE file.")
1750 (home-page "https://github.com/dusxmt/nxbelld")
1751 (license license:gpl3+)))
1753 (define-public xautolock
1759 (uri (string-append "https://www.ibiblio.org/pub/linux/X11/"
1760 "screensavers/xautolock-" version ".tgz"))
1763 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1764 (build-system gnu-build-system)
1766 `(("imake" ,imake)))
1768 `(("libx11" ,libx11)
1769 ("libxext" ,libxext)
1770 ("libxscrnsaver" ,libxscrnsaver)))
1774 (modify-phases %standard-phases
1776 (lambda* (#:key inputs outputs #:allow-other-keys)
1777 (let ((imake (assoc-ref inputs "imake"))
1778 (out (assoc-ref outputs "out")))
1779 ;; Generate Makefile
1781 (substitute* "Makefile"
1782 ;; These imake variables somehow remain undefined
1783 (("DefaultGcc2[[:graph:]]*Opt") "-O2")
1784 ;; Reset a few variable defaults that are set in imake templates
1786 (("(MANPATH = )[[:graph:]]*" _ front)
1787 (string-append front out "/share/man")))
1788 ;; Old BSD-style 'union wait' is unneeded (defining
1789 ;; _USE_BSD did not seem to fix it)
1790 (substitute* "src/engine.c"
1791 (("union wait status") "int status = 0"))
1793 (add-after 'install 'install/man
1795 (invoke "make" "install.man"))))))
1796 (home-page "https://ibiblio.org/pub/Linux/X11/screensavers/")
1797 (synopsis "Program launcher for idle X sessions")
1798 (description "Xautolock monitors input devices under the X Window
1799 System, and launches a program of your choice if there is no activity after
1800 a user-configurable period of time.")
1801 (license license:gpl2)))
1803 (define-public screen-message
1805 (name "screen-message")
1810 "https://www.joachim-breitner.de/archive/screen-message"
1811 "/screen-message-" version ".tar.gz"))
1814 "1lw955qq5pq010lzmaf32ylj2iprgsri9ih4hx672c3f794ilab0"))))
1815 (build-system gnu-build-system)
1816 (inputs `(("gtk3" ,gtk+)
1819 (native-inputs `(("pkg-config" ,pkg-config)))
1821 ;; The default configure puts the 'sm' binary in games/ instead of bin/ -
1823 `(#:make-flags (list (string-append "execgamesdir=" %output "/bin"))))
1824 (synopsis "Print messages on your screen")
1825 (description "@code{screen-message} is a tool for displaying text on
1826 your screen. It will make the text as large as possible and display it
1827 with black color on a white background (colors are configurable on the
1829 (home-page "https://www.joachim-breitner.de/projects#screen-message")
1830 (license license:gpl2+)))
1832 (define-public xss-lock
1833 ;; xss-lock does not seem to be maintained any longer, but the last commits
1834 ;; fix important issues so we package them.
1835 (let ((version "0.3.0")
1837 (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717"))
1840 (version (git-version version revision commit))
1844 (url "https://bitbucket.org/raymonad/xss-lock.git")
1846 (file-name (git-file-name name version))
1849 "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r"))))
1850 (build-system cmake-build-system)
1851 (inputs `(("glib" ,glib)
1852 ("xcb-util" ,xcb-util)))
1854 `(("python-docutils" ,python-docutils)
1855 ("pkg-config" ,pkg-config)))
1858 (synopsis "Use external screen locker on events")
1859 (description "@code{xss-lock} listens to X signals to fire up a
1860 user-defined screensaver. In effect this automatically locks the
1861 screen when closing a laptop lid or after a period of user inactivity (as set
1862 with @code{xset s TIMEOUT}). The notifier command, if specified, is executed
1863 first. Additionally, xss-lock uses the inhibition logic to lock the screen
1864 before the system goes to sleep.")
1865 (home-page "https://bitbucket.org/raymonad/xss-lock")
1866 (license license:expat))))
1868 (define-public python-pyperclip
1870 (name "python-pyperclip")
1875 (uri (pypi-uri "pyperclip" version))
1878 "1p505c23ji06r28k1y67siihsbdzdf1brhlqpyv9ams4gk9863pp"))))
1879 (build-system python-build-system)
1881 '(#:tests? #f)) ; Not clear how to make tests pass.
1885 (home-page "https://github.com/asweigart/pyperclip")
1886 (synopsis "Python clipboard module")
1888 "Pyperclip is a clipboard module for Python, handling copy/pasting from
1890 (license license:bsd-3)))
1892 (define-public numlockx
1899 ;; It seems that upstream is gone.
1900 (url "https://github.com/rg3/numlockx")
1902 (file-name (git-file-name name version))
1905 "1w49fayhwzn5rx0z1q2lrvm7z8jrd34lgb89p853a024bixc3cf2"))))
1906 (build-system gnu-build-system)
1908 `(("xorg-server" ,xorg-server)))
1909 (home-page "https://github.com/rg3/numlockx")
1910 (synopsis "Turns on the numlock key in X11")
1911 (description "@command{numlockx} is a tiny program that lets you turn on
1912 the numlock key in X11. It can be called from the user's initialization files
1913 to automatically turn it on on login.")
1914 (license license:expat)))
1916 (define-public xrandr-invert-colors
1918 (name "xrandr-invert-colors")
1923 (url "https://github.com/zoltanp/xrandr-invert-colors")
1924 (commit (string-append "v" version))))
1925 (file-name (git-file-name name version))
1928 "1br3x9vr6xm4ika06n8cfxx1b3wdchdqvyzjl4y1chmivrml8x9h"))))
1929 (build-system gnu-build-system)
1931 `(#:make-flags (list "CC=gcc")
1932 #:tests? #f ; there are none
1934 (modify-phases %standard-phases
1937 (lambda* (#:key outputs #:allow-other-keys)
1938 (let* ((out (assoc-ref outputs "out"))
1939 (bin (string-append out "/bin")))
1940 (install-file "xrandr-invert-colors.bin" bin)
1943 `(("libxrandr" ,libxrandr)))
1944 (home-page "https://github.com/zoltanp/xrandr-invert-colors")
1945 (synopsis "Invert display colors")
1946 (description "This package provides a small utility for inverting the
1947 colors on all monitors attached to an XRandR-capable X11 display server.")
1948 (license license:gpl3+)))
1958 (string-append "https://www.umaxx.net/dl/sct-"
1961 (base32 "0lrhx771iccbw04wrhj0ygids1pzmjfc4hvklm30m3p3flvhqf0m"))))
1962 (build-system gnu-build-system)
1965 (list ,(string-append "CC=" (cc-for-target)))
1966 #:tests? #f ; no test suite
1968 (modify-phases %standard-phases
1970 (add-after 'unpack 'fix-sctd-paths
1971 (lambda* (#:key outputs inputs #:allow-other-keys)
1972 (let ((out (assoc-ref outputs "out"))
1973 (coreutils (assoc-ref inputs "coreutils"))
1974 (inetutils (assoc-ref inputs "inetutils"))
1975 (sed (assoc-ref inputs "sed")))
1976 (substitute* "sctd.sh"
1977 (("\\$\\(which sct\\)") (string-append out "/bin/sct"))
1978 (("date") (string-append coreutils "/bin/date"))
1979 (("printf") (string-append coreutils "/bin/printf"))
1980 (("sleep") (string-append coreutils "/bin/sleep"))
1981 (("logger") (string-append inetutils "/bin/logger"))
1982 (("sed") (string-append sed "/bin/sed"))))))
1984 (lambda* (#:key outputs #:allow-other-keys)
1985 (let ((out (assoc-ref outputs "out")))
1986 (install-file "sct" (string-append out "/bin"))
1987 (install-file "sctd.sh" (string-append out "/bin"))
1988 (install-file "sct.1" (string-append out "/man/man1"))
1989 (install-file "sctd.1" (string-append out "/man/man1"))
1990 (rename-file (string-append out "/bin/sctd.sh")
1991 (string-append out "/bin/sctd"))
1994 `(("coreutils" ,coreutils) ; sctd uses "date", "printf" and "sleep"
1995 ("inetutils" ,inetutils) ; sctd uses "logger"
1996 ("libxrandr" ,libxrandr)
1997 ("sed" ,sed))) ; sctd uses "sed"
1998 (home-page "https://www.umaxx.net")
1999 (synopsis "Set the color temperature of the screen")
2000 (description "@code{sct} is a lightweight utility to set the color
2001 temperature of the screen.")
2002 (license (license:non-copyleft "file://sct.c")))) ; "OpenBSD" license
2004 (define-public xsecurelock
2006 (name "xsecurelock")
2011 "https://github.com/google/xsecurelock/releases"
2012 "/download/v" version "/xsecurelock-" version ".tar.gz"))
2014 (base32 "070gknyv0s5hz9hkc6v73m2v7ssyjwgl93b5hd4glayfqxqjbmdp"))))
2015 (build-system gnu-build-system)
2018 '("--with-pam-service-name=login"
2020 "--with-default-authproto-module=/run/setuid-programs/authproto_pam")))
2022 `(("pandoc" ,pandoc)
2023 ("pkg-config" ,pkg-config)))
2025 `(("fontconfig" ,fontconfig)
2027 ("libxcomposite" ,libxcomposite)
2028 ("libxext" ,libxext)
2029 ("libxfixes" ,libxfixes)
2032 ("libxrandr" ,libxrandr)
2033 ("libxscrnsaver" ,libxscrnsaver)
2034 ("linux-pam" ,linux-pam)))
2035 (home-page "https://github.com/google/xsecurelock")
2036 (synopsis "X11 screen lock utility with the primary goal of security")
2037 (description "@code{xsecurelock} is an X11 screen locker which uses
2038 a modular design to avoid the usual pitfalls of screen locking utility design.
2040 As a consequence of the modular design, the usual screen locker service
2041 shouldn't be used with @code{xsecurelock}. Instead, you need to add a helper
2042 binary to setuid-binaries:
2044 (setuid-programs (cons*
2045 (file-append xsecurelock \"/libexec/xsecurelock/authproto_pam\")
2048 (license license:asl2.0)))
2050 (define-public wl-clipboard
2052 (name "wl-clipboard")
2058 (url "https://github.com/bugaevc/wl-clipboard")
2059 (commit (string-append "v" version))))
2060 (file-name (git-file-name name version))
2062 (base32 "0c4w87ipsw09aii34szj9p0xfy0m00wyjpll0gb0aqmwa60p0c5d"))))
2063 (build-system meson-build-system)
2065 `(("pkg-config" ,pkg-config)))
2067 `(("wayland" ,wayland)
2068 ("wayland-protocols" ,wayland-protocols)))
2069 (home-page "https://github.com/bugaevc/wl-clipboard")
2070 (synopsis "Command-line copy/paste utilities for Wayland")
2071 (description "Wl-clipboard is a set of command-line copy/paste utilities for
2073 (license license:gpl3+)))
2075 (define-public autocutsel
2081 (uri (string-append "https://github.com/sigmike/autocutsel"
2082 "/releases/download/" version "/"
2083 "autocutsel-" version ".tar.gz"))
2086 "0gsys2dzh4az51ndcsabhlbbrjn2nm75lnjr45kg6r8sm8q66dx2"))))
2087 (build-system gnu-build-system)
2089 '(#:tests? #f)) ; no "check" target
2090 (native-inputs `(("libx11" ,libx11)
2091 ("libxaw" ,libxaw)))
2092 (home-page "https://www.nongnu.org/autocutsel/")
2093 (synopsis "Automated X11 clipboard and cutbuffer synchronization")
2094 (description "@code{autocutsel} tracks changes in the server's cutbuffer
2095 and clipboard selection. When the clipboard is changed, it updates the
2096 cutbuffer. When the cutbuffer is changed, it owns the clipboard selection.
2097 The cutbuffer and clipboard selection are always synchronized.")
2098 (license license:gpl2+)))
2100 (define-public jgmenu
2108 (url "https://github.com/johanmalm/jgmenu")
2109 (commit (string-append "v" version))))
2110 (file-name (git-file-name name version))
2113 "1wsh37rapb1bszlq36hvwxqvfds39hbvbl152m8as4zlh93wfvvk"))))
2114 (build-system gnu-build-system)
2116 `(("cppcheck" ,cppcheck)
2118 ("pkg-config" ,pkg-config)))
2122 ("librsvg" ,librsvg)
2124 ("libxml2" ,libxml2)
2125 ("libxrandr" ,libxrandr)
2129 (modify-phases %standard-phases
2130 (add-after 'unpack 'fix-tests
2132 (substitute* "scripts/cppcheck-wrapper.sh"
2133 (("--library=/usr/share/cppcheck/cfg/gnu\\.cfg")
2137 (lambda* (#:key outputs #:allow-other-keys)
2139 (invoke "./configure"
2140 (string-append "--prefix=" (assoc-ref outputs "out")))
2142 (synopsis "Simple X11 menu")
2144 "This is a simple menu for X11 designed for scripting and tweaking. It
2145 can optionally use some appearance settings from XSettings, tint2 and GTK.")
2146 (home-page "https://jgmenu.github.io/")
2147 (license license:gpl2)))
2149 (define-public xwallpaper
2157 (url "https://github.com/stoeckmann/xwallpaper")
2158 (commit (string-append "v" version))))
2159 (file-name (git-file-name name version))
2161 (base32 "121ai4dc0v65qk12gn9w62ixly8hc8a5qrygkbb82vy8ck4jqxj7"))))
2162 (build-system gnu-build-system)
2164 `(("autoconf" ,autoconf)
2165 ("automake" ,automake)
2166 ("pkg-config" ,pkg-config)))
2168 `(("libjpeg-turbo" ,libjpeg-turbo)
2172 ("xcb-util" ,xcb-util)
2173 ("xcb-util-image" ,xcb-util-image)))
2174 (home-page "https://github.com/stoeckmann/xwallpaper")
2175 (synopsis "Wallpaper setting utility for X")
2177 "The xwallpaper utility allows you to set image files as your X
2178 wallpaper. JPEG, PNG, and XPM file formats are supported.
2180 The wallpaper is also advertised to programs which support semi-transparent
2182 (license license:isc)))
2184 (define-public xwrits
2191 (uri (string-append "https://www.lcdf.org/~eddietwo/xwrits/"
2192 "xwrits-" version ".tar.gz"))
2194 (base32 "1n7y0fqpcvmzznvbsn14hzy5ddaa3lilm8aw6ckscqndnh4lijma"))))
2195 (build-system gnu-build-system)
2198 (modify-phases %standard-phases
2199 (add-after 'install 'install-docs
2200 (lambda* (#:key outputs #:allow-other-keys)
2201 (let* ((out (assoc-ref outputs "out"))
2202 (doc (string-append out "/share/doc/xwrits")))
2203 (install-file "GESTURES" doc)
2204 (install-file "README" doc)
2207 `(("libx11" ,libx11)
2208 ("libxinerama" ,libxinerama)))
2209 (home-page "https://www.lcdf.org/~eddietwo/xwrits/")
2210 (synopsis "Reminds you to take wrist breaks")
2211 (description "Xwrits reminds you to take wrist breaks for prevention or
2212 management of repetitive stress injuries. When you should take a break, it
2213 pops up an X window, the warning window. You click on the warning window,
2214 then take a break. The window changes appearance while you take the break.
2215 It changes again when your break is over. Then you just resume typing.
2216 Xwrits hides itself until you should take another break.")
2217 (license license:gpl2)))
2219 (define-public xsettingsd
2227 (url "https://github.com/derat/xsettingsd")
2228 (commit (string-append "v" version))))
2229 (file-name (git-file-name name version))
2232 "05m4jlw0mgwp24cvyklncpziq1prr2lg0cq9c055sh4n9d93d07v"))))
2233 (build-system scons-build-system)
2235 `(("libx11" ,libx11)))
2237 `(("pkg-config" ,pkg-config)
2238 ("googletest" ,googletest)
2239 ("googletest-source" ,(package-source googletest))))
2241 `(#:scons ,scons-python2
2245 (modify-phases %standard-phases
2246 (add-before 'build 'patch-sconstruct
2247 (lambda* (#:key inputs #:allow-other-keys)
2248 (substitute* "SConstruct"
2249 ;; scons doesn't pick up environment variables automatically
2250 ;; so it needs help to find path variables
2251 (("env = Environment\\(")
2254 'PATH': os.environ['PATH'],
2255 'CPATH': os.environ['C_INCLUDE_PATH'],
2256 'LIBRARY_PATH': os.environ['LIBRARY_PATH'],
2257 'PKG_CONFIG_PATH': os.environ['PKG_CONFIG_PATH']
2259 ;; Update path to gtest source files used in tests
2260 (("/usr/src/gtest") (string-append
2261 (assoc-ref inputs "googletest-source")
2263 ;; Exclude one warning that causes a build error
2264 (("-Werror") "-Werror -Wno-error=sign-compare"))
2266 ;; The SConstruct script doesn't configure installation so
2267 ;; binaries must be copied to the output path directly
2269 (lambda* (#:key outputs #:allow-other-keys)
2270 (let* ((out (assoc-ref outputs "out"))
2271 (bin (string-append out "/bin")))
2273 (install-file "xsettingsd" bin)
2274 (install-file "dump_xsettings" bin)
2276 (home-page "https://github.com/derat/xsettingsd")
2277 (synopsis "Xorg settings daemon")
2278 (description "@command{xsettingsd} is a lightweight daemon that provides settings to
2279 Xorg applications via the XSETTINGS specification. It is used for defining
2280 font and theme settings when a complete desktop environment (GNOME, KDE) is
2281 not running. With a simple @file{.xsettingsd} configuration file one can avoid
2282 configuring visual settings in different UI toolkits separately.")
2283 (license license:bsd-3)))
2285 (define-public clipnotify
2293 (url "https://github.com/cdown/clipnotify")
2295 (file-name (git-file-name name version))
2298 "1v3ydm5ljy8z1savmdxrjyx7a5bm5013rzw80frp3qbbjaci0wbg"))))
2299 (build-system gnu-build-system)
2302 (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/" ,name "-" ,version)))
2309 (install-file "clipnotify" bin)
2310 (install-file "README.md" doc)
2313 (list ,(string-append "CC=" (cc-for-target)))
2314 #:tests? #f)) ; no test suite
2316 `(("libx11" ,libx11)
2317 ("libXfixes" ,libxfixes)))
2318 (home-page "https://github.com/cdown/clipnotify")
2319 (synopsis "Notify on new X clipboard events")
2320 (description "@command{clipnotify} is a simple program that, using the
2321 XFIXES extension to X11, waits until a new selection is available and then
2324 It was primarily designed for clipmenu, to avoid polling for new selections.
2326 @command{clipnotify} doesn't try to print anything about the contents of the
2327 selection, it just exits when it changes. This is intentional -- X11's
2328 selection API is verging on the insane, and there are plenty of others who
2329 have already lost their sanity to bring us xclip/xsel/etc. Use one of those
2330 tools to complement clipnotify.")
2331 (license license:public-domain)))
2333 (define-public clipmenu
2334 (let ((commit "bcbe7b144598db4a103f14e8408c4b7327d6d5e1")
2338 (version (string-append "6.0.1-"
2339 revision "." (string-take commit 7)))
2344 (url "https://github.com/cdown/clipmenu")
2346 (file-name (git-file-name name version))
2349 "0053j4i14lz5m2bzc5sch5id5ilr1bl196mp8fp0q8x74w3vavs9"))))
2350 (build-system gnu-build-system)
2353 (modify-phases %standard-phases
2357 (lambda* (#:key inputs outputs #:allow-other-keys)
2358 (let* ((out (assoc-ref outputs "out"))
2359 (bin (string-append out "/bin"))
2360 (doc (string-append %output "/share/doc/"
2361 ,name "-" ,version)))
2362 (install-file "clipdel" bin)
2363 (install-file "clipmenu" bin)
2364 (install-file "clipmenud" bin)
2365 (install-file "README.md" doc)
2367 (add-after 'install 'wrap-script
2368 (lambda* (#:key inputs outputs #:allow-other-keys)
2369 (let* ((out (assoc-ref outputs "out"))
2370 (clipnotify (assoc-ref inputs "clipnotify"))
2371 (coreutils-minimal (assoc-ref inputs "coreutils-minimal"))
2372 (gawk (assoc-ref inputs "gawk"))
2373 (util-linux (assoc-ref inputs "util-linux"))
2374 (xdotool (assoc-ref inputs "xdotool"))
2375 (xsel (assoc-ref inputs "xsel")))
2378 (wrap-script (string-append out "/bin/" prog)
2381 (string-append dir "/bin"))
2382 (list clipnotify coreutils-minimal
2383 gawk util-linux xdotool xsel)))))
2384 '("clipmenu" "clipmenud" "clipdel")))
2387 (lambda* (#:key inputs outputs #:allow-other-keys)
2388 ;; substitute a shebang appearing inside a string (the test
2389 ;; file writes this string to a temporary file):
2390 (substitute* "tests/test-clipmenu"
2391 (("#!/usr/bin/env bash")
2392 (string-append "#!" (which "bash"))))
2393 (invoke "tests/test-clipmenu")
2396 `(("clipnotify" ,clipnotify)
2397 ("coreutils-minimal" ,coreutils-minimal)
2399 ("guile" ,guile-3.0) ; for wrap-script
2400 ("util-linux" ,util-linux)
2401 ("xdotool" ,xdotool)
2403 (home-page "https://github.com/cdown/clipmenu")
2404 (synopsis "Simple clipboard manager using dmenu or rofi and xsel")
2405 (description "Start @command{clipmenud}, then run @command{clipmenu} to
2406 select something to put on the clipboard.
2408 When @command{clipmenud} detects changes to the clipboard contents, it writes
2409 them out to the cache directory. @command{clipmenu} reads the cache directory
2410 to find all available clips and launches @command{dmenu} (or @command{rofi},
2411 depending on the value of @code{CM_LAUNCHER}) to let the user select a clip.
2412 After selection, the clip is put onto the PRIMARY and CLIPBOARD X selections.")
2413 (license license:public-domain))))
2423 (url "https://github.com/qnikst/kbdd")
2424 (commit (string-append "v" version))))
2425 (file-name (git-file-name name version))
2428 "0qkq75grbd4wkx4nlvswgavpijk9ad0pzqyj89a0ayjsbsn36pqy"))))
2429 (build-system gnu-build-system)
2431 `(("autoconf" ,autoconf)
2432 ("automake" ,automake)
2433 ("glib" ,glib "bin")
2434 ("pkg-config" ,pkg-config)))
2436 `(("dbus-glib", dbus-glib)
2438 ("libx11" ,libx11)))
2439 (home-page "https://github.com/qnikst/kbdd")
2440 (synopsis "Per-window keyboard layout switching daemon for X")
2441 (description "@command{kbdd} is a simple keyboard layout switching
2442 program, which is designed to run in an X11 session and remember
2443 keyboard layouts on a per-window basis. That can be very handy for a
2444 user of a non-US keyboard who does not want to jump through layouts back
2445 and forth while typing in terminals (mostly in a latin alphabet) and
2446 some kind of chat (in native language).
2448 @command{kbdd} also supports D-Bus signals, which makes it possible to
2449 create layout indicator widgets.")
2450 (license license:bsd-2)))
2452 (define-public j4-dmenu-desktop
2454 (name "j4-dmenu-desktop")
2459 (url "https://github.com/enkore/j4-dmenu-desktop")
2460 (commit (string-append "r" version))))
2461 (file-name (git-file-name name version))
2464 "0v23fimkn83dcm5p53y2ymhklff3kwppxhf75sm8xmswrzkixpgc"))))
2465 (build-system cmake-build-system)
2467 `(("catch2" ,catch-framework2)))
2469 `(#:configure-flags '("-DWITH_GIT_CATCH=off")
2471 (modify-phases %standard-phases
2472 (add-after 'unpack 'find-catch
2474 (substitute* "CMakeLists.txt"
2475 (("PATH_SUFFIXES catch") "PATH_SUFFIXES catch2"))
2479 (invoke "./j4-dmenu-tests" "exclude:SearchPath/XDG_DATA_HOME"))))))
2480 (synopsis "Fast desktop menu")
2482 "j4-dmenu-desktop is a replacement for i3-dmenu-desktop. Its purpose
2483 is to find @file{.desktop} files and offer you a menu to start an application
2484 using @command{dmenu}.")
2485 (home-page "https://github.com/enkore/j4-dmenu-desktop")
2486 (license license:gpl3+)))
2495 (url "https://hg.sr.ht/~scoopta/wofi")
2496 (changeset (string-append "v" version))))
2497 (file-name (git-file-name name version))
2500 "086j5wshawjbwdmmmldivfagc2rr7g5a2gk11l0snqqslm294xsn"))))
2501 (build-system meson-build-system)
2503 `(#:glib-or-gtk? #t))
2505 `(("pkg-config" ,pkg-config)))
2508 ("wayland" ,wayland)))
2509 (synopsis "Launcher/menu program for wayland")
2511 "Wofi is a launcher/menu program for wlroots based wayland compositors
2512 such as sway, similar to @command{rofi}.")
2513 (home-page "https://hg.sr.ht/~scoopta/wofi")
2514 (license license:gpl3+)))