1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
5 ;;; Copyright © 2014, 2015, 2016 Alex Kost <alezost@gmail.com>
6 ;;; Copyright © 2013, 2015, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
7 ;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
8 ;;; Copyright © 2015 Alexander I.Grafov <grafov@gmail.com>
9 ;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
10 ;;; Copyright © 2015 xd1le <elisp.vim@gmail.com>
11 ;;; Copyright © 2015 Florian Paul Schmidt <mista.tapas@gmx.net>
12 ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
13 ;;; Copyright © 2016, 2018 Ricardo Wurmus <rekado@elephly.net>
14 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
15 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
16 ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
17 ;;; Copyright © 2016, 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
18 ;;; Copyright © 2016 Petter <petter@mykolab.ch>
19 ;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com>
20 ;;; Copyright © 2017 Nikita <nikita@n0.is>
21 ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
22 ;;; Copyright © 2017 Marek Benc <dusxmt@gmx.com>
23 ;;; Copyright © 2017 Mike Gerwitz <mtg@gnu.org>
24 ;;; Copyright © 2018 Thomas Sigurdsen <tonton@riseup.net>
25 ;;; Copyright © 2018, 2019 Rutger Helling <rhelling@mykolab.com>
26 ;;; Copyright © 2018, 2019 Pierre Neidhardt <mail@ambrevar.xyz>
27 ;;; Copyright © 2018 Nam Nguyen <namn@berkeley.edu>
28 ;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
29 ;;; Copyright © 2019 Kyle Andrews <kyle.c.andrews@gmail.com>
30 ;;; Copyright © 2019, 2020 Josh Holland <josh@inv.alid.pw>
31 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
32 ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
33 ;;; Copyright © 2020 David Wilson <david@daviwil.com>
34 ;;; Copyright © 2020 Ivan Vilata i Balaguer <ivan@selidor.net>
35 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
36 ;;; Copyright © 2020 Damien Cassou <damien@cassou.me>
37 ;;; Copyright © 2020 John Soo <jsoo1@asu.edu>
38 ;;; Copyright © 2020 Boris A. Dekshteyn <boris.dekshteyn@gmail.com>
39 ;;; Copyright © 2020 Alex McGrath <amk@amk.ie>
40 ;;; Copyright © 2020 Ivan Kozlov <kanichos@yandex.ru>
41 ;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
42 ;;; Copyright © 2020 Gabriel Arazas <foo.dogsquared@gmail.com>
43 ;;; Copyright © 2020 James Smith <jsubuntuxp@disroot.org>
44 ;;; Copyright © 2020 B. Wilson <elaexuotee@wilsonb.com>
45 ;;; Copyright © 2020 Zheng Junjie <873216071@qq.com>
47 ;;; This file is part of GNU Guix.
49 ;;; GNU Guix is free software; you can redistribute it and/or modify it
50 ;;; under the terms of the GNU General Public License as published by
51 ;;; the Free Software Foundation; either version 3 of the License, or (at
52 ;;; your option) any later version.
54 ;;; GNU Guix is distributed in the hope that it will be useful, but
55 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
56 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
57 ;;; GNU General Public License for more details.
59 ;;; You should have received a copy of the GNU General Public License
60 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
62 (define-module (gnu packages xdisorg)
63 #:use-module ((guix licenses) #:prefix license:)
64 #:use-module (guix packages)
65 #:use-module (guix download)
66 #:use-module (guix git-download)
67 #:use-module (guix hg-download)
68 #:use-module (guix utils)
69 #:use-module (guix build-system cmake)
70 #:use-module (guix build-system gnu)
71 #:use-module (guix build-system glib-or-gtk)
72 #:use-module (guix build-system meson)
73 #:use-module (guix build-system python)
74 #:use-module (guix build-system scons)
75 #:use-module (gnu packages)
76 #:use-module (gnu packages documentation)
77 #:use-module (gnu packages admin)
78 #:use-module (gnu packages base)
79 #:use-module (gnu packages algebra)
80 #:use-module (gnu packages autotools)
81 #:use-module (gnu packages check)
82 #:use-module (gnu packages compression)
83 #:use-module (gnu packages image)
84 #:use-module (gnu packages pkg-config)
85 #:use-module (gnu packages flex)
86 #:use-module (gnu packages freedesktop)
87 #:use-module (gnu packages gawk)
88 #:use-module (gnu packages gettext)
89 #:use-module (gnu packages gl)
90 #:use-module (gnu packages glib)
91 #:use-module (gnu packages gnome)
92 #:use-module (gnu packages haskell-xyz)
93 #:use-module (gnu packages icu4c)
94 #:use-module (gnu packages man)
95 #:use-module (gnu packages maths)
96 #:use-module (gnu packages m4)
97 #:use-module (gnu packages ncurses)
98 #:use-module (gnu packages perl)
99 #:use-module (gnu packages python)
100 #:use-module (gnu packages python-xyz)
101 #:use-module (gnu packages linux)
102 #:use-module (gnu packages gl)
103 #:use-module (gnu packages guile)
104 #:use-module (gnu packages xml)
105 #:use-module (gnu packages gtk)
106 #:use-module (gnu packages qt)
107 #:use-module (gnu packages xorg)
108 #:use-module (gnu packages fontutils)
109 #:use-module (gnu packages bison)
110 #:use-module (gnu packages sphinx)
111 #:use-module (ice-9 match))
113 ;; packages outside the x.org system proper
115 (define-public xtitle
123 (url "https://github.com/baskerville/xtitle")
125 (file-name (git-file-name name version))
127 (base32 "0f5070k2bwarghl1vq886pl52xck1x5p7x3qhlfchsc2y3dcqms9"))))
128 (build-system gnu-build-system)
131 ("xcb-util" ,xcb-util)
132 ("xcb-util-wm" ,xcb-util-wm)))
134 `(#:tests? #f ;no test suite
135 #:make-flags (list (string-append "CC=" ,(cc-for-target))
136 (string-append "PREFIX=" %output))
137 #:phases (modify-phases %standard-phases (delete 'configure))))
138 (home-page "https://github.com/baskerville/xtitle")
139 (synopsis "Output X window titles")
141 "If arguments are given, @code{xtitle} outputs the title of each
142 specified window, otherwise it outputs the title of the active window. With
143 @emph{snoop} mode on, it continuously monitors the specified windows and
144 outputs when titles change.")
145 (license license:unlicense)))
147 (define-public arandr
153 (uri (string-append "https://christian.amsuess.com/tools/arandr"
154 "/files/arandr-" version ".tar.gz"))
157 "135q0llvm077jil2fr92ssw3p095m4r8jfj0lc5rr3m71n4srj6v"))
158 (modules '((guix build utils)))
161 ;; Do not record a timestamp and file name in gzipped man
162 ;; pages (this is equivalent to 'gzip --no-name'.)
163 (substitute* "setup.py"
164 (("gzip\\.open\\(gzfile, 'w', 9\\)")
165 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)"))
167 (build-system python-build-system)
170 (modify-phases %standard-phases
171 (add-before 'build 'configure
172 (lambda* (#:key inputs #:allow-other-keys)
173 (substitute* "screenlayout/xrandr.py"
174 (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr")
177 (add-after 'install 'wrap-gi-typelib
178 (lambda* (#:key inputs outputs #:allow-other-keys)
179 (let ((out (assoc-ref outputs "out"))
180 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
181 (wrap-program (string-append out "/bin/arandr")
182 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
184 #:tests? #f)) ;no tests
185 (inputs `(("gtk+" ,gtk+)
186 ("pycairo" ,python-pycairo)
187 ("pygobject" ,python-pygobject)
189 (native-inputs `(("gettext" ,gettext-minimal)
190 ("python-docutils" ,python-docutils)))
191 (home-page "https://christian.amsuess.com/tools/arandr/")
192 (synopsis "Another RandR graphical user interface")
193 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
194 (description "ARandR is designed to provide a simple visual front end for
195 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
196 shown graphically and can be changed in a drag-and-drop way. Configurations
197 are saved as executable shell scripts which can be loaded without using this
199 (license license:gpl3+)))
201 (define-public autorandr
205 (home-page "https://github.com/phillipberndt/autorandr")
212 (file-name (git-file-name name version))
214 (base32 "0msw9b1hdy3gbq9w5d04mfizhyirz1c648x84mlcbzl8salm7vpg"))))
215 (build-system python-build-system)
217 `(("pkg-config" ,pkg-config)))
223 (modify-phases %standard-phases
224 (add-before 'build 'configure
225 (lambda* (#:key inputs outputs #:allow-other-keys)
226 (let ((xrandr (string-append (assoc-ref inputs "xrandr")
228 (substitute* "contrib/etc/xdg/autostart/autorandr.desktop"
229 (("/usr") (assoc-ref outputs "out")))
230 (substitute* "autorandr.py"
231 (("popen\\(\"xrandr") (string-append "popen(\"" xrandr))
232 (("\\[\"xrandr") (string-append "[\"" xrandr)))
233 (substitute* "contrib/autorandr_launcher/autorandr_launcher.c"
234 (("/usr/bin/autorandr")
235 (string-append (assoc-ref outputs "out") "/bin/autorandr")))
238 (add-after 'install 'install-contrib
239 (lambda* (#:key outputs #:allow-other-keys)
241 (string-append "DESTDIR=" (assoc-ref outputs "out"))
243 "BASH_COMPLETIONS_DIR=etc/bash_completion.d"
245 "TARGETS=autorandr launcher manpage bash_completion"))))))
246 (synopsis "Auto-detect connected displays and load appropriate setup")
247 (description "Autorandr wraps around xrandr to help with X11
248 multi-screen configuration management. It allows the user to create profiles
249 for various multi-screen setups. Autorandr automatically detects the profiles
250 that can be activated based on the connected hardware. Hook scripts can be
251 used to further tweak the behaviour of the different profiles.")
252 (license license:gpl3+)))
254 (define-public bemenu
262 (url "https://github.com/Cloudef/bemenu")
264 (file-name (git-file-name name version))
266 (base32 "1fjcs9d3533ay3nz79cx3c0lmy2chgragr2lhsy0xl2ckr0iins0"))))
267 (build-system gnu-build-system)
270 #:make-flags (list "CC=gcc"
272 (string-append "LDFLAGS=-Wl,-rpath="
273 (assoc-ref %outputs "out") "/lib")
274 (string-append "PREFIX=" (assoc-ref %outputs "out")))
276 (modify-phases %standard-phases
277 (delete 'configure))))
281 ("libxkbcomon" ,libxkbcommon)
282 ("libxinerama" ,libxinerama)
286 ("wayland-protocols" ,wayland-protocols)))
288 `(("doxygen" ,doxygen)
289 ("pkg-config" ,pkg-config)))
290 (home-page "https://github.com/Cloudef/bemenu")
291 (synopsis "Dynamic menu library and client program inspired by dmenu")
293 "bemenu is a dynamic menu which allows the user to flexibly select from a
294 list of options (usually programs to launch). It renders the menu graphically
295 with X11 or Wayland, or in a text terminal with ncurses.")
296 (license (list license:gpl3+ ; client program[s] and other sources
297 license:lgpl3+)))) ; library and bindings
306 (url "https://github.com/hluk/CopyQ")
307 (commit (string-append "v" version))))
308 (file-name (git-file-name name version))
311 "0wlwq9xg8rzsbj0b29z358k4mbrqy04iraa8x0p26pa95yskgcma"))))
312 (build-system cmake-build-system)
314 `(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release")
315 #:tests? #f)) ; Test suite is a rather manual process.
318 ("qtscript" ,qtscript)
320 ("qtx11extras" ,qtx11extras)))
321 (synopsis "Clipboard manager with advanced features")
322 (description "CopyQ is clipboard manager with editing and scripting
323 features. CopyQ monitors system clipboard and saves its content in customized
324 tabs. Saved clipboard can be later copied and pasted directly into any
326 (home-page "https://hluk.github.io/CopyQ/")
327 (license license:gpl3+)))
337 (url "https://github.com/astrand/xclip")
339 (file-name (git-file-name name version))
342 "0q0hmvcjlv8arhh1pzhja2wglyj6n7z209jnpnzd281kqqv4czcs"))))
343 (build-system gnu-build-system)
345 '(#:tests? #f)) ;there is no test suite
347 `(("autoconf" ,autoconf)
348 ("automake" ,automake)))
349 (inputs `(("libxmu" ,libxmu)
351 (home-page "https://github.com/astrand/xclip")
352 (synopsis "Command line interface to X11 clipboard")
353 (description "Xclip is a command line interface to the X11 clipboard. It
354 can also be used for copying files, as an alternative to sftp/scp, thus
355 avoiding password prompts when X11 forwarding has already been setup.")
356 (license license:gpl2+)))
358 (define-public libxkbcommon
360 (name "libxkbcommon")
364 (uri (string-append "https://xkbcommon.org/download/libxkbcommon-"
368 "13bcdf2xpjxwbghas0cr448z89qqki2ssgfgswc257y9859v4s5b"))))
369 (build-system meson-build-system)
375 ("wayland-protocols" ,wayland-protocols)
376 ("xkeyboard-config" ,xkeyboard-config)))
380 ("pkg-config" ,pkg-config)))
383 (list (string-append "-Dxkb-config-root="
384 (assoc-ref %build-inputs "xkeyboard-config")
386 (string-append "-Dx-locale-root="
387 (assoc-ref %build-inputs "libx11")
388 "/share/X11/locale"))))
389 (home-page "https://xkbcommon.org/")
390 (synopsis "Library to handle keyboard descriptions")
391 (description "Xkbcommon is a library to handle keyboard descriptions,
392 including loading them from disk, parsing them and handling their
393 state. It is mainly meant for client toolkits, window systems, and other
394 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
395 Clutter, and more. Despite the name, it is not currently used by anything
397 (license (license:x11-style "file://COPYING"
398 "See 'COPYING' in the distribution."))
399 (properties '((cpe-name . "xkbcommon")))))
401 (define-public libfakekey
409 (url "https://git.yoctoproject.org/git/libfakekey")
411 (file-name (git-file-name name version))
413 (base32 "1jw1d4wc1ysiijirc7apnz3sryrxbl9akgb92mh06dvfkz2nblj0"))))
414 (build-system gnu-build-system)
416 `(#:make-flags (list "AM_LDFLAGS=-lX11")
418 (modify-phases %standard-phases
420 ;; ./autogen.sh calls ./configure before shebangs have been patched.
422 (invoke "autoreconf" "-vfi"))))))
424 `(("pkg-config" ,pkg-config)
426 ;; For bootstrapping from git.
427 ("autoconf" ,autoconf)
428 ("automake" ,automake)
429 ("libtool" ,libtool)))
431 `(("libxtst" ,libxtst)
433 (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox")
434 (synopsis "X virtual keyboard library")
436 "Libfakekey is a virtual keyboard library for X.")
437 (license license:gpl2)))
439 (define-public xdotool
442 (version "3.20160805.1")
447 "https://github.com/jordansissel/xdotool/releases/download/v"
448 version "/xdotool-" version ".tar.gz"))
451 "1a6c1zr86zb53352yxv104l76l8x21gfl2bgw6h21iphxpv5zgim"))))
452 (build-system gnu-build-system)
454 '(#:tests? #f ; Test suite requires a lot of black magic
456 (modify-phases %standard-phases
458 (lambda* (#:key outputs #:allow-other-keys #:rest args)
459 (let ((out (assoc-ref outputs "out")))
460 (mkdir-p (string-append out "/lib"))
461 (setenv "PREFIX" out)
462 (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib"))
465 (native-inputs `(("perl" ,perl))) ; for pod2man
466 (inputs `(("libx11" ,libx11)
469 ("libxinerama" ,libxinerama)
471 ("libxkbcommon" ,libxkbcommon)))
472 (home-page "https://www.semicomplete.com/projects/xdotool/")
473 (synopsis "Fake keyboard/mouse input, window management, and more")
474 (description "Xdotool lets you simulate keyboard input and mouse activity,
475 move and resize windows, etc. It does this using X11's XTEST extension and
476 other Xlib functions. Additionally, you can search for windows and move,
477 resize, hide, and modify window properties like the title. If your window
478 manager supports it, you can use xdotool to switch desktops, move windows
479 between desktops, and change the number of desktops.")
480 (license license:bsd-3)))
489 (uri (string-append "https://www.x.org/releases/individual/app/"
490 name "-" version ".tar.bz2"))
492 (base32 "0lq5j7fryx1wn998jq6h3icz1h6pqrsbs3adskjzjyhn5l6yrg2p"))))
493 (build-system gnu-build-system)
495 `(("libxext" ,libxext)
497 ("libxrender" ,libxrender)
500 `(("pkg-config" ,pkg-config)))
501 (home-page "https://www.x.org/") ; no dedicated Xeyes page exists
502 (synopsis "Follow-the-mouse X demo")
503 (description "Xeyes is a demo program for x.org. It shows eyes
504 following the mouse.")
505 (license license:x11)))
508 (define-public pixman
517 "https://www.cairographics.org/releases/pixman-"
520 (base32 "1ryxzdf048x7wsx4dlvrr1p00gzwfs7lybnhgc7ygbj0dvyxcrns"))
523 "pixman-CVE-2016-5296.patch"))))
524 (build-system gnu-build-system)
526 '(#:configure-flags '("--disable-static")))
528 `(("pkg-config" ,pkg-config)))
532 (synopsis "Low-level pixel manipulation library")
533 (description "Pixman is a low-level software library for pixel
534 manipulation, providing features such as image compositing and trapezoid
536 (home-page "http://www.pixman.org/")
537 (license license:x11)))
539 (define-public libdrm
546 "https://dri.freedesktop.org/libdrm/libdrm-"
550 "0nx0bd9dhymdsd99v4ifib77yjirkvkxf5hzdkbr7qr8dhrzkjwb"))))
551 (build-system meson-build-system)
554 '(,@(match (%current-system)
555 ((or "armhf-linux" "aarch64-linux")
560 "-Dfreedreno-kgsl=true"))
563 #:phases (modify-phases %standard-phases
566 (invoke "meson" "test" "--timeout-multiplier" "5"))))))
568 `(("libpciaccess" ,libpciaccess)))
570 `(("pkg-config" ,pkg-config)))
571 (home-page "https://dri.freedesktop.org/wiki/")
572 (synopsis "Direct rendering userspace library")
573 (description "The Direct Rendering Infrastructure, also known as the DRI,
574 is a framework for allowing direct access to graphics hardware under the
575 X Window System in a safe and efficient manner. It includes changes to the
576 X server, to several client libraries, and to the kernel (DRM, Direct
577 Rendering Manager). The most important use for the DRI is to create fast
578 OpenGL implementations providing hardware acceleration for Mesa.
579 Several 3D accelerated drivers have been written to the DRI specification,
580 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
582 (license license:x11)))
593 "http://bitmath.org/code/mtdev/mtdev-"
597 "1q700h9dqcm3zl6c3gj0qxxjcx6ibw2c51wjijydhwdcm26v5mqm"))))
598 (build-system gnu-build-system)
599 (arguments '(#:configure-flags '("--disable-static")))
600 (home-page "http://bitmath.org/code/mtdev/")
601 (synopsis "Multitouch protocol translation library")
602 (description "Mtdev is a stand-alone library which transforms all
603 variants of kernel MT events to the slotted type B protocol. The events
604 put into mtdev may be from any MT device, specifically type A without
605 contact tracking, type A with contact tracking, or type B with contact
607 (license license:x11)))
609 (define-public startup-notification
611 (name "startup-notification")
616 (uri (string-append "https://www.freedesktop.org/software/" name
617 "/releases/" name "-" version ".tar.gz"))
620 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
621 (build-system gnu-build-system)
622 (native-inputs `(("pkg-config" ,pkg-config)))
625 ("xcb-util" ,xcb-util)))
626 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
627 (synopsis "Application startup notification and feedback library")
629 "Startup-notification contains a reference implementation of the startup
630 notification protocol. The reference implementation is mostly under an X Window
631 System style license, and has no special dependencies.")
632 ;; Most of the code is provided under x11 license.
633 (license license:lgpl2.0+)))
635 (define-public wmctrl
642 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
646 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
647 (patches (search-patches "wmctrl-64-fix.patch"))))
648 (build-system gnu-build-system)
651 (list (string-append "--mandir="
652 (assoc-ref %outputs "out")
655 `(("pkg-config" ,pkg-config)))
660 (home-page "http://tomas.styblo.name/wmctrl/")
661 (synopsis "Command-line tool to control X window managers")
663 "Wmctrl interacts with an X window manager that is compatible
664 with the EWMH/NetWM specification. It can query the window manager for
665 information, and request for certain window management actions (resize and
666 move windows, switch between desktops, etc.).")
667 (license license:gpl2+)))
678 (url "https://github.com/resurrecting-open-source-projects/scrot")
680 (file-name (git-file-name name version))
683 "12xq6glg70icwsvbnfw9gm4dahlbnrc7b6adpd0mpf89h4sj2gds"))))
684 (build-system gnu-build-system)
686 `(("autoconf" ,autoconf)
687 ("autoconf-archive" ,autoconf-archive)
688 ("automake" ,automake)))
692 ("libXcursor" ,libxcursor)
693 ("libxcomposite" ,libxcomposite)
694 ("libXfixes" ,libxfixes)))
695 (home-page "https://github.com/resurrecting-open-source-projects/scrot")
696 (synopsis "Command-line screen capture utility for X Window System")
698 "Scrot saves a screenshot of a full screen, a window or a part
699 of the screen selected by mouse.")
700 ;; This license removes a clause about X Consortium from the original
702 (license (license:x11-style "file://COPYING"
703 "See 'COPYING' in the distribution."))))
712 (url "https://github.com/naelstrof/slop")
713 (commit (string-append "v" version))))
714 (file-name (git-file-name name version))
717 "1k8xxb4rj2fylr4vj16yvsf73cyywliz9cy78pl4ibmi03jhg837"))))
718 (build-system cmake-build-system)
720 '(#:tests? #f)) ; no "check" target
726 ("libxrender" ,libxrender)
728 (home-page "https://github.com/naelstrof/slop")
729 (synopsis "Select a region and print its bounds to stdout")
731 "slop (Select Operation) is a tool that queries for a selection from a
732 user and prints the region to stdout. It grabs the mouse and turns it into a
733 crosshair, lets the user click and drag to make a selection (or click on a
734 window) while drawing a pretty box around it, then finally prints the
735 selection's dimensions to stdout.")
736 (license license:gpl3+)))
745 (url "https://github.com/naelstrof/maim")
746 (commit (string-append "v" version))))
747 (file-name (git-file-name name version))
750 "181mjjrjb9fs1ficcv9miqbk94v95j1yli7fjp2dj514g7nj9l3x"))))
751 (build-system cmake-build-system)
753 '(#:tests? #f)) ; no "check" target
756 ("libjpeg" ,libjpeg-turbo)
758 ("libxcomposite" ,libxcomposite)
759 ("libxfixes" ,libxfixes)
760 ("libxrandr" ,libxrandr)
764 (home-page "https://github.com/naelstrof/maim")
765 (synopsis "Screenshot utility for X Window System")
767 "maim (Make Image) is a tool that takes screenshots of your desktop and
768 saves it in any format. Along with a full screen, it allows you to capture a
769 predefined region or a particular window. Also, it makes it possible to
770 include cursor in the resulting image.")
771 (license license:gpl3+)))
773 (define-public unclutter
780 "http://ftp.x.org/contrib/utilities/unclutter-"
784 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
785 (build-system gnu-build-system)
787 '(#:tests? #f ; no check target
789 (modify-phases %standard-phases
792 (lambda* (#:key inputs outputs #:allow-other-keys)
793 (let* ((out (assoc-ref outputs "out"))
794 (bin (string-append out "/bin"))
795 (man1 (string-append out "/share/man/man1")))
798 (invoke "make" "install" "install.man"
799 (string-append "BINDIR=" bin)
800 (string-append "MANDIR=" man1))))))))
801 (inputs `(("libx11" ,libx11)))
802 (home-page "http://ftp.x.org/contrib/utilities/")
803 (synopsis "Hide idle mouse cursor")
805 "Unclutter is a program which runs permanently in the background of an
806 X11 session. It checks on the X11 pointer (cursor) position every few
807 seconds, and when it finds it has not moved (and no buttons are pressed
808 on the mouse, and the cursor is not in the root window) it creates a
809 small sub-window as a child of the window the cursor is in. The new
810 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
811 invisible cursor. This allows you to see all the text in an xterm or
812 xedit, for example. The human factors crowd would agree it should make
813 things less distracting.")
814 (license license:public-domain)))
816 (define-public xautomation
823 (uri (string-append "https://www.hoopajoo.net/static/projects/"
824 "xautomation-" version ".tar.gz"))
828 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
829 (build-system gnu-build-system)
834 ("libxtst" ,libxtst)))
836 `(("xorgproto" ,xorgproto)))
837 (synopsis "Tools to automate tasks in X such as detecting on screen images")
839 "Xautomation can control X from the command line for scripts, and
840 do visual scraping to find things on the screen. The control interface
841 allows mouse movement, clicking, button up/down, key up/down, etc, and
842 uses the XTest extension so you don't have the annoying problems that
843 xse has when apps ignore sent events. The visgrep program can find
844 images inside of images and reports the coordinates, allowing programs
845 to find buttons, etc, on the screen to click on.")
846 (home-page "https://www.hoopajoo.net/projects/xautomation.html")
847 (license license:gpl2+)))
849 (define-public xbanish
853 (home-page "https://github.com/jcs/xbanish")
856 (uri (git-reference (url home-page)
857 (commit (string-append "v" version))))
858 (file-name (git-file-name name version))
861 "0ic5f7zgc32p5g1wxas9y5h8dhik0pvsa8wmn6skdry56gw9vg9q"))))
862 (build-system gnu-build-system)
864 `(#:tests? #f ; no tests
865 #:make-flags (list "CC=gcc"
866 (string-append "PREFIX=" (assoc-ref %outputs "out")))
867 #:phases (modify-phases %standard-phases
868 (delete 'configure)))) ; no configure script
871 ("libxfixes" ,libxfixes)
874 (synopsis "Banish the mouse cursor")
876 "@command{xbanish} hides the mouse cursor when you start typing, and
877 shows it again when the mouse cursor moves or a mouse button is pressed.")
878 (license license:bsd-3)))
880 (define-public xlockmore
886 (uri (list (string-append "http://sillycycle.com/xlock/"
887 "xlockmore-" version ".tar.xz")
888 ;; Previous releases are moved to a subdirectory.
889 (string-append "http://sillycycle.com/xlock/"
891 "xlockmore-" version ".tar.xz")))
894 "0wdb7gpyjw3sigmhiplgg1bqxz6wipr0c3n9492x2a18cv1saxjr"))))
895 (build-system gnu-build-system)
897 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
898 (assoc-ref %outputs "out")
899 "/lib/X11/app-defaults"))
900 #:tests? #f)) ;no such thing as a test suite
905 ("linux-pam" ,linux-pam)))
906 (home-page "https://sillycycle.com/xlockmore.html")
907 (synopsis "Screen locker for the X Window System")
909 "XLockMore is a classic screen locker and screen saver for the
911 (license (license:non-copyleft #f "See xlock.c.")
912 ))) ; + GPLv2 in modes/glx/biof.c.
921 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
922 name "-" version ".tar.gz"))
925 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
926 (build-system gnu-build-system)
929 (list (string-append "--mandir=" %output "/share/man"))))
934 ("libxinerama" ,libxinerama)))
935 (home-page "https://sourceforge.net/projects/libxosd/")
936 (synopsis "X On Screen Display")
938 "XOSD provides a C library and a simple utility (osd_cat) for displaying
939 transparent text on your screen.")
940 (license license:gpl2+)))
942 (define-public xbindkeys
948 ;; Download from the savannah mirror list fails
950 "http://www.nongnu.org/xbindkeys/xbindkeys-"
955 "1wl2vc5alisiwyk8m07y1ryq8w3ll9ym83j27g4apm4ixjl8d6x2"))))
956 (build-system gnu-build-system)
958 `(("pkg-config" ,pkg-config)))
961 ("guile" ,guile-2.2)))
962 (home-page "https://www.nongnu.org/xbindkeys/")
963 (synopsis "Associate a combination of keys with a shell command")
965 "XBindKeys is a program that allows you to launch shell commands with
966 your keyboard or your mouse under the X Window System. It links commands to
967 keys or mouse buttons, using a configuration file. It's independent of the
968 window manager and can capture all keyboard keys (ex: Power, Wake...). It
969 optionally supports a Guile-based configuration file layout, which enables you
970 to access all XBindKeys internals, so you can have key combinations, double
971 clicks or timed double clicks take actions. Also all functions that work in
972 Guile will work for XBindKeys.")
973 (license license:gpl2+)))
983 (url "https://github.com/baskerville/sxhkd")
985 (file-name (git-file-name name version))
987 (base32 "1winwzdy9yxvxnrv8gqpigl9y0c2px27mnms62bdilp4x6llrs9r"))))
988 (build-system gnu-build-system)
990 `(("asciidoc" ,asciidoc)
992 ("xcb-util" ,xcb-util)
993 ("xcb-util-keysyms" ,xcb-util-keysyms)
994 ("xcb-util-wm" ,xcb-util-wm)))
996 `(#:phases (modify-phases %standard-phases (delete 'configure))
997 #:tests? #f ; no check target
1000 (string-append "PREFIX=" %output)
1001 ;; Keep the documentation where the build system installs LICENSE.
1002 (string-append "DOCPREFIX=" %output
1003 "/share/doc/" ,name "-" ,version))))
1004 (home-page "https://github.com/baskerville/sxhkd")
1005 (synopsis "Simple X hotkey daemon")
1006 (description "sxhkd is a simple X hotkey daemon with a powerful and
1007 compact configuration syntax.")
1008 (license license:bsd-2)))
1010 (define-public rxvt-unicode
1012 (name "rxvt-unicode")
1016 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
1017 name "-" version ".tar.bz2"))
1018 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
1021 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
1022 (build-system gnu-build-system)
1024 ;; This sets the destination when installing the necessary terminal
1025 ;; capability data, which are not provided by 'ncurses'. See
1026 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
1027 `(#:configure-flags (list "--enable-256-color")
1028 #:make-flags (list (string-append "TERMINFO="
1029 (assoc-ref %outputs "out")
1032 (modify-phases %standard-phases
1033 (add-after 'install 'install-desktop-urxvt
1034 (lambda* (#:key outputs #:allow-other-keys)
1035 (let* ((output (assoc-ref outputs "out"))
1036 (desktop (string-append output "/share/applications")))
1038 (with-output-to-file
1039 (string-append desktop "/urxvt.desktop")
1046 TryExec=~@*~a/bin/urxvt~@
1051 (add-after 'install 'install-desktop-urxvtc
1052 (lambda* (#:key outputs #:allow-other-keys)
1053 (let* ((output (assoc-ref outputs "out"))
1054 (desktop (string-append output "/share/applications")))
1056 (with-output-to-file
1057 (string-append desktop "/urxvtc.desktop")
1061 Name=rxvt-unicode (client)~@
1062 Comment=Rxvt clone with XFT and unicode support~@
1063 Exec=~a/bin/urxvtc~@
1064 TryExec=~@*~a/bin/urxvtc~@
1070 `(("libXft" ,libxft)
1071 ("libX11" ,libx11)))
1073 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
1075 ("pkg-config" ,pkg-config)))
1076 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
1077 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
1078 (native-search-paths
1079 (list (search-path-specification
1080 (variable "TERMINFO_DIRS")
1081 (files '("share/terminfo")))))
1082 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
1083 (synopsis "Rxvt clone with XFT and unicode support")
1084 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
1085 intended as an xterm replacement for users who do not require features such as
1086 Tektronix 4014 emulation and toolkit-style configurability. It supports
1087 unicode, XFT and may be extended with Perl plugins. It also comes with a
1088 client/daemon pair that lets you open any number of terminal windows from
1089 within a single process.")
1090 (license license:gpl3+)))
1092 (define-public xcape
1099 (url "https://github.com/alols/xcape")
1100 (commit (string-append "v" version))))
1101 (file-name (git-file-name name version))
1104 "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm"))))
1105 (build-system gnu-build-system)
1107 `(#:tests? #f ; no check target
1108 ;; no configure script
1109 #:phases (modify-phases %standard-phases (delete 'configure))
1110 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1111 "MANDIR=/share/man/man1"
1114 `(("libxtst" ,libxtst)
1115 ("libx11" ,libx11)))
1117 `(("pkg-config" ,pkg-config)))
1118 (home-page "https://github.com/alols/xcape")
1119 (synopsis "Use a modifier key in X.org as another key")
1121 "This utility for X.org uses a modifier key as another key when
1122 pressed and released on its own. The default behaviour is to generate the
1123 Escape key when Left Control is pressed and released on its own.")
1124 (license license:gpl3+)))
1126 (define-public libwacom
1133 "https://github.com/linuxwacom/libwacom/releases/download/"
1134 "libwacom-" version "/libwacom-" version ".tar.bz2"))
1137 "0797gc055dgg2jfqijy9823bd83jwr4wb2z9id992qlcr0xmz1rw"))))
1138 (build-system glib-or-gtk-build-system)
1140 `(#:configure-flags '("--disable-static")))
1142 `(("pkg-config" ,pkg-config)
1144 ("python" ,python)))
1147 ("libgudev" ,libgudev)
1149 ("libxml2" ,libxml2)))
1151 ;; libwacom includes header files that include GLib, and libinput uses
1152 ;; those header files.
1154 (home-page "https://linuxwacom.github.io/")
1155 (synopsis "Helper library for Wacom tablet settings")
1157 "Libwacom is a library to help implement Wacom tablet settings. It is
1158 intended to be used by client-programs that need model identification. It is
1159 already being used by the gnome-settings-daemon and the GNOME Control Center
1160 Wacom tablet applet.")
1161 (license license:x11)))
1163 (define-public xf86-input-wacom
1165 (name "xf86-input-wacom")
1171 "https://github.com/linuxwacom/xf86-input-wacom/releases/download/"
1172 "xf86-input-wacom-" version "/"
1173 "xf86-input-wacom-" version ".tar.bz2"))
1175 (base32 "11qk58az6qwii774ga45h5yqzipwn56f0d74kdbajqdv45p85gqj"))))
1178 (list (string-append "--with-sdkdir="
1179 (assoc-ref %outputs "out")
1181 (string-append "--with-xorg-conf-dir="
1182 (assoc-ref %outputs "out")
1183 "/share/X11/xorg.conf.d"))))
1184 (build-system gnu-build-system)
1186 `(("pkg-config" ,pkg-config)))
1188 `(("xorg-server" ,xorg-server)
1189 ("libxrandr" ,libxrandr)
1190 ("libxinerama" ,libxinerama)
1193 (home-page "https://linuxwacom.github.io/")
1194 (synopsis "Wacom input driver for X")
1196 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
1197 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
1198 (license license:x11)))
1200 (define-public redshift
1208 (string-append "https://github.com/jonls/redshift/"
1209 "releases/download/v" version
1210 "/redshift-" version ".tar.xz"))
1213 "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j"))))
1214 (build-system gnu-build-system)
1216 `(#:imported-modules (,@%gnu-build-system-modules
1217 (guix build python-build-system))
1219 (modify-phases %standard-phases
1220 (add-after 'install 'split-outputs
1221 (lambda* (#:key outputs #:allow-other-keys)
1222 (let ((out (assoc-ref outputs "out"))
1223 (gtk (assoc-ref outputs "gtk"))
1224 (desktop-file "/share/applications/redshift-gtk.desktop"))
1225 (mkdir-p (string-append gtk "/bin"))
1226 (link (string-append out "/bin/redshift-gtk")
1227 (string-append gtk "/bin/redshift-gtk"))
1228 (delete-file (string-append out "/bin/redshift-gtk"))
1229 (copy-recursively (string-append out "/lib")
1230 (string-append gtk "/lib"))
1231 (delete-file-recursively (string-append out "/lib"))
1232 (mkdir-p (string-append gtk "/share/applications"))
1233 (link (string-append out desktop-file)
1234 (string-append gtk desktop-file))
1235 (delete-file (string-append out desktop-file))
1236 (with-directory-excursion (string-append out "/share")
1237 (for-each (lambda (dir)
1239 (string-append out "/share/" dir)
1240 (string-append gtk "/share/" dir))
1241 (delete-file-recursively dir))
1242 '("appdata" "icons")))
1244 (add-after 'split-outputs 'wrap
1245 (lambda* (#:key inputs outputs #:allow-other-keys)
1246 (let* ((gtk (assoc-ref outputs "gtk"))
1248 (@ (guix build python-build-system) python-version))
1249 (python (assoc-ref inputs "python"))
1250 (sitedir (string-append gtk "/lib/python"
1251 (python-version python)
1253 (wrap-program (string-append gtk "/bin/redshift-gtk")
1254 `("PYTHONPATH" ":" prefix
1255 (,(string-append sitedir ":" (getenv "PYTHONPATH"))))
1256 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH"))))
1258 (outputs '("out" "gtk"))
1260 `(("pkg-config" ,pkg-config)
1261 ("intltool" ,intltool)))
1263 `(("libdrm" ,libdrm)
1266 ("libxxf86vm" ,libxxf86vm)
1267 ("glib" ,glib) ;for Geoclue2 support
1269 ;; To build the GTK3 GUI, we need these.
1272 ("python-pygobject" ,python-pygobject)
1273 ("python-pyxdg" ,python-pyxdg)))
1274 (home-page "https://github.com/jonls/redshift")
1275 (synopsis "Adjust the color temperature of your screen")
1277 "Redshift adjusts the color temperature according to the position of the
1278 sun. A different color temperature is set during night and daytime. During
1279 twilight and early morning, the color temperature transitions smoothly from
1280 night to daytime temperature to allow your eyes to slowly adapt. At night the
1281 color temperature should be set to match the lamps in your room.")
1282 (license license:gpl3+)))
1284 (define-public redshift-wayland
1285 (let ((commit "7da875d34854a6a34612d5ce4bd8718c32bec804")
1288 (name "redshift-wayland")
1289 (version (string-append "1.12-"
1290 revision "." (string-take commit 7)))
1294 (url "https://github.com/minus7/redshift")
1296 (file-name (string-append name "-" version))
1299 "0nbkcw3avmzjg1jr1g9yfpm80kzisy55idl09b6wvzv2sz27n957"))))
1300 (build-system gnu-build-system)
1302 '(#:phases (modify-phases %standard-phases
1303 (add-after 'install 'create-desktop-file
1304 (lambda* (#:key outputs #:allow-other-keys)
1305 ;; For the GeoClue provider to work, a .desktop file
1306 ;; needs to be provided. A template is available,
1307 ;; but it only gets installed when the GUI is enabled.
1308 ;; Install it manually for this Wayland variant.
1309 (let* ((out (assoc-ref outputs "out"))
1312 out "/share/applications/redshift.desktop")))
1313 (mkdir-p (dirname desktop-file))
1314 (copy-file "data/applications/redshift.desktop.in"
1316 (substitute* desktop-file
1320 `(("autoconf" ,autoconf)
1321 ("automake" ,automake)
1322 ("libtool" ,libtool)
1323 ("pkg-config" ,pkg-config)
1324 ("intltool" ,intltool)))
1326 `(("libdrm" ,libdrm)
1329 ("libxxf86vm" ,libxxf86vm)
1330 ("glib" ,glib) ; for Geoclue2 support
1331 ("wayland" ,wayland)))
1332 (home-page "https://github.com/minus7/redshift")
1333 (synopsis "Adjust the color temperature of your screen (with Wayland support)")
1335 "Redshift adjusts the color temperature according to the position of the
1336 sun. A different color temperature is set during night and daytime. During
1337 twilight and early morning, the color temperature transitions smoothly from
1338 night to daytime temperature to allow your eyes to slowly adapt. At night the
1339 color temperature should be set to match the lamps in your room.
1341 This is a fork with added support for Wayland using the wlr-gamma-control
1343 (license license:gpl3+))))
1345 (define-public xscreensaver
1347 (name "xscreensaver")
1353 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
1356 (base32 "15bv05vpfjwsrqbazrjmm382jd7vvw0mp6y9vasn6wvxzjf0in3k"))))
1357 (build-system gnu-build-system)
1359 `(#:tests? #f ; no check target
1361 (modify-phases %standard-phases
1362 (add-before 'configure 'adjust-gtk-resource-paths
1364 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
1365 (("@GTK_DATADIR@") "@datadir@")
1366 (("@PO_DATADIR@") "@datadir@"))
1368 #:configure-flags '("--with-pam" "--with-proc-interrupts"
1369 "--without-readdisplay")
1370 #:make-flags (list (string-append "AD_DIR="
1371 (assoc-ref %outputs "out")
1372 "/lib/X11/app-defaults"))))
1374 `(("pkg-config" ,pkg-config)
1375 ("intltool" ,intltool)))
1377 `(("libx11" ,libx11)
1378 ("libxext" ,libxext)
1384 ("libglade" ,libglade)
1385 ("libxml2" ,libxml2)
1387 ("libjpeg" ,libjpeg-turbo)
1388 ("linux-pam" ,linux-pam)
1394 ("libxrandr" ,libxrandr)
1397 (home-page "https://www.jwz.org/xscreensaver/")
1398 (synopsis "Classic screen saver suite supporting screen locking")
1400 "xscreensaver is a popular screen saver collection with many entertaining
1401 demos. It also acts as a nice screen locker.")
1402 ;; xscreensaver doesn't have a single copyright file and instead relies on
1403 ;; source comment headers, though most files have the same lax
1404 ;; permissions. To reduce complexity, we're pointing at Debian's
1405 ;; breakdown of the copyright information.
1406 (license (license:non-copyleft
1408 "http://metadata.ftp-master.debian.org/changelogs/"
1409 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1411 (define-public xssproxy
1418 (url "https://github.com/timakro/xssproxy")
1419 (commit (string-append "v" version))))
1420 (file-name (string-append name "-" version "-checkout"))
1423 "0c83wmipnsdnbihc5niyczs7jrkss2s8n6iwwjdia7hkjzbd0hl7"))))
1424 (build-system gnu-build-system)
1425 (arguments `(#:make-flags `("bindir=/bin"
1426 "man1dir=/share/man/man1"
1427 ,(string-append "DESTDIR=" (assoc-ref %outputs "out"))
1429 #:phases (modify-phases %standard-phases
1433 `(("pkg-config" ,pkg-config)))
1437 ("libxext" ,libxext)
1438 ("libxscrnsaver" ,libxscrnsaver)
1440 (synopsis "Forward freedesktop.org Idle Inhibition Service calls to Xss")
1441 (description "xssproxy implements the @code{org.freedesktop.ScreenSaver}
1442 D-Bus interface described in the Idle Inhibition Service Draft by the
1443 freedesktop.org developers. The inhibition of the screensaver is then
1444 controlled using the XScreenSaverSuspend function from the Xss (X11 Screen
1445 Saver extension) library.")
1446 (home-page "https://github.com/timakro/xssproxy")
1447 (license license:gpl3+)))
1455 (uri (string-append "http://www.vergenet.net/~conrad/software"
1456 "/xsel/download/xsel-" version ".tar.gz"))
1459 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1460 (build-system gnu-build-system)
1462 `(("libxt" ,libxt)))
1463 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1464 (synopsis "Manipulate X selection")
1466 "XSel is a command-line program for getting and setting the contents of
1467 the X selection. Normally this is only accessible by manually highlighting
1468 information and pasting it with the middle mouse button.
1470 XSel reads from standard input and writes to standard output by default,
1471 but can also follow a growing file, display contents, delete entries and more.")
1472 (license (license:x11-style "file://COPYING"
1473 "See COPYING in the distribution."))))
1475 (define-public xdpyprobe
1481 (uri (string-append "https://github.com/alezost/" name
1482 "/releases/download/v" version
1483 "/" name "-" version ".tar.gz"))
1486 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1487 (build-system gnu-build-system)
1489 `(("libx11" ,libx11)))
1490 (home-page "https://github.com/alezost/xdpyprobe")
1491 (synopsis "Probe X server for connectivity")
1493 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1494 connectivity of the X server running on a particular @code{DISPLAY}.")
1495 (license license:gpl3+)))
1503 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1504 "releases/download/"
1505 version "/rofi-" version ".tar.xz"))
1508 "12p9z8bl1gg8k024m4a6zfz7gf1zbyffardh98raqgabn6knwk22"))))
1509 (build-system gnu-build-system)
1514 ("startup-notification" ,startup-notification)
1515 ("libjpeg" ,libjpeg-turbo)
1516 ("librsvg" ,librsvg)
1517 ("libxkbcommon" ,libxkbcommon)
1519 ("xcb-util" ,xcb-util)
1520 ("xcb-util-xrm" ,xcb-util-xrm)
1521 ("xcb-util-wm" ,xcb-util-wm)))
1526 ("glib:bin" ,glib "bin")
1527 ("pkg-config" ,pkg-config)))
1529 `(#:parallel-tests? #f ; fails in some circumstances
1531 (modify-phases %standard-phases
1532 (add-before 'configure 'adjust-tests
1534 (substitute* '("test/helper-expand.c")
1537 (("g_get_home_dir \\(\\)") "\"/\""))
1539 (home-page "https://github.com/DaveDavenport/rofi")
1540 (synopsis "Application launcher")
1541 (description "Rofi is a minimalist application launcher. It memorizes which
1542 applications you regularly use and also allows you to search for an application
1544 (license license:expat)))
1546 (define-public tint2
1552 (uri (string-append "https://gitlab.com/o9000/" name
1553 "/repository/archive.tar.gz?ref=" version))
1554 (file-name (string-append name "-" version ".tar.gz"))
1557 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1558 (build-system cmake-build-system)
1560 '(#:tests? #f ;no test target
1562 (modify-phases %standard-phases
1563 (add-after 'unpack 'fix-installation-prefix
1565 (substitute* "CMakeLists.txt"
1566 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))
1571 ("librsvg" ,librsvg)
1572 ("libxcomposite" ,libxcomposite)
1573 ("libxdamage" ,libxdamage)
1575 ("libxinerama" ,libxinerama)
1576 ("libxrandr" ,libxrandr)
1577 ("startup-notification" ,startup-notification)))
1579 `(("gettext" ,gettext-minimal)
1580 ("pkg-config" ,pkg-config)))
1581 (home-page "https://gitlab.com/o9000/tint2")
1582 (synopsis "Lightweight task bar")
1584 "Tint2 is a simple task bar made for modern X window managers. It was
1585 specifically made for Openbox but it should also work with other window
1586 managers (GNOME, KDE, XFCE etc.).
1588 The taskbar includes transparency and color settings for the font, icons,
1589 border, and background. It also supports multihead setups, customized mouse
1590 actions, a built-in clock, a battery monitor and a system tray.")
1591 (license license:gpl2)))
1594 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1598 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1599 revision "." (string-take commit 7)))
1603 (url "https://github.com/robm/dzen")
1605 (file-name (string-append name "-" version))
1608 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1609 (build-system gnu-build-system)
1611 `(#:tests? #f ; No test suite.
1612 #:make-flags ; Replacement for `config.mk`.
1614 (string-append "VERSION = " ,version)
1615 (string-append "PREFIX = " %output)
1616 "MANPREFIX = ${PREFIX}/share/man"
1618 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1619 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1620 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1625 (modify-phases %standard-phases
1626 (delete 'configure) ; No configuration script.
1627 ;; Use own make-flags instead of `config.mk`.
1628 (add-before 'build 'dont-include-config-mk
1630 (substitute* "Makefile" (("include config.mk") ""))
1633 `(("libx11" ,libx11)
1636 ("libxinerama" ,libxinerama)))
1637 (native-inputs `(("pkg-config" ,pkg-config)))
1638 (synopsis "General purpose messaging, notification and menuing program for X11")
1639 (description "Dzen is a general purpose messaging, notification and menuing
1640 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1641 (home-page "https://github.com/robm/dzen")
1642 (license license:expat))))
1644 (define-public xftwidth
1647 (version "20170402")
1652 (url "http://github.com/vixus0/xftwidth")
1653 (commit "35ff963908d41a8a6a7101c434c88255728025ee")))
1656 "1jwl25785li24kbp0m1wxfwk4dgxkliynn03nsj813cjr34kq16h"))
1657 (file-name (string-append name "-" version "-checkout"))))
1658 (build-system gnu-build-system)
1659 (inputs `(("freetype" ,freetype)
1661 ("fontconfig" ,fontconfig)
1662 ("libxft" ,libxft)))
1664 `(("pkg-config" ,pkg-config)))
1667 (modify-phases %standard-phases
1668 (add-after 'unpack 'fix-makefile ; /usr/bin doesn't show up in PATH
1669 (lambda _ (substitute* "Makefile" (("usr/") "")) #t))
1670 (delete 'check) ; no check included in Makefile
1671 (delete 'configure))
1673 (let ((out (assoc-ref %outputs "out")))
1674 (list (string-append "DESTDIR=" out)))))
1675 (home-page "https://github.com/vixus0/xftwidth")
1676 (synopsis "Calculator for determining pixel widths of displayed text using Xft fonts")
1677 (description "xftwidth is a small C program for calculating the pixel
1678 widths of displayed text using Xft fonts. It is especially useful in scripts
1679 for displaying text in graphical panels, menus, popups, and notification
1680 windows generated using dzen. These scripts are often used in conjunction with
1681 minimalistic tiling window managers such as herbstluftwm and bspwm.")
1682 (license license:expat)))
1684 (define-public xcb-util-xrm
1686 (name "xcb-util-xrm")
1691 "https://github.com/Airblader/xcb-util-xrm/releases"
1692 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1695 "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h"))
1696 (modules '((guix build utils)))
1700 (delete-file-recursively "m4")
1702 (build-system gnu-build-system)
1704 `(("pkg-config" ,pkg-config)
1706 ("libx11" ,libx11))) ; for tests
1708 `(("libxcb" ,libxcb)
1709 ("xcb-util" ,xcb-util)))
1710 (home-page "https://github.com/Airblader/xcb-util-xrm")
1711 (synopsis "XCB utility functions for the X resource manager")
1713 "The XCB util module provides a number of libraries which sit on
1714 top of libxcb, the core X protocol library, and some of the extension
1715 libraries. These experimental libraries provide convenience functions
1716 and interfaces which make the raw X protocol more usable. Some of the
1717 libraries also provide client-side code which is not strictly part of
1718 the X protocol but which has traditionally been provided by Xlib.
1720 XCB util-xrm module provides the following libraries:
1722 - xrm: utility functions for the X resource manager.")
1723 (license license:x11)))
1725 (define-public xcalib
1729 (home-page "https://github.com/OpenICC/xcalib")
1735 (file-name (git-file-name name version))
1738 "05fzdjmhiafgi2jf0k41i3nm0837a78sb6yv59cwc23nla8g0bhr"))
1741 ;; Add missing documentation for the new --output option.
1742 ;; This upstream patch can be removed on the next update.
1746 home-page "/commit/"
1747 "ae03889b91fe984b18e925ad2b5e6f2f7354e058.patch"))
1748 (file-name "xcalib-update-man-page.patch")
1751 "0f7b4d5484x4b9n1bwhqmar0kcaa029ffff7bp3xpr734n1qgqb6")))))))
1752 (build-system cmake-build-system)
1754 '(#:tests? #f)) ; no test suite
1755 (inputs `(("libx11" ,libx11)
1756 ("libxext" ,libxext)
1757 ("libxrandr" ,libxrandr)
1758 ("libxxf86vm" ,libxxf86vm)))
1759 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1760 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1761 profiles to the video card's gamma ramp. It does work with most video card
1762 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1763 invert colors on a specific display/screen.")
1764 (license license:gpl2)))
1766 (define-public nxbelld
1773 (url "https://github.com/dusxmt/nxbelld")
1777 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1778 (file-name (git-file-name name version))))
1779 (build-system gnu-build-system)
1780 (arguments '(#:configure-flags `("--enable-sound"
1783 (native-inputs `(("autoconf" ,autoconf)
1784 ("automake" ,automake)
1785 ("pkg-config" ,pkg-config)
1787 (inputs `(("libx11" ,libx11)
1788 ("alsa-lib" ,alsa-lib)))
1789 (synopsis "Daemon that performs an action every time the X11 bell is rung")
1790 (description "nxbelld is a tiny utility to aid people who either don't
1791 like the default PC speaker beep, or use a sound driver that doesn't have
1792 support for the PC speaker. The utility performs a given action every time
1793 the X bell is rung. The actions nxbelld can currently perform include running
1794 a specified program, emulating the PC speaker beep using the sound card (default),
1795 or playing a PCM encoded WAVE file.")
1796 (home-page "https://github.com/dusxmt/nxbelld")
1797 (license license:gpl3+)))
1799 (define-public xautolock
1805 (uri (string-append "https://www.ibiblio.org/pub/linux/X11/"
1806 "screensavers/xautolock-" version ".tgz"))
1809 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1810 (build-system gnu-build-system)
1812 `(("imake" ,imake)))
1814 `(("libx11" ,libx11)
1815 ("libxext" ,libxext)
1816 ("libxscrnsaver" ,libxscrnsaver)))
1820 (modify-phases %standard-phases
1822 (lambda* (#:key inputs outputs #:allow-other-keys)
1823 (let ((imake (assoc-ref inputs "imake"))
1824 (out (assoc-ref outputs "out")))
1825 ;; Generate Makefile
1827 (substitute* "Makefile"
1828 ;; These imake variables somehow remain undefined
1829 (("DefaultGcc2[[:graph:]]*Opt") "-O2")
1830 ;; Reset a few variable defaults that are set in imake templates
1832 (("(MANPATH = )[[:graph:]]*" _ front)
1833 (string-append front out "/share/man")))
1834 ;; Old BSD-style 'union wait' is unneeded (defining
1835 ;; _USE_BSD did not seem to fix it)
1836 (substitute* "src/engine.c"
1837 (("union wait status") "int status = 0"))
1839 (add-after 'install 'install/man
1841 (invoke "make" "install.man"))))))
1842 (home-page "https://ibiblio.org/pub/Linux/X11/screensavers/")
1843 (synopsis "Program launcher for idle X sessions")
1844 (description "Xautolock monitors input devices under the X Window
1845 System, and launches a program of your choice if there is no activity after
1846 a user-configurable period of time.")
1847 (license license:gpl2)))
1849 (define-public screen-message
1851 (name "screen-message")
1856 "https://www.joachim-breitner.de/archive/screen-message"
1857 "/screen-message-" version ".tar.gz"))
1860 "1lw955qq5pq010lzmaf32ylj2iprgsri9ih4hx672c3f794ilab0"))))
1861 (build-system gnu-build-system)
1862 (inputs `(("gtk3" ,gtk+)
1865 (native-inputs `(("pkg-config" ,pkg-config)))
1867 ;; The default configure puts the 'sm' binary in games/ instead of bin/ -
1869 `(#:make-flags (list (string-append "execgamesdir=" %output "/bin"))))
1870 (synopsis "Print messages on your screen")
1871 (description "@code{screen-message} is a tool for displaying text on
1872 your screen. It will make the text as large as possible and display it
1873 with black color on a white background (colors are configurable on the
1875 (home-page "https://www.joachim-breitner.de/projects#screen-message")
1876 (license license:gpl2+)))
1878 (define-public xss-lock
1879 ;; xss-lock does not seem to be maintained any longer, but the last commits
1880 ;; fix important issues so we package them.
1881 (let ((version "0.3.0")
1883 (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717"))
1886 (version (git-version version revision commit))
1890 (url "https://bitbucket.org/raymonad/xss-lock.git")
1892 (file-name (git-file-name name version))
1895 "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r"))))
1896 (build-system cmake-build-system)
1897 (inputs `(("glib" ,glib)
1898 ("xcb-util" ,xcb-util)))
1900 `(("python-docutils" ,python-docutils)
1901 ("pkg-config" ,pkg-config)))
1904 (synopsis "Use external screen locker on events")
1905 (description "@code{xss-lock} listens to X signals to fire up a
1906 user-defined screensaver. In effect this automatically locks the
1907 screen when closing a laptop lid or after a period of user inactivity (as set
1908 with @code{xset s TIMEOUT}). The notifier command, if specified, is executed
1909 first. Additionally, xss-lock uses the inhibition logic to lock the screen
1910 before the system goes to sleep.")
1911 (home-page "https://bitbucket.org/raymonad/xss-lock")
1912 (license license:expat))))
1914 (define-public python-pyperclip
1916 (name "python-pyperclip")
1921 (uri (pypi-uri "pyperclip" version))
1924 "1p505c23ji06r28k1y67siihsbdzdf1brhlqpyv9ams4gk9863pp"))))
1925 (build-system python-build-system)
1927 '(#:tests? #f)) ; Not clear how to make tests pass.
1931 (home-page "https://github.com/asweigart/pyperclip")
1932 (synopsis "Python clipboard module")
1934 "Pyperclip is a clipboard module for Python, handling copy/pasting from
1936 (license license:bsd-3)))
1938 (define-public numlockx
1945 ;; It seems that upstream is gone.
1946 (url "https://github.com/rg3/numlockx")
1948 (file-name (git-file-name name version))
1951 "1w49fayhwzn5rx0z1q2lrvm7z8jrd34lgb89p853a024bixc3cf2"))))
1952 (build-system gnu-build-system)
1954 `(("xorg-server" ,xorg-server)))
1955 (home-page "https://github.com/rg3/numlockx")
1956 (synopsis "Turns on the numlock key in X11")
1957 (description "@command{numlockx} is a tiny program that lets you turn on
1958 the numlock key in X11. It can be called from the user's initialization files
1959 to automatically turn it on on login.")
1960 (license license:expat)))
1962 (define-public xrandr-invert-colors
1964 (name "xrandr-invert-colors")
1969 (url "https://github.com/zoltanp/xrandr-invert-colors")
1970 (commit (string-append "v" version))))
1971 (file-name (git-file-name name version))
1974 "1br3x9vr6xm4ika06n8cfxx1b3wdchdqvyzjl4y1chmivrml8x9h"))))
1975 (build-system gnu-build-system)
1977 `(#:make-flags (list "CC=gcc")
1978 #:tests? #f ; there are none
1980 (modify-phases %standard-phases
1983 (lambda* (#:key outputs #:allow-other-keys)
1984 (let* ((out (assoc-ref outputs "out"))
1985 (bin (string-append out "/bin")))
1986 (install-file "xrandr-invert-colors.bin" bin)
1989 `(("libxrandr" ,libxrandr)))
1990 (home-page "https://github.com/zoltanp/xrandr-invert-colors")
1991 (synopsis "Invert display colors")
1992 (description "This package provides a small utility for inverting the
1993 colors on all monitors attached to an XRandR-capable X11 display server.")
1994 (license license:gpl3+)))
2004 (string-append "https://www.umaxx.net/dl/sct-"
2007 (base32 "0lrhx771iccbw04wrhj0ygids1pzmjfc4hvklm30m3p3flvhqf0m"))))
2008 (build-system gnu-build-system)
2011 (list ,(string-append "CC=" (cc-for-target)))
2012 #:tests? #f ; no test suite
2014 (modify-phases %standard-phases
2016 (add-after 'unpack 'fix-sctd-paths
2017 (lambda* (#:key outputs inputs #:allow-other-keys)
2018 (let ((out (assoc-ref outputs "out"))
2019 (coreutils (assoc-ref inputs "coreutils"))
2020 (inetutils (assoc-ref inputs "inetutils"))
2021 (sed (assoc-ref inputs "sed")))
2022 (substitute* "sctd.sh"
2023 (("\\$\\(which sct\\)") (string-append out "/bin/sct"))
2024 (("date") (string-append coreutils "/bin/date"))
2025 (("printf") (string-append coreutils "/bin/printf"))
2026 (("sleep") (string-append coreutils "/bin/sleep"))
2027 (("logger") (string-append inetutils "/bin/logger"))
2028 (("sed") (string-append sed "/bin/sed"))))))
2030 (lambda* (#:key outputs #:allow-other-keys)
2031 (let ((out (assoc-ref outputs "out")))
2032 (install-file "sct" (string-append out "/bin"))
2033 (install-file "sctd.sh" (string-append out "/bin"))
2034 (install-file "sct.1" (string-append out "/man/man1"))
2035 (install-file "sctd.1" (string-append out "/man/man1"))
2036 (rename-file (string-append out "/bin/sctd.sh")
2037 (string-append out "/bin/sctd"))
2040 `(("coreutils" ,coreutils) ; sctd uses "date", "printf" and "sleep"
2041 ("inetutils" ,inetutils) ; sctd uses "logger"
2042 ("libxrandr" ,libxrandr)
2043 ("sed" ,sed))) ; sctd uses "sed"
2044 (home-page "https://www.umaxx.net")
2045 (synopsis "Set the color temperature of the screen")
2046 (description "@code{sct} is a lightweight utility to set the color
2047 temperature of the screen.")
2048 (license (license:non-copyleft "file://sct.c")))) ; "OpenBSD" license
2050 (define-public xsecurelock
2052 (name "xsecurelock")
2057 "https://github.com/google/xsecurelock/releases"
2058 "/download/v" version "/xsecurelock-" version ".tar.gz"))
2060 (base32 "070gknyv0s5hz9hkc6v73m2v7ssyjwgl93b5hd4glayfqxqjbmdp"))))
2061 (build-system gnu-build-system)
2064 '("--with-pam-service-name=login"
2066 "--with-default-authproto-module=/run/setuid-programs/authproto_pam")))
2068 `(("pandoc" ,pandoc)
2069 ("pkg-config" ,pkg-config)))
2071 `(("fontconfig" ,fontconfig)
2073 ("libxcomposite" ,libxcomposite)
2074 ("libxext" ,libxext)
2075 ("libxfixes" ,libxfixes)
2078 ("libxrandr" ,libxrandr)
2079 ("libxscrnsaver" ,libxscrnsaver)
2080 ("linux-pam" ,linux-pam)))
2081 (home-page "https://github.com/google/xsecurelock")
2082 (synopsis "X11 screen lock utility with the primary goal of security")
2083 (description "@code{xsecurelock} is an X11 screen locker which uses
2084 a modular design to avoid the usual pitfalls of screen locking utility design.
2086 As a consequence of the modular design, the usual screen locker service
2087 shouldn't be used with @code{xsecurelock}. Instead, you need to add a helper
2088 binary to setuid-binaries:
2090 (setuid-programs (cons*
2091 (file-append xsecurelock \"/libexec/xsecurelock/authproto_pam\")
2094 (license license:asl2.0)))
2096 (define-public wl-clipboard
2098 (name "wl-clipboard")
2104 (url "https://github.com/bugaevc/wl-clipboard")
2105 (commit (string-append "v" version))))
2106 (file-name (git-file-name name version))
2108 (base32 "0c4w87ipsw09aii34szj9p0xfy0m00wyjpll0gb0aqmwa60p0c5d"))))
2109 (build-system meson-build-system)
2111 `(("pkg-config" ,pkg-config)))
2113 `(("wayland" ,wayland)
2114 ("wayland-protocols" ,wayland-protocols)))
2115 (home-page "https://github.com/bugaevc/wl-clipboard")
2116 (synopsis "Command-line copy/paste utilities for Wayland")
2117 (description "Wl-clipboard is a set of command-line copy/paste utilities for
2119 (license license:gpl3+)))
2121 (define-public autocutsel
2127 (uri (string-append "https://github.com/sigmike/autocutsel"
2128 "/releases/download/" version "/"
2129 "autocutsel-" version ".tar.gz"))
2132 "0gsys2dzh4az51ndcsabhlbbrjn2nm75lnjr45kg6r8sm8q66dx2"))))
2133 (build-system gnu-build-system)
2135 '(#:tests? #f)) ; no "check" target
2136 (native-inputs `(("libx11" ,libx11)
2137 ("libxaw" ,libxaw)))
2138 (home-page "https://www.nongnu.org/autocutsel/")
2139 (synopsis "Automated X11 clipboard and cutbuffer synchronization")
2140 (description "@code{autocutsel} tracks changes in the server's cutbuffer
2141 and clipboard selection. When the clipboard is changed, it updates the
2142 cutbuffer. When the cutbuffer is changed, it owns the clipboard selection.
2143 The cutbuffer and clipboard selection are always synchronized.")
2144 (license license:gpl2+)))
2146 (define-public jgmenu
2154 (url "https://github.com/johanmalm/jgmenu")
2155 (commit (string-append "v" version))))
2156 (file-name (git-file-name name version))
2159 "1wsh37rapb1bszlq36hvwxqvfds39hbvbl152m8as4zlh93wfvvk"))))
2160 (build-system gnu-build-system)
2162 `(("cppcheck" ,cppcheck)
2164 ("pkg-config" ,pkg-config)))
2168 ("librsvg" ,librsvg)
2170 ("libxml2" ,libxml2)
2171 ("libxrandr" ,libxrandr)
2175 (modify-phases %standard-phases
2176 (add-after 'unpack 'fix-tests
2178 (substitute* "scripts/cppcheck-wrapper.sh"
2179 (("--library=/usr/share/cppcheck/cfg/gnu\\.cfg")
2183 (lambda* (#:key outputs #:allow-other-keys)
2185 (invoke "./configure"
2186 (string-append "--prefix=" (assoc-ref outputs "out")))
2188 (synopsis "Simple X11 menu")
2190 "This is a simple menu for X11 designed for scripting and tweaking. It
2191 can optionally use some appearance settings from XSettings, tint2 and GTK.")
2192 (home-page "https://jgmenu.github.io/")
2193 (license license:gpl2)))
2195 (define-public xwallpaper
2203 (url "https://github.com/stoeckmann/xwallpaper")
2204 (commit (string-append "v" version))))
2205 (file-name (git-file-name name version))
2207 (base32 "121ai4dc0v65qk12gn9w62ixly8hc8a5qrygkbb82vy8ck4jqxj7"))))
2208 (build-system gnu-build-system)
2210 `(("autoconf" ,autoconf)
2211 ("automake" ,automake)
2212 ("pkg-config" ,pkg-config)))
2214 `(("libjpeg-turbo" ,libjpeg-turbo)
2218 ("xcb-util" ,xcb-util)
2219 ("xcb-util-image" ,xcb-util-image)))
2220 (home-page "https://github.com/stoeckmann/xwallpaper")
2221 (synopsis "Wallpaper setting utility for X")
2223 "The xwallpaper utility allows you to set image files as your X
2224 wallpaper. JPEG, PNG, and XPM file formats are supported.
2226 The wallpaper is also advertised to programs which support semi-transparent
2228 (license license:isc)))
2230 (define-public xwrits
2237 (uri (string-append "https://www.lcdf.org/~eddietwo/xwrits/"
2238 "xwrits-" version ".tar.gz"))
2240 (base32 "1n7y0fqpcvmzznvbsn14hzy5ddaa3lilm8aw6ckscqndnh4lijma"))))
2241 (build-system gnu-build-system)
2244 (modify-phases %standard-phases
2245 (add-after 'install 'install-docs
2246 (lambda* (#:key outputs #:allow-other-keys)
2247 (let* ((out (assoc-ref outputs "out"))
2248 (doc (string-append out "/share/doc/xwrits")))
2249 (install-file "GESTURES" doc)
2250 (install-file "README" doc)
2253 `(("libx11" ,libx11)
2254 ("libxinerama" ,libxinerama)))
2255 (home-page "https://www.lcdf.org/~eddietwo/xwrits/")
2256 (synopsis "Reminds you to take wrist breaks")
2257 (description "Xwrits reminds you to take wrist breaks for prevention or
2258 management of repetitive stress injuries. When you should take a break, it
2259 pops up an X window, the warning window. You click on the warning window,
2260 then take a break. The window changes appearance while you take the break.
2261 It changes again when your break is over. Then you just resume typing.
2262 Xwrits hides itself until you should take another break.")
2263 (license license:gpl2)))
2265 (define-public xsettingsd
2273 (url "https://github.com/derat/xsettingsd")
2274 (commit (string-append "v" version))))
2275 (file-name (git-file-name name version))
2277 (base32 "14gnkz18dipsa2v24f4nm9syxaa7g21iqjm7y65jn849ka2jr1h8"))))
2278 (build-system scons-build-system)
2280 `(("libx11" ,libx11)))
2282 `(("pkg-config" ,pkg-config)
2283 ("googletest" ,googletest)
2284 ("googletest-source" ,(package-source googletest))))
2286 `(#:scons ,scons-python2
2290 (modify-phases %standard-phases
2291 (add-before 'build 'patch-sconstruct
2292 (lambda* (#:key inputs #:allow-other-keys)
2293 (substitute* "SConstruct"
2294 ;; scons doesn't pick up environment variables automatically
2295 ;; so it needs help to find path variables
2296 (("env = Environment\\(")
2299 'PATH': os.environ['PATH'],
2300 'CPATH': os.environ['C_INCLUDE_PATH'],
2301 'LIBRARY_PATH': os.environ['LIBRARY_PATH'],
2302 'PKG_CONFIG_PATH': os.environ['PKG_CONFIG_PATH']
2304 ;; Update path to gtest source files used in tests
2305 (("/usr/src/gtest") (string-append
2306 (assoc-ref inputs "googletest-source")
2308 ;; Exclude one warning that causes a build error
2309 (("-Werror") "-Werror -Wno-error=sign-compare"))
2311 ;; The SConstruct script doesn't configure installation so
2312 ;; binaries must be copied to the output path directly
2314 (lambda* (#:key outputs #:allow-other-keys)
2315 (let* ((out (assoc-ref outputs "out"))
2316 (bin (string-append out "/bin")))
2318 (install-file "xsettingsd" bin)
2319 (install-file "dump_xsettings" bin)
2321 (home-page "https://github.com/derat/xsettingsd")
2322 (synopsis "Xorg settings daemon")
2323 (description "@command{xsettingsd} is a lightweight daemon that provides settings to
2324 Xorg applications via the XSETTINGS specification. It is used for defining
2325 font and theme settings when a complete desktop environment (GNOME, KDE) is
2326 not running. With a simple @file{.xsettingsd} configuration file one can avoid
2327 configuring visual settings in different UI toolkits separately.")
2328 (license license:bsd-3)))
2330 (define-public clipnotify
2338 (url "https://github.com/cdown/clipnotify")
2340 (file-name (git-file-name name version))
2343 "1v3ydm5ljy8z1savmdxrjyx7a5bm5013rzw80frp3qbbjaci0wbg"))))
2344 (build-system gnu-build-system)
2347 (modify-phases %standard-phases
2350 (lambda* (#:key inputs outputs #:allow-other-keys)
2351 (let* ((out (assoc-ref outputs "out"))
2352 (bin (string-append out "/bin"))
2353 (doc (string-append %output "/share/doc/" ,name "-" ,version)))
2354 (install-file "clipnotify" bin)
2355 (install-file "README.md" doc)
2358 (list ,(string-append "CC=" (cc-for-target)))
2359 #:tests? #f)) ; no test suite
2361 `(("libx11" ,libx11)
2362 ("libXfixes" ,libxfixes)))
2363 (home-page "https://github.com/cdown/clipnotify")
2364 (synopsis "Notify on new X clipboard events")
2365 (description "@command{clipnotify} is a simple program that, using the
2366 XFIXES extension to X11, waits until a new selection is available and then
2369 It was primarily designed for clipmenu, to avoid polling for new selections.
2371 @command{clipnotify} doesn't try to print anything about the contents of the
2372 selection, it just exits when it changes. This is intentional -- X11's
2373 selection API is verging on the insane, and there are plenty of others who
2374 have already lost their sanity to bring us xclip/xsel/etc. Use one of those
2375 tools to complement clipnotify.")
2376 (license license:public-domain)))
2378 (define-public clipmenu
2379 (let ((commit "bcbe7b144598db4a103f14e8408c4b7327d6d5e1")
2383 (version (string-append "6.0.1-"
2384 revision "." (string-take commit 7)))
2389 (url "https://github.com/cdown/clipmenu")
2391 (file-name (git-file-name name version))
2394 "0053j4i14lz5m2bzc5sch5id5ilr1bl196mp8fp0q8x74w3vavs9"))))
2395 (build-system gnu-build-system)
2398 (modify-phases %standard-phases
2402 (lambda* (#:key inputs outputs #:allow-other-keys)
2403 (let* ((out (assoc-ref outputs "out"))
2404 (bin (string-append out "/bin"))
2405 (doc (string-append %output "/share/doc/"
2406 ,name "-" ,version)))
2407 (install-file "clipdel" bin)
2408 (install-file "clipmenu" bin)
2409 (install-file "clipmenud" bin)
2410 (install-file "README.md" doc)
2412 (add-after 'install 'wrap-script
2413 (lambda* (#:key inputs outputs #:allow-other-keys)
2414 (let* ((out (assoc-ref outputs "out"))
2415 (clipnotify (assoc-ref inputs "clipnotify"))
2416 (coreutils-minimal (assoc-ref inputs "coreutils-minimal"))
2417 (gawk (assoc-ref inputs "gawk"))
2418 (util-linux (assoc-ref inputs "util-linux"))
2419 (xdotool (assoc-ref inputs "xdotool"))
2420 (xsel (assoc-ref inputs "xsel")))
2423 (wrap-script (string-append out "/bin/" prog)
2426 (string-append dir "/bin"))
2427 (list clipnotify coreutils-minimal
2428 gawk util-linux xdotool xsel)))))
2429 '("clipmenu" "clipmenud" "clipdel")))
2432 (lambda* (#:key inputs outputs #:allow-other-keys)
2433 ;; substitute a shebang appearing inside a string (the test
2434 ;; file writes this string to a temporary file):
2435 (substitute* "tests/test-clipmenu"
2436 (("#!/usr/bin/env bash")
2437 (string-append "#!" (which "bash"))))
2438 (invoke "tests/test-clipmenu")
2441 `(("clipnotify" ,clipnotify)
2442 ("coreutils-minimal" ,coreutils-minimal)
2444 ("guile" ,guile-3.0) ; for wrap-script
2445 ("util-linux" ,util-linux)
2446 ("xdotool" ,xdotool)
2448 (home-page "https://github.com/cdown/clipmenu")
2449 (synopsis "Simple clipboard manager using dmenu or rofi and xsel")
2450 (description "Start @command{clipmenud}, then run @command{clipmenu} to
2451 select something to put on the clipboard.
2453 When @command{clipmenud} detects changes to the clipboard contents, it writes
2454 them out to the cache directory. @command{clipmenu} reads the cache directory
2455 to find all available clips and launches @command{dmenu} (or @command{rofi},
2456 depending on the value of @code{CM_LAUNCHER}) to let the user select a clip.
2457 After selection, the clip is put onto the PRIMARY and CLIPBOARD X selections.")
2458 (license license:public-domain))))
2468 (url "https://github.com/qnikst/kbdd")
2469 (commit (string-append "v" version))))
2470 (file-name (git-file-name name version))
2473 "0qkq75grbd4wkx4nlvswgavpijk9ad0pzqyj89a0ayjsbsn36pqy"))))
2474 (build-system gnu-build-system)
2476 `(("autoconf" ,autoconf)
2477 ("automake" ,automake)
2478 ("glib" ,glib "bin")
2479 ("pkg-config" ,pkg-config)))
2481 `(("dbus-glib" ,dbus-glib)
2483 ("libx11" ,libx11)))
2484 (home-page "https://github.com/qnikst/kbdd")
2485 (synopsis "Per-window keyboard layout switching daemon for X")
2486 (description "@command{kbdd} is a simple keyboard layout switching
2487 program, which is designed to run in an X11 session and remember
2488 keyboard layouts on a per-window basis. That can be very handy for a
2489 user of a non-US keyboard who does not want to jump through layouts back
2490 and forth while typing in terminals (mostly in a latin alphabet) and
2491 some kind of chat (in native language).
2493 @command{kbdd} also supports D-Bus signals, which makes it possible to
2494 create layout indicator widgets.")
2495 (license license:bsd-2)))
2497 (define-public j4-dmenu-desktop
2499 (name "j4-dmenu-desktop")
2504 (url "https://github.com/enkore/j4-dmenu-desktop")
2505 (commit (string-append "r" version))))
2506 (file-name (git-file-name name version))
2509 "1gxpgifzy0hnpd0ymw3r32amzr32z3bgb90ldjzl438p6h1q0i26"))))
2510 (build-system cmake-build-system)
2512 `(("catch2" ,catch-framework2)))
2514 `(#:configure-flags '("-DWITH_GIT_CATCH=off")
2516 (modify-phases %standard-phases
2517 (add-after 'unpack 'find-catch
2519 (substitute* "CMakeLists.txt"
2520 (("PATH_SUFFIXES catch") "PATH_SUFFIXES catch2"))
2524 (invoke "./j4-dmenu-tests" "exclude:SearchPath/XDG_DATA_HOME"))))))
2525 (synopsis "Fast desktop menu")
2527 "j4-dmenu-desktop is a replacement for i3-dmenu-desktop. Its purpose
2528 is to find @file{.desktop} files and offer you a menu to start an application
2529 using @command{dmenu}.")
2530 (home-page "https://github.com/enkore/j4-dmenu-desktop")
2531 (license license:gpl3+)))
2540 (url "https://hg.sr.ht/~scoopta/wofi")
2541 (changeset (string-append "v" version))))
2542 (file-name (git-file-name name version))
2545 "0glpb2gf5n78s01z3rn614ak8ibxhfr824gy6xlljbxclgds264i"))))
2546 (build-system meson-build-system)
2548 `(#:glib-or-gtk? #t))
2550 `(("pkg-config" ,pkg-config)))
2553 ("wayland" ,wayland)))
2554 (synopsis "Launcher/menu program for wayland")
2556 "Wofi is a launcher/menu program for wlroots based wayland compositors
2557 such as sway, similar to @command{rofi}.")
2558 (home-page "https://hg.sr.ht/~scoopta/wofi")
2559 (license license:gpl3+)))
2568 (url (string-append "https://github.com/jceb/dex"))
2569 (commit (string-append "v" version))))
2572 "03aapcywnz4kl548cygpi25m8adwbmqlmwgxa66v4156ax9dqs86"))
2573 (file-name (git-file-name name version))))
2574 (build-system gnu-build-system)
2576 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2578 (modify-phases %standard-phases
2579 (delete 'configure))
2582 `(("python", python)))
2584 `(("python-sphinx" ,python-sphinx)))
2585 (home-page "https://github.com/jceb/dex")
2586 (synopsis "Execute DesktopEntry files")
2588 "@command{dex}, @dfn{DesktopEntry Execution}, is a program to generate
2589 and execute @file{.desktop} files of the Application type.")
2590 (license license:gpl3+)))
2599 (url "https://github.com/Earnestly/sx")
2601 (file-name (git-file-name name version))
2604 "0p24ghp1ygvyc2hv81byhxax7491yhcc5priq5ldv07nzl7akagc"))))
2605 (build-system gnu-build-system)
2607 '(#:tests? #f ; no tests
2609 (let ((out (assoc-ref %outputs "out")))
2610 (list (string-append "PREFIX=" out)))
2612 (modify-phases %standard-phases
2613 ;; no configure script
2614 (delete 'configure))))
2616 `(("xauth" ,xauth)))
2617 (home-page "https://github.com/Earnestly/sx")
2618 (synopsis "Start an xorg server")
2620 "@command{sx} is a simple alternative to both @command{xinit} and
2621 @command{startx} for starting an Xorg server.")
2622 (license license:x11)))
2624 (define-public hsetroot
2628 (home-page "https://github.com/himdel/hsetroot")
2631 (file-name (git-file-name name version))
2637 "1jbk5hlxm48zmjzkaq5946s58rqwg1v1ds2sdyd2ba029hmvr722"))))
2638 (build-system gnu-build-system)
2644 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2646 (modify-phases %standard-phases
2648 (add-before 'install 'mkdir-install-path
2649 (lambda* (#:key outputs #:allow-other-keys)
2650 (let ((out (assoc-ref outputs "out")))
2651 (mkdir-p (string-append out "/bin"))))))))
2653 `(("libx11" ,libx11)
2655 ("libxinerama" ,libxinerama)))
2657 `(("pkg-config" ,pkg-config)))
2658 (synopsis "Imlib2-based wallpaper changer")
2660 "The @command{hsetroot} command composes wallpapers for X.
2661 This package is the fork of hsetroot by Hyriand.")
2662 (license license:gpl2+)))