1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
5 ;;; Copyright © 2014, 2015, 2016 Alex Kost <alezost@gmail.com>
6 ;;; Copyright © 2013, 2015, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
7 ;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
8 ;;; Copyright © 2015 Alexander I.Grafov <grafov@gmail.com>
9 ;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
10 ;;; Copyright © 2015 xd1le <elisp.vim@gmail.com>
11 ;;; Copyright © 2015 Florian Paul Schmidt <mista.tapas@gmx.net>
12 ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
13 ;;; Copyright © 2016, 2018 Ricardo Wurmus <rekado@elephly.net>
14 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
15 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
16 ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
17 ;;; Copyright © 2016, 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
18 ;;; Copyright © 2016 Petter <petter@mykolab.ch>
19 ;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com>
20 ;;; Copyright © 2017 Nikita <nikita@n0.is>
21 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
22 ;;; Copyright © 2017 Marek Benc <dusxmt@gmx.com>
23 ;;; Copyright © 2017 Mike Gerwitz <mtg@gnu.org>
24 ;;; Copyright © 2018 Thomas Sigurdsen <tonton@riseup.net>
25 ;;; Copyright © 2018, 2019 Rutger Helling <rhelling@mykolab.com>
26 ;;; Copyright © 2018, 2019 Pierre Neidhardt <mail@ambrevar.xyz>
27 ;;; Copyright © 2018 Nam Nguyen <namn@berkeley.edu>
28 ;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
29 ;;; Copyright © 2019 Kyle Andrews <kyle.c.andrews@gmail.com>
30 ;;; Copyright © 2019, 2020 Josh Holland <josh@inv.alid.pw>
31 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
32 ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
33 ;;; Copyright © 2020 David Wilson <david@daviwil.com>
34 ;;; Copyright © 2020 Ivan Vilata i Balaguer <ivan@selidor.net>
35 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
36 ;;; Copyright © 2020 Damien Cassou <damien@cassou.me>
37 ;;; Copyright © 2020 John Soo <jsoo1@asu.edu>
38 ;;; Copyright © 2020 Boris A. Dekshteyn <boris.dekshteyn@gmail.com>
39 ;;; Copyright © 2020 Alex McGrath <amk@amk.ie>
40 ;;; Copyright © 2020 Ivan Kozlov <kanichos@yandex.ru>
41 ;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
42 ;;; Copyright © 2020 Gabriel Arazas <foo.dogsquared@gmail.com>
43 ;;; Copyright © 2020 James Smith <jsubuntuxp@disroot.org>
44 ;;; Copyright © 2020 B. Wilson <elaexuotee@wilsonb.com>
46 ;;; This file is part of GNU Guix.
48 ;;; GNU Guix is free software; you can redistribute it and/or modify it
49 ;;; under the terms of the GNU General Public License as published by
50 ;;; the Free Software Foundation; either version 3 of the License, or (at
51 ;;; your option) any later version.
53 ;;; GNU Guix is distributed in the hope that it will be useful, but
54 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
55 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56 ;;; GNU General Public License for more details.
58 ;;; You should have received a copy of the GNU General Public License
59 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
61 (define-module (gnu packages xdisorg)
62 #:use-module ((guix licenses) #:prefix license:)
63 #:use-module (guix packages)
64 #:use-module (guix download)
65 #:use-module (guix git-download)
66 #:use-module (guix hg-download)
67 #:use-module (guix utils)
68 #:use-module (guix build-system cmake)
69 #:use-module (guix build-system gnu)
70 #:use-module (guix build-system glib-or-gtk)
71 #:use-module (guix build-system meson)
72 #:use-module (guix build-system python)
73 #:use-module (guix build-system scons)
74 #:use-module (gnu packages)
75 #:use-module (gnu packages documentation)
76 #:use-module (gnu packages admin)
77 #:use-module (gnu packages base)
78 #:use-module (gnu packages algebra)
79 #:use-module (gnu packages autotools)
80 #:use-module (gnu packages check)
81 #:use-module (gnu packages compression)
82 #:use-module (gnu packages image)
83 #:use-module (gnu packages pkg-config)
84 #:use-module (gnu packages flex)
85 #:use-module (gnu packages freedesktop)
86 #:use-module (gnu packages gawk)
87 #:use-module (gnu packages gettext)
88 #:use-module (gnu packages gl)
89 #:use-module (gnu packages glib)
90 #:use-module (gnu packages gnome)
91 #:use-module (gnu packages haskell-xyz)
92 #:use-module (gnu packages icu4c)
93 #:use-module (gnu packages man)
94 #:use-module (gnu packages maths)
95 #:use-module (gnu packages m4)
96 #:use-module (gnu packages ncurses)
97 #:use-module (gnu packages perl)
98 #:use-module (gnu packages python)
99 #:use-module (gnu packages python-xyz)
100 #:use-module (gnu packages linux)
101 #:use-module (gnu packages gl)
102 #:use-module (gnu packages guile)
103 #:use-module (gnu packages xml)
104 #:use-module (gnu packages gtk)
105 #:use-module (gnu packages qt)
106 #:use-module (gnu packages xorg)
107 #:use-module (gnu packages fontutils)
108 #:use-module (gnu packages bison)
109 #:use-module (gnu packages sphinx)
110 #:use-module (ice-9 match))
112 ;; packages outside the x.org system proper
114 (define-public xtitle
122 (url "https://github.com/baskerville/xtitle")
124 (file-name (git-file-name name version))
126 (base32 "0f5070k2bwarghl1vq886pl52xck1x5p7x3qhlfchsc2y3dcqms9"))))
127 (build-system gnu-build-system)
130 ("xcb-util" ,xcb-util)
131 ("xcb-util-wm" ,xcb-util-wm)))
133 `(#:tests? #f ;no test suite
134 #:make-flags (list (string-append "CC=" ,(cc-for-target))
135 (string-append "PREFIX=" %output))
136 #:phases (modify-phases %standard-phases (delete 'configure))))
137 (home-page "https://github.com/baskerville/xtitle")
138 (synopsis "Output X window titles")
140 "If arguments are given, @code{xtitle} outputs the title of each
141 specified window, otherwise it outputs the title of the active window. With
142 @emph{snoop} mode on, it continuously monitors the specified windows and
143 outputs when titles change.")
144 (license license:unlicense)))
146 (define-public arandr
152 (uri (string-append "https://christian.amsuess.com/tools/arandr"
153 "/files/arandr-" version ".tar.gz"))
156 "135q0llvm077jil2fr92ssw3p095m4r8jfj0lc5rr3m71n4srj6v"))
157 (modules '((guix build utils)))
160 ;; Do not record a timestamp and file name in gzipped man
161 ;; pages (this is equivalent to 'gzip --no-name'.)
162 (substitute* "setup.py"
163 (("gzip\\.open\\(gzfile, 'w', 9\\)")
164 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)"))
166 (build-system python-build-system)
169 (modify-phases %standard-phases
170 (add-before 'build 'configure
171 (lambda* (#:key inputs #:allow-other-keys)
172 (substitute* "screenlayout/xrandr.py"
173 (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr")
176 (add-after 'install 'wrap-gi-typelib
177 (lambda* (#:key inputs outputs #:allow-other-keys)
178 (let ((out (assoc-ref outputs "out"))
179 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
180 (wrap-program (string-append out "/bin/arandr")
181 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
183 #:tests? #f)) ;no tests
184 (inputs `(("gtk+" ,gtk+)
185 ("pycairo" ,python-pycairo)
186 ("pygobject" ,python-pygobject)
188 (native-inputs `(("gettext" ,gettext-minimal)
189 ("python-docutils" ,python-docutils)))
190 (home-page "https://christian.amsuess.com/tools/arandr/")
191 (synopsis "Another RandR graphical user interface")
192 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
193 (description "ARandR is designed to provide a simple visual front end for
194 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
195 shown graphically and can be changed in a drag-and-drop way. Configurations
196 are saved as executable shell scripts which can be loaded without using this
198 (license license:gpl3+)))
200 (define-public autorandr
204 (home-page "https://github.com/phillipberndt/autorandr")
211 (file-name (git-file-name name version))
213 (base32 "0msw9b1hdy3gbq9w5d04mfizhyirz1c648x84mlcbzl8salm7vpg"))))
214 (build-system python-build-system)
216 `(("pkg-config" ,pkg-config)))
222 (modify-phases %standard-phases
223 (add-before 'build 'configure
224 (lambda* (#:key inputs outputs #:allow-other-keys)
225 (let ((xrandr (string-append (assoc-ref inputs "xrandr")
227 (substitute* "contrib/etc/xdg/autostart/autorandr.desktop"
228 (("/usr") (assoc-ref outputs "out")))
229 (substitute* "autorandr.py"
230 (("popen\\(\"xrandr") (string-append "popen(\"" xrandr))
231 (("\\[\"xrandr") (string-append "[\"" xrandr)))
232 (substitute* "contrib/autorandr_launcher/autorandr_launcher.c"
233 (("/usr/bin/autorandr")
234 (string-append (assoc-ref outputs "out") "/bin/autorandr")))
237 (add-after 'install 'install-contrib
238 (lambda* (#:key outputs #:allow-other-keys)
240 (string-append "DESTDIR=" (assoc-ref outputs "out"))
242 "BASH_COMPLETIONS_DIR=etc/bash_completion.d"
244 "TARGETS=autorandr launcher manpage bash_completion"))))))
245 (synopsis "Auto-detect connected displays and load appropriate setup")
246 (description "Autorandr wraps around xrandr to help with X11
247 multi-screen configuration management. It allows the user to create profiles
248 for various multi-screen setups. Autorandr automatically detects the profiles
249 that can be activated based on the connected hardware. Hook scripts can be
250 used to further tweak the behaviour of the different profiles.")
251 (license license:gpl3+)))
253 (define-public bemenu
261 (url "https://github.com/Cloudef/bemenu")
263 (file-name (git-file-name name version))
265 (base32 "1fjcs9d3533ay3nz79cx3c0lmy2chgragr2lhsy0xl2ckr0iins0"))))
266 (build-system gnu-build-system)
269 #:make-flags (list "CC=gcc"
271 (string-append "LDFLAGS=-Wl,-rpath="
272 (assoc-ref %outputs "out") "/lib")
273 (string-append "PREFIX=" (assoc-ref %outputs "out")))
275 (modify-phases %standard-phases
276 (delete 'configure))))
280 ("libxkbcomon" ,libxkbcommon)
281 ("libxinerama" ,libxinerama)
285 ("wayland-protocols" ,wayland-protocols)))
287 `(("doxygen" ,doxygen)
288 ("pkg-config" ,pkg-config)))
289 (home-page "https://github.com/Cloudef/bemenu")
290 (synopsis "Dynamic menu library and client program inspired by dmenu")
292 "bemenu is a dynamic menu which allows the user to flexibly select from a
293 list of options (usually programs to launch). It renders the menu graphically
294 with X11 or Wayland, or in a text terminal with ncurses.")
295 (license (list license:gpl3+ ; client program[s] and other sources
296 license:lgpl3+)))) ; library and bindings
305 (url "https://github.com/hluk/CopyQ")
306 (commit (string-append "v" version))))
307 (file-name (git-file-name name version))
310 "0wlwq9xg8rzsbj0b29z358k4mbrqy04iraa8x0p26pa95yskgcma"))))
311 (build-system cmake-build-system)
313 `(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release")
314 #:tests? #f)) ; Test suite is a rather manual process.
317 ("qtscript" ,qtscript)
319 ("qtx11extras" ,qtx11extras)))
320 (synopsis "Clipboard manager with advanced features")
321 (description "CopyQ is clipboard manager with editing and scripting
322 features. CopyQ monitors system clipboard and saves its content in customized
323 tabs. Saved clipboard can be later copied and pasted directly into any
325 (home-page "https://hluk.github.io/CopyQ/")
326 (license license:gpl3+)))
336 (url "https://github.com/astrand/xclip")
338 (file-name (git-file-name name version))
341 "0q0hmvcjlv8arhh1pzhja2wglyj6n7z209jnpnzd281kqqv4czcs"))))
342 (build-system gnu-build-system)
344 '(#:tests? #f)) ;there is no test suite
346 `(("autoconf" ,autoconf)
347 ("automake" ,automake)))
348 (inputs `(("libxmu" ,libxmu)
350 (home-page "https://github.com/astrand/xclip")
351 (synopsis "Command line interface to X11 clipboard")
352 (description "Xclip is a command line interface to the X11 clipboard. It
353 can also be used for copying files, as an alternative to sftp/scp, thus
354 avoiding password prompts when X11 forwarding has already been setup.")
355 (license license:gpl2+)))
357 (define-public libxkbcommon
359 (name "libxkbcommon")
363 (uri (string-append "https://xkbcommon.org/download/libxkbcommon-"
367 "13bcdf2xpjxwbghas0cr448z89qqki2ssgfgswc257y9859v4s5b"))))
368 (build-system meson-build-system)
374 ("wayland-protocols" ,wayland-protocols)
375 ("xkeyboard-config" ,xkeyboard-config)))
379 ("pkg-config" ,pkg-config)))
382 (list (string-append "-Dxkb-config-root="
383 (assoc-ref %build-inputs "xkeyboard-config")
385 (string-append "-Dx-locale-root="
386 (assoc-ref %build-inputs "libx11")
387 "/share/X11/locale"))))
388 (home-page "https://xkbcommon.org/")
389 (synopsis "Library to handle keyboard descriptions")
390 (description "Xkbcommon is a library to handle keyboard descriptions,
391 including loading them from disk, parsing them and handling their
392 state. It is mainly meant for client toolkits, window systems, and other
393 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
394 Clutter, and more. Despite the name, it is not currently used by anything
396 (license (license:x11-style "file://COPYING"
397 "See 'COPYING' in the distribution."))
398 (properties '((cpe-name . "xkbcommon")))))
400 (define-public libfakekey
408 (url "https://git.yoctoproject.org/git/libfakekey")
410 (file-name (git-file-name name version))
412 (base32 "1jw1d4wc1ysiijirc7apnz3sryrxbl9akgb92mh06dvfkz2nblj0"))))
413 (build-system gnu-build-system)
415 `(#:make-flags (list "AM_LDFLAGS=-lX11")
417 (modify-phases %standard-phases
419 ;; ./autogen.sh calls ./configure before shebangs have been patched.
421 (invoke "autoreconf" "-vfi"))))))
423 `(("pkg-config" ,pkg-config)
425 ;; For bootstrapping from git.
426 ("autoconf" ,autoconf)
427 ("automake" ,automake)
428 ("libtool" ,libtool)))
430 `(("libxtst" ,libxtst)
432 (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox")
433 (synopsis "X virtual keyboard library")
435 "Libfakekey is a virtual keyboard library for X.")
436 (license license:gpl2)))
438 (define-public xdotool
441 (version "3.20160805.1")
446 "https://github.com/jordansissel/xdotool/releases/download/v"
447 version "/xdotool-" version ".tar.gz"))
450 "1a6c1zr86zb53352yxv104l76l8x21gfl2bgw6h21iphxpv5zgim"))))
451 (build-system gnu-build-system)
453 '(#:tests? #f ; Test suite requires a lot of black magic
455 (modify-phases %standard-phases
457 (lambda* (#:key outputs #:allow-other-keys #:rest args)
458 (let ((out (assoc-ref outputs "out")))
459 (mkdir-p (string-append out "/lib"))
460 (setenv "PREFIX" out)
461 (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib"))
464 (native-inputs `(("perl" ,perl))) ; for pod2man
465 (inputs `(("libx11" ,libx11)
468 ("libxinerama" ,libxinerama)
470 ("libxkbcommon" ,libxkbcommon)))
471 (home-page "https://www.semicomplete.com/projects/xdotool/")
472 (synopsis "Fake keyboard/mouse input, window management, and more")
473 (description "Xdotool lets you simulate keyboard input and mouse activity,
474 move and resize windows, etc. It does this using X11's XTEST extension and
475 other Xlib functions. Additionally, you can search for windows and move,
476 resize, hide, and modify window properties like the title. If your window
477 manager supports it, you can use xdotool to switch desktops, move windows
478 between desktops, and change the number of desktops.")
479 (license license:bsd-3)))
488 (uri (string-append "https://www.x.org/releases/individual/app/"
489 name "-" version ".tar.bz2"))
491 (base32 "0lq5j7fryx1wn998jq6h3icz1h6pqrsbs3adskjzjyhn5l6yrg2p"))))
492 (build-system gnu-build-system)
494 `(("libxext" ,libxext)
496 ("libxrender" ,libxrender)
499 `(("pkg-config" ,pkg-config)))
500 (home-page "https://www.x.org/") ; no dedicated Xeyes page exists
501 (synopsis "Follow-the-mouse X demo")
502 (description "Xeyes is a demo program for x.org. It shows eyes
503 following the mouse.")
504 (license license:x11)))
507 (define-public pixman
516 "https://www.cairographics.org/releases/pixman-"
519 (base32 "1z13n96m7x91j25qq9wlkxsbq04wfwjhw66ir17frna06zn0s83d"))
522 "pixman-CVE-2016-5296.patch"))))
523 (build-system gnu-build-system)
525 '(#:configure-flags '("--disable-static")))
527 `(("pkg-config" ,pkg-config)))
531 (synopsis "Low-level pixel manipulation library")
532 (description "Pixman is a low-level software library for pixel
533 manipulation, providing features such as image compositing and trapezoid
535 (home-page "http://www.pixman.org/")
536 (license license:expat)))
538 (define-public libdrm
545 "https://dri.freedesktop.org/libdrm/libdrm-"
549 "0nx0bd9dhymdsd99v4ifib77yjirkvkxf5hzdkbr7qr8dhrzkjwb"))))
550 (build-system meson-build-system)
553 '(,@(match (%current-system)
554 ((or "armhf-linux" "aarch64-linux")
559 "-Dfreedreno-kgsl=true"))
562 #:phases (modify-phases %standard-phases
565 (invoke "meson" "test" "--timeout-multiplier" "5"))))))
567 `(("libpciaccess" ,libpciaccess)))
569 `(("pkg-config" ,pkg-config)))
570 (home-page "https://dri.freedesktop.org/wiki/")
571 (synopsis "Direct rendering userspace library")
572 (description "The Direct Rendering Infrastructure, also known as the DRI,
573 is a framework for allowing direct access to graphics hardware under the
574 X Window System in a safe and efficient manner. It includes changes to the
575 X server, to several client libraries, and to the kernel (DRM, Direct
576 Rendering Manager). The most important use for the DRI is to create fast
577 OpenGL implementations providing hardware acceleration for Mesa.
578 Several 3D accelerated drivers have been written to the DRI specification,
579 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
581 (license license:x11)))
592 "http://bitmath.org/code/mtdev/mtdev-"
596 "1q700h9dqcm3zl6c3gj0qxxjcx6ibw2c51wjijydhwdcm26v5mqm"))))
597 (build-system gnu-build-system)
598 (arguments '(#:configure-flags '("--disable-static")))
599 (home-page "http://bitmath.org/code/mtdev/")
600 (synopsis "Multitouch protocol translation library")
601 (description "Mtdev is a stand-alone library which transforms all
602 variants of kernel MT events to the slotted type B protocol. The events
603 put into mtdev may be from any MT device, specifically type A without
604 contact tracking, type A with contact tracking, or type B with contact
606 (license license:x11)))
608 (define-public startup-notification
610 (name "startup-notification")
615 (uri (string-append "https://www.freedesktop.org/software/" name
616 "/releases/" name "-" version ".tar.gz"))
619 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
620 (build-system gnu-build-system)
621 (native-inputs `(("pkg-config" ,pkg-config)))
624 ("xcb-util" ,xcb-util)))
625 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
626 (synopsis "Application startup notification and feedback library")
628 "Startup-notification contains a reference implementation of the startup
629 notification protocol. The reference implementation is mostly under an X Window
630 System style license, and has no special dependencies.")
631 ;; Most of the code is provided under x11 license.
632 (license license:lgpl2.0+)))
634 (define-public wmctrl
641 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
645 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
646 (patches (search-patches "wmctrl-64-fix.patch"))))
647 (build-system gnu-build-system)
650 (list (string-append "--mandir="
651 (assoc-ref %outputs "out")
654 `(("pkg-config" ,pkg-config)))
659 (home-page "http://tomas.styblo.name/wmctrl/")
660 (synopsis "Command-line tool to control X window managers")
662 "Wmctrl interacts with an X window manager that is compatible
663 with the EWMH/NetWM specification. It can query the window manager for
664 information, and request for certain window management actions (resize and
665 move windows, switch between desktops, etc.).")
666 (license license:gpl2+)))
677 (url "https://github.com/resurrecting-open-source-projects/scrot")
679 (file-name (git-file-name name version))
682 "12xq6glg70icwsvbnfw9gm4dahlbnrc7b6adpd0mpf89h4sj2gds"))))
683 (build-system gnu-build-system)
685 `(("autoconf" ,autoconf)
686 ("autoconf-archive" ,autoconf-archive)
687 ("automake" ,automake)))
691 ("libXcursor" ,libxcursor)
692 ("libxcomposite" ,libxcomposite)
693 ("libXfixes" ,libxfixes)))
694 (home-page "https://github.com/resurrecting-open-source-projects/scrot")
695 (synopsis "Command-line screen capture utility for X Window System")
697 "Scrot saves a screenshot of a full screen, a window or a part
698 of the screen selected by mouse.")
699 ;; This license removes a clause about X Consortium from the original
701 (license (license:x11-style "file://COPYING"
702 "See 'COPYING' in the distribution."))))
711 (url "https://github.com/naelstrof/slop")
712 (commit (string-append "v" version))))
713 (file-name (git-file-name name version))
716 "1k8xxb4rj2fylr4vj16yvsf73cyywliz9cy78pl4ibmi03jhg837"))))
717 (build-system cmake-build-system)
719 '(#:tests? #f)) ; no "check" target
725 ("libxrender" ,libxrender)
727 (home-page "https://github.com/naelstrof/slop")
728 (synopsis "Select a region and print its bounds to stdout")
730 "slop (Select Operation) is a tool that queries for a selection from a
731 user and prints the region to stdout. It grabs the mouse and turns it into a
732 crosshair, lets the user click and drag to make a selection (or click on a
733 window) while drawing a pretty box around it, then finally prints the
734 selection's dimensions to stdout.")
735 (license license:gpl3+)))
744 (url "https://github.com/naelstrof/maim")
745 (commit (string-append "v" version))))
746 (file-name (git-file-name name version))
749 "181mjjrjb9fs1ficcv9miqbk94v95j1yli7fjp2dj514g7nj9l3x"))))
750 (build-system cmake-build-system)
752 '(#:tests? #f)) ; no "check" target
755 ("libjpeg" ,libjpeg-turbo)
757 ("libxcomposite" ,libxcomposite)
758 ("libxfixes" ,libxfixes)
759 ("libxrandr" ,libxrandr)
763 (home-page "https://github.com/naelstrof/maim")
764 (synopsis "Screenshot utility for X Window System")
766 "maim (Make Image) is a tool that takes screenshots of your desktop and
767 saves it in any format. Along with a full screen, it allows you to capture a
768 predefined region or a particular window. Also, it makes it possible to
769 include cursor in the resulting image.")
770 (license license:gpl3+)))
772 (define-public unclutter
779 "http://ftp.x.org/contrib/utilities/unclutter-"
783 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
784 (build-system gnu-build-system)
786 '(#:tests? #f ; no check target
788 (modify-phases %standard-phases
791 (lambda* (#:key inputs outputs #:allow-other-keys)
792 (let* ((out (assoc-ref outputs "out"))
793 (bin (string-append out "/bin"))
794 (man1 (string-append out "/share/man/man1")))
797 (invoke "make" "install" "install.man"
798 (string-append "BINDIR=" bin)
799 (string-append "MANDIR=" man1))))))))
800 (inputs `(("libx11" ,libx11)))
801 (home-page "http://ftp.x.org/contrib/utilities/")
802 (synopsis "Hide idle mouse cursor")
804 "Unclutter is a program which runs permanently in the background of an
805 X11 session. It checks on the X11 pointer (cursor) position every few
806 seconds, and when it finds it has not moved (and no buttons are pressed
807 on the mouse, and the cursor is not in the root window) it creates a
808 small sub-window as a child of the window the cursor is in. The new
809 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
810 invisible cursor. This allows you to see all the text in an xterm or
811 xedit, for example. The human factors crowd would agree it should make
812 things less distracting.")
813 (license license:public-domain)))
815 (define-public xautomation
822 (uri (string-append "https://www.hoopajoo.net/static/projects/"
823 "xautomation-" version ".tar.gz"))
827 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
828 (build-system gnu-build-system)
833 ("libxtst" ,libxtst)))
835 `(("xorgproto" ,xorgproto)))
836 (synopsis "Tools to automate tasks in X such as detecting on screen images")
838 "Xautomation can control X from the command line for scripts, and
839 do visual scraping to find things on the screen. The control interface
840 allows mouse movement, clicking, button up/down, key up/down, etc, and
841 uses the XTest extension so you don't have the annoying problems that
842 xse has when apps ignore sent events. The visgrep program can find
843 images inside of images and reports the coordinates, allowing programs
844 to find buttons, etc, on the screen to click on.")
845 (home-page "https://www.hoopajoo.net/projects/xautomation.html")
846 (license license:gpl2+)))
848 (define-public xbanish
852 (home-page "https://github.com/jcs/xbanish")
855 (uri (git-reference (url home-page)
856 (commit (string-append "v" version))))
857 (file-name (git-file-name name version))
860 "0ic5f7zgc32p5g1wxas9y5h8dhik0pvsa8wmn6skdry56gw9vg9q"))))
861 (build-system gnu-build-system)
863 `(#:tests? #f ; no tests
864 #:make-flags (list "CC=gcc"
865 (string-append "PREFIX=" (assoc-ref %outputs "out")))
866 #:phases (modify-phases %standard-phases
867 (delete 'configure)))) ; no configure script
870 ("libxfixes" ,libxfixes)
873 (synopsis "Banish the mouse cursor")
875 "@command{xbanish} hides the mouse cursor when you start typing, and
876 shows it again when the mouse cursor moves or a mouse button is pressed.")
877 (license license:bsd-3)))
879 (define-public xlockmore
885 (uri (list (string-append "http://sillycycle.com/xlock/"
886 "xlockmore-" version ".tar.xz")
887 ;; Previous releases are moved to a subdirectory.
888 (string-append "http://sillycycle.com/xlock/"
890 "xlockmore-" version ".tar.xz")))
893 "0wdb7gpyjw3sigmhiplgg1bqxz6wipr0c3n9492x2a18cv1saxjr"))))
894 (build-system gnu-build-system)
896 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
897 (assoc-ref %outputs "out")
898 "/lib/X11/app-defaults"))
899 #:tests? #f)) ;no such thing as a test suite
904 ("linux-pam" ,linux-pam)))
905 (home-page "https://sillycycle.com/xlockmore.html")
906 (synopsis "Screen locker for the X Window System")
908 "XLockMore is a classic screen locker and screen saver for the
910 (license (license:non-copyleft #f "See xlock.c.")
911 ))) ; + GPLv2 in modes/glx/biof.c.
920 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
921 name "-" version ".tar.gz"))
924 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
925 (build-system gnu-build-system)
928 (list (string-append "--mandir=" %output "/share/man"))))
933 ("libxinerama" ,libxinerama)))
934 (home-page "https://sourceforge.net/projects/libxosd/")
935 (synopsis "X On Screen Display")
937 "XOSD provides a C library and a simple utility (osd_cat) for displaying
938 transparent text on your screen.")
939 (license license:gpl2+)))
941 (define-public xbindkeys
947 ;; Download from the savannah mirror list fails
949 "http://www.nongnu.org/xbindkeys/xbindkeys-"
954 "1wl2vc5alisiwyk8m07y1ryq8w3ll9ym83j27g4apm4ixjl8d6x2"))))
955 (build-system gnu-build-system)
957 `(("pkg-config" ,pkg-config)))
960 ("guile" ,guile-2.2)))
961 (home-page "https://www.nongnu.org/xbindkeys/")
962 (synopsis "Associate a combination of keys with a shell command")
964 "XBindKeys is a program that allows you to launch shell commands with
965 your keyboard or your mouse under the X Window System. It links commands to
966 keys or mouse buttons, using a configuration file. It's independent of the
967 window manager and can capture all keyboard keys (ex: Power, Wake...). It
968 optionally supports a Guile-based configuration file layout, which enables you
969 to access all XBindKeys internals, so you can have key combinations, double
970 clicks or timed double clicks take actions. Also all functions that work in
971 Guile will work for XBindKeys.")
972 (license license:gpl2+)))
982 (url "https://github.com/baskerville/sxhkd")
984 (file-name (git-file-name name version))
986 (base32 "1winwzdy9yxvxnrv8gqpigl9y0c2px27mnms62bdilp4x6llrs9r"))))
987 (build-system gnu-build-system)
989 `(("asciidoc" ,asciidoc)
991 ("xcb-util" ,xcb-util)
992 ("xcb-util-keysyms" ,xcb-util-keysyms)
993 ("xcb-util-wm" ,xcb-util-wm)))
995 `(#:phases (modify-phases %standard-phases (delete 'configure))
996 #:tests? #f ; no check target
999 (string-append "PREFIX=" %output)
1000 ;; Keep the documentation where the build system installs LICENSE.
1001 (string-append "DOCPREFIX=" %output
1002 "/share/doc/" ,name "-" ,version))))
1003 (home-page "https://github.com/baskerville/sxhkd")
1004 (synopsis "Simple X hotkey daemon")
1005 (description "sxhkd is a simple X hotkey daemon with a powerful and
1006 compact configuration syntax.")
1007 (license license:bsd-2)))
1009 (define-public rxvt-unicode
1011 (name "rxvt-unicode")
1015 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
1016 name "-" version ".tar.bz2"))
1017 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
1020 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
1021 (build-system gnu-build-system)
1023 ;; This sets the destination when installing the necessary terminal
1024 ;; capability data, which are not provided by 'ncurses'. See
1025 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
1026 `(#:configure-flags (list "--enable-256-color")
1027 #:make-flags (list (string-append "TERMINFO="
1028 (assoc-ref %outputs "out")
1031 (modify-phases %standard-phases
1032 (add-after 'install 'install-desktop-urxvt
1033 (lambda* (#:key outputs #:allow-other-keys)
1034 (let* ((output (assoc-ref outputs "out"))
1035 (desktop (string-append output "/share/applications")))
1037 (with-output-to-file
1038 (string-append desktop "/urxvt.desktop")
1045 TryExec=~@*~a/bin/urxvt~@
1050 (add-after 'install 'install-desktop-urxvtc
1051 (lambda* (#:key outputs #:allow-other-keys)
1052 (let* ((output (assoc-ref outputs "out"))
1053 (desktop (string-append output "/share/applications")))
1055 (with-output-to-file
1056 (string-append desktop "/urxvtc.desktop")
1060 Name=rxvt-unicode (client)~@
1061 Comment=Rxvt clone with XFT and unicode support~@
1062 Exec=~a/bin/urxvtc~@
1063 TryExec=~@*~a/bin/urxvtc~@
1069 `(("libXft" ,libxft)
1070 ("libX11" ,libx11)))
1072 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
1074 ("pkg-config" ,pkg-config)))
1075 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
1076 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
1077 (native-search-paths
1078 (list (search-path-specification
1079 (variable "TERMINFO_DIRS")
1080 (files '("share/terminfo")))))
1081 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
1082 (synopsis "Rxvt clone with XFT and unicode support")
1083 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
1084 intended as an xterm replacement for users who do not require features such as
1085 Tektronix 4014 emulation and toolkit-style configurability. It supports
1086 unicode, XFT and may be extended with Perl plugins. It also comes with a
1087 client/daemon pair that lets you open any number of terminal windows from
1088 within a single process.")
1089 (license license:gpl3+)))
1091 (define-public xcape
1098 (url "https://github.com/alols/xcape")
1099 (commit (string-append "v" version))))
1100 (file-name (git-file-name name version))
1103 "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm"))))
1104 (build-system gnu-build-system)
1106 `(#:tests? #f ; no check target
1107 ;; no configure script
1108 #:phases (modify-phases %standard-phases (delete 'configure))
1109 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1110 "MANDIR=/share/man/man1"
1113 `(("libxtst" ,libxtst)
1114 ("libx11" ,libx11)))
1116 `(("pkg-config" ,pkg-config)))
1117 (home-page "https://github.com/alols/xcape")
1118 (synopsis "Use a modifier key in X.org as another key")
1120 "This utility for X.org uses a modifier key as another key when
1121 pressed and released on its own. The default behaviour is to generate the
1122 Escape key when Left Control is pressed and released on its own.")
1123 (license license:gpl3+)))
1125 (define-public libwacom
1132 "https://github.com/linuxwacom/libwacom/releases/download/"
1133 "libwacom-" version "/libwacom-" version ".tar.bz2"))
1136 "1a5ffxyhl6crspybcfsx5ribgrgkzwfl5w9y32slxbgjwczb473h"))))
1137 (build-system glib-or-gtk-build-system)
1139 `(#:configure-flags '("--disable-static")))
1141 `(("pkg-config" ,pkg-config)))
1144 ("libgudev" ,libgudev)
1146 ("libxml2" ,libxml2)))
1148 ;; libwacom includes header files that include GLib, and libinput uses
1149 ;; those header files.
1151 (home-page "https://linuxwacom.github.io/")
1152 (synopsis "Helper library for Wacom tablet settings")
1154 "Libwacom is a library to help implement Wacom tablet settings. It is
1155 intended to be used by client-programs that need model identification. It is
1156 already being used by the gnome-settings-daemon and the GNOME Control Center
1157 Wacom tablet applet.")
1158 (license license:x11)))
1160 (define-public xf86-input-wacom
1162 (name "xf86-input-wacom")
1168 "https://github.com/linuxwacom/xf86-input-wacom/releases/download/"
1169 "xf86-input-wacom-" version "/"
1170 "xf86-input-wacom-" version ".tar.bz2"))
1172 (base32 "11qk58az6qwii774ga45h5yqzipwn56f0d74kdbajqdv45p85gqj"))))
1175 (list (string-append "--with-sdkdir="
1176 (assoc-ref %outputs "out")
1178 (string-append "--with-xorg-conf-dir="
1179 (assoc-ref %outputs "out")
1180 "/share/X11/xorg.conf.d"))))
1181 (build-system gnu-build-system)
1183 `(("pkg-config" ,pkg-config)))
1185 `(("xorg-server" ,xorg-server)
1186 ("libxrandr" ,libxrandr)
1187 ("libxinerama" ,libxinerama)
1190 (home-page "https://linuxwacom.github.io/")
1191 (synopsis "Wacom input driver for X")
1193 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
1194 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
1195 (license license:x11)))
1197 (define-public redshift
1205 (string-append "https://github.com/jonls/redshift/"
1206 "releases/download/v" version
1207 "/redshift-" version ".tar.xz"))
1210 "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j"))))
1211 (build-system gnu-build-system)
1213 `(#:imported-modules (,@%gnu-build-system-modules
1214 (guix build python-build-system))
1216 (modify-phases %standard-phases
1217 (add-after 'install 'split-outputs
1218 (lambda* (#:key outputs #:allow-other-keys)
1219 (let ((out (assoc-ref outputs "out"))
1220 (gtk (assoc-ref outputs "gtk"))
1221 (desktop-file "/share/applications/redshift-gtk.desktop"))
1222 (mkdir-p (string-append gtk "/bin"))
1223 (link (string-append out "/bin/redshift-gtk")
1224 (string-append gtk "/bin/redshift-gtk"))
1225 (delete-file (string-append out "/bin/redshift-gtk"))
1226 (copy-recursively (string-append out "/lib")
1227 (string-append gtk "/lib"))
1228 (delete-file-recursively (string-append out "/lib"))
1229 (mkdir-p (string-append gtk "/share/applications"))
1230 (link (string-append out desktop-file)
1231 (string-append gtk desktop-file))
1232 (delete-file (string-append out desktop-file))
1233 (with-directory-excursion (string-append out "/share")
1234 (for-each (lambda (dir)
1236 (string-append out "/share/" dir)
1237 (string-append gtk "/share/" dir))
1238 (delete-file-recursively dir))
1239 '("appdata" "icons")))
1241 (add-after 'split-outputs 'wrap
1242 (lambda* (#:key inputs outputs #:allow-other-keys)
1243 (let* ((gtk (assoc-ref outputs "gtk"))
1245 (@ (guix build python-build-system) python-version))
1246 (python (assoc-ref inputs "python"))
1247 (sitedir (string-append gtk "/lib/python"
1248 (python-version python)
1250 (wrap-program (string-append gtk "/bin/redshift-gtk")
1251 `("PYTHONPATH" ":" prefix
1252 (,(string-append sitedir ":" (getenv "PYTHONPATH"))))
1253 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH"))))
1255 (outputs '("out" "gtk"))
1257 `(("pkg-config" ,pkg-config)
1258 ("intltool" ,intltool)))
1260 `(("libdrm" ,libdrm)
1263 ("libxxf86vm" ,libxxf86vm)
1264 ("glib" ,glib) ;for Geoclue2 support
1266 ;; To build the GTK3 GUI, we need these.
1269 ("python-pygobject" ,python-pygobject)
1270 ("python-pyxdg" ,python-pyxdg)))
1271 (home-page "https://github.com/jonls/redshift")
1272 (synopsis "Adjust the color temperature of your screen")
1274 "Redshift adjusts the color temperature according to the position of the
1275 sun. A different color temperature is set during night and daytime. During
1276 twilight and early morning, the color temperature transitions smoothly from
1277 night to daytime temperature to allow your eyes to slowly adapt. At night the
1278 color temperature should be set to match the lamps in your room.")
1279 (license license:gpl3+)))
1281 (define-public redshift-wayland
1282 (let ((commit "7da875d34854a6a34612d5ce4bd8718c32bec804")
1285 (name "redshift-wayland")
1286 (version (string-append "1.12-"
1287 revision "." (string-take commit 7)))
1291 (url "https://github.com/minus7/redshift")
1293 (file-name (string-append name "-" version))
1296 "0nbkcw3avmzjg1jr1g9yfpm80kzisy55idl09b6wvzv2sz27n957"))))
1297 (build-system gnu-build-system)
1299 '(#:phases (modify-phases %standard-phases
1300 (add-after 'install 'create-desktop-file
1301 (lambda* (#:key outputs #:allow-other-keys)
1302 ;; For the GeoClue provider to work, a .desktop file
1303 ;; needs to be provided. A template is available,
1304 ;; but it only gets installed when the GUI is enabled.
1305 ;; Install it manually for this Wayland variant.
1306 (let* ((out (assoc-ref outputs "out"))
1309 out "/share/applications/redshift.desktop")))
1310 (mkdir-p (dirname desktop-file))
1311 (copy-file "data/applications/redshift.desktop.in"
1313 (substitute* desktop-file
1317 `(("autoconf" ,autoconf)
1318 ("automake" ,automake)
1319 ("libtool" ,libtool)
1320 ("pkg-config" ,pkg-config)
1321 ("intltool" ,intltool)))
1323 `(("libdrm" ,libdrm)
1326 ("libxxf86vm" ,libxxf86vm)
1327 ("glib" ,glib) ; for Geoclue2 support
1328 ("wayland" ,wayland)))
1329 (home-page "https://github.com/minus7/redshift")
1330 (synopsis "Adjust the color temperature of your screen (with Wayland support)")
1332 "Redshift adjusts the color temperature according to the position of the
1333 sun. A different color temperature is set during night and daytime. During
1334 twilight and early morning, the color temperature transitions smoothly from
1335 night to daytime temperature to allow your eyes to slowly adapt. At night the
1336 color temperature should be set to match the lamps in your room.
1338 This is a fork with added support for Wayland using the wlr-gamma-control
1340 (license license:gpl3+))))
1342 (define-public xscreensaver
1344 (name "xscreensaver")
1350 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
1353 (base32 "15bv05vpfjwsrqbazrjmm382jd7vvw0mp6y9vasn6wvxzjf0in3k"))))
1354 (build-system gnu-build-system)
1356 `(#:tests? #f ; no check target
1358 (modify-phases %standard-phases
1359 (add-before 'configure 'adjust-gtk-resource-paths
1361 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
1362 (("@GTK_DATADIR@") "@datadir@")
1363 (("@PO_DATADIR@") "@datadir@"))
1365 #:configure-flags '("--with-pam" "--with-proc-interrupts"
1366 "--without-readdisplay")
1367 #:make-flags (list (string-append "AD_DIR="
1368 (assoc-ref %outputs "out")
1369 "/lib/X11/app-defaults"))))
1371 `(("pkg-config" ,pkg-config)
1372 ("intltool" ,intltool)))
1374 `(("libx11" ,libx11)
1375 ("libxext" ,libxext)
1381 ("libglade" ,libglade)
1382 ("libxml2" ,libxml2)
1384 ("libjpeg" ,libjpeg-turbo)
1385 ("linux-pam" ,linux-pam)
1391 ("libxrandr" ,libxrandr)
1394 (home-page "https://www.jwz.org/xscreensaver/")
1395 (synopsis "Classic screen saver suite supporting screen locking")
1397 "xscreensaver is a popular screen saver collection with many entertaining
1398 demos. It also acts as a nice screen locker.")
1399 ;; xscreensaver doesn't have a single copyright file and instead relies on
1400 ;; source comment headers, though most files have the same lax
1401 ;; permissions. To reduce complexity, we're pointing at Debian's
1402 ;; breakdown of the copyright information.
1403 (license (license:non-copyleft
1405 "http://metadata.ftp-master.debian.org/changelogs/"
1406 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1408 (define-public xssproxy
1415 (url "https://github.com/timakro/xssproxy")
1416 (commit (string-append "v" version))))
1417 (file-name (string-append name "-" version "-checkout"))
1420 "0c83wmipnsdnbihc5niyczs7jrkss2s8n6iwwjdia7hkjzbd0hl7"))))
1421 (build-system gnu-build-system)
1422 (arguments `(#:make-flags `("bindir=/bin"
1423 "man1dir=/share/man/man1"
1424 ,(string-append "DESTDIR=" (assoc-ref %outputs "out"))
1426 #:phases (modify-phases %standard-phases
1430 `(("pkg-config" ,pkg-config)))
1434 ("libxext" ,libxext)
1435 ("libxscrnsaver" ,libxscrnsaver)
1437 (synopsis "Forward freedesktop.org Idle Inhibition Service calls to Xss")
1438 (description "xssproxy implements the @code{org.freedesktop.ScreenSaver}
1439 D-Bus interface described in the Idle Inhibition Service Draft by the
1440 freedesktop.org developers. The inhibition of the screensaver is then
1441 controlled using the XScreenSaverSuspend function from the Xss (X11 Screen
1442 Saver extension) library.")
1443 (home-page "https://github.com/timakro/xssproxy")
1444 (license license:gpl3+)))
1452 (uri (string-append "http://www.vergenet.net/~conrad/software"
1453 "/xsel/download/xsel-" version ".tar.gz"))
1456 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1457 (build-system gnu-build-system)
1459 `(("libxt" ,libxt)))
1460 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1461 (synopsis "Manipulate X selection")
1463 "XSel is a command-line program for getting and setting the contents of
1464 the X selection. Normally this is only accessible by manually highlighting
1465 information and pasting it with the middle mouse button.
1467 XSel reads from standard input and writes to standard output by default,
1468 but can also follow a growing file, display contents, delete entries and more.")
1469 (license (license:x11-style "file://COPYING"
1470 "See COPYING in the distribution."))))
1472 (define-public xdpyprobe
1478 (uri (string-append "https://github.com/alezost/" name
1479 "/releases/download/v" version
1480 "/" name "-" version ".tar.gz"))
1483 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1484 (build-system gnu-build-system)
1486 `(("libx11" ,libx11)))
1487 (home-page "https://github.com/alezost/xdpyprobe")
1488 (synopsis "Probe X server for connectivity")
1490 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1491 connectivity of the X server running on a particular @code{DISPLAY}.")
1492 (license license:gpl3+)))
1500 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1501 "releases/download/"
1502 version "/rofi-" version ".tar.xz"))
1505 "12p9z8bl1gg8k024m4a6zfz7gf1zbyffardh98raqgabn6knwk22"))))
1506 (build-system gnu-build-system)
1511 ("startup-notification" ,startup-notification)
1512 ("libjpeg" ,libjpeg-turbo)
1513 ("librsvg" ,librsvg)
1514 ("libxkbcommon" ,libxkbcommon)
1516 ("xcb-util" ,xcb-util)
1517 ("xcb-util-xrm" ,xcb-util-xrm)
1518 ("xcb-util-wm" ,xcb-util-wm)))
1523 ("glib:bin" ,glib "bin")
1524 ("pkg-config" ,pkg-config)))
1526 `(#:parallel-tests? #f ; fails in some circumstances
1528 (modify-phases %standard-phases
1529 (add-before 'configure 'adjust-tests
1531 (substitute* '("test/helper-expand.c")
1534 (("g_get_home_dir \\(\\)") "\"/\""))
1536 (home-page "https://github.com/DaveDavenport/rofi")
1537 (synopsis "Application launcher")
1538 (description "Rofi is a minimalist application launcher. It memorizes which
1539 applications you regularly use and also allows you to search for an application
1541 (license license:expat)))
1543 (define-public tint2
1549 (uri (string-append "https://gitlab.com/o9000/" name
1550 "/repository/archive.tar.gz?ref=" version))
1551 (file-name (string-append name "-" version ".tar.gz"))
1554 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1555 (build-system cmake-build-system)
1557 '(#:tests? #f ;no test target
1559 (modify-phases %standard-phases
1560 (add-after 'unpack 'fix-installation-prefix
1562 (substitute* "CMakeLists.txt"
1563 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))
1568 ("librsvg" ,librsvg)
1569 ("libxcomposite" ,libxcomposite)
1570 ("libxdamage" ,libxdamage)
1572 ("libxinerama" ,libxinerama)
1573 ("libxrandr" ,libxrandr)
1574 ("startup-notification" ,startup-notification)))
1576 `(("gettext" ,gettext-minimal)
1577 ("pkg-config" ,pkg-config)))
1578 (home-page "https://gitlab.com/o9000/tint2")
1579 (synopsis "Lightweight task bar")
1581 "Tint2 is a simple task bar made for modern X window managers. It was
1582 specifically made for Openbox but it should also work with other window
1583 managers (GNOME, KDE, XFCE etc.).
1585 The taskbar includes transparency and color settings for the font, icons,
1586 border, and background. It also supports multihead setups, customized mouse
1587 actions, a built-in clock, a battery monitor and a system tray.")
1588 (license license:gpl2)))
1591 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1595 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1596 revision "." (string-take commit 7)))
1600 (url "https://github.com/robm/dzen")
1602 (file-name (string-append name "-" version))
1605 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1606 (build-system gnu-build-system)
1608 `(#:tests? #f ; No test suite.
1609 #:make-flags ; Replacement for `config.mk`.
1611 (string-append "VERSION = " ,version)
1612 (string-append "PREFIX = " %output)
1613 "MANPREFIX = ${PREFIX}/share/man"
1615 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1616 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1617 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1622 (modify-phases %standard-phases
1623 (delete 'configure) ; No configuration script.
1624 ;; Use own make-flags instead of `config.mk`.
1625 (add-before 'build 'dont-include-config-mk
1627 (substitute* "Makefile" (("include config.mk") ""))
1630 `(("libx11" ,libx11)
1633 ("libxinerama" ,libxinerama)))
1634 (native-inputs `(("pkg-config" ,pkg-config)))
1635 (synopsis "General purpose messaging, notification and menuing program for X11")
1636 (description "Dzen is a general purpose messaging, notification and menuing
1637 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1638 (home-page "https://github.com/robm/dzen")
1639 (license license:expat))))
1641 (define-public xftwidth
1644 (version "20170402")
1649 (url "http://github.com/vixus0/xftwidth")
1650 (commit "35ff963908d41a8a6a7101c434c88255728025ee")))
1653 "1jwl25785li24kbp0m1wxfwk4dgxkliynn03nsj813cjr34kq16h"))
1654 (file-name (string-append name "-" version "-checkout"))))
1655 (build-system gnu-build-system)
1656 (inputs `(("freetype" ,freetype)
1658 ("fontconfig" ,fontconfig)
1659 ("libxft" ,libxft)))
1661 `(("pkg-config" ,pkg-config)))
1664 (modify-phases %standard-phases
1665 (add-after 'unpack 'fix-makefile ; /usr/bin doesn't show up in PATH
1666 (lambda _ (substitute* "Makefile" (("usr/") "")) #t))
1667 (delete 'check) ; no check included in Makefile
1668 (delete 'configure))
1670 (let ((out (assoc-ref %outputs "out")))
1671 (list (string-append "DESTDIR=" out)))))
1672 (home-page "https://github.com/vixus0/xftwidth")
1673 (synopsis "Calculator for determining pixel widths of displayed text using Xft fonts")
1674 (description "xftwidth is a small C program for calculating the pixel
1675 widths of displayed text using Xft fonts. It is especially useful in scripts
1676 for displaying text in graphical panels, menus, popups, and notification
1677 windows generated using dzen. These scripts are often used in conjunction with
1678 minimalistic tiling window managers such as herbstluftwm and bspwm.")
1679 (license license:expat)))
1681 (define-public xcb-util-xrm
1683 (name "xcb-util-xrm")
1688 "https://github.com/Airblader/xcb-util-xrm/releases"
1689 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1692 "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h"))
1693 (modules '((guix build utils)))
1697 (delete-file-recursively "m4")
1699 (build-system gnu-build-system)
1701 `(("pkg-config" ,pkg-config)
1703 ("libx11" ,libx11))) ; for tests
1705 `(("libxcb" ,libxcb)
1706 ("xcb-util" ,xcb-util)))
1707 (home-page "https://github.com/Airblader/xcb-util-xrm")
1708 (synopsis "XCB utility functions for the X resource manager")
1710 "The XCB util module provides a number of libraries which sit on
1711 top of libxcb, the core X protocol library, and some of the extension
1712 libraries. These experimental libraries provide convenience functions
1713 and interfaces which make the raw X protocol more usable. Some of the
1714 libraries also provide client-side code which is not strictly part of
1715 the X protocol but which has traditionally been provided by Xlib.
1717 XCB util-xrm module provides the following libraries:
1719 - xrm: utility functions for the X resource manager.")
1720 (license license:x11)))
1722 (define-public xcalib
1726 (home-page "https://github.com/OpenICC/xcalib")
1732 (file-name (git-file-name name version))
1735 "05fzdjmhiafgi2jf0k41i3nm0837a78sb6yv59cwc23nla8g0bhr"))
1738 ;; Add missing documentation for the new --output option.
1739 ;; This upstream patch can be removed on the next update.
1743 home-page "/commit/"
1744 "ae03889b91fe984b18e925ad2b5e6f2f7354e058.patch"))
1745 (file-name "xcalib-update-man-page.patch")
1748 "0f7b4d5484x4b9n1bwhqmar0kcaa029ffff7bp3xpr734n1qgqb6")))))))
1749 (build-system cmake-build-system)
1751 '(#:tests? #f)) ; no test suite
1752 (inputs `(("libx11" ,libx11)
1753 ("libxext" ,libxext)
1754 ("libxrandr" ,libxrandr)
1755 ("libxxf86vm" ,libxxf86vm)))
1756 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1757 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1758 profiles to the video card's gamma ramp. It does work with most video card
1759 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1760 invert colors on a specific display/screen.")
1761 (license license:gpl2)))
1763 (define-public nxbelld
1770 (url "https://github.com/dusxmt/nxbelld")
1774 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1775 (file-name (git-file-name name version))))
1776 (build-system gnu-build-system)
1777 (arguments '(#:configure-flags `("--enable-sound"
1780 (native-inputs `(("autoconf" ,autoconf)
1781 ("automake" ,automake)
1782 ("pkg-config" ,pkg-config)
1784 (inputs `(("libx11" ,libx11)
1785 ("alsa-lib" ,alsa-lib)))
1786 (synopsis "Daemon that performs an action every time the X11 bell is rung")
1787 (description "nxbelld is a tiny utility to aid people who either don't
1788 like the default PC speaker beep, or use a sound driver that doesn't have
1789 support for the PC speaker. The utility performs a given action every time
1790 the X bell is rung. The actions nxbelld can currently perform include running
1791 a specified program, emulating the PC speaker beep using the sound card (default),
1792 or playing a PCM encoded WAVE file.")
1793 (home-page "https://github.com/dusxmt/nxbelld")
1794 (license license:gpl3+)))
1796 (define-public xautolock
1802 (uri (string-append "https://www.ibiblio.org/pub/linux/X11/"
1803 "screensavers/xautolock-" version ".tgz"))
1806 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1807 (build-system gnu-build-system)
1809 `(("imake" ,imake)))
1811 `(("libx11" ,libx11)
1812 ("libxext" ,libxext)
1813 ("libxscrnsaver" ,libxscrnsaver)))
1817 (modify-phases %standard-phases
1819 (lambda* (#:key inputs outputs #:allow-other-keys)
1820 (let ((imake (assoc-ref inputs "imake"))
1821 (out (assoc-ref outputs "out")))
1822 ;; Generate Makefile
1824 (substitute* "Makefile"
1825 ;; These imake variables somehow remain undefined
1826 (("DefaultGcc2[[:graph:]]*Opt") "-O2")
1827 ;; Reset a few variable defaults that are set in imake templates
1829 (("(MANPATH = )[[:graph:]]*" _ front)
1830 (string-append front out "/share/man")))
1831 ;; Old BSD-style 'union wait' is unneeded (defining
1832 ;; _USE_BSD did not seem to fix it)
1833 (substitute* "src/engine.c"
1834 (("union wait status") "int status = 0"))
1836 (add-after 'install 'install/man
1838 (invoke "make" "install.man"))))))
1839 (home-page "https://ibiblio.org/pub/Linux/X11/screensavers/")
1840 (synopsis "Program launcher for idle X sessions")
1841 (description "Xautolock monitors input devices under the X Window
1842 System, and launches a program of your choice if there is no activity after
1843 a user-configurable period of time.")
1844 (license license:gpl2)))
1846 (define-public screen-message
1848 (name "screen-message")
1853 "https://www.joachim-breitner.de/archive/screen-message"
1854 "/screen-message-" version ".tar.gz"))
1857 "1lw955qq5pq010lzmaf32ylj2iprgsri9ih4hx672c3f794ilab0"))))
1858 (build-system gnu-build-system)
1859 (inputs `(("gtk3" ,gtk+)
1862 (native-inputs `(("pkg-config" ,pkg-config)))
1864 ;; The default configure puts the 'sm' binary in games/ instead of bin/ -
1866 `(#:make-flags (list (string-append "execgamesdir=" %output "/bin"))))
1867 (synopsis "Print messages on your screen")
1868 (description "@code{screen-message} is a tool for displaying text on
1869 your screen. It will make the text as large as possible and display it
1870 with black color on a white background (colors are configurable on the
1872 (home-page "https://www.joachim-breitner.de/projects#screen-message")
1873 (license license:gpl2+)))
1875 (define-public xss-lock
1876 ;; xss-lock does not seem to be maintained any longer, but the last commits
1877 ;; fix important issues so we package them.
1878 (let ((version "0.3.0")
1880 (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717"))
1883 (version (git-version version revision commit))
1887 (url "https://bitbucket.org/raymonad/xss-lock.git")
1889 (file-name (git-file-name name version))
1892 "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r"))))
1893 (build-system cmake-build-system)
1894 (inputs `(("glib" ,glib)
1895 ("xcb-util" ,xcb-util)))
1897 `(("python-docutils" ,python-docutils)
1898 ("pkg-config" ,pkg-config)))
1901 (synopsis "Use external screen locker on events")
1902 (description "@code{xss-lock} listens to X signals to fire up a
1903 user-defined screensaver. In effect this automatically locks the
1904 screen when closing a laptop lid or after a period of user inactivity (as set
1905 with @code{xset s TIMEOUT}). The notifier command, if specified, is executed
1906 first. Additionally, xss-lock uses the inhibition logic to lock the screen
1907 before the system goes to sleep.")
1908 (home-page "https://bitbucket.org/raymonad/xss-lock")
1909 (license license:expat))))
1911 (define-public python-pyperclip
1913 (name "python-pyperclip")
1918 (uri (pypi-uri "pyperclip" version))
1921 "1p505c23ji06r28k1y67siihsbdzdf1brhlqpyv9ams4gk9863pp"))))
1922 (build-system python-build-system)
1924 '(#:tests? #f)) ; Not clear how to make tests pass.
1928 (home-page "https://github.com/asweigart/pyperclip")
1929 (synopsis "Python clipboard module")
1931 "Pyperclip is a clipboard module for Python, handling copy/pasting from
1933 (license license:bsd-3)))
1935 (define-public numlockx
1942 ;; It seems that upstream is gone.
1943 (url "https://github.com/rg3/numlockx")
1945 (file-name (git-file-name name version))
1948 "1w49fayhwzn5rx0z1q2lrvm7z8jrd34lgb89p853a024bixc3cf2"))))
1949 (build-system gnu-build-system)
1951 `(("xorg-server" ,xorg-server)))
1952 (home-page "https://github.com/rg3/numlockx")
1953 (synopsis "Turns on the numlock key in X11")
1954 (description "@command{numlockx} is a tiny program that lets you turn on
1955 the numlock key in X11. It can be called from the user's initialization files
1956 to automatically turn it on on login.")
1957 (license license:expat)))
1959 (define-public xrandr-invert-colors
1961 (name "xrandr-invert-colors")
1966 (url "https://github.com/zoltanp/xrandr-invert-colors")
1967 (commit (string-append "v" version))))
1968 (file-name (git-file-name name version))
1971 "1br3x9vr6xm4ika06n8cfxx1b3wdchdqvyzjl4y1chmivrml8x9h"))))
1972 (build-system gnu-build-system)
1974 `(#:make-flags (list "CC=gcc")
1975 #:tests? #f ; there are none
1977 (modify-phases %standard-phases
1980 (lambda* (#:key outputs #:allow-other-keys)
1981 (let* ((out (assoc-ref outputs "out"))
1982 (bin (string-append out "/bin")))
1983 (install-file "xrandr-invert-colors.bin" bin)
1986 `(("libxrandr" ,libxrandr)))
1987 (home-page "https://github.com/zoltanp/xrandr-invert-colors")
1988 (synopsis "Invert display colors")
1989 (description "This package provides a small utility for inverting the
1990 colors on all monitors attached to an XRandR-capable X11 display server.")
1991 (license license:gpl3+)))
2001 (string-append "https://www.umaxx.net/dl/sct-"
2004 (base32 "0lrhx771iccbw04wrhj0ygids1pzmjfc4hvklm30m3p3flvhqf0m"))))
2005 (build-system gnu-build-system)
2008 (list ,(string-append "CC=" (cc-for-target)))
2009 #:tests? #f ; no test suite
2011 (modify-phases %standard-phases
2013 (add-after 'unpack 'fix-sctd-paths
2014 (lambda* (#:key outputs inputs #:allow-other-keys)
2015 (let ((out (assoc-ref outputs "out"))
2016 (coreutils (assoc-ref inputs "coreutils"))
2017 (inetutils (assoc-ref inputs "inetutils"))
2018 (sed (assoc-ref inputs "sed")))
2019 (substitute* "sctd.sh"
2020 (("\\$\\(which sct\\)") (string-append out "/bin/sct"))
2021 (("date") (string-append coreutils "/bin/date"))
2022 (("printf") (string-append coreutils "/bin/printf"))
2023 (("sleep") (string-append coreutils "/bin/sleep"))
2024 (("logger") (string-append inetutils "/bin/logger"))
2025 (("sed") (string-append sed "/bin/sed"))))))
2027 (lambda* (#:key outputs #:allow-other-keys)
2028 (let ((out (assoc-ref outputs "out")))
2029 (install-file "sct" (string-append out "/bin"))
2030 (install-file "sctd.sh" (string-append out "/bin"))
2031 (install-file "sct.1" (string-append out "/man/man1"))
2032 (install-file "sctd.1" (string-append out "/man/man1"))
2033 (rename-file (string-append out "/bin/sctd.sh")
2034 (string-append out "/bin/sctd"))
2037 `(("coreutils" ,coreutils) ; sctd uses "date", "printf" and "sleep"
2038 ("inetutils" ,inetutils) ; sctd uses "logger"
2039 ("libxrandr" ,libxrandr)
2040 ("sed" ,sed))) ; sctd uses "sed"
2041 (home-page "https://www.umaxx.net")
2042 (synopsis "Set the color temperature of the screen")
2043 (description "@code{sct} is a lightweight utility to set the color
2044 temperature of the screen.")
2045 (license (license:non-copyleft "file://sct.c")))) ; "OpenBSD" license
2047 (define-public xsecurelock
2049 (name "xsecurelock")
2054 "https://github.com/google/xsecurelock/releases"
2055 "/download/v" version "/xsecurelock-" version ".tar.gz"))
2057 (base32 "070gknyv0s5hz9hkc6v73m2v7ssyjwgl93b5hd4glayfqxqjbmdp"))))
2058 (build-system gnu-build-system)
2061 '("--with-pam-service-name=login"
2063 "--with-default-authproto-module=/run/setuid-programs/authproto_pam")))
2065 `(("pandoc" ,pandoc)
2066 ("pkg-config" ,pkg-config)))
2068 `(("fontconfig" ,fontconfig)
2070 ("libxcomposite" ,libxcomposite)
2071 ("libxext" ,libxext)
2072 ("libxfixes" ,libxfixes)
2075 ("libxrandr" ,libxrandr)
2076 ("libxscrnsaver" ,libxscrnsaver)
2077 ("linux-pam" ,linux-pam)))
2078 (home-page "https://github.com/google/xsecurelock")
2079 (synopsis "X11 screen lock utility with the primary goal of security")
2080 (description "@code{xsecurelock} is an X11 screen locker which uses
2081 a modular design to avoid the usual pitfalls of screen locking utility design.
2083 As a consequence of the modular design, the usual screen locker service
2084 shouldn't be used with @code{xsecurelock}. Instead, you need to add a helper
2085 binary to setuid-binaries:
2087 (setuid-programs (cons*
2088 (file-append xsecurelock \"/libexec/xsecurelock/authproto_pam\")
2091 (license license:asl2.0)))
2093 (define-public wl-clipboard
2095 (name "wl-clipboard")
2101 (url "https://github.com/bugaevc/wl-clipboard")
2102 (commit (string-append "v" version))))
2103 (file-name (git-file-name name version))
2105 (base32 "0c4w87ipsw09aii34szj9p0xfy0m00wyjpll0gb0aqmwa60p0c5d"))))
2106 (build-system meson-build-system)
2108 `(("pkg-config" ,pkg-config)))
2110 `(("wayland" ,wayland)
2111 ("wayland-protocols" ,wayland-protocols)))
2112 (home-page "https://github.com/bugaevc/wl-clipboard")
2113 (synopsis "Command-line copy/paste utilities for Wayland")
2114 (description "Wl-clipboard is a set of command-line copy/paste utilities for
2116 (license license:gpl3+)))
2118 (define-public autocutsel
2124 (uri (string-append "https://github.com/sigmike/autocutsel"
2125 "/releases/download/" version "/"
2126 "autocutsel-" version ".tar.gz"))
2129 "0gsys2dzh4az51ndcsabhlbbrjn2nm75lnjr45kg6r8sm8q66dx2"))))
2130 (build-system gnu-build-system)
2132 '(#:tests? #f)) ; no "check" target
2133 (native-inputs `(("libx11" ,libx11)
2134 ("libxaw" ,libxaw)))
2135 (home-page "https://www.nongnu.org/autocutsel/")
2136 (synopsis "Automated X11 clipboard and cutbuffer synchronization")
2137 (description "@code{autocutsel} tracks changes in the server's cutbuffer
2138 and clipboard selection. When the clipboard is changed, it updates the
2139 cutbuffer. When the cutbuffer is changed, it owns the clipboard selection.
2140 The cutbuffer and clipboard selection are always synchronized.")
2141 (license license:gpl2+)))
2143 (define-public jgmenu
2151 (url "https://github.com/johanmalm/jgmenu")
2152 (commit (string-append "v" version))))
2153 (file-name (git-file-name name version))
2156 "1wsh37rapb1bszlq36hvwxqvfds39hbvbl152m8as4zlh93wfvvk"))))
2157 (build-system gnu-build-system)
2159 `(("cppcheck" ,cppcheck)
2161 ("pkg-config" ,pkg-config)))
2165 ("librsvg" ,librsvg)
2167 ("libxml2" ,libxml2)
2168 ("libxrandr" ,libxrandr)
2172 (modify-phases %standard-phases
2173 (add-after 'unpack 'fix-tests
2175 (substitute* "scripts/cppcheck-wrapper.sh"
2176 (("--library=/usr/share/cppcheck/cfg/gnu\\.cfg")
2180 (lambda* (#:key outputs #:allow-other-keys)
2182 (invoke "./configure"
2183 (string-append "--prefix=" (assoc-ref outputs "out")))
2185 (synopsis "Simple X11 menu")
2187 "This is a simple menu for X11 designed for scripting and tweaking. It
2188 can optionally use some appearance settings from XSettings, tint2 and GTK.")
2189 (home-page "https://jgmenu.github.io/")
2190 (license license:gpl2)))
2192 (define-public xwallpaper
2200 (url "https://github.com/stoeckmann/xwallpaper")
2201 (commit (string-append "v" version))))
2202 (file-name (git-file-name name version))
2204 (base32 "121ai4dc0v65qk12gn9w62ixly8hc8a5qrygkbb82vy8ck4jqxj7"))))
2205 (build-system gnu-build-system)
2207 `(("autoconf" ,autoconf)
2208 ("automake" ,automake)
2209 ("pkg-config" ,pkg-config)))
2211 `(("libjpeg-turbo" ,libjpeg-turbo)
2215 ("xcb-util" ,xcb-util)
2216 ("xcb-util-image" ,xcb-util-image)))
2217 (home-page "https://github.com/stoeckmann/xwallpaper")
2218 (synopsis "Wallpaper setting utility for X")
2220 "The xwallpaper utility allows you to set image files as your X
2221 wallpaper. JPEG, PNG, and XPM file formats are supported.
2223 The wallpaper is also advertised to programs which support semi-transparent
2225 (license license:isc)))
2227 (define-public xwrits
2234 (uri (string-append "https://www.lcdf.org/~eddietwo/xwrits/"
2235 "xwrits-" version ".tar.gz"))
2237 (base32 "1n7y0fqpcvmzznvbsn14hzy5ddaa3lilm8aw6ckscqndnh4lijma"))))
2238 (build-system gnu-build-system)
2241 (modify-phases %standard-phases
2242 (add-after 'install 'install-docs
2243 (lambda* (#:key outputs #:allow-other-keys)
2244 (let* ((out (assoc-ref outputs "out"))
2245 (doc (string-append out "/share/doc/xwrits")))
2246 (install-file "GESTURES" doc)
2247 (install-file "README" doc)
2250 `(("libx11" ,libx11)
2251 ("libxinerama" ,libxinerama)))
2252 (home-page "https://www.lcdf.org/~eddietwo/xwrits/")
2253 (synopsis "Reminds you to take wrist breaks")
2254 (description "Xwrits reminds you to take wrist breaks for prevention or
2255 management of repetitive stress injuries. When you should take a break, it
2256 pops up an X window, the warning window. You click on the warning window,
2257 then take a break. The window changes appearance while you take the break.
2258 It changes again when your break is over. Then you just resume typing.
2259 Xwrits hides itself until you should take another break.")
2260 (license license:gpl2)))
2262 (define-public xsettingsd
2270 (url "https://github.com/derat/xsettingsd")
2271 (commit (string-append "v" version))))
2272 (file-name (git-file-name name version))
2275 "05m4jlw0mgwp24cvyklncpziq1prr2lg0cq9c055sh4n9d93d07v"))))
2276 (build-system scons-build-system)
2278 `(("libx11" ,libx11)))
2280 `(("pkg-config" ,pkg-config)
2281 ("googletest" ,googletest)
2282 ("googletest-source" ,(package-source googletest))))
2284 `(#:scons ,scons-python2
2288 (modify-phases %standard-phases
2289 (add-before 'build 'patch-sconstruct
2290 (lambda* (#:key inputs #:allow-other-keys)
2291 (substitute* "SConstruct"
2292 ;; scons doesn't pick up environment variables automatically
2293 ;; so it needs help to find path variables
2294 (("env = Environment\\(")
2297 'PATH': os.environ['PATH'],
2298 'CPATH': os.environ['C_INCLUDE_PATH'],
2299 'LIBRARY_PATH': os.environ['LIBRARY_PATH'],
2300 'PKG_CONFIG_PATH': os.environ['PKG_CONFIG_PATH']
2302 ;; Update path to gtest source files used in tests
2303 (("/usr/src/gtest") (string-append
2304 (assoc-ref inputs "googletest-source")
2306 ;; Exclude one warning that causes a build error
2307 (("-Werror") "-Werror -Wno-error=sign-compare"))
2309 ;; The SConstruct script doesn't configure installation so
2310 ;; binaries must be copied to the output path directly
2312 (lambda* (#:key outputs #:allow-other-keys)
2313 (let* ((out (assoc-ref outputs "out"))
2314 (bin (string-append out "/bin")))
2316 (install-file "xsettingsd" bin)
2317 (install-file "dump_xsettings" bin)
2319 (home-page "https://github.com/derat/xsettingsd")
2320 (synopsis "Xorg settings daemon")
2321 (description "@command{xsettingsd} is a lightweight daemon that provides settings to
2322 Xorg applications via the XSETTINGS specification. It is used for defining
2323 font and theme settings when a complete desktop environment (GNOME, KDE) is
2324 not running. With a simple @file{.xsettingsd} configuration file one can avoid
2325 configuring visual settings in different UI toolkits separately.")
2326 (license license:bsd-3)))
2328 (define-public clipnotify
2336 (url "https://github.com/cdown/clipnotify")
2338 (file-name (git-file-name name version))
2341 "1v3ydm5ljy8z1savmdxrjyx7a5bm5013rzw80frp3qbbjaci0wbg"))))
2342 (build-system gnu-build-system)
2345 (modify-phases %standard-phases
2348 (lambda* (#:key inputs outputs #:allow-other-keys)
2349 (let* ((out (assoc-ref outputs "out"))
2350 (bin (string-append out "/bin"))
2351 (doc (string-append %output "/share/doc/" ,name "-" ,version)))
2352 (install-file "clipnotify" bin)
2353 (install-file "README.md" doc)
2356 (list ,(string-append "CC=" (cc-for-target)))
2357 #:tests? #f)) ; no test suite
2359 `(("libx11" ,libx11)
2360 ("libXfixes" ,libxfixes)))
2361 (home-page "https://github.com/cdown/clipnotify")
2362 (synopsis "Notify on new X clipboard events")
2363 (description "@command{clipnotify} is a simple program that, using the
2364 XFIXES extension to X11, waits until a new selection is available and then
2367 It was primarily designed for clipmenu, to avoid polling for new selections.
2369 @command{clipnotify} doesn't try to print anything about the contents of the
2370 selection, it just exits when it changes. This is intentional -- X11's
2371 selection API is verging on the insane, and there are plenty of others who
2372 have already lost their sanity to bring us xclip/xsel/etc. Use one of those
2373 tools to complement clipnotify.")
2374 (license license:public-domain)))
2376 (define-public clipmenu
2377 (let ((commit "bcbe7b144598db4a103f14e8408c4b7327d6d5e1")
2381 (version (string-append "6.0.1-"
2382 revision "." (string-take commit 7)))
2387 (url "https://github.com/cdown/clipmenu")
2389 (file-name (git-file-name name version))
2392 "0053j4i14lz5m2bzc5sch5id5ilr1bl196mp8fp0q8x74w3vavs9"))))
2393 (build-system gnu-build-system)
2396 (modify-phases %standard-phases
2400 (lambda* (#:key inputs outputs #:allow-other-keys)
2401 (let* ((out (assoc-ref outputs "out"))
2402 (bin (string-append out "/bin"))
2403 (doc (string-append %output "/share/doc/"
2404 ,name "-" ,version)))
2405 (install-file "clipdel" bin)
2406 (install-file "clipmenu" bin)
2407 (install-file "clipmenud" bin)
2408 (install-file "README.md" doc)
2410 (add-after 'install 'wrap-script
2411 (lambda* (#:key inputs outputs #:allow-other-keys)
2412 (let* ((out (assoc-ref outputs "out"))
2413 (clipnotify (assoc-ref inputs "clipnotify"))
2414 (coreutils-minimal (assoc-ref inputs "coreutils-minimal"))
2415 (gawk (assoc-ref inputs "gawk"))
2416 (util-linux (assoc-ref inputs "util-linux"))
2417 (xdotool (assoc-ref inputs "xdotool"))
2418 (xsel (assoc-ref inputs "xsel")))
2421 (wrap-script (string-append out "/bin/" prog)
2424 (string-append dir "/bin"))
2425 (list clipnotify coreutils-minimal
2426 gawk util-linux xdotool xsel)))))
2427 '("clipmenu" "clipmenud" "clipdel")))
2430 (lambda* (#:key inputs outputs #:allow-other-keys)
2431 ;; substitute a shebang appearing inside a string (the test
2432 ;; file writes this string to a temporary file):
2433 (substitute* "tests/test-clipmenu"
2434 (("#!/usr/bin/env bash")
2435 (string-append "#!" (which "bash"))))
2436 (invoke "tests/test-clipmenu")
2439 `(("clipnotify" ,clipnotify)
2440 ("coreutils-minimal" ,coreutils-minimal)
2442 ("guile" ,guile-3.0) ; for wrap-script
2443 ("util-linux" ,util-linux)
2444 ("xdotool" ,xdotool)
2446 (home-page "https://github.com/cdown/clipmenu")
2447 (synopsis "Simple clipboard manager using dmenu or rofi and xsel")
2448 (description "Start @command{clipmenud}, then run @command{clipmenu} to
2449 select something to put on the clipboard.
2451 When @command{clipmenud} detects changes to the clipboard contents, it writes
2452 them out to the cache directory. @command{clipmenu} reads the cache directory
2453 to find all available clips and launches @command{dmenu} (or @command{rofi},
2454 depending on the value of @code{CM_LAUNCHER}) to let the user select a clip.
2455 After selection, the clip is put onto the PRIMARY and CLIPBOARD X selections.")
2456 (license license:public-domain))))
2466 (url "https://github.com/qnikst/kbdd")
2467 (commit (string-append "v" version))))
2468 (file-name (git-file-name name version))
2471 "0qkq75grbd4wkx4nlvswgavpijk9ad0pzqyj89a0ayjsbsn36pqy"))))
2472 (build-system gnu-build-system)
2474 `(("autoconf" ,autoconf)
2475 ("automake" ,automake)
2476 ("glib" ,glib "bin")
2477 ("pkg-config" ,pkg-config)))
2479 `(("dbus-glib" ,dbus-glib)
2481 ("libx11" ,libx11)))
2482 (home-page "https://github.com/qnikst/kbdd")
2483 (synopsis "Per-window keyboard layout switching daemon for X")
2484 (description "@command{kbdd} is a simple keyboard layout switching
2485 program, which is designed to run in an X11 session and remember
2486 keyboard layouts on a per-window basis. That can be very handy for a
2487 user of a non-US keyboard who does not want to jump through layouts back
2488 and forth while typing in terminals (mostly in a latin alphabet) and
2489 some kind of chat (in native language).
2491 @command{kbdd} also supports D-Bus signals, which makes it possible to
2492 create layout indicator widgets.")
2493 (license license:bsd-2)))
2495 (define-public j4-dmenu-desktop
2497 (name "j4-dmenu-desktop")
2502 (url "https://github.com/enkore/j4-dmenu-desktop")
2503 (commit (string-append "r" version))))
2504 (file-name (git-file-name name version))
2507 "1gxpgifzy0hnpd0ymw3r32amzr32z3bgb90ldjzl438p6h1q0i26"))))
2508 (build-system cmake-build-system)
2510 `(("catch2" ,catch-framework2)))
2512 `(#:configure-flags '("-DWITH_GIT_CATCH=off")
2514 (modify-phases %standard-phases
2515 (add-after 'unpack 'find-catch
2517 (substitute* "CMakeLists.txt"
2518 (("PATH_SUFFIXES catch") "PATH_SUFFIXES catch2"))
2522 (invoke "./j4-dmenu-tests" "exclude:SearchPath/XDG_DATA_HOME"))))))
2523 (synopsis "Fast desktop menu")
2525 "j4-dmenu-desktop is a replacement for i3-dmenu-desktop. Its purpose
2526 is to find @file{.desktop} files and offer you a menu to start an application
2527 using @command{dmenu}.")
2528 (home-page "https://github.com/enkore/j4-dmenu-desktop")
2529 (license license:gpl3+)))
2538 (url "https://hg.sr.ht/~scoopta/wofi")
2539 (changeset (string-append "v" version))))
2540 (file-name (git-file-name name version))
2543 "0glpb2gf5n78s01z3rn614ak8ibxhfr824gy6xlljbxclgds264i"))))
2544 (build-system meson-build-system)
2546 `(#:glib-or-gtk? #t))
2548 `(("pkg-config" ,pkg-config)))
2551 ("wayland" ,wayland)))
2552 (synopsis "Launcher/menu program for wayland")
2554 "Wofi is a launcher/menu program for wlroots based wayland compositors
2555 such as sway, similar to @command{rofi}.")
2556 (home-page "https://hg.sr.ht/~scoopta/wofi")
2557 (license license:gpl3+)))
2566 (url (string-append "https://github.com/jceb/dex"))
2567 (commit (string-append "v" version))))
2570 "03aapcywnz4kl548cygpi25m8adwbmqlmwgxa66v4156ax9dqs86"))
2571 (file-name (git-file-name name version))))
2572 (build-system gnu-build-system)
2574 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2576 (modify-phases %standard-phases
2577 (delete 'configure))
2580 `(("python", python)))
2582 `(("python-sphinx" ,python-sphinx)))
2583 (home-page "https://github.com/jceb/dex")
2584 (synopsis "Execute DesktopEntry files")
2586 "@command{dex}, @dfn{DesktopEntry Execution}, is a program to generate
2587 and execute @file{.desktop} files of the Application type.")
2588 (license license:gpl3+)))
2597 (url "https://github.com/Earnestly/sx")
2599 (file-name (git-file-name name version))
2602 "0p24ghp1ygvyc2hv81byhxax7491yhcc5priq5ldv07nzl7akagc"))))
2603 (build-system gnu-build-system)
2605 '(#:tests? #f ; no tests
2607 (let ((out (assoc-ref %outputs "out")))
2608 (list (string-append "PREFIX=" out)))
2610 (modify-phases %standard-phases
2611 ;; no configure script
2612 (delete 'configure))))
2614 `(("xauth" ,xauth)))
2615 (home-page "https://github.com/Earnestly/sx")
2616 (synopsis "Start an xorg server")
2618 "@command{sx} is a simple alternative to both @command{xinit} and
2619 @command{startx} for starting an Xorg server.")
2620 (license license:x11)))