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
514 "https://www.cairographics.org/releases/pixman-"
518 "1ryxzdf048x7wsx4dlvrr1p00gzwfs7lybnhgc7ygbj0dvyxcrns"))
519 (patches (search-patches "pixman-CVE-2016-5296.patch"))))
520 (build-system gnu-build-system)
522 '(#:configure-flags '("--disable-static")))
527 `(("pkg-config" ,pkg-config)))
528 (home-page "http://www.pixman.org/")
529 (synopsis "Low-level pixel manipulation library")
530 (description "Pixman is a low-level software library for pixel
531 manipulation, providing features such as image compositing and trapezoid
533 (license license:x11)))
535 (define-public libdrm
542 "https://dri.freedesktop.org/libdrm/libdrm-"
546 "0nx0bd9dhymdsd99v4ifib77yjirkvkxf5hzdkbr7qr8dhrzkjwb"))))
547 (build-system meson-build-system)
550 '(,@(match (%current-system)
551 ((or "armhf-linux" "aarch64-linux")
556 "-Dfreedreno-kgsl=true"))
559 #:phases (modify-phases %standard-phases
562 (invoke "meson" "test" "--timeout-multiplier" "5"))))))
564 `(("libpciaccess" ,libpciaccess)))
566 `(("pkg-config" ,pkg-config)))
567 (home-page "https://dri.freedesktop.org/wiki/")
568 (synopsis "Direct rendering userspace library")
569 (description "The Direct Rendering Infrastructure, also known as the DRI,
570 is a framework for allowing direct access to graphics hardware under the
571 X Window System in a safe and efficient manner. It includes changes to the
572 X server, to several client libraries, and to the kernel (DRM, Direct
573 Rendering Manager). The most important use for the DRI is to create fast
574 OpenGL implementations providing hardware acceleration for Mesa.
575 Several 3D accelerated drivers have been written to the DRI specification,
576 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
578 (license license:x11)))
589 "http://bitmath.org/code/mtdev/mtdev-"
593 "1q700h9dqcm3zl6c3gj0qxxjcx6ibw2c51wjijydhwdcm26v5mqm"))))
594 (build-system gnu-build-system)
595 (arguments '(#:configure-flags '("--disable-static")))
596 (home-page "http://bitmath.org/code/mtdev/")
597 (synopsis "Multitouch protocol translation library")
598 (description "Mtdev is a stand-alone library which transforms all
599 variants of kernel MT events to the slotted type B protocol. The events
600 put into mtdev may be from any MT device, specifically type A without
601 contact tracking, type A with contact tracking, or type B with contact
603 (license license:x11)))
605 (define-public startup-notification
607 (name "startup-notification")
612 (uri (string-append "https://www.freedesktop.org/software/" name
613 "/releases/" name "-" version ".tar.gz"))
616 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
617 (build-system gnu-build-system)
618 (native-inputs `(("pkg-config" ,pkg-config)))
621 ("xcb-util" ,xcb-util)))
622 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
623 (synopsis "Application startup notification and feedback library")
625 "Startup-notification contains a reference implementation of the startup
626 notification protocol. The reference implementation is mostly under an X Window
627 System style license, and has no special dependencies.")
628 ;; Most of the code is provided under x11 license.
629 (license license:lgpl2.0+)))
631 (define-public wmctrl
638 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
642 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
643 (patches (search-patches "wmctrl-64-fix.patch"))))
644 (build-system gnu-build-system)
647 (list (string-append "--mandir="
648 (assoc-ref %outputs "out")
651 `(("pkg-config" ,pkg-config)))
656 (home-page "http://tomas.styblo.name/wmctrl/")
657 (synopsis "Command-line tool to control X window managers")
659 "Wmctrl interacts with an X window manager that is compatible
660 with the EWMH/NetWM specification. It can query the window manager for
661 information, and request for certain window management actions (resize and
662 move windows, switch between desktops, etc.).")
663 (license license:gpl2+)))
674 (url "https://github.com/resurrecting-open-source-projects/scrot")
676 (file-name (git-file-name name version))
679 "12xq6glg70icwsvbnfw9gm4dahlbnrc7b6adpd0mpf89h4sj2gds"))))
680 (build-system gnu-build-system)
682 `(("autoconf" ,autoconf)
683 ("autoconf-archive" ,autoconf-archive)
684 ("automake" ,automake)))
688 ("libXcursor" ,libxcursor)
689 ("libxcomposite" ,libxcomposite)
690 ("libXfixes" ,libxfixes)))
691 (home-page "https://github.com/resurrecting-open-source-projects/scrot")
692 (synopsis "Command-line screen capture utility for X Window System")
694 "Scrot saves a screenshot of a full screen, a window or a part
695 of the screen selected by mouse.")
696 ;; This license removes a clause about X Consortium from the original
698 (license (license:x11-style "file://COPYING"
699 "See 'COPYING' in the distribution."))))
708 (url "https://github.com/naelstrof/slop")
709 (commit (string-append "v" version))))
710 (file-name (git-file-name name version))
713 "1k8xxb4rj2fylr4vj16yvsf73cyywliz9cy78pl4ibmi03jhg837"))))
714 (build-system cmake-build-system)
716 '(#:tests? #f)) ; no "check" target
722 ("libxrender" ,libxrender)
724 (home-page "https://github.com/naelstrof/slop")
725 (synopsis "Select a region and print its bounds to stdout")
727 "slop (Select Operation) is a tool that queries for a selection from a
728 user and prints the region to stdout. It grabs the mouse and turns it into a
729 crosshair, lets the user click and drag to make a selection (or click on a
730 window) while drawing a pretty box around it, then finally prints the
731 selection's dimensions to stdout.")
732 (license license:gpl3+)))
741 (url "https://github.com/naelstrof/maim")
742 (commit (string-append "v" version))))
743 (file-name (git-file-name name version))
746 "181mjjrjb9fs1ficcv9miqbk94v95j1yli7fjp2dj514g7nj9l3x"))))
747 (build-system cmake-build-system)
749 '(#:tests? #f)) ; no "check" target
752 ("libjpeg" ,libjpeg-turbo)
754 ("libxcomposite" ,libxcomposite)
755 ("libxfixes" ,libxfixes)
756 ("libxrandr" ,libxrandr)
760 (home-page "https://github.com/naelstrof/maim")
761 (synopsis "Screenshot utility for X Window System")
763 "maim (Make Image) is a tool that takes screenshots of your desktop and
764 saves it in any format. Along with a full screen, it allows you to capture a
765 predefined region or a particular window. Also, it makes it possible to
766 include cursor in the resulting image.")
767 (license license:gpl3+)))
769 (define-public unclutter
776 "http://ftp.x.org/contrib/utilities/unclutter-"
780 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
781 (build-system gnu-build-system)
783 '(#:tests? #f ; no check target
785 (modify-phases %standard-phases
788 (lambda* (#:key inputs outputs #:allow-other-keys)
789 (let* ((out (assoc-ref outputs "out"))
790 (bin (string-append out "/bin"))
791 (man1 (string-append out "/share/man/man1")))
794 (invoke "make" "install" "install.man"
795 (string-append "BINDIR=" bin)
796 (string-append "MANDIR=" man1))))))))
797 (inputs `(("libx11" ,libx11)))
798 (home-page "http://ftp.x.org/contrib/utilities/")
799 (synopsis "Hide idle mouse cursor")
801 "Unclutter is a program which runs permanently in the background of an
802 X11 session. It checks on the X11 pointer (cursor) position every few
803 seconds, and when it finds it has not moved (and no buttons are pressed
804 on the mouse, and the cursor is not in the root window) it creates a
805 small sub-window as a child of the window the cursor is in. The new
806 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
807 invisible cursor. This allows you to see all the text in an xterm or
808 xedit, for example. The human factors crowd would agree it should make
809 things less distracting.")
810 (license license:public-domain)))
812 (define-public xautomation
819 (uri (string-append "https://www.hoopajoo.net/static/projects/"
820 "xautomation-" version ".tar.gz"))
824 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
825 (build-system gnu-build-system)
830 ("libxtst" ,libxtst)))
832 `(("xorgproto" ,xorgproto)))
833 (synopsis "Tools to automate tasks in X such as detecting on screen images")
835 "Xautomation can control X from the command line for scripts, and
836 do visual scraping to find things on the screen. The control interface
837 allows mouse movement, clicking, button up/down, key up/down, etc, and
838 uses the XTest extension so you don't have the annoying problems that
839 xse has when apps ignore sent events. The visgrep program can find
840 images inside of images and reports the coordinates, allowing programs
841 to find buttons, etc, on the screen to click on.")
842 (home-page "https://www.hoopajoo.net/projects/xautomation.html")
843 (license license:gpl2+)))
845 (define-public xbanish
849 (home-page "https://github.com/jcs/xbanish")
852 (uri (git-reference (url home-page)
853 (commit (string-append "v" version))))
854 (file-name (git-file-name name version))
857 "0ic5f7zgc32p5g1wxas9y5h8dhik0pvsa8wmn6skdry56gw9vg9q"))))
858 (build-system gnu-build-system)
860 `(#:tests? #f ; no tests
861 #:make-flags (list "CC=gcc"
862 (string-append "PREFIX=" (assoc-ref %outputs "out")))
863 #:phases (modify-phases %standard-phases
864 (delete 'configure)))) ; no configure script
867 ("libxfixes" ,libxfixes)
870 (synopsis "Banish the mouse cursor")
872 "@command{xbanish} hides the mouse cursor when you start typing, and
873 shows it again when the mouse cursor moves or a mouse button is pressed.")
874 (license license:bsd-3)))
876 (define-public xlockmore
882 (uri (list (string-append "http://sillycycle.com/xlock/"
883 "xlockmore-" version ".tar.xz")
884 ;; Previous releases are moved to a subdirectory.
885 (string-append "http://sillycycle.com/xlock/"
887 "xlockmore-" version ".tar.xz")))
890 "0wdb7gpyjw3sigmhiplgg1bqxz6wipr0c3n9492x2a18cv1saxjr"))))
891 (build-system gnu-build-system)
893 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
894 (assoc-ref %outputs "out")
895 "/lib/X11/app-defaults"))
896 #:tests? #f)) ;no such thing as a test suite
901 ("linux-pam" ,linux-pam)))
902 (home-page "https://sillycycle.com/xlockmore.html")
903 (synopsis "Screen locker for the X Window System")
905 "XLockMore is a classic screen locker and screen saver for the
907 (license (license:non-copyleft #f "See xlock.c.")
908 ))) ; + GPLv2 in modes/glx/biof.c.
917 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
918 name "-" version ".tar.gz"))
921 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
922 (build-system gnu-build-system)
925 (list (string-append "--mandir=" %output "/share/man"))))
930 ("libxinerama" ,libxinerama)))
931 (home-page "https://sourceforge.net/projects/libxosd/")
932 (synopsis "X On Screen Display")
934 "XOSD provides a C library and a simple utility (osd_cat) for displaying
935 transparent text on your screen.")
936 (license license:gpl2+)))
938 (define-public xbindkeys
944 ;; Download from the savannah mirror list fails
946 "http://www.nongnu.org/xbindkeys/xbindkeys-"
951 "1wl2vc5alisiwyk8m07y1ryq8w3ll9ym83j27g4apm4ixjl8d6x2"))))
952 (build-system gnu-build-system)
954 `(("pkg-config" ,pkg-config)))
957 ("guile" ,guile-2.2)))
958 (home-page "https://www.nongnu.org/xbindkeys/")
959 (synopsis "Associate a combination of keys with a shell command")
961 "XBindKeys is a program that allows you to launch shell commands with
962 your keyboard or your mouse under the X Window System. It links commands to
963 keys or mouse buttons, using a configuration file. It's independent of the
964 window manager and can capture all keyboard keys (ex: Power, Wake...). It
965 optionally supports a Guile-based configuration file layout, which enables you
966 to access all XBindKeys internals, so you can have key combinations, double
967 clicks or timed double clicks take actions. Also all functions that work in
968 Guile will work for XBindKeys.")
969 (license license:gpl2+)))
979 (url "https://github.com/baskerville/sxhkd")
981 (file-name (git-file-name name version))
983 (base32 "1winwzdy9yxvxnrv8gqpigl9y0c2px27mnms62bdilp4x6llrs9r"))))
984 (build-system gnu-build-system)
986 `(("asciidoc" ,asciidoc)
988 ("xcb-util" ,xcb-util)
989 ("xcb-util-keysyms" ,xcb-util-keysyms)
990 ("xcb-util-wm" ,xcb-util-wm)))
992 `(#:phases (modify-phases %standard-phases (delete 'configure))
993 #:tests? #f ; no check target
996 (string-append "PREFIX=" %output)
997 ;; Keep the documentation where the build system installs LICENSE.
998 (string-append "DOCPREFIX=" %output
999 "/share/doc/" ,name "-" ,version))))
1000 (home-page "https://github.com/baskerville/sxhkd")
1001 (synopsis "Simple X hotkey daemon")
1002 (description "sxhkd is a simple X hotkey daemon with a powerful and
1003 compact configuration syntax.")
1004 (license license:bsd-2)))
1006 (define-public rxvt-unicode
1008 (name "rxvt-unicode")
1012 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
1013 name "-" version ".tar.bz2"))
1014 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
1017 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
1018 (build-system gnu-build-system)
1020 ;; This sets the destination when installing the necessary terminal
1021 ;; capability data, which are not provided by 'ncurses'. See
1022 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
1023 `(#:configure-flags (list "--enable-256-color")
1024 #:make-flags (list (string-append "TERMINFO="
1025 (assoc-ref %outputs "out")
1028 (modify-phases %standard-phases
1029 (add-after 'install 'install-desktop-urxvt
1030 (lambda* (#:key outputs #:allow-other-keys)
1031 (let* ((output (assoc-ref outputs "out"))
1032 (desktop (string-append output "/share/applications")))
1034 (with-output-to-file
1035 (string-append desktop "/urxvt.desktop")
1042 TryExec=~@*~a/bin/urxvt~@
1047 (add-after 'install 'install-desktop-urxvtc
1048 (lambda* (#:key outputs #:allow-other-keys)
1049 (let* ((output (assoc-ref outputs "out"))
1050 (desktop (string-append output "/share/applications")))
1052 (with-output-to-file
1053 (string-append desktop "/urxvtc.desktop")
1057 Name=rxvt-unicode (client)~@
1058 Comment=Rxvt clone with XFT and unicode support~@
1059 Exec=~a/bin/urxvtc~@
1060 TryExec=~@*~a/bin/urxvtc~@
1066 `(("libXft" ,libxft)
1067 ("libX11" ,libx11)))
1069 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
1071 ("pkg-config" ,pkg-config)))
1072 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
1073 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
1074 (native-search-paths
1075 (list (search-path-specification
1076 (variable "TERMINFO_DIRS")
1077 (files '("share/terminfo")))))
1078 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
1079 (synopsis "Rxvt clone with XFT and unicode support")
1080 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
1081 intended as an xterm replacement for users who do not require features such as
1082 Tektronix 4014 emulation and toolkit-style configurability. It supports
1083 unicode, XFT and may be extended with Perl plugins. It also comes with a
1084 client/daemon pair that lets you open any number of terminal windows from
1085 within a single process.")
1086 (license license:gpl3+)))
1088 (define-public xcape
1095 (url "https://github.com/alols/xcape")
1096 (commit (string-append "v" version))))
1097 (file-name (git-file-name name version))
1100 "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm"))))
1101 (build-system gnu-build-system)
1103 `(#:tests? #f ; no check target
1104 ;; no configure script
1105 #:phases (modify-phases %standard-phases (delete 'configure))
1106 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1107 "MANDIR=/share/man/man1"
1110 `(("libxtst" ,libxtst)
1111 ("libx11" ,libx11)))
1113 `(("pkg-config" ,pkg-config)))
1114 (home-page "https://github.com/alols/xcape")
1115 (synopsis "Use a modifier key in X.org as another key")
1117 "This utility for X.org uses a modifier key as another key when
1118 pressed and released on its own. The default behaviour is to generate the
1119 Escape key when Left Control is pressed and released on its own.")
1120 (license license:gpl3+)))
1122 (define-public libwacom
1129 "https://github.com/linuxwacom/libwacom/releases/download/"
1130 "libwacom-" version "/libwacom-" version ".tar.bz2"))
1133 "1a5ffxyhl6crspybcfsx5ribgrgkzwfl5w9y32slxbgjwczb473h"))))
1134 (build-system glib-or-gtk-build-system)
1136 `(#:configure-flags '("--disable-static")))
1138 `(("pkg-config" ,pkg-config)))
1141 ("libgudev" ,libgudev)
1143 ("libxml2" ,libxml2)))
1145 ;; libwacom includes header files that include GLib, and libinput uses
1146 ;; those header files.
1148 (home-page "https://linuxwacom.github.io/")
1149 (synopsis "Helper library for Wacom tablet settings")
1151 "Libwacom is a library to help implement Wacom tablet settings. It is
1152 intended to be used by client-programs that need model identification. It is
1153 already being used by the gnome-settings-daemon and the GNOME Control Center
1154 Wacom tablet applet.")
1155 (license license:x11)))
1157 (define-public xf86-input-wacom
1159 (name "xf86-input-wacom")
1165 "https://github.com/linuxwacom/xf86-input-wacom/releases/download/"
1166 "xf86-input-wacom-" version "/"
1167 "xf86-input-wacom-" version ".tar.bz2"))
1169 (base32 "11qk58az6qwii774ga45h5yqzipwn56f0d74kdbajqdv45p85gqj"))))
1172 (list (string-append "--with-sdkdir="
1173 (assoc-ref %outputs "out")
1175 (string-append "--with-xorg-conf-dir="
1176 (assoc-ref %outputs "out")
1177 "/share/X11/xorg.conf.d"))))
1178 (build-system gnu-build-system)
1180 `(("pkg-config" ,pkg-config)))
1182 `(("xorg-server" ,xorg-server)
1183 ("libxrandr" ,libxrandr)
1184 ("libxinerama" ,libxinerama)
1187 (home-page "https://linuxwacom.github.io/")
1188 (synopsis "Wacom input driver for X")
1190 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
1191 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
1192 (license license:x11)))
1194 (define-public redshift
1202 (string-append "https://github.com/jonls/redshift/"
1203 "releases/download/v" version
1204 "/redshift-" version ".tar.xz"))
1207 "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j"))))
1208 (build-system gnu-build-system)
1210 `(#:imported-modules (,@%gnu-build-system-modules
1211 (guix build python-build-system))
1213 (modify-phases %standard-phases
1214 (add-after 'install 'split-outputs
1215 (lambda* (#:key outputs #:allow-other-keys)
1216 (let ((out (assoc-ref outputs "out"))
1217 (gtk (assoc-ref outputs "gtk"))
1218 (desktop-file "/share/applications/redshift-gtk.desktop"))
1219 (mkdir-p (string-append gtk "/bin"))
1220 (link (string-append out "/bin/redshift-gtk")
1221 (string-append gtk "/bin/redshift-gtk"))
1222 (delete-file (string-append out "/bin/redshift-gtk"))
1223 (copy-recursively (string-append out "/lib")
1224 (string-append gtk "/lib"))
1225 (delete-file-recursively (string-append out "/lib"))
1226 (mkdir-p (string-append gtk "/share/applications"))
1227 (link (string-append out desktop-file)
1228 (string-append gtk desktop-file))
1229 (delete-file (string-append out desktop-file))
1230 (with-directory-excursion (string-append out "/share")
1231 (for-each (lambda (dir)
1233 (string-append out "/share/" dir)
1234 (string-append gtk "/share/" dir))
1235 (delete-file-recursively dir))
1236 '("appdata" "icons")))
1238 (add-after 'split-outputs 'wrap
1239 (lambda* (#:key inputs outputs #:allow-other-keys)
1240 (let* ((gtk (assoc-ref outputs "gtk"))
1242 (@ (guix build python-build-system) python-version))
1243 (python (assoc-ref inputs "python"))
1244 (sitedir (string-append gtk "/lib/python"
1245 (python-version python)
1247 (wrap-program (string-append gtk "/bin/redshift-gtk")
1248 `("PYTHONPATH" ":" prefix
1249 (,(string-append sitedir ":" (getenv "PYTHONPATH"))))
1250 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH"))))
1252 (outputs '("out" "gtk"))
1254 `(("pkg-config" ,pkg-config)
1255 ("intltool" ,intltool)))
1257 `(("libdrm" ,libdrm)
1260 ("libxxf86vm" ,libxxf86vm)
1261 ("glib" ,glib) ;for Geoclue2 support
1263 ;; To build the GTK3 GUI, we need these.
1266 ("python-pygobject" ,python-pygobject)
1267 ("python-pyxdg" ,python-pyxdg)))
1268 (home-page "https://github.com/jonls/redshift")
1269 (synopsis "Adjust the color temperature of your screen")
1271 "Redshift adjusts the color temperature according to the position of the
1272 sun. A different color temperature is set during night and daytime. During
1273 twilight and early morning, the color temperature transitions smoothly from
1274 night to daytime temperature to allow your eyes to slowly adapt. At night the
1275 color temperature should be set to match the lamps in your room.")
1276 (license license:gpl3+)))
1278 (define-public redshift-wayland
1279 (let ((commit "7da875d34854a6a34612d5ce4bd8718c32bec804")
1282 (name "redshift-wayland")
1283 (version (string-append "1.12-"
1284 revision "." (string-take commit 7)))
1288 (url "https://github.com/minus7/redshift")
1290 (file-name (string-append name "-" version))
1293 "0nbkcw3avmzjg1jr1g9yfpm80kzisy55idl09b6wvzv2sz27n957"))))
1294 (build-system gnu-build-system)
1296 '(#:phases (modify-phases %standard-phases
1297 (add-after 'install 'create-desktop-file
1298 (lambda* (#:key outputs #:allow-other-keys)
1299 ;; For the GeoClue provider to work, a .desktop file
1300 ;; needs to be provided. A template is available,
1301 ;; but it only gets installed when the GUI is enabled.
1302 ;; Install it manually for this Wayland variant.
1303 (let* ((out (assoc-ref outputs "out"))
1306 out "/share/applications/redshift.desktop")))
1307 (mkdir-p (dirname desktop-file))
1308 (copy-file "data/applications/redshift.desktop.in"
1310 (substitute* desktop-file
1314 `(("autoconf" ,autoconf)
1315 ("automake" ,automake)
1316 ("libtool" ,libtool)
1317 ("pkg-config" ,pkg-config)
1318 ("intltool" ,intltool)))
1320 `(("libdrm" ,libdrm)
1323 ("libxxf86vm" ,libxxf86vm)
1324 ("glib" ,glib) ; for Geoclue2 support
1325 ("wayland" ,wayland)))
1326 (home-page "https://github.com/minus7/redshift")
1327 (synopsis "Adjust the color temperature of your screen (with Wayland support)")
1329 "Redshift adjusts the color temperature according to the position of the
1330 sun. A different color temperature is set during night and daytime. During
1331 twilight and early morning, the color temperature transitions smoothly from
1332 night to daytime temperature to allow your eyes to slowly adapt. At night the
1333 color temperature should be set to match the lamps in your room.
1335 This is a fork with added support for Wayland using the wlr-gamma-control
1337 (license license:gpl3+))))
1339 (define-public xscreensaver
1341 (name "xscreensaver")
1347 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
1350 (base32 "15bv05vpfjwsrqbazrjmm382jd7vvw0mp6y9vasn6wvxzjf0in3k"))))
1351 (build-system gnu-build-system)
1353 `(#:tests? #f ; no check target
1355 (modify-phases %standard-phases
1356 (add-before 'configure 'adjust-gtk-resource-paths
1358 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
1359 (("@GTK_DATADIR@") "@datadir@")
1360 (("@PO_DATADIR@") "@datadir@"))
1362 #:configure-flags '("--with-pam" "--with-proc-interrupts"
1363 "--without-readdisplay")
1364 #:make-flags (list (string-append "AD_DIR="
1365 (assoc-ref %outputs "out")
1366 "/lib/X11/app-defaults"))))
1368 `(("pkg-config" ,pkg-config)
1369 ("intltool" ,intltool)))
1371 `(("libx11" ,libx11)
1372 ("libxext" ,libxext)
1378 ("libglade" ,libglade)
1379 ("libxml2" ,libxml2)
1381 ("libjpeg" ,libjpeg-turbo)
1382 ("linux-pam" ,linux-pam)
1388 ("libxrandr" ,libxrandr)
1391 (home-page "https://www.jwz.org/xscreensaver/")
1392 (synopsis "Classic screen saver suite supporting screen locking")
1394 "xscreensaver is a popular screen saver collection with many entertaining
1395 demos. It also acts as a nice screen locker.")
1396 ;; xscreensaver doesn't have a single copyright file and instead relies on
1397 ;; source comment headers, though most files have the same lax
1398 ;; permissions. To reduce complexity, we're pointing at Debian's
1399 ;; breakdown of the copyright information.
1400 (license (license:non-copyleft
1402 "http://metadata.ftp-master.debian.org/changelogs/"
1403 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1405 (define-public xssproxy
1412 (url "https://github.com/timakro/xssproxy")
1413 (commit (string-append "v" version))))
1414 (file-name (string-append name "-" version "-checkout"))
1417 "0c83wmipnsdnbihc5niyczs7jrkss2s8n6iwwjdia7hkjzbd0hl7"))))
1418 (build-system gnu-build-system)
1419 (arguments `(#:make-flags `("bindir=/bin"
1420 "man1dir=/share/man/man1"
1421 ,(string-append "DESTDIR=" (assoc-ref %outputs "out"))
1423 #:phases (modify-phases %standard-phases
1427 `(("pkg-config" ,pkg-config)))
1431 ("libxext" ,libxext)
1432 ("libxscrnsaver" ,libxscrnsaver)
1434 (synopsis "Forward freedesktop.org Idle Inhibition Service calls to Xss")
1435 (description "xssproxy implements the @code{org.freedesktop.ScreenSaver}
1436 D-Bus interface described in the Idle Inhibition Service Draft by the
1437 freedesktop.org developers. The inhibition of the screensaver is then
1438 controlled using the XScreenSaverSuspend function from the Xss (X11 Screen
1439 Saver extension) library.")
1440 (home-page "https://github.com/timakro/xssproxy")
1441 (license license:gpl3+)))
1449 (uri (string-append "http://www.vergenet.net/~conrad/software"
1450 "/xsel/download/xsel-" version ".tar.gz"))
1453 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1454 (build-system gnu-build-system)
1456 `(("libxt" ,libxt)))
1457 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1458 (synopsis "Manipulate X selection")
1460 "XSel is a command-line program for getting and setting the contents of
1461 the X selection. Normally this is only accessible by manually highlighting
1462 information and pasting it with the middle mouse button.
1464 XSel reads from standard input and writes to standard output by default,
1465 but can also follow a growing file, display contents, delete entries and more.")
1466 (license (license:x11-style "file://COPYING"
1467 "See COPYING in the distribution."))))
1469 (define-public xdpyprobe
1475 (uri (string-append "https://github.com/alezost/" name
1476 "/releases/download/v" version
1477 "/" name "-" version ".tar.gz"))
1480 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1481 (build-system gnu-build-system)
1483 `(("libx11" ,libx11)))
1484 (home-page "https://github.com/alezost/xdpyprobe")
1485 (synopsis "Probe X server for connectivity")
1487 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1488 connectivity of the X server running on a particular @code{DISPLAY}.")
1489 (license license:gpl3+)))
1497 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1498 "releases/download/"
1499 version "/rofi-" version ".tar.xz"))
1502 "12p9z8bl1gg8k024m4a6zfz7gf1zbyffardh98raqgabn6knwk22"))))
1503 (build-system gnu-build-system)
1508 ("startup-notification" ,startup-notification)
1509 ("libjpeg" ,libjpeg-turbo)
1510 ("librsvg" ,librsvg)
1511 ("libxkbcommon" ,libxkbcommon)
1513 ("xcb-util" ,xcb-util)
1514 ("xcb-util-xrm" ,xcb-util-xrm)
1515 ("xcb-util-wm" ,xcb-util-wm)))
1520 ("glib:bin" ,glib "bin")
1521 ("pkg-config" ,pkg-config)))
1523 `(#:parallel-tests? #f ; fails in some circumstances
1525 (modify-phases %standard-phases
1526 (add-before 'configure 'adjust-tests
1528 (substitute* '("test/helper-expand.c")
1531 (("g_get_home_dir \\(\\)") "\"/\""))
1533 (home-page "https://github.com/DaveDavenport/rofi")
1534 (synopsis "Application launcher")
1535 (description "Rofi is a minimalist application launcher. It memorizes which
1536 applications you regularly use and also allows you to search for an application
1538 (license license:expat)))
1540 (define-public tint2
1546 (uri (string-append "https://gitlab.com/o9000/" name
1547 "/repository/archive.tar.gz?ref=" version))
1548 (file-name (string-append name "-" version ".tar.gz"))
1551 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1552 (build-system cmake-build-system)
1554 '(#:tests? #f ;no test target
1556 (modify-phases %standard-phases
1557 (add-after 'unpack 'fix-installation-prefix
1559 (substitute* "CMakeLists.txt"
1560 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))
1565 ("librsvg" ,librsvg)
1566 ("libxcomposite" ,libxcomposite)
1567 ("libxdamage" ,libxdamage)
1569 ("libxinerama" ,libxinerama)
1570 ("libxrandr" ,libxrandr)
1571 ("startup-notification" ,startup-notification)))
1573 `(("gettext" ,gettext-minimal)
1574 ("pkg-config" ,pkg-config)))
1575 (home-page "https://gitlab.com/o9000/tint2")
1576 (synopsis "Lightweight task bar")
1578 "Tint2 is a simple task bar made for modern X window managers. It was
1579 specifically made for Openbox but it should also work with other window
1580 managers (GNOME, KDE, XFCE etc.).
1582 The taskbar includes transparency and color settings for the font, icons,
1583 border, and background. It also supports multihead setups, customized mouse
1584 actions, a built-in clock, a battery monitor and a system tray.")
1585 (license license:gpl2)))
1588 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1592 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1593 revision "." (string-take commit 7)))
1597 (url "https://github.com/robm/dzen")
1599 (file-name (string-append name "-" version))
1602 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1603 (build-system gnu-build-system)
1605 `(#:tests? #f ; No test suite.
1606 #:make-flags ; Replacement for `config.mk`.
1608 (string-append "VERSION = " ,version)
1609 (string-append "PREFIX = " %output)
1610 "MANPREFIX = ${PREFIX}/share/man"
1612 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1613 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1614 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1619 (modify-phases %standard-phases
1620 (delete 'configure) ; No configuration script.
1621 ;; Use own make-flags instead of `config.mk`.
1622 (add-before 'build 'dont-include-config-mk
1624 (substitute* "Makefile" (("include config.mk") ""))
1627 `(("libx11" ,libx11)
1630 ("libxinerama" ,libxinerama)))
1631 (native-inputs `(("pkg-config" ,pkg-config)))
1632 (synopsis "General purpose messaging, notification and menuing program for X11")
1633 (description "Dzen is a general purpose messaging, notification and menuing
1634 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1635 (home-page "https://github.com/robm/dzen")
1636 (license license:expat))))
1638 (define-public xftwidth
1641 (version "20170402")
1646 (url "http://github.com/vixus0/xftwidth")
1647 (commit "35ff963908d41a8a6a7101c434c88255728025ee")))
1650 "1jwl25785li24kbp0m1wxfwk4dgxkliynn03nsj813cjr34kq16h"))
1651 (file-name (string-append name "-" version "-checkout"))))
1652 (build-system gnu-build-system)
1653 (inputs `(("freetype" ,freetype)
1655 ("fontconfig" ,fontconfig)
1656 ("libxft" ,libxft)))
1658 `(("pkg-config" ,pkg-config)))
1661 (modify-phases %standard-phases
1662 (add-after 'unpack 'fix-makefile ; /usr/bin doesn't show up in PATH
1663 (lambda _ (substitute* "Makefile" (("usr/") "")) #t))
1664 (delete 'check) ; no check included in Makefile
1665 (delete 'configure))
1667 (let ((out (assoc-ref %outputs "out")))
1668 (list (string-append "DESTDIR=" out)))))
1669 (home-page "https://github.com/vixus0/xftwidth")
1670 (synopsis "Calculator for determining pixel widths of displayed text using Xft fonts")
1671 (description "xftwidth is a small C program for calculating the pixel
1672 widths of displayed text using Xft fonts. It is especially useful in scripts
1673 for displaying text in graphical panels, menus, popups, and notification
1674 windows generated using dzen. These scripts are often used in conjunction with
1675 minimalistic tiling window managers such as herbstluftwm and bspwm.")
1676 (license license:expat)))
1678 (define-public xcb-util-xrm
1680 (name "xcb-util-xrm")
1685 "https://github.com/Airblader/xcb-util-xrm/releases"
1686 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1689 "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h"))
1690 (modules '((guix build utils)))
1694 (delete-file-recursively "m4")
1696 (build-system gnu-build-system)
1698 `(("pkg-config" ,pkg-config)
1700 ("libx11" ,libx11))) ; for tests
1702 `(("libxcb" ,libxcb)
1703 ("xcb-util" ,xcb-util)))
1704 (home-page "https://github.com/Airblader/xcb-util-xrm")
1705 (synopsis "XCB utility functions for the X resource manager")
1707 "The XCB util module provides a number of libraries which sit on
1708 top of libxcb, the core X protocol library, and some of the extension
1709 libraries. These experimental libraries provide convenience functions
1710 and interfaces which make the raw X protocol more usable. Some of the
1711 libraries also provide client-side code which is not strictly part of
1712 the X protocol but which has traditionally been provided by Xlib.
1714 XCB util-xrm module provides the following libraries:
1716 - xrm: utility functions for the X resource manager.")
1717 (license license:x11)))
1719 (define-public xcalib
1723 (home-page "https://github.com/OpenICC/xcalib")
1729 (file-name (git-file-name name version))
1732 "05fzdjmhiafgi2jf0k41i3nm0837a78sb6yv59cwc23nla8g0bhr"))
1735 ;; Add missing documentation for the new --output option.
1736 ;; This upstream patch can be removed on the next update.
1740 home-page "/commit/"
1741 "ae03889b91fe984b18e925ad2b5e6f2f7354e058.patch"))
1742 (file-name "xcalib-update-man-page.patch")
1745 "0f7b4d5484x4b9n1bwhqmar0kcaa029ffff7bp3xpr734n1qgqb6")))))))
1746 (build-system cmake-build-system)
1748 '(#:tests? #f)) ; no test suite
1749 (inputs `(("libx11" ,libx11)
1750 ("libxext" ,libxext)
1751 ("libxrandr" ,libxrandr)
1752 ("libxxf86vm" ,libxxf86vm)))
1753 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1754 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1755 profiles to the video card's gamma ramp. It does work with most video card
1756 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1757 invert colors on a specific display/screen.")
1758 (license license:gpl2)))
1760 (define-public nxbelld
1767 (url "https://github.com/dusxmt/nxbelld")
1771 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1772 (file-name (git-file-name name version))))
1773 (build-system gnu-build-system)
1774 (arguments '(#:configure-flags `("--enable-sound"
1777 (native-inputs `(("autoconf" ,autoconf)
1778 ("automake" ,automake)
1779 ("pkg-config" ,pkg-config)
1781 (inputs `(("libx11" ,libx11)
1782 ("alsa-lib" ,alsa-lib)))
1783 (synopsis "Daemon that performs an action every time the X11 bell is rung")
1784 (description "nxbelld is a tiny utility to aid people who either don't
1785 like the default PC speaker beep, or use a sound driver that doesn't have
1786 support for the PC speaker. The utility performs a given action every time
1787 the X bell is rung. The actions nxbelld can currently perform include running
1788 a specified program, emulating the PC speaker beep using the sound card (default),
1789 or playing a PCM encoded WAVE file.")
1790 (home-page "https://github.com/dusxmt/nxbelld")
1791 (license license:gpl3+)))
1793 (define-public xautolock
1799 (uri (string-append "https://www.ibiblio.org/pub/linux/X11/"
1800 "screensavers/xautolock-" version ".tgz"))
1803 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1804 (build-system gnu-build-system)
1806 `(("imake" ,imake)))
1808 `(("libx11" ,libx11)
1809 ("libxext" ,libxext)
1810 ("libxscrnsaver" ,libxscrnsaver)))
1814 (modify-phases %standard-phases
1816 (lambda* (#:key inputs outputs #:allow-other-keys)
1817 (let ((imake (assoc-ref inputs "imake"))
1818 (out (assoc-ref outputs "out")))
1819 ;; Generate Makefile
1821 (substitute* "Makefile"
1822 ;; These imake variables somehow remain undefined
1823 (("DefaultGcc2[[:graph:]]*Opt") "-O2")
1824 ;; Reset a few variable defaults that are set in imake templates
1826 (("(MANPATH = )[[:graph:]]*" _ front)
1827 (string-append front out "/share/man")))
1828 ;; Old BSD-style 'union wait' is unneeded (defining
1829 ;; _USE_BSD did not seem to fix it)
1830 (substitute* "src/engine.c"
1831 (("union wait status") "int status = 0"))
1833 (add-after 'install 'install/man
1835 (invoke "make" "install.man"))))))
1836 (home-page "https://ibiblio.org/pub/Linux/X11/screensavers/")
1837 (synopsis "Program launcher for idle X sessions")
1838 (description "Xautolock monitors input devices under the X Window
1839 System, and launches a program of your choice if there is no activity after
1840 a user-configurable period of time.")
1841 (license license:gpl2)))
1843 (define-public screen-message
1845 (name "screen-message")
1850 "https://www.joachim-breitner.de/archive/screen-message"
1851 "/screen-message-" version ".tar.gz"))
1854 "1lw955qq5pq010lzmaf32ylj2iprgsri9ih4hx672c3f794ilab0"))))
1855 (build-system gnu-build-system)
1856 (inputs `(("gtk3" ,gtk+)
1859 (native-inputs `(("pkg-config" ,pkg-config)))
1861 ;; The default configure puts the 'sm' binary in games/ instead of bin/ -
1863 `(#:make-flags (list (string-append "execgamesdir=" %output "/bin"))))
1864 (synopsis "Print messages on your screen")
1865 (description "@code{screen-message} is a tool for displaying text on
1866 your screen. It will make the text as large as possible and display it
1867 with black color on a white background (colors are configurable on the
1869 (home-page "https://www.joachim-breitner.de/projects#screen-message")
1870 (license license:gpl2+)))
1872 (define-public xss-lock
1873 ;; xss-lock does not seem to be maintained any longer, but the last commits
1874 ;; fix important issues so we package them.
1875 (let ((version "0.3.0")
1877 (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717"))
1880 (version (git-version version revision commit))
1884 (url "https://bitbucket.org/raymonad/xss-lock.git")
1886 (file-name (git-file-name name version))
1889 "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r"))))
1890 (build-system cmake-build-system)
1891 (inputs `(("glib" ,glib)
1892 ("xcb-util" ,xcb-util)))
1894 `(("python-docutils" ,python-docutils)
1895 ("pkg-config" ,pkg-config)))
1898 (synopsis "Use external screen locker on events")
1899 (description "@code{xss-lock} listens to X signals to fire up a
1900 user-defined screensaver. In effect this automatically locks the
1901 screen when closing a laptop lid or after a period of user inactivity (as set
1902 with @code{xset s TIMEOUT}). The notifier command, if specified, is executed
1903 first. Additionally, xss-lock uses the inhibition logic to lock the screen
1904 before the system goes to sleep.")
1905 (home-page "https://bitbucket.org/raymonad/xss-lock")
1906 (license license:expat))))
1908 (define-public python-pyperclip
1910 (name "python-pyperclip")
1915 (uri (pypi-uri "pyperclip" version))
1918 "1p505c23ji06r28k1y67siihsbdzdf1brhlqpyv9ams4gk9863pp"))))
1919 (build-system python-build-system)
1921 '(#:tests? #f)) ; Not clear how to make tests pass.
1925 (home-page "https://github.com/asweigart/pyperclip")
1926 (synopsis "Python clipboard module")
1928 "Pyperclip is a clipboard module for Python, handling copy/pasting from
1930 (license license:bsd-3)))
1932 (define-public numlockx
1939 ;; It seems that upstream is gone.
1940 (url "https://github.com/rg3/numlockx")
1942 (file-name (git-file-name name version))
1945 "1w49fayhwzn5rx0z1q2lrvm7z8jrd34lgb89p853a024bixc3cf2"))))
1946 (build-system gnu-build-system)
1948 `(("xorg-server" ,xorg-server)))
1949 (home-page "https://github.com/rg3/numlockx")
1950 (synopsis "Turns on the numlock key in X11")
1951 (description "@command{numlockx} is a tiny program that lets you turn on
1952 the numlock key in X11. It can be called from the user's initialization files
1953 to automatically turn it on on login.")
1954 (license license:expat)))
1956 (define-public xrandr-invert-colors
1958 (name "xrandr-invert-colors")
1963 (url "https://github.com/zoltanp/xrandr-invert-colors")
1964 (commit (string-append "v" version))))
1965 (file-name (git-file-name name version))
1968 "1br3x9vr6xm4ika06n8cfxx1b3wdchdqvyzjl4y1chmivrml8x9h"))))
1969 (build-system gnu-build-system)
1971 `(#:make-flags (list "CC=gcc")
1972 #:tests? #f ; there are none
1974 (modify-phases %standard-phases
1977 (lambda* (#:key outputs #:allow-other-keys)
1978 (let* ((out (assoc-ref outputs "out"))
1979 (bin (string-append out "/bin")))
1980 (install-file "xrandr-invert-colors.bin" bin)
1983 `(("libxrandr" ,libxrandr)))
1984 (home-page "https://github.com/zoltanp/xrandr-invert-colors")
1985 (synopsis "Invert display colors")
1986 (description "This package provides a small utility for inverting the
1987 colors on all monitors attached to an XRandR-capable X11 display server.")
1988 (license license:gpl3+)))
1998 (string-append "https://www.umaxx.net/dl/sct-"
2001 (base32 "0lrhx771iccbw04wrhj0ygids1pzmjfc4hvklm30m3p3flvhqf0m"))))
2002 (build-system gnu-build-system)
2005 (list ,(string-append "CC=" (cc-for-target)))
2006 #:tests? #f ; no test suite
2008 (modify-phases %standard-phases
2010 (add-after 'unpack 'fix-sctd-paths
2011 (lambda* (#:key outputs inputs #:allow-other-keys)
2012 (let ((out (assoc-ref outputs "out"))
2013 (coreutils (assoc-ref inputs "coreutils"))
2014 (inetutils (assoc-ref inputs "inetutils"))
2015 (sed (assoc-ref inputs "sed")))
2016 (substitute* "sctd.sh"
2017 (("\\$\\(which sct\\)") (string-append out "/bin/sct"))
2018 (("date") (string-append coreutils "/bin/date"))
2019 (("printf") (string-append coreutils "/bin/printf"))
2020 (("sleep") (string-append coreutils "/bin/sleep"))
2021 (("logger") (string-append inetutils "/bin/logger"))
2022 (("sed") (string-append sed "/bin/sed"))))))
2024 (lambda* (#:key outputs #:allow-other-keys)
2025 (let ((out (assoc-ref outputs "out")))
2026 (install-file "sct" (string-append out "/bin"))
2027 (install-file "sctd.sh" (string-append out "/bin"))
2028 (install-file "sct.1" (string-append out "/man/man1"))
2029 (install-file "sctd.1" (string-append out "/man/man1"))
2030 (rename-file (string-append out "/bin/sctd.sh")
2031 (string-append out "/bin/sctd"))
2034 `(("coreutils" ,coreutils) ; sctd uses "date", "printf" and "sleep"
2035 ("inetutils" ,inetutils) ; sctd uses "logger"
2036 ("libxrandr" ,libxrandr)
2037 ("sed" ,sed))) ; sctd uses "sed"
2038 (home-page "https://www.umaxx.net")
2039 (synopsis "Set the color temperature of the screen")
2040 (description "@code{sct} is a lightweight utility to set the color
2041 temperature of the screen.")
2042 (license (license:non-copyleft "file://sct.c")))) ; "OpenBSD" license
2044 (define-public xsecurelock
2046 (name "xsecurelock")
2051 "https://github.com/google/xsecurelock/releases"
2052 "/download/v" version "/xsecurelock-" version ".tar.gz"))
2054 (base32 "070gknyv0s5hz9hkc6v73m2v7ssyjwgl93b5hd4glayfqxqjbmdp"))))
2055 (build-system gnu-build-system)
2058 '("--with-pam-service-name=login"
2060 "--with-default-authproto-module=/run/setuid-programs/authproto_pam")))
2062 `(("pandoc" ,pandoc)
2063 ("pkg-config" ,pkg-config)))
2065 `(("fontconfig" ,fontconfig)
2067 ("libxcomposite" ,libxcomposite)
2068 ("libxext" ,libxext)
2069 ("libxfixes" ,libxfixes)
2072 ("libxrandr" ,libxrandr)
2073 ("libxscrnsaver" ,libxscrnsaver)
2074 ("linux-pam" ,linux-pam)))
2075 (home-page "https://github.com/google/xsecurelock")
2076 (synopsis "X11 screen lock utility with the primary goal of security")
2077 (description "@code{xsecurelock} is an X11 screen locker which uses
2078 a modular design to avoid the usual pitfalls of screen locking utility design.
2080 As a consequence of the modular design, the usual screen locker service
2081 shouldn't be used with @code{xsecurelock}. Instead, you need to add a helper
2082 binary to setuid-binaries:
2084 (setuid-programs (cons*
2085 (file-append xsecurelock \"/libexec/xsecurelock/authproto_pam\")
2088 (license license:asl2.0)))
2090 (define-public wl-clipboard
2092 (name "wl-clipboard")
2098 (url "https://github.com/bugaevc/wl-clipboard")
2099 (commit (string-append "v" version))))
2100 (file-name (git-file-name name version))
2102 (base32 "0c4w87ipsw09aii34szj9p0xfy0m00wyjpll0gb0aqmwa60p0c5d"))))
2103 (build-system meson-build-system)
2105 `(("pkg-config" ,pkg-config)))
2107 `(("wayland" ,wayland)
2108 ("wayland-protocols" ,wayland-protocols)))
2109 (home-page "https://github.com/bugaevc/wl-clipboard")
2110 (synopsis "Command-line copy/paste utilities for Wayland")
2111 (description "Wl-clipboard is a set of command-line copy/paste utilities for
2113 (license license:gpl3+)))
2115 (define-public autocutsel
2121 (uri (string-append "https://github.com/sigmike/autocutsel"
2122 "/releases/download/" version "/"
2123 "autocutsel-" version ".tar.gz"))
2126 "0gsys2dzh4az51ndcsabhlbbrjn2nm75lnjr45kg6r8sm8q66dx2"))))
2127 (build-system gnu-build-system)
2129 '(#:tests? #f)) ; no "check" target
2130 (native-inputs `(("libx11" ,libx11)
2131 ("libxaw" ,libxaw)))
2132 (home-page "https://www.nongnu.org/autocutsel/")
2133 (synopsis "Automated X11 clipboard and cutbuffer synchronization")
2134 (description "@code{autocutsel} tracks changes in the server's cutbuffer
2135 and clipboard selection. When the clipboard is changed, it updates the
2136 cutbuffer. When the cutbuffer is changed, it owns the clipboard selection.
2137 The cutbuffer and clipboard selection are always synchronized.")
2138 (license license:gpl2+)))
2140 (define-public jgmenu
2148 (url "https://github.com/johanmalm/jgmenu")
2149 (commit (string-append "v" version))))
2150 (file-name (git-file-name name version))
2153 "1wsh37rapb1bszlq36hvwxqvfds39hbvbl152m8as4zlh93wfvvk"))))
2154 (build-system gnu-build-system)
2156 `(("cppcheck" ,cppcheck)
2158 ("pkg-config" ,pkg-config)))
2162 ("librsvg" ,librsvg)
2164 ("libxml2" ,libxml2)
2165 ("libxrandr" ,libxrandr)
2169 (modify-phases %standard-phases
2170 (add-after 'unpack 'fix-tests
2172 (substitute* "scripts/cppcheck-wrapper.sh"
2173 (("--library=/usr/share/cppcheck/cfg/gnu\\.cfg")
2177 (lambda* (#:key outputs #:allow-other-keys)
2179 (invoke "./configure"
2180 (string-append "--prefix=" (assoc-ref outputs "out")))
2182 (synopsis "Simple X11 menu")
2184 "This is a simple menu for X11 designed for scripting and tweaking. It
2185 can optionally use some appearance settings from XSettings, tint2 and GTK.")
2186 (home-page "https://jgmenu.github.io/")
2187 (license license:gpl2)))
2189 (define-public xwallpaper
2197 (url "https://github.com/stoeckmann/xwallpaper")
2198 (commit (string-append "v" version))))
2199 (file-name (git-file-name name version))
2201 (base32 "121ai4dc0v65qk12gn9w62ixly8hc8a5qrygkbb82vy8ck4jqxj7"))))
2202 (build-system gnu-build-system)
2204 `(("autoconf" ,autoconf)
2205 ("automake" ,automake)
2206 ("pkg-config" ,pkg-config)))
2208 `(("libjpeg-turbo" ,libjpeg-turbo)
2212 ("xcb-util" ,xcb-util)
2213 ("xcb-util-image" ,xcb-util-image)))
2214 (home-page "https://github.com/stoeckmann/xwallpaper")
2215 (synopsis "Wallpaper setting utility for X")
2217 "The xwallpaper utility allows you to set image files as your X
2218 wallpaper. JPEG, PNG, and XPM file formats are supported.
2220 The wallpaper is also advertised to programs which support semi-transparent
2222 (license license:isc)))
2224 (define-public xwrits
2231 (uri (string-append "https://www.lcdf.org/~eddietwo/xwrits/"
2232 "xwrits-" version ".tar.gz"))
2234 (base32 "1n7y0fqpcvmzznvbsn14hzy5ddaa3lilm8aw6ckscqndnh4lijma"))))
2235 (build-system gnu-build-system)
2238 (modify-phases %standard-phases
2239 (add-after 'install 'install-docs
2240 (lambda* (#:key outputs #:allow-other-keys)
2241 (let* ((out (assoc-ref outputs "out"))
2242 (doc (string-append out "/share/doc/xwrits")))
2243 (install-file "GESTURES" doc)
2244 (install-file "README" doc)
2247 `(("libx11" ,libx11)
2248 ("libxinerama" ,libxinerama)))
2249 (home-page "https://www.lcdf.org/~eddietwo/xwrits/")
2250 (synopsis "Reminds you to take wrist breaks")
2251 (description "Xwrits reminds you to take wrist breaks for prevention or
2252 management of repetitive stress injuries. When you should take a break, it
2253 pops up an X window, the warning window. You click on the warning window,
2254 then take a break. The window changes appearance while you take the break.
2255 It changes again when your break is over. Then you just resume typing.
2256 Xwrits hides itself until you should take another break.")
2257 (license license:gpl2)))
2259 (define-public xsettingsd
2267 (url "https://github.com/derat/xsettingsd")
2268 (commit (string-append "v" version))))
2269 (file-name (git-file-name name version))
2272 "05m4jlw0mgwp24cvyklncpziq1prr2lg0cq9c055sh4n9d93d07v"))))
2273 (build-system scons-build-system)
2275 `(("libx11" ,libx11)))
2277 `(("pkg-config" ,pkg-config)
2278 ("googletest" ,googletest)
2279 ("googletest-source" ,(package-source googletest))))
2281 `(#:scons ,scons-python2
2285 (modify-phases %standard-phases
2286 (add-before 'build 'patch-sconstruct
2287 (lambda* (#:key inputs #:allow-other-keys)
2288 (substitute* "SConstruct"
2289 ;; scons doesn't pick up environment variables automatically
2290 ;; so it needs help to find path variables
2291 (("env = Environment\\(")
2294 'PATH': os.environ['PATH'],
2295 'CPATH': os.environ['C_INCLUDE_PATH'],
2296 'LIBRARY_PATH': os.environ['LIBRARY_PATH'],
2297 'PKG_CONFIG_PATH': os.environ['PKG_CONFIG_PATH']
2299 ;; Update path to gtest source files used in tests
2300 (("/usr/src/gtest") (string-append
2301 (assoc-ref inputs "googletest-source")
2303 ;; Exclude one warning that causes a build error
2304 (("-Werror") "-Werror -Wno-error=sign-compare"))
2306 ;; The SConstruct script doesn't configure installation so
2307 ;; binaries must be copied to the output path directly
2309 (lambda* (#:key outputs #:allow-other-keys)
2310 (let* ((out (assoc-ref outputs "out"))
2311 (bin (string-append out "/bin")))
2313 (install-file "xsettingsd" bin)
2314 (install-file "dump_xsettings" bin)
2316 (home-page "https://github.com/derat/xsettingsd")
2317 (synopsis "Xorg settings daemon")
2318 (description "@command{xsettingsd} is a lightweight daemon that provides settings to
2319 Xorg applications via the XSETTINGS specification. It is used for defining
2320 font and theme settings when a complete desktop environment (GNOME, KDE) is
2321 not running. With a simple @file{.xsettingsd} configuration file one can avoid
2322 configuring visual settings in different UI toolkits separately.")
2323 (license license:bsd-3)))
2325 (define-public clipnotify
2333 (url "https://github.com/cdown/clipnotify")
2335 (file-name (git-file-name name version))
2338 "1v3ydm5ljy8z1savmdxrjyx7a5bm5013rzw80frp3qbbjaci0wbg"))))
2339 (build-system gnu-build-system)
2342 (modify-phases %standard-phases
2345 (lambda* (#:key inputs outputs #:allow-other-keys)
2346 (let* ((out (assoc-ref outputs "out"))
2347 (bin (string-append out "/bin"))
2348 (doc (string-append %output "/share/doc/" ,name "-" ,version)))
2349 (install-file "clipnotify" bin)
2350 (install-file "README.md" doc)
2353 (list ,(string-append "CC=" (cc-for-target)))
2354 #:tests? #f)) ; no test suite
2356 `(("libx11" ,libx11)
2357 ("libXfixes" ,libxfixes)))
2358 (home-page "https://github.com/cdown/clipnotify")
2359 (synopsis "Notify on new X clipboard events")
2360 (description "@command{clipnotify} is a simple program that, using the
2361 XFIXES extension to X11, waits until a new selection is available and then
2364 It was primarily designed for clipmenu, to avoid polling for new selections.
2366 @command{clipnotify} doesn't try to print anything about the contents of the
2367 selection, it just exits when it changes. This is intentional -- X11's
2368 selection API is verging on the insane, and there are plenty of others who
2369 have already lost their sanity to bring us xclip/xsel/etc. Use one of those
2370 tools to complement clipnotify.")
2371 (license license:public-domain)))
2373 (define-public clipmenu
2374 (let ((commit "bcbe7b144598db4a103f14e8408c4b7327d6d5e1")
2378 (version (string-append "6.0.1-"
2379 revision "." (string-take commit 7)))
2384 (url "https://github.com/cdown/clipmenu")
2386 (file-name (git-file-name name version))
2389 "0053j4i14lz5m2bzc5sch5id5ilr1bl196mp8fp0q8x74w3vavs9"))))
2390 (build-system gnu-build-system)
2393 (modify-phases %standard-phases
2397 (lambda* (#:key inputs outputs #:allow-other-keys)
2398 (let* ((out (assoc-ref outputs "out"))
2399 (bin (string-append out "/bin"))
2400 (doc (string-append %output "/share/doc/"
2401 ,name "-" ,version)))
2402 (install-file "clipdel" bin)
2403 (install-file "clipmenu" bin)
2404 (install-file "clipmenud" bin)
2405 (install-file "README.md" doc)
2407 (add-after 'install 'wrap-script
2408 (lambda* (#:key inputs outputs #:allow-other-keys)
2409 (let* ((out (assoc-ref outputs "out"))
2410 (clipnotify (assoc-ref inputs "clipnotify"))
2411 (coreutils-minimal (assoc-ref inputs "coreutils-minimal"))
2412 (gawk (assoc-ref inputs "gawk"))
2413 (util-linux (assoc-ref inputs "util-linux"))
2414 (xdotool (assoc-ref inputs "xdotool"))
2415 (xsel (assoc-ref inputs "xsel")))
2418 (wrap-script (string-append out "/bin/" prog)
2421 (string-append dir "/bin"))
2422 (list clipnotify coreutils-minimal
2423 gawk util-linux xdotool xsel)))))
2424 '("clipmenu" "clipmenud" "clipdel")))
2427 (lambda* (#:key inputs outputs #:allow-other-keys)
2428 ;; substitute a shebang appearing inside a string (the test
2429 ;; file writes this string to a temporary file):
2430 (substitute* "tests/test-clipmenu"
2431 (("#!/usr/bin/env bash")
2432 (string-append "#!" (which "bash"))))
2433 (invoke "tests/test-clipmenu")
2436 `(("clipnotify" ,clipnotify)
2437 ("coreutils-minimal" ,coreutils-minimal)
2439 ("guile" ,guile-3.0) ; for wrap-script
2440 ("util-linux" ,util-linux)
2441 ("xdotool" ,xdotool)
2443 (home-page "https://github.com/cdown/clipmenu")
2444 (synopsis "Simple clipboard manager using dmenu or rofi and xsel")
2445 (description "Start @command{clipmenud}, then run @command{clipmenu} to
2446 select something to put on the clipboard.
2448 When @command{clipmenud} detects changes to the clipboard contents, it writes
2449 them out to the cache directory. @command{clipmenu} reads the cache directory
2450 to find all available clips and launches @command{dmenu} (or @command{rofi},
2451 depending on the value of @code{CM_LAUNCHER}) to let the user select a clip.
2452 After selection, the clip is put onto the PRIMARY and CLIPBOARD X selections.")
2453 (license license:public-domain))))
2463 (url "https://github.com/qnikst/kbdd")
2464 (commit (string-append "v" version))))
2465 (file-name (git-file-name name version))
2468 "0qkq75grbd4wkx4nlvswgavpijk9ad0pzqyj89a0ayjsbsn36pqy"))))
2469 (build-system gnu-build-system)
2471 `(("autoconf" ,autoconf)
2472 ("automake" ,automake)
2473 ("glib" ,glib "bin")
2474 ("pkg-config" ,pkg-config)))
2476 `(("dbus-glib" ,dbus-glib)
2478 ("libx11" ,libx11)))
2479 (home-page "https://github.com/qnikst/kbdd")
2480 (synopsis "Per-window keyboard layout switching daemon for X")
2481 (description "@command{kbdd} is a simple keyboard layout switching
2482 program, which is designed to run in an X11 session and remember
2483 keyboard layouts on a per-window basis. That can be very handy for a
2484 user of a non-US keyboard who does not want to jump through layouts back
2485 and forth while typing in terminals (mostly in a latin alphabet) and
2486 some kind of chat (in native language).
2488 @command{kbdd} also supports D-Bus signals, which makes it possible to
2489 create layout indicator widgets.")
2490 (license license:bsd-2)))
2492 (define-public j4-dmenu-desktop
2494 (name "j4-dmenu-desktop")
2499 (url "https://github.com/enkore/j4-dmenu-desktop")
2500 (commit (string-append "r" version))))
2501 (file-name (git-file-name name version))
2504 "0v23fimkn83dcm5p53y2ymhklff3kwppxhf75sm8xmswrzkixpgc"))))
2505 (build-system cmake-build-system)
2507 `(("catch2" ,catch-framework2)))
2509 `(#:configure-flags '("-DWITH_GIT_CATCH=off")
2511 (modify-phases %standard-phases
2512 (add-after 'unpack 'find-catch
2514 (substitute* "CMakeLists.txt"
2515 (("PATH_SUFFIXES catch") "PATH_SUFFIXES catch2"))
2519 (invoke "./j4-dmenu-tests" "exclude:SearchPath/XDG_DATA_HOME"))))))
2520 (synopsis "Fast desktop menu")
2522 "j4-dmenu-desktop is a replacement for i3-dmenu-desktop. Its purpose
2523 is to find @file{.desktop} files and offer you a menu to start an application
2524 using @command{dmenu}.")
2525 (home-page "https://github.com/enkore/j4-dmenu-desktop")
2526 (license license:gpl3+)))
2535 (url "https://hg.sr.ht/~scoopta/wofi")
2536 (changeset (string-append "v" version))))
2537 (file-name (git-file-name name version))
2540 "0glpb2gf5n78s01z3rn614ak8ibxhfr824gy6xlljbxclgds264i"))))
2541 (build-system meson-build-system)
2543 `(#:glib-or-gtk? #t))
2545 `(("pkg-config" ,pkg-config)))
2548 ("wayland" ,wayland)))
2549 (synopsis "Launcher/menu program for wayland")
2551 "Wofi is a launcher/menu program for wlroots based wayland compositors
2552 such as sway, similar to @command{rofi}.")
2553 (home-page "https://hg.sr.ht/~scoopta/wofi")
2554 (license license:gpl3+)))
2563 (url (string-append "https://github.com/jceb/dex"))
2564 (commit (string-append "v" version))))
2567 "03aapcywnz4kl548cygpi25m8adwbmqlmwgxa66v4156ax9dqs86"))
2568 (file-name (git-file-name name version))))
2569 (build-system gnu-build-system)
2571 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2573 (modify-phases %standard-phases
2574 (delete 'configure))
2577 `(("python", python)))
2579 `(("python-sphinx" ,python-sphinx)))
2580 (home-page "https://github.com/jceb/dex")
2581 (synopsis "Execute DesktopEntry files")
2583 "@command{dex}, @dfn{DesktopEntry Execution}, is a program to generate
2584 and execute @file{.desktop} files of the Application type.")
2585 (license license:gpl3+)))
2594 (url "https://github.com/Earnestly/sx")
2596 (file-name (git-file-name name version))
2599 "0p24ghp1ygvyc2hv81byhxax7491yhcc5priq5ldv07nzl7akagc"))))
2600 (build-system gnu-build-system)
2602 '(#:tests? #f ; no tests
2604 (let ((out (assoc-ref %outputs "out")))
2605 (list (string-append "PREFIX=" out)))
2607 (modify-phases %standard-phases
2608 ;; no configure script
2609 (delete 'configure))))
2611 `(("xauth" ,xauth)))
2612 (home-page "https://github.com/Earnestly/sx")
2613 (synopsis "Start an xorg server")
2615 "@command{sx} is a simple alternative to both @command{xinit} and
2616 @command{startx} for starting an Xorg server.")
2617 (license license:x11)))