1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
5 ;;; Copyright © 2014, 2015, 2016 Alex Kost <alezost@gmail.com>
6 ;;; Copyright © 2013, 2015, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
7 ;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
8 ;;; Copyright © 2015 Alexander I.Grafov <grafov@gmail.com>
9 ;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
10 ;;; Copyright © 2015 xd1le <elisp.vim@gmail.com>
11 ;;; Copyright © 2015 Florian Paul Schmidt <mista.tapas@gmx.net>
12 ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
13 ;;; Copyright © 2016, 2018 Ricardo Wurmus <rekado@elephly.net>
14 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
15 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
16 ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
17 ;;; Copyright © 2016, 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
18 ;;; Copyright © 2016 Petter <petter@mykolab.ch>
19 ;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com>
20 ;;; Copyright © 2017 Nikita <nikita@n0.is>
21 ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
22 ;;; Copyright © 2017 Marek Benc <dusxmt@gmx.com>
23 ;;; Copyright © 2017 Mike Gerwitz <mtg@gnu.org>
24 ;;; Copyright © 2018 Thomas Sigurdsen <tonton@riseup.net>
25 ;;; Copyright © 2018, 2019 Rutger Helling <rhelling@mykolab.com>
26 ;;; Copyright © 2018, 2019 Pierre Neidhardt <mail@ambrevar.xyz>
27 ;;; Copyright © 2018 Nam Nguyen <namn@berkeley.edu>
28 ;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
29 ;;; Copyright © 2019 Kyle Andrews <kyle.c.andrews@gmail.com>
30 ;;; Copyright © 2019, 2020 Josh Holland <josh@inv.alid.pw>
31 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
32 ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
33 ;;; Copyright © 2020 David Wilson <david@daviwil.com>
34 ;;; Copyright © 2020 Ivan Vilata i Balaguer <ivan@selidor.net>
35 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
36 ;;; Copyright © 2020 Damien Cassou <damien@cassou.me>
37 ;;; Copyright © 2020 John Soo <jsoo1@asu.edu>
38 ;;; Copyright © 2020 Boris A. Dekshteyn <boris.dekshteyn@gmail.com>
39 ;;; Copyright © 2020 Alex McGrath <amk@amk.ie>
40 ;;; Copyright © 2020 Ivan Kozlov <kanichos@yandex.ru>
41 ;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
42 ;;; Copyright © 2020 Gabriel Arazas <foo.dogsquared@gmail.com>
43 ;;; Copyright © 2020 James Smith <jsubuntuxp@disroot.org>
44 ;;; Copyright © 2020 B. Wilson <elaexuotee@wilsonb.com>
45 ;;; Copyright © 2020 Zheng Junjie <873216071@qq.com>
47 ;;; This file is part of GNU Guix.
49 ;;; GNU Guix is free software; you can redistribute it and/or modify it
50 ;;; under the terms of the GNU General Public License as published by
51 ;;; the Free Software Foundation; either version 3 of the License, or (at
52 ;;; your option) any later version.
54 ;;; GNU Guix is distributed in the hope that it will be useful, but
55 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
56 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
57 ;;; GNU General Public License for more details.
59 ;;; You should have received a copy of the GNU General Public License
60 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
62 (define-module (gnu packages xdisorg)
63 #:use-module (guix build-system cmake)
64 #:use-module (guix build-system glib-or-gtk)
65 #:use-module (guix build-system gnu)
66 #:use-module (guix build-system meson)
67 #:use-module (guix build-system python)
68 #:use-module (guix build-system scons)
69 #:use-module (guix download)
70 #:use-module (guix git-download)
71 #:use-module (guix hg-download)
72 #:use-module ((guix licenses) #:prefix license:)
73 #:use-module (guix packages)
74 #:use-module (guix utils)
75 #:use-module (gnu packages admin)
76 #:use-module (gnu packages algebra)
77 #:use-module (gnu packages autotools)
78 #:use-module (gnu packages base)
79 #:use-module (gnu packages bison)
80 #:use-module (gnu packages check)
81 #:use-module (gnu packages compression)
82 #:use-module (gnu packages documentation)
83 #:use-module (gnu packages flex)
84 #:use-module (gnu packages fontutils)
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 gl)
90 #:use-module (gnu packages glib)
91 #:use-module (gnu packages gnome)
92 #:use-module (gnu packages gtk)
93 #:use-module (gnu packages guile)
94 #:use-module (gnu packages haskell-xyz)
95 #:use-module (gnu packages icu4c)
96 #:use-module (gnu packages image)
97 #:use-module (gnu packages linux)
98 #:use-module (gnu packages m4)
99 #:use-module (gnu packages man)
100 #:use-module (gnu packages maths)
101 #:use-module (gnu packages ncurses)
102 #:use-module (gnu packages perl)
103 #:use-module (gnu packages pkg-config)
104 #:use-module (gnu packages python)
105 #:use-module (gnu packages python-xyz)
106 #:use-module (gnu packages qt)
107 #:use-module (gnu packages sphinx)
108 #:use-module (gnu packages tcl)
109 #:use-module (gnu packages xml)
110 #:use-module (gnu packages xorg)
111 #:use-module (gnu packages)
112 #:use-module (ice-9 match))
114 ;; packages outside the x.org system proper
116 (define-public xtitle
124 (url "https://github.com/baskerville/xtitle")
126 (file-name (git-file-name name version))
128 (base32 "0f5070k2bwarghl1vq886pl52xck1x5p7x3qhlfchsc2y3dcqms9"))))
129 (build-system gnu-build-system)
132 ("xcb-util" ,xcb-util)
133 ("xcb-util-wm" ,xcb-util-wm)))
135 `(#:tests? #f ;no test suite
136 #:make-flags (list (string-append "CC=" ,(cc-for-target))
137 (string-append "PREFIX=" %output))
138 #:phases (modify-phases %standard-phases (delete 'configure))))
139 (home-page "https://github.com/baskerville/xtitle")
140 (synopsis "Output X window titles")
142 "If arguments are given, @code{xtitle} outputs the title of each
143 specified window, otherwise it outputs the title of the active window. With
144 @emph{snoop} mode on, it continuously monitors the specified windows and
145 outputs when titles change.")
146 (license license:unlicense)))
148 (define-public arandr
154 (uri (string-append "https://christian.amsuess.com/tools/arandr"
155 "/files/arandr-" version ".tar.gz"))
158 "135q0llvm077jil2fr92ssw3p095m4r8jfj0lc5rr3m71n4srj6v"))
159 (modules '((guix build utils)))
162 ;; Do not record a timestamp and file name in gzipped man
163 ;; pages (this is equivalent to 'gzip --no-name'.)
164 (substitute* "setup.py"
165 (("gzip\\.open\\(gzfile, 'w', 9\\)")
166 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)"))
168 (build-system python-build-system)
171 (modify-phases %standard-phases
172 (add-before 'build 'configure
173 (lambda* (#:key inputs #:allow-other-keys)
174 (substitute* "screenlayout/xrandr.py"
175 (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr")
178 (add-after 'install 'wrap-gi-typelib
179 (lambda* (#:key inputs outputs #:allow-other-keys)
180 (let ((out (assoc-ref outputs "out"))
181 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
182 (wrap-program (string-append out "/bin/arandr")
183 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
185 #:tests? #f)) ;no tests
186 (inputs `(("gtk+" ,gtk+)
187 ("pycairo" ,python-pycairo)
188 ("pygobject" ,python-pygobject)
190 (native-inputs `(("gettext" ,gettext-minimal)
191 ("python-docutils" ,python-docutils)))
192 (home-page "https://christian.amsuess.com/tools/arandr/")
193 (synopsis "Another RandR graphical user interface")
194 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
195 (description "ARandR is designed to provide a simple visual front end for
196 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
197 shown graphically and can be changed in a drag-and-drop way. Configurations
198 are saved as executable shell scripts which can be loaded without using this
200 (license license:gpl3+)))
202 (define-public autorandr
206 (home-page "https://github.com/phillipberndt/autorandr")
213 (file-name (git-file-name name version))
215 (base32 "0msw9b1hdy3gbq9w5d04mfizhyirz1c648x84mlcbzl8salm7vpg"))))
216 (build-system python-build-system)
218 `(("pkg-config" ,pkg-config)))
224 (modify-phases %standard-phases
225 (add-before 'build 'configure
226 (lambda* (#:key inputs outputs #:allow-other-keys)
227 (let ((xrandr (string-append (assoc-ref inputs "xrandr")
229 (substitute* "contrib/etc/xdg/autostart/autorandr.desktop"
230 (("/usr") (assoc-ref outputs "out")))
231 (substitute* "autorandr.py"
232 (("popen\\(\"xrandr") (string-append "popen(\"" xrandr))
233 (("\\[\"xrandr") (string-append "[\"" xrandr)))
234 (substitute* "contrib/autorandr_launcher/autorandr_launcher.c"
235 (("/usr/bin/autorandr")
236 (string-append (assoc-ref outputs "out") "/bin/autorandr")))
239 (add-after 'install 'install-contrib
240 (lambda* (#:key outputs #:allow-other-keys)
242 (string-append "DESTDIR=" (assoc-ref outputs "out"))
244 "BASH_COMPLETIONS_DIR=etc/bash_completion.d"
246 "TARGETS=autorandr launcher manpage bash_completion"))))))
247 (synopsis "Auto-detect connected displays and load appropriate setup")
248 (description "Autorandr wraps around xrandr to help with X11
249 multi-screen configuration management. It allows the user to create profiles
250 for various multi-screen setups. Autorandr automatically detects the profiles
251 that can be activated based on the connected hardware. Hook scripts can be
252 used to further tweak the behaviour of the different profiles.")
253 (license license:gpl3+)))
255 (define-public bemenu
263 (url "https://github.com/Cloudef/bemenu")
265 (file-name (git-file-name name version))
267 (base32 "1fjcs9d3533ay3nz79cx3c0lmy2chgragr2lhsy0xl2ckr0iins0"))))
268 (build-system gnu-build-system)
271 #:make-flags (list "CC=gcc"
273 (string-append "LDFLAGS=-Wl,-rpath="
274 (assoc-ref %outputs "out") "/lib")
275 (string-append "PREFIX=" (assoc-ref %outputs "out")))
277 (modify-phases %standard-phases
278 (delete 'configure))))
282 ("libxkbcomon" ,libxkbcommon)
283 ("libxinerama" ,libxinerama)
287 ("wayland-protocols" ,wayland-protocols)))
289 `(("doxygen" ,doxygen)
290 ("pkg-config" ,pkg-config)))
291 (home-page "https://github.com/Cloudef/bemenu")
292 (synopsis "Dynamic menu library and client program inspired by dmenu")
294 "bemenu is a dynamic menu which allows the user to flexibly select from a
295 list of options (usually programs to launch). It renders the menu graphically
296 with X11 or Wayland, or in a text terminal with ncurses.")
297 (license (list license:gpl3+ ; client program[s] and other sources
298 license:lgpl3+)))) ; library and bindings
307 (url "https://github.com/hluk/CopyQ")
308 (commit (string-append "v" version))))
309 (file-name (git-file-name name version))
312 "0wlwq9xg8rzsbj0b29z358k4mbrqy04iraa8x0p26pa95yskgcma"))))
313 (build-system cmake-build-system)
315 `(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release")
316 #:tests? #f)) ; Test suite is a rather manual process.
319 ("qtscript" ,qtscript)
321 ("qtx11extras" ,qtx11extras)))
322 (synopsis "Clipboard manager with advanced features")
323 (description "CopyQ is clipboard manager with editing and scripting
324 features. CopyQ monitors system clipboard and saves its content in customized
325 tabs. Saved clipboard can be later copied and pasted directly into any
327 (home-page "https://hluk.github.io/CopyQ/")
328 (license license:gpl3+)))
338 (url "https://github.com/astrand/xclip")
340 (file-name (git-file-name name version))
343 "0q0hmvcjlv8arhh1pzhja2wglyj6n7z209jnpnzd281kqqv4czcs"))))
344 (build-system gnu-build-system)
346 '(#:tests? #f)) ;there is no test suite
348 `(("autoconf" ,autoconf)
349 ("automake" ,automake)))
350 (inputs `(("libxmu" ,libxmu)
352 (home-page "https://github.com/astrand/xclip")
353 (synopsis "Command line interface to X11 clipboard")
354 (description "Xclip is a command line interface to the X11 clipboard. It
355 can also be used for copying files, as an alternative to sftp/scp, thus
356 avoiding password prompts when X11 forwarding has already been setup.")
357 (license license:gpl2+)))
359 (define-public libxkbcommon
361 (name "libxkbcommon")
365 (uri (string-append "https://xkbcommon.org/download/libxkbcommon-"
369 "0lmwglj16anhpaq0h830xsl1ivknv75i4lir9bk88aq73s2jy852"))))
370 (build-system meson-build-system)
376 ("wayland-protocols" ,wayland-protocols)
377 ("xkeyboard-config" ,xkeyboard-config)))
381 ("pkg-config" ,pkg-config)))
384 (list (string-append "-Dxkb-config-root="
385 (assoc-ref %build-inputs "xkeyboard-config")
387 (string-append "-Dx-locale-root="
388 (assoc-ref %build-inputs "libx11")
389 "/share/X11/locale"))))
390 (home-page "https://xkbcommon.org/")
391 (synopsis "Library to handle keyboard descriptions")
392 (description "Xkbcommon is a library to handle keyboard descriptions,
393 including loading them from disk, parsing them and handling their
394 state. It is mainly meant for client toolkits, window systems, and other
395 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
396 Clutter, and more. Despite the name, it is not currently used by anything
398 (license (license:x11-style "file://COPYING"
399 "See 'COPYING' in the distribution."))
400 (properties '((cpe-name . "xkbcommon")))))
402 (define-public libfakekey
410 (url "https://git.yoctoproject.org/git/libfakekey")
412 (file-name (git-file-name name version))
414 (base32 "1jw1d4wc1ysiijirc7apnz3sryrxbl9akgb92mh06dvfkz2nblj0"))))
415 (build-system gnu-build-system)
417 `(#:make-flags (list "AM_LDFLAGS=-lX11")
419 (modify-phases %standard-phases
421 ;; ./autogen.sh calls ./configure before shebangs have been patched.
423 (invoke "autoreconf" "-vfi"))))))
425 `(("pkg-config" ,pkg-config)
427 ;; For bootstrapping from git.
428 ("autoconf" ,autoconf)
429 ("automake" ,automake)
430 ("libtool" ,libtool)))
432 `(("libxtst" ,libxtst)
434 (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox")
435 (synopsis "X virtual keyboard library")
437 "Libfakekey is a virtual keyboard library for X.")
438 (license license:gpl2)))
440 (define-public xdotool
443 (version "3.20160805.1")
448 "https://github.com/jordansissel/xdotool/releases/download/v"
449 version "/xdotool-" version ".tar.gz"))
452 "1a6c1zr86zb53352yxv104l76l8x21gfl2bgw6h21iphxpv5zgim"))))
453 (build-system gnu-build-system)
455 '(#:tests? #f ; Test suite requires a lot of black magic
457 (modify-phases %standard-phases
459 (lambda* (#:key outputs #:allow-other-keys #:rest args)
460 (let ((out (assoc-ref outputs "out")))
461 (mkdir-p (string-append out "/lib"))
462 (setenv "PREFIX" out)
463 (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib"))
466 (native-inputs `(("perl" ,perl))) ; for pod2man
467 (inputs `(("libx11" ,libx11)
470 ("libxinerama" ,libxinerama)
472 ("libxkbcommon" ,libxkbcommon)))
473 (home-page "https://www.semicomplete.com/projects/xdotool/")
474 (synopsis "Fake keyboard/mouse input, window management, and more")
475 (description "Xdotool lets you simulate keyboard input and mouse activity,
476 move and resize windows, etc. It does this using X11's XTEST extension and
477 other Xlib functions. Additionally, you can search for windows and move,
478 resize, hide, and modify window properties like the title. If your window
479 manager supports it, you can use xdotool to switch desktops, move windows
480 between desktops, and change the number of desktops.")
481 (license license:bsd-3)))
490 (uri (string-append "https://www.x.org/releases/individual/app/"
491 name "-" version ".tar.bz2"))
493 (base32 "0lq5j7fryx1wn998jq6h3icz1h6pqrsbs3adskjzjyhn5l6yrg2p"))))
494 (build-system gnu-build-system)
496 `(("libxext" ,libxext)
498 ("libxrender" ,libxrender)
501 `(("pkg-config" ,pkg-config)))
502 (home-page "https://www.x.org/") ; no dedicated Xeyes page exists
503 (synopsis "Follow-the-mouse X demo")
504 (description "Xeyes is a demo program for x.org. It shows eyes
505 following the mouse.")
506 (license license:x11)))
509 (define-public pixman
518 "https://www.cairographics.org/releases/pixman-"
521 (base32 "1ryxzdf048x7wsx4dlvrr1p00gzwfs7lybnhgc7ygbj0dvyxcrns"))
524 "pixman-CVE-2016-5296.patch"))))
525 (build-system gnu-build-system)
527 '(#:configure-flags '("--disable-static")))
529 `(("pkg-config" ,pkg-config)))
533 (synopsis "Low-level pixel manipulation library")
534 (description "Pixman is a low-level software library for pixel
535 manipulation, providing features such as image compositing and trapezoid
537 (home-page "http://www.pixman.org/")
538 (license license:x11)))
540 (define-public libdrm
547 "https://dri.freedesktop.org/libdrm/libdrm-"
551 "08h2nnf4w96b4ql7485mvjgbbsb8rwc0qa93fdm1cq34pbyszq1z"))))
552 (build-system meson-build-system)
555 '(,@(match (%current-system)
556 ((or "armhf-linux" "aarch64-linux")
561 "-Dfreedreno-kgsl=true"))
564 #:phases (modify-phases %standard-phases
567 (invoke "meson" "test" "--timeout-multiplier" "5"))))))
569 `(("libpciaccess" ,libpciaccess)))
571 `(("pkg-config" ,pkg-config)))
572 (home-page "https://dri.freedesktop.org/wiki/")
573 (synopsis "Direct rendering userspace library")
574 (description "The Direct Rendering Infrastructure, also known as the DRI,
575 is a framework for allowing direct access to graphics hardware under the
576 X Window System in a safe and efficient manner. It includes changes to the
577 X server, to several client libraries, and to the kernel (DRM, Direct
578 Rendering Manager). The most important use for the DRI is to create fast
579 OpenGL implementations providing hardware acceleration for Mesa.
580 Several 3D accelerated drivers have been written to the DRI specification,
581 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
583 (license license:x11)))
594 "http://bitmath.org/code/mtdev/mtdev-"
598 "1q700h9dqcm3zl6c3gj0qxxjcx6ibw2c51wjijydhwdcm26v5mqm"))))
599 (build-system gnu-build-system)
600 (arguments '(#:configure-flags '("--disable-static")))
601 (home-page "http://bitmath.org/code/mtdev/")
602 (synopsis "Multitouch protocol translation library")
603 (description "Mtdev is a stand-alone library which transforms all
604 variants of kernel MT events to the slotted type B protocol. The events
605 put into mtdev may be from any MT device, specifically type A without
606 contact tracking, type A with contact tracking, or type B with contact
608 (license license:x11)))
610 (define-public startup-notification
612 (name "startup-notification")
617 (uri (string-append "https://www.freedesktop.org/software/" name
618 "/releases/" name "-" version ".tar.gz"))
621 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
622 (build-system gnu-build-system)
623 (native-inputs `(("pkg-config" ,pkg-config)))
626 ("xcb-util" ,xcb-util)))
627 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
628 (synopsis "Application startup notification and feedback library")
630 "Startup-notification contains a reference implementation of the startup
631 notification protocol. The reference implementation is mostly under an X Window
632 System style license, and has no special dependencies.")
633 ;; Most of the code is provided under x11 license.
634 (license license:lgpl2.0+)))
636 (define-public wmctrl
643 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
647 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
648 (patches (search-patches "wmctrl-64-fix.patch"))))
649 (build-system gnu-build-system)
652 (list (string-append "--mandir="
653 (assoc-ref %outputs "out")
656 `(("pkg-config" ,pkg-config)))
661 (home-page "http://tomas.styblo.name/wmctrl/")
662 (synopsis "Command-line tool to control X window managers")
664 "Wmctrl interacts with an X window manager that is compatible
665 with the EWMH/NetWM specification. It can query the window manager for
666 information, and request for certain window management actions (resize and
667 move windows, switch between desktops, etc.).")
668 (license license:gpl2+)))
679 (url "https://github.com/resurrecting-open-source-projects/scrot")
681 (file-name (git-file-name name version))
684 "12xq6glg70icwsvbnfw9gm4dahlbnrc7b6adpd0mpf89h4sj2gds"))))
685 (build-system gnu-build-system)
687 `(("autoconf" ,autoconf)
688 ("autoconf-archive" ,autoconf-archive)
689 ("automake" ,automake)))
693 ("libXcursor" ,libxcursor)
694 ("libxcomposite" ,libxcomposite)
695 ("libXfixes" ,libxfixes)))
696 (home-page "https://github.com/resurrecting-open-source-projects/scrot")
697 (synopsis "Command-line screen capture utility for X Window System")
699 "Scrot saves a screenshot of a full screen, a window or a part
700 of the screen selected by mouse.")
701 ;; This license removes a clause about X Consortium from the original
703 (license (license:x11-style "file://COPYING"
704 "See 'COPYING' in the distribution."))))
713 (url "https://github.com/naelstrof/slop")
714 (commit (string-append "v" version))))
715 (file-name (git-file-name name version))
718 "1k8xxb4rj2fylr4vj16yvsf73cyywliz9cy78pl4ibmi03jhg837"))))
719 (build-system cmake-build-system)
721 '(#:tests? #f)) ; no "check" target
727 ("libxrender" ,libxrender)
729 (home-page "https://github.com/naelstrof/slop")
730 (synopsis "Select a region and print its bounds to stdout")
732 "slop (Select Operation) is a tool that queries for a selection from a
733 user and prints the region to stdout. It grabs the mouse and turns it into a
734 crosshair, lets the user click and drag to make a selection (or click on a
735 window) while drawing a pretty box around it, then finally prints the
736 selection's dimensions to stdout.")
737 (license license:gpl3+)))
746 (url "https://github.com/naelstrof/maim")
747 (commit (string-append "v" version))))
748 (file-name (git-file-name name version))
751 "181mjjrjb9fs1ficcv9miqbk94v95j1yli7fjp2dj514g7nj9l3x"))))
752 (build-system cmake-build-system)
754 '(#:tests? #f)) ; no "check" target
757 ("libjpeg" ,libjpeg-turbo)
759 ("libxcomposite" ,libxcomposite)
760 ("libxfixes" ,libxfixes)
761 ("libxrandr" ,libxrandr)
765 (home-page "https://github.com/naelstrof/maim")
766 (synopsis "Screenshot utility for X Window System")
768 "maim (Make Image) is a tool that takes screenshots of your desktop and
769 saves it in any format. Along with a full screen, it allows you to capture a
770 predefined region or a particular window. Also, it makes it possible to
771 include cursor in the resulting image.")
772 (license license:gpl3+)))
774 (define-public unclutter
781 "http://ftp.x.org/contrib/utilities/unclutter-"
785 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
786 (build-system gnu-build-system)
788 '(#:tests? #f ; no check target
790 (modify-phases %standard-phases
793 (lambda* (#:key inputs outputs #:allow-other-keys)
794 (let* ((out (assoc-ref outputs "out"))
795 (bin (string-append out "/bin"))
796 (man1 (string-append out "/share/man/man1")))
799 (invoke "make" "install" "install.man"
800 (string-append "BINDIR=" bin)
801 (string-append "MANDIR=" man1))))))))
802 (inputs `(("libx11" ,libx11)))
803 (home-page "http://ftp.x.org/contrib/utilities/")
804 (synopsis "Hide idle mouse cursor")
806 "Unclutter is a program which runs permanently in the background of an
807 X11 session. It checks on the X11 pointer (cursor) position every few
808 seconds, and when it finds it has not moved (and no buttons are pressed
809 on the mouse, and the cursor is not in the root window) it creates a
810 small sub-window as a child of the window the cursor is in. The new
811 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
812 invisible cursor. This allows you to see all the text in an xterm or
813 xedit, for example. The human factors crowd would agree it should make
814 things less distracting.")
815 (license license:public-domain)))
817 (define-public xautomation
824 (uri (string-append "https://www.hoopajoo.net/static/projects/"
825 "xautomation-" version ".tar.gz"))
829 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
830 (build-system gnu-build-system)
835 ("libxtst" ,libxtst)))
837 `(("xorgproto" ,xorgproto)))
838 (synopsis "Tools to automate tasks in X such as detecting on screen images")
840 "Xautomation can control X from the command line for scripts, and
841 do visual scraping to find things on the screen. The control interface
842 allows mouse movement, clicking, button up/down, key up/down, etc, and
843 uses the XTest extension so you don't have the annoying problems that
844 xse has when apps ignore sent events. The visgrep program can find
845 images inside of images and reports the coordinates, allowing programs
846 to find buttons, etc, on the screen to click on.")
847 (home-page "https://www.hoopajoo.net/projects/xautomation.html")
848 (license license:gpl2+)))
850 (define-public xbanish
854 (home-page "https://github.com/jcs/xbanish")
857 (uri (git-reference (url home-page)
858 (commit (string-append "v" version))))
859 (file-name (git-file-name name version))
862 "0ic5f7zgc32p5g1wxas9y5h8dhik0pvsa8wmn6skdry56gw9vg9q"))))
863 (build-system gnu-build-system)
865 `(#:tests? #f ; no tests
866 #:make-flags (list "CC=gcc"
867 (string-append "PREFIX=" (assoc-ref %outputs "out")))
868 #:phases (modify-phases %standard-phases
869 (delete 'configure)))) ; no configure script
872 ("libxfixes" ,libxfixes)
875 (synopsis "Banish the mouse cursor")
877 "@command{xbanish} hides the mouse cursor when you start typing, and
878 shows it again when the mouse cursor moves or a mouse button is pressed.")
879 (license license:bsd-3)))
881 (define-public xlockmore
887 (uri (list (string-append "http://sillycycle.com/xlock/"
888 "xlockmore-" version ".tar.xz")
889 ;; Previous releases are moved to a subdirectory.
890 (string-append "http://sillycycle.com/xlock/"
892 "xlockmore-" version ".tar.xz")))
895 "0wdb7gpyjw3sigmhiplgg1bqxz6wipr0c3n9492x2a18cv1saxjr"))))
896 (build-system gnu-build-system)
898 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
899 (assoc-ref %outputs "out")
900 "/lib/X11/app-defaults"))
901 #:tests? #f)) ;no such thing as a test suite
906 ("linux-pam" ,linux-pam)))
907 (home-page "https://sillycycle.com/xlockmore.html")
908 (synopsis "Screen locker for the X Window System")
910 "XLockMore is a classic screen locker and screen saver for the
912 (license (license:non-copyleft #f "See xlock.c.")
913 ))) ; + GPLv2 in modes/glx/biof.c.
922 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
923 name "-" version ".tar.gz"))
926 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
927 (build-system gnu-build-system)
930 (list (string-append "--mandir=" %output "/share/man"))))
935 ("libxinerama" ,libxinerama)))
936 (home-page "https://sourceforge.net/projects/libxosd/")
937 (synopsis "X On Screen Display")
939 "XOSD provides a C library and a simple utility (osd_cat) for displaying
940 transparent text on your screen.")
941 (license license:gpl2+)))
943 (define-public xbindkeys
949 ;; Download from the savannah mirror list fails
951 "http://www.nongnu.org/xbindkeys/xbindkeys-"
956 "1wl2vc5alisiwyk8m07y1ryq8w3ll9ym83j27g4apm4ixjl8d6x2"))))
957 (build-system gnu-build-system)
960 (modify-phases %standard-phases
961 (add-after 'unpack 'sanitise-shebang
962 ;; This wish script uses a strange double shebang that escapes our
963 ;; patch-shebangs phase. Assume that it's unnecessary & replace it.
965 (substitute* "xbindkeys_show"
966 (("^#!.*|^exec wish.*") "")
967 (("^# \\\\") (string-append "#!" (which "wish"))))
970 `(("pkg-config" ,pkg-config)))
972 `(("guile" ,guile-2.2)
975 (home-page "https://www.nongnu.org/xbindkeys/")
976 (synopsis "Associate a combination of keys with a shell command")
978 "XBindKeys is a program that allows you to launch shell commands with
979 your keyboard or your mouse under the X Window System. It links commands to
980 keys or mouse buttons, using a configuration file. It's independent of the
981 window manager and can capture all keyboard keys (ex: Power, Wake...). It
982 optionally supports a Guile-based configuration file layout, which enables you
983 to access all XBindKeys internals, so you can have key combinations, double
984 clicks or timed double clicks take actions. Also all functions that work in
985 Guile will work for XBindKeys.")
986 (license license:gpl2+)))
996 (url "https://github.com/baskerville/sxhkd")
998 (file-name (git-file-name name version))
1000 (base32 "1winwzdy9yxvxnrv8gqpigl9y0c2px27mnms62bdilp4x6llrs9r"))))
1001 (build-system gnu-build-system)
1003 `(("asciidoc" ,asciidoc)
1005 ("xcb-util" ,xcb-util)
1006 ("xcb-util-keysyms" ,xcb-util-keysyms)
1007 ("xcb-util-wm" ,xcb-util-wm)))
1009 `(#:phases (modify-phases %standard-phases (delete 'configure))
1010 #:tests? #f ; no check target
1013 (string-append "PREFIX=" %output)
1014 ;; Keep the documentation where the build system installs LICENSE.
1015 (string-append "DOCPREFIX=" %output
1016 "/share/doc/" ,name "-" ,version))))
1017 (home-page "https://github.com/baskerville/sxhkd")
1018 (synopsis "Simple X hotkey daemon")
1019 (description "sxhkd is a simple X hotkey daemon with a powerful and
1020 compact configuration syntax.")
1021 (license license:bsd-2)))
1023 (define-public rxvt-unicode
1025 (name "rxvt-unicode")
1029 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
1030 name "-" version ".tar.bz2"))
1031 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
1034 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
1035 (build-system gnu-build-system)
1037 ;; This sets the destination when installing the necessary terminal
1038 ;; capability data, which are not provided by 'ncurses'. See
1039 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
1040 `(#:configure-flags (list "--enable-256-color")
1041 #:make-flags (list (string-append "TERMINFO="
1042 (assoc-ref %outputs "out")
1045 (modify-phases %standard-phases
1046 (add-after 'install 'install-desktop-urxvt
1047 (lambda* (#:key outputs #:allow-other-keys)
1048 (let* ((output (assoc-ref outputs "out"))
1049 (desktop (string-append output "/share/applications")))
1051 (with-output-to-file
1052 (string-append desktop "/urxvt.desktop")
1059 TryExec=~@*~a/bin/urxvt~@
1064 (add-after 'install 'install-desktop-urxvtc
1065 (lambda* (#:key outputs #:allow-other-keys)
1066 (let* ((output (assoc-ref outputs "out"))
1067 (desktop (string-append output "/share/applications")))
1069 (with-output-to-file
1070 (string-append desktop "/urxvtc.desktop")
1074 Name=rxvt-unicode (client)~@
1075 Comment=Rxvt clone with XFT and unicode support~@
1076 Exec=~a/bin/urxvtc~@
1077 TryExec=~@*~a/bin/urxvtc~@
1083 `(("libXft" ,libxft)
1084 ("libX11" ,libx11)))
1086 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
1088 ("pkg-config" ,pkg-config)))
1089 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
1090 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
1091 (native-search-paths
1092 (list (search-path-specification
1093 (variable "TERMINFO_DIRS")
1094 (files '("share/terminfo")))))
1095 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
1096 (synopsis "Rxvt clone with XFT and unicode support")
1097 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
1098 intended as an xterm replacement for users who do not require features such as
1099 Tektronix 4014 emulation and toolkit-style configurability. It supports
1100 unicode, XFT and may be extended with Perl plugins. It also comes with a
1101 client/daemon pair that lets you open any number of terminal windows from
1102 within a single process.")
1103 (license license:gpl3+)))
1105 (define-public xcape
1112 (url "https://github.com/alols/xcape")
1113 (commit (string-append "v" version))))
1114 (file-name (git-file-name name version))
1117 "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm"))))
1118 (build-system gnu-build-system)
1120 `(#:tests? #f ; no check target
1121 ;; no configure script
1122 #:phases (modify-phases %standard-phases (delete 'configure))
1123 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1124 "MANDIR=/share/man/man1"
1127 `(("libxtst" ,libxtst)
1128 ("libx11" ,libx11)))
1130 `(("pkg-config" ,pkg-config)))
1131 (home-page "https://github.com/alols/xcape")
1132 (synopsis "Use a modifier key in X.org as another key")
1134 "This utility for X.org uses a modifier key as another key when
1135 pressed and released on its own. The default behaviour is to generate the
1136 Escape key when Left Control is pressed and released on its own.")
1137 (license license:gpl3+)))
1139 (define-public libwacom
1146 "https://github.com/linuxwacom/libwacom/releases/download/"
1147 "libwacom-" version "/libwacom-" version ".tar.bz2"))
1150 "0797gc055dgg2jfqijy9823bd83jwr4wb2z9id992qlcr0xmz1rw"))))
1151 (build-system glib-or-gtk-build-system)
1153 `(#:configure-flags '("--disable-static")))
1155 `(("pkg-config" ,pkg-config)
1157 ("python" ,python)))
1160 ("libgudev" ,libgudev)
1162 ("libxml2" ,libxml2)))
1164 ;; libwacom includes header files that include GLib, and libinput uses
1165 ;; those header files.
1167 (home-page "https://linuxwacom.github.io/")
1168 (synopsis "Helper library for Wacom tablet settings")
1170 "Libwacom is a library to help implement Wacom tablet settings. It is
1171 intended to be used by client-programs that need model identification. It is
1172 already being used by the gnome-settings-daemon and the GNOME Control Center
1173 Wacom tablet applet.")
1174 (license license:x11)))
1176 (define-public xf86-input-wacom
1178 (name "xf86-input-wacom")
1184 "https://github.com/linuxwacom/xf86-input-wacom/releases/download/"
1185 "xf86-input-wacom-" version "/"
1186 "xf86-input-wacom-" version ".tar.bz2"))
1188 (base32 "11qk58az6qwii774ga45h5yqzipwn56f0d74kdbajqdv45p85gqj"))))
1191 (list (string-append "--with-sdkdir="
1192 (assoc-ref %outputs "out")
1194 (string-append "--with-xorg-conf-dir="
1195 (assoc-ref %outputs "out")
1196 "/share/X11/xorg.conf.d"))))
1197 (build-system gnu-build-system)
1199 `(("pkg-config" ,pkg-config)))
1201 `(("xorg-server" ,xorg-server)
1202 ("libxrandr" ,libxrandr)
1203 ("libxinerama" ,libxinerama)
1206 (home-page "https://linuxwacom.github.io/")
1207 (synopsis "Wacom input driver for X")
1209 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
1210 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
1211 (license license:x11)))
1213 (define-public redshift
1221 (string-append "https://github.com/jonls/redshift/"
1222 "releases/download/v" version
1223 "/redshift-" version ".tar.xz"))
1226 "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j"))))
1227 (build-system gnu-build-system)
1229 `(#:imported-modules (,@%gnu-build-system-modules
1230 (guix build python-build-system))
1232 (modify-phases %standard-phases
1233 (add-after 'install 'split-outputs
1234 (lambda* (#:key outputs #:allow-other-keys)
1235 (let ((out (assoc-ref outputs "out"))
1236 (gtk (assoc-ref outputs "gtk"))
1237 (desktop-file "/share/applications/redshift-gtk.desktop"))
1238 (mkdir-p (string-append gtk "/bin"))
1239 (link (string-append out "/bin/redshift-gtk")
1240 (string-append gtk "/bin/redshift-gtk"))
1241 (delete-file (string-append out "/bin/redshift-gtk"))
1242 (copy-recursively (string-append out "/lib")
1243 (string-append gtk "/lib"))
1244 (delete-file-recursively (string-append out "/lib"))
1245 (mkdir-p (string-append gtk "/share/applications"))
1246 (link (string-append out desktop-file)
1247 (string-append gtk desktop-file))
1248 (delete-file (string-append out desktop-file))
1249 (with-directory-excursion (string-append out "/share")
1250 (for-each (lambda (dir)
1252 (string-append out "/share/" dir)
1253 (string-append gtk "/share/" dir))
1254 (delete-file-recursively dir))
1255 '("appdata" "icons")))
1257 (add-after 'split-outputs 'wrap
1258 (lambda* (#:key inputs outputs #:allow-other-keys)
1259 (let* ((gtk (assoc-ref outputs "gtk"))
1261 (@ (guix build python-build-system) python-version))
1262 (python (assoc-ref inputs "python"))
1263 (sitedir (string-append gtk "/lib/python"
1264 (python-version python)
1266 (wrap-program (string-append gtk "/bin/redshift-gtk")
1267 `("PYTHONPATH" ":" prefix
1268 (,(string-append sitedir ":" (getenv "PYTHONPATH"))))
1269 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH"))))
1271 (outputs '("out" "gtk"))
1273 `(("pkg-config" ,pkg-config)
1274 ("intltool" ,intltool)))
1276 `(("libdrm" ,libdrm)
1279 ("libxxf86vm" ,libxxf86vm)
1280 ("glib" ,glib) ;for Geoclue2 support
1282 ;; To build the GTK3 GUI, we need these.
1285 ("python-pygobject" ,python-pygobject)
1286 ("python-pyxdg" ,python-pyxdg)))
1287 (home-page "https://github.com/jonls/redshift")
1288 (synopsis "Adjust the color temperature of your screen")
1290 "Redshift adjusts the color temperature according to the position of the
1291 sun. A different color temperature is set during night and daytime. During
1292 twilight and early morning, the color temperature transitions smoothly from
1293 night to daytime temperature to allow your eyes to slowly adapt. At night the
1294 color temperature should be set to match the lamps in your room.")
1295 (license license:gpl3+)))
1297 (define-public redshift-wayland
1298 (let ((commit "7da875d34854a6a34612d5ce4bd8718c32bec804")
1301 (name "redshift-wayland")
1302 (version (string-append "1.12-"
1303 revision "." (string-take commit 7)))
1307 (url "https://github.com/minus7/redshift")
1309 (file-name (string-append name "-" version))
1312 "0nbkcw3avmzjg1jr1g9yfpm80kzisy55idl09b6wvzv2sz27n957"))))
1313 (build-system gnu-build-system)
1315 '(#:phases (modify-phases %standard-phases
1316 (add-after 'install 'create-desktop-file
1317 (lambda* (#:key outputs #:allow-other-keys)
1318 ;; For the GeoClue provider to work, a .desktop file
1319 ;; needs to be provided. A template is available,
1320 ;; but it only gets installed when the GUI is enabled.
1321 ;; Install it manually for this Wayland variant.
1322 (let* ((out (assoc-ref outputs "out"))
1325 out "/share/applications/redshift.desktop")))
1326 (mkdir-p (dirname desktop-file))
1327 (copy-file "data/applications/redshift.desktop.in"
1329 (substitute* desktop-file
1333 `(("autoconf" ,autoconf)
1334 ("automake" ,automake)
1335 ("libtool" ,libtool)
1336 ("pkg-config" ,pkg-config)
1337 ("intltool" ,intltool)))
1339 `(("libdrm" ,libdrm)
1342 ("libxxf86vm" ,libxxf86vm)
1343 ("glib" ,glib) ; for Geoclue2 support
1344 ("wayland" ,wayland)))
1345 (home-page "https://github.com/minus7/redshift")
1346 (synopsis "Adjust the color temperature of your screen (with Wayland support)")
1348 "Redshift adjusts the color temperature according to the position of the
1349 sun. A different color temperature is set during night and daytime. During
1350 twilight and early morning, the color temperature transitions smoothly from
1351 night to daytime temperature to allow your eyes to slowly adapt. At night the
1352 color temperature should be set to match the lamps in your room.
1354 This is a fork with added support for Wayland using the wlr-gamma-control
1356 (license license:gpl3+))))
1358 (define-public xscreensaver
1360 (name "xscreensaver")
1366 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
1369 (base32 "15bv05vpfjwsrqbazrjmm382jd7vvw0mp6y9vasn6wvxzjf0in3k"))))
1370 (build-system gnu-build-system)
1372 `(#:tests? #f ; no check target
1374 (modify-phases %standard-phases
1375 (add-before 'configure 'adjust-gtk-resource-paths
1377 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
1378 (("@GTK_DATADIR@") "@datadir@")
1379 (("@PO_DATADIR@") "@datadir@"))
1381 #:configure-flags '("--with-pam" "--with-proc-interrupts"
1382 "--without-readdisplay")
1383 #:make-flags (list (string-append "AD_DIR="
1384 (assoc-ref %outputs "out")
1385 "/lib/X11/app-defaults"))))
1387 `(("pkg-config" ,pkg-config)
1388 ("intltool" ,intltool)))
1390 `(("libx11" ,libx11)
1391 ("libxext" ,libxext)
1397 ("libglade" ,libglade)
1398 ("libxml2" ,libxml2)
1400 ("libjpeg" ,libjpeg-turbo)
1401 ("linux-pam" ,linux-pam)
1407 ("libxrandr" ,libxrandr)
1410 (home-page "https://www.jwz.org/xscreensaver/")
1411 (synopsis "Classic screen saver suite supporting screen locking")
1413 "xscreensaver is a popular screen saver collection with many entertaining
1414 demos. It also acts as a nice screen locker.")
1415 ;; xscreensaver doesn't have a single copyright file and instead relies on
1416 ;; source comment headers, though most files have the same lax
1417 ;; permissions. To reduce complexity, we're pointing at Debian's
1418 ;; breakdown of the copyright information.
1419 (license (license:non-copyleft
1421 "http://metadata.ftp-master.debian.org/changelogs/"
1422 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1424 (define-public xssproxy
1431 (url "https://github.com/timakro/xssproxy")
1432 (commit (string-append "v" version))))
1433 (file-name (string-append name "-" version "-checkout"))
1436 "0c83wmipnsdnbihc5niyczs7jrkss2s8n6iwwjdia7hkjzbd0hl7"))))
1437 (build-system gnu-build-system)
1438 (arguments `(#:make-flags `("bindir=/bin"
1439 "man1dir=/share/man/man1"
1440 ,(string-append "DESTDIR=" (assoc-ref %outputs "out"))
1442 #:phases (modify-phases %standard-phases
1446 `(("pkg-config" ,pkg-config)))
1450 ("libxext" ,libxext)
1451 ("libxscrnsaver" ,libxscrnsaver)
1453 (synopsis "Forward freedesktop.org Idle Inhibition Service calls to Xss")
1454 (description "xssproxy implements the @code{org.freedesktop.ScreenSaver}
1455 D-Bus interface described in the Idle Inhibition Service Draft by the
1456 freedesktop.org developers. The inhibition of the screensaver is then
1457 controlled using the XScreenSaverSuspend function from the Xss (X11 Screen
1458 Saver extension) library.")
1459 (home-page "https://github.com/timakro/xssproxy")
1460 (license license:gpl3+)))
1468 (uri (string-append "http://www.vergenet.net/~conrad/software"
1469 "/xsel/download/xsel-" version ".tar.gz"))
1472 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1473 (build-system gnu-build-system)
1475 `(("libxt" ,libxt)))
1476 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1477 (synopsis "Manipulate X selection")
1479 "XSel is a command-line program for getting and setting the contents of
1480 the X selection. Normally this is only accessible by manually highlighting
1481 information and pasting it with the middle mouse button.
1483 XSel reads from standard input and writes to standard output by default,
1484 but can also follow a growing file, display contents, delete entries and more.")
1485 (license (license:x11-style "file://COPYING"
1486 "See COPYING in the distribution."))))
1488 (define-public xdpyprobe
1494 (uri (string-append "https://github.com/alezost/" name
1495 "/releases/download/v" version
1496 "/" name "-" version ".tar.gz"))
1499 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1500 (build-system gnu-build-system)
1502 `(("libx11" ,libx11)))
1503 (home-page "https://github.com/alezost/xdpyprobe")
1504 (synopsis "Probe X server for connectivity")
1506 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1507 connectivity of the X server running on a particular @code{DISPLAY}.")
1508 (license license:gpl3+)))
1516 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1517 "releases/download/"
1518 version "/rofi-" version ".tar.xz"))
1521 "12p9z8bl1gg8k024m4a6zfz7gf1zbyffardh98raqgabn6knwk22"))))
1522 (build-system gnu-build-system)
1527 ("startup-notification" ,startup-notification)
1528 ("libjpeg" ,libjpeg-turbo)
1529 ("librsvg" ,librsvg)
1530 ("libxkbcommon" ,libxkbcommon)
1532 ("xcb-util" ,xcb-util)
1533 ("xcb-util-xrm" ,xcb-util-xrm)
1534 ("xcb-util-wm" ,xcb-util-wm)))
1539 ("glib:bin" ,glib "bin")
1540 ("pkg-config" ,pkg-config)))
1542 `(#:parallel-tests? #f ; fails in some circumstances
1544 (modify-phases %standard-phases
1545 (add-before 'configure 'adjust-tests
1547 (substitute* '("test/helper-expand.c")
1550 (("g_get_home_dir \\(\\)") "\"/\""))
1552 (home-page "https://github.com/DaveDavenport/rofi")
1553 (synopsis "Application launcher")
1554 (description "Rofi is a minimalist application launcher. It memorizes which
1555 applications you regularly use and also allows you to search for an application
1557 (license license:expat)))
1559 (define-public tint2
1565 (uri (string-append "https://gitlab.com/o9000/" name
1566 "/repository/archive.tar.gz?ref=" version))
1567 (file-name (string-append name "-" version ".tar.gz"))
1570 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1571 (build-system cmake-build-system)
1573 '(#:tests? #f ;no test target
1575 (modify-phases %standard-phases
1576 (add-after 'unpack 'fix-installation-prefix
1578 (substitute* "CMakeLists.txt"
1579 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))
1584 ("librsvg" ,librsvg)
1585 ("libxcomposite" ,libxcomposite)
1586 ("libxdamage" ,libxdamage)
1588 ("libxinerama" ,libxinerama)
1589 ("libxrandr" ,libxrandr)
1590 ("startup-notification" ,startup-notification)))
1592 `(("gettext" ,gettext-minimal)
1593 ("pkg-config" ,pkg-config)))
1594 (home-page "https://gitlab.com/o9000/tint2")
1595 (synopsis "Lightweight task bar")
1597 "Tint2 is a simple task bar made for modern X window managers. It was
1598 specifically made for Openbox but it should also work with other window
1599 managers (GNOME, KDE, XFCE etc.).
1601 The taskbar includes transparency and color settings for the font, icons,
1602 border, and background. It also supports multihead setups, customized mouse
1603 actions, a built-in clock, a battery monitor and a system tray.")
1604 (license license:gpl2)))
1607 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1611 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1612 revision "." (string-take commit 7)))
1616 (url "https://github.com/robm/dzen")
1618 (file-name (string-append name "-" version))
1621 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1622 (build-system gnu-build-system)
1624 `(#:tests? #f ; No test suite.
1625 #:make-flags ; Replacement for `config.mk`.
1627 (string-append "VERSION = " ,version)
1628 (string-append "PREFIX = " %output)
1629 "MANPREFIX = ${PREFIX}/share/man"
1631 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1632 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1633 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1638 (modify-phases %standard-phases
1639 (delete 'configure) ; No configuration script.
1640 ;; Use own make-flags instead of `config.mk`.
1641 (add-before 'build 'dont-include-config-mk
1643 (substitute* "Makefile" (("include config.mk") ""))
1646 `(("libx11" ,libx11)
1649 ("libxinerama" ,libxinerama)))
1650 (native-inputs `(("pkg-config" ,pkg-config)))
1651 (synopsis "General purpose messaging, notification and menuing program for X11")
1652 (description "Dzen is a general purpose messaging, notification and menuing
1653 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1654 (home-page "https://github.com/robm/dzen")
1655 (license license:expat))))
1657 (define-public xftwidth
1660 (version "20170402")
1665 (url "http://github.com/vixus0/xftwidth")
1666 (commit "35ff963908d41a8a6a7101c434c88255728025ee")))
1669 "1jwl25785li24kbp0m1wxfwk4dgxkliynn03nsj813cjr34kq16h"))
1670 (file-name (string-append name "-" version "-checkout"))))
1671 (build-system gnu-build-system)
1672 (inputs `(("freetype" ,freetype)
1674 ("fontconfig" ,fontconfig)
1675 ("libxft" ,libxft)))
1677 `(("pkg-config" ,pkg-config)))
1680 (modify-phases %standard-phases
1681 (add-after 'unpack 'fix-makefile ; /usr/bin doesn't show up in PATH
1682 (lambda _ (substitute* "Makefile" (("usr/") "")) #t))
1683 (delete 'check) ; no check included in Makefile
1684 (delete 'configure))
1686 (let ((out (assoc-ref %outputs "out")))
1687 (list (string-append "DESTDIR=" out)))))
1688 (home-page "https://github.com/vixus0/xftwidth")
1689 (synopsis "Calculator for determining pixel widths of displayed text using Xft fonts")
1690 (description "xftwidth is a small C program for calculating the pixel
1691 widths of displayed text using Xft fonts. It is especially useful in scripts
1692 for displaying text in graphical panels, menus, popups, and notification
1693 windows generated using dzen. These scripts are often used in conjunction with
1694 minimalistic tiling window managers such as herbstluftwm and bspwm.")
1695 (license license:expat)))
1697 (define-public xcb-util-xrm
1699 (name "xcb-util-xrm")
1704 "https://github.com/Airblader/xcb-util-xrm/releases"
1705 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1708 "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h"))
1709 (modules '((guix build utils)))
1713 (delete-file-recursively "m4")
1715 (build-system gnu-build-system)
1717 `(("pkg-config" ,pkg-config)
1719 ("libx11" ,libx11))) ; for tests
1721 `(("libxcb" ,libxcb)
1722 ("xcb-util" ,xcb-util)))
1723 (home-page "https://github.com/Airblader/xcb-util-xrm")
1724 (synopsis "XCB utility functions for the X resource manager")
1726 "The XCB util module provides a number of libraries which sit on
1727 top of libxcb, the core X protocol library, and some of the extension
1728 libraries. These experimental libraries provide convenience functions
1729 and interfaces which make the raw X protocol more usable. Some of the
1730 libraries also provide client-side code which is not strictly part of
1731 the X protocol but which has traditionally been provided by Xlib.
1733 XCB util-xrm module provides the following libraries:
1735 - xrm: utility functions for the X resource manager.")
1736 (license license:x11)))
1738 (define-public xcalib
1742 (home-page "https://github.com/OpenICC/xcalib")
1748 (file-name (git-file-name name version))
1751 "05fzdjmhiafgi2jf0k41i3nm0837a78sb6yv59cwc23nla8g0bhr"))
1754 ;; Add missing documentation for the new --output option.
1755 ;; This upstream patch can be removed on the next update.
1759 home-page "/commit/"
1760 "ae03889b91fe984b18e925ad2b5e6f2f7354e058.patch"))
1761 (file-name "xcalib-update-man-page.patch")
1764 "0f7b4d5484x4b9n1bwhqmar0kcaa029ffff7bp3xpr734n1qgqb6")))))))
1765 (build-system cmake-build-system)
1767 '(#:tests? #f)) ; no test suite
1768 (inputs `(("libx11" ,libx11)
1769 ("libxext" ,libxext)
1770 ("libxrandr" ,libxrandr)
1771 ("libxxf86vm" ,libxxf86vm)))
1772 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1773 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1774 profiles to the video card's gamma ramp. It does work with most video card
1775 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1776 invert colors on a specific display/screen.")
1777 (license license:gpl2)))
1779 (define-public nxbelld
1786 (url "https://github.com/dusxmt/nxbelld")
1790 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1791 (file-name (git-file-name name version))))
1792 (build-system gnu-build-system)
1793 (arguments '(#:configure-flags `("--enable-sound"
1796 (native-inputs `(("autoconf" ,autoconf)
1797 ("automake" ,automake)
1798 ("pkg-config" ,pkg-config)
1800 (inputs `(("libx11" ,libx11)
1801 ("alsa-lib" ,alsa-lib)))
1802 (synopsis "Daemon that performs an action every time the X11 bell is rung")
1803 (description "nxbelld is a tiny utility to aid people who either don't
1804 like the default PC speaker beep, or use a sound driver that doesn't have
1805 support for the PC speaker. The utility performs a given action every time
1806 the X bell is rung. The actions nxbelld can currently perform include running
1807 a specified program, emulating the PC speaker beep using the sound card (default),
1808 or playing a PCM encoded WAVE file.")
1809 (home-page "https://github.com/dusxmt/nxbelld")
1810 (license license:gpl3+)))
1812 (define-public xautolock
1818 (uri (string-append "https://www.ibiblio.org/pub/linux/X11/"
1819 "screensavers/xautolock-" version ".tgz"))
1822 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1823 (build-system gnu-build-system)
1825 `(("imake" ,imake)))
1827 `(("libx11" ,libx11)
1828 ("libxext" ,libxext)
1829 ("libxscrnsaver" ,libxscrnsaver)))
1833 (modify-phases %standard-phases
1835 (lambda* (#:key inputs outputs #:allow-other-keys)
1836 (let ((imake (assoc-ref inputs "imake"))
1837 (out (assoc-ref outputs "out")))
1838 ;; Generate Makefile
1840 (substitute* "Makefile"
1841 ;; These imake variables somehow remain undefined
1842 (("DefaultGcc2[[:graph:]]*Opt") "-O2")
1843 ;; Reset a few variable defaults that are set in imake templates
1845 (("(MANPATH = )[[:graph:]]*" _ front)
1846 (string-append front out "/share/man")))
1847 ;; Old BSD-style 'union wait' is unneeded (defining
1848 ;; _USE_BSD did not seem to fix it)
1849 (substitute* "src/engine.c"
1850 (("union wait status") "int status = 0"))
1852 (add-after 'install 'install/man
1854 (invoke "make" "install.man"))))))
1855 (home-page "https://ibiblio.org/pub/Linux/X11/screensavers/")
1856 (synopsis "Program launcher for idle X sessions")
1857 (description "Xautolock monitors input devices under the X Window
1858 System, and launches a program of your choice if there is no activity after
1859 a user-configurable period of time.")
1860 (license license:gpl2)))
1862 (define-public screen-message
1864 (name "screen-message")
1869 "https://www.joachim-breitner.de/archive/screen-message"
1870 "/screen-message-" version ".tar.gz"))
1873 "1lw955qq5pq010lzmaf32ylj2iprgsri9ih4hx672c3f794ilab0"))))
1874 (build-system gnu-build-system)
1875 (inputs `(("gtk3" ,gtk+)
1878 (native-inputs `(("pkg-config" ,pkg-config)))
1880 ;; The default configure puts the 'sm' binary in games/ instead of bin/ -
1882 `(#:make-flags (list (string-append "execgamesdir=" %output "/bin"))))
1883 (synopsis "Print messages on your screen")
1884 (description "@code{screen-message} is a tool for displaying text on
1885 your screen. It will make the text as large as possible and display it
1886 with black color on a white background (colors are configurable on the
1888 (home-page "https://www.joachim-breitner.de/projects#screen-message")
1889 (license license:gpl2+)))
1891 (define-public xss-lock
1892 ;; xss-lock does not seem to be maintained any longer, but the last commits
1893 ;; fix important issues so we package them.
1894 (let ((version "0.3.0")
1896 (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717"))
1899 (version (git-version version revision commit))
1903 (url "https://bitbucket.org/raymonad/xss-lock.git")
1905 (file-name (git-file-name name version))
1908 "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r"))))
1909 (build-system cmake-build-system)
1910 (inputs `(("glib" ,glib)
1911 ("xcb-util" ,xcb-util)))
1913 `(("python-docutils" ,python-docutils)
1914 ("pkg-config" ,pkg-config)))
1917 (synopsis "Use external screen locker on events")
1918 (description "@code{xss-lock} listens to X signals to fire up a
1919 user-defined screensaver. In effect this automatically locks the
1920 screen when closing a laptop lid or after a period of user inactivity (as set
1921 with @code{xset s TIMEOUT}). The notifier command, if specified, is executed
1922 first. Additionally, xss-lock uses the inhibition logic to lock the screen
1923 before the system goes to sleep.")
1924 (home-page "https://bitbucket.org/raymonad/xss-lock")
1925 (license license:expat))))
1927 (define-public python-pyperclip
1929 (name "python-pyperclip")
1934 (uri (pypi-uri "pyperclip" version))
1937 "1p505c23ji06r28k1y67siihsbdzdf1brhlqpyv9ams4gk9863pp"))))
1938 (build-system python-build-system)
1940 '(#:tests? #f)) ; Not clear how to make tests pass.
1944 (home-page "https://github.com/asweigart/pyperclip")
1945 (synopsis "Python clipboard module")
1947 "Pyperclip is a clipboard module for Python, handling copy/pasting from
1949 (license license:bsd-3)))
1951 (define-public numlockx
1958 ;; It seems that upstream is gone.
1959 (url "https://github.com/rg3/numlockx")
1961 (file-name (git-file-name name version))
1964 "1w49fayhwzn5rx0z1q2lrvm7z8jrd34lgb89p853a024bixc3cf2"))))
1965 (build-system gnu-build-system)
1967 `(("xorg-server" ,xorg-server)))
1968 (home-page "https://github.com/rg3/numlockx")
1969 (synopsis "Turns on the numlock key in X11")
1970 (description "@command{numlockx} is a tiny program that lets you turn on
1971 the numlock key in X11. It can be called from the user's initialization files
1972 to automatically turn it on on login.")
1973 (license license:expat)))
1975 (define-public xrandr-invert-colors
1977 (name "xrandr-invert-colors")
1982 (url "https://github.com/zoltanp/xrandr-invert-colors")
1983 (commit (string-append "v" version))))
1984 (file-name (git-file-name name version))
1987 "1br3x9vr6xm4ika06n8cfxx1b3wdchdqvyzjl4y1chmivrml8x9h"))))
1988 (build-system gnu-build-system)
1990 `(#:make-flags (list "CC=gcc")
1991 #:tests? #f ; there are none
1993 (modify-phases %standard-phases
1996 (lambda* (#:key outputs #:allow-other-keys)
1997 (let* ((out (assoc-ref outputs "out"))
1998 (bin (string-append out "/bin")))
1999 (install-file "xrandr-invert-colors.bin" bin)
2002 `(("libxrandr" ,libxrandr)))
2003 (home-page "https://github.com/zoltanp/xrandr-invert-colors")
2004 (synopsis "Invert display colors")
2005 (description "This package provides a small utility for inverting the
2006 colors on all monitors attached to an XRandR-capable X11 display server.")
2007 (license license:gpl3+)))
2017 (string-append "https://www.umaxx.net/dl/sct-"
2020 (base32 "0lrhx771iccbw04wrhj0ygids1pzmjfc4hvklm30m3p3flvhqf0m"))))
2021 (build-system gnu-build-system)
2024 (list ,(string-append "CC=" (cc-for-target)))
2025 #:tests? #f ; no test suite
2027 (modify-phases %standard-phases
2029 (add-after 'unpack 'fix-sctd-paths
2030 (lambda* (#:key outputs inputs #:allow-other-keys)
2031 (let ((out (assoc-ref outputs "out"))
2032 (coreutils (assoc-ref inputs "coreutils"))
2033 (inetutils (assoc-ref inputs "inetutils"))
2034 (sed (assoc-ref inputs "sed")))
2035 (substitute* "sctd.sh"
2036 (("\\$\\(which sct\\)") (string-append out "/bin/sct"))
2037 (("date") (string-append coreutils "/bin/date"))
2038 (("printf") (string-append coreutils "/bin/printf"))
2039 (("sleep") (string-append coreutils "/bin/sleep"))
2040 (("logger") (string-append inetutils "/bin/logger"))
2041 (("sed") (string-append sed "/bin/sed"))))))
2043 (lambda* (#:key outputs #:allow-other-keys)
2044 (let ((out (assoc-ref outputs "out")))
2045 (install-file "sct" (string-append out "/bin"))
2046 (install-file "sctd.sh" (string-append out "/bin"))
2047 (install-file "sct.1" (string-append out "/man/man1"))
2048 (install-file "sctd.1" (string-append out "/man/man1"))
2049 (rename-file (string-append out "/bin/sctd.sh")
2050 (string-append out "/bin/sctd"))
2053 `(("coreutils" ,coreutils) ; sctd uses "date", "printf" and "sleep"
2054 ("inetutils" ,inetutils) ; sctd uses "logger"
2055 ("libxrandr" ,libxrandr)
2056 ("sed" ,sed))) ; sctd uses "sed"
2057 (home-page "https://www.umaxx.net")
2058 (synopsis "Set the color temperature of the screen")
2059 (description "@code{sct} is a lightweight utility to set the color
2060 temperature of the screen.")
2061 (license (license:non-copyleft "file://sct.c")))) ; "OpenBSD" license
2063 (define-public xsecurelock
2065 (name "xsecurelock")
2070 "https://github.com/google/xsecurelock/releases"
2071 "/download/v" version "/xsecurelock-" version ".tar.gz"))
2073 (base32 "070gknyv0s5hz9hkc6v73m2v7ssyjwgl93b5hd4glayfqxqjbmdp"))))
2074 (build-system gnu-build-system)
2077 '("--with-pam-service-name=login"
2079 "--with-default-authproto-module=/run/setuid-programs/authproto_pam")))
2081 `(("pandoc" ,pandoc)
2082 ("pkg-config" ,pkg-config)))
2084 `(("fontconfig" ,fontconfig)
2086 ("libxcomposite" ,libxcomposite)
2087 ("libxext" ,libxext)
2088 ("libxfixes" ,libxfixes)
2091 ("libxrandr" ,libxrandr)
2092 ("libxscrnsaver" ,libxscrnsaver)
2093 ("linux-pam" ,linux-pam)))
2094 (home-page "https://github.com/google/xsecurelock")
2095 (synopsis "X11 screen lock utility with the primary goal of security")
2096 (description "@code{xsecurelock} is an X11 screen locker which uses
2097 a modular design to avoid the usual pitfalls of screen locking utility design.
2099 As a consequence of the modular design, the usual screen locker service
2100 shouldn't be used with @code{xsecurelock}. Instead, you need to add a helper
2101 binary to setuid-binaries:
2103 (setuid-programs (cons*
2104 (file-append xsecurelock \"/libexec/xsecurelock/authproto_pam\")
2107 (license license:asl2.0)))
2109 (define-public wl-clipboard
2111 (name "wl-clipboard")
2117 (url "https://github.com/bugaevc/wl-clipboard")
2118 (commit (string-append "v" version))))
2119 (file-name (git-file-name name version))
2121 (base32 "0c4w87ipsw09aii34szj9p0xfy0m00wyjpll0gb0aqmwa60p0c5d"))))
2122 (build-system meson-build-system)
2124 `(("pkg-config" ,pkg-config)))
2126 `(("wayland" ,wayland)
2127 ("wayland-protocols" ,wayland-protocols)))
2128 (home-page "https://github.com/bugaevc/wl-clipboard")
2129 (synopsis "Command-line copy/paste utilities for Wayland")
2130 (description "Wl-clipboard is a set of command-line copy/paste utilities for
2132 (license license:gpl3+)))
2134 (define-public autocutsel
2140 (uri (string-append "https://github.com/sigmike/autocutsel"
2141 "/releases/download/" version "/"
2142 "autocutsel-" version ".tar.gz"))
2145 "0gsys2dzh4az51ndcsabhlbbrjn2nm75lnjr45kg6r8sm8q66dx2"))))
2146 (build-system gnu-build-system)
2148 '(#:tests? #f)) ; no "check" target
2149 (native-inputs `(("libx11" ,libx11)
2150 ("libxaw" ,libxaw)))
2151 (home-page "https://www.nongnu.org/autocutsel/")
2152 (synopsis "Automated X11 clipboard and cutbuffer synchronization")
2153 (description "@code{autocutsel} tracks changes in the server's cutbuffer
2154 and clipboard selection. When the clipboard is changed, it updates the
2155 cutbuffer. When the cutbuffer is changed, it owns the clipboard selection.
2156 The cutbuffer and clipboard selection are always synchronized.")
2157 (license license:gpl2+)))
2159 (define-public jgmenu
2167 (url "https://github.com/johanmalm/jgmenu")
2168 (commit (string-append "v" version))))
2169 (file-name (git-file-name name version))
2172 "1wsh37rapb1bszlq36hvwxqvfds39hbvbl152m8as4zlh93wfvvk"))))
2173 (build-system gnu-build-system)
2175 `(("cppcheck" ,cppcheck)
2177 ("pkg-config" ,pkg-config)))
2181 ("librsvg" ,librsvg)
2183 ("libxml2" ,libxml2)
2184 ("libxrandr" ,libxrandr)
2188 (modify-phases %standard-phases
2189 (add-after 'unpack 'fix-tests
2191 (substitute* "scripts/cppcheck-wrapper.sh"
2192 (("--library=/usr/share/cppcheck/cfg/gnu\\.cfg")
2196 (lambda* (#:key outputs #:allow-other-keys)
2198 (invoke "./configure"
2199 (string-append "--prefix=" (assoc-ref outputs "out")))
2201 (synopsis "Simple X11 menu")
2203 "This is a simple menu for X11 designed for scripting and tweaking. It
2204 can optionally use some appearance settings from XSettings, tint2 and GTK.")
2205 (home-page "https://jgmenu.github.io/")
2206 (license license:gpl2)))
2208 (define-public xwallpaper
2216 (url "https://github.com/stoeckmann/xwallpaper")
2217 (commit (string-append "v" version))))
2218 (file-name (git-file-name name version))
2220 (base32 "121ai4dc0v65qk12gn9w62ixly8hc8a5qrygkbb82vy8ck4jqxj7"))))
2221 (build-system gnu-build-system)
2223 `(("autoconf" ,autoconf)
2224 ("automake" ,automake)
2225 ("pkg-config" ,pkg-config)))
2227 `(("libjpeg-turbo" ,libjpeg-turbo)
2231 ("xcb-util" ,xcb-util)
2232 ("xcb-util-image" ,xcb-util-image)))
2233 (home-page "https://github.com/stoeckmann/xwallpaper")
2234 (synopsis "Wallpaper setting utility for X")
2236 "The xwallpaper utility allows you to set image files as your X
2237 wallpaper. JPEG, PNG, and XPM file formats are supported.
2239 The wallpaper is also advertised to programs which support semi-transparent
2241 (license license:isc)))
2243 (define-public xwrits
2250 (uri (string-append "https://www.lcdf.org/~eddietwo/xwrits/"
2251 "xwrits-" version ".tar.gz"))
2253 (base32 "1n7y0fqpcvmzznvbsn14hzy5ddaa3lilm8aw6ckscqndnh4lijma"))))
2254 (build-system gnu-build-system)
2257 (modify-phases %standard-phases
2258 (add-after 'install 'install-docs
2259 (lambda* (#:key outputs #:allow-other-keys)
2260 (let* ((out (assoc-ref outputs "out"))
2261 (doc (string-append out "/share/doc/xwrits")))
2262 (install-file "GESTURES" doc)
2263 (install-file "README" doc)
2266 `(("libx11" ,libx11)
2267 ("libxinerama" ,libxinerama)))
2268 (home-page "https://www.lcdf.org/~eddietwo/xwrits/")
2269 (synopsis "Reminds you to take wrist breaks")
2270 (description "Xwrits reminds you to take wrist breaks for prevention or
2271 management of repetitive stress injuries. When you should take a break, it
2272 pops up an X window, the warning window. You click on the warning window,
2273 then take a break. The window changes appearance while you take the break.
2274 It changes again when your break is over. Then you just resume typing.
2275 Xwrits hides itself until you should take another break.")
2276 (license license:gpl2)))
2278 (define-public xsettingsd
2286 (url "https://github.com/derat/xsettingsd")
2287 (commit (string-append "v" version))))
2288 (file-name (git-file-name name version))
2290 (base32 "14gnkz18dipsa2v24f4nm9syxaa7g21iqjm7y65jn849ka2jr1h8"))))
2291 (build-system scons-build-system)
2293 `(("libx11" ,libx11)))
2295 `(("pkg-config" ,pkg-config)
2296 ("googletest" ,googletest)
2297 ("googletest-source" ,(package-source googletest))))
2299 `(#:scons ,scons-python2
2303 (modify-phases %standard-phases
2304 (add-before 'build 'patch-sconstruct
2305 (lambda* (#:key inputs #:allow-other-keys)
2306 (substitute* "SConstruct"
2307 ;; scons doesn't pick up environment variables automatically
2308 ;; so it needs help to find path variables
2309 (("env = Environment\\(")
2312 'PATH': os.environ['PATH'],
2313 'CPATH': os.environ['C_INCLUDE_PATH'],
2314 'LIBRARY_PATH': os.environ['LIBRARY_PATH'],
2315 'PKG_CONFIG_PATH': os.environ['PKG_CONFIG_PATH']
2317 ;; Update path to gtest source files used in tests
2318 (("/usr/src/gtest") (string-append
2319 (assoc-ref inputs "googletest-source")
2321 ;; Exclude one warning that causes a build error
2322 (("-Werror") "-Werror -Wno-error=sign-compare"))
2324 ;; The SConstruct script doesn't configure installation so
2325 ;; binaries must be copied to the output path directly
2327 (lambda* (#:key outputs #:allow-other-keys)
2328 (let* ((out (assoc-ref outputs "out"))
2329 (bin (string-append out "/bin")))
2331 (install-file "xsettingsd" bin)
2332 (install-file "dump_xsettings" bin)
2334 (home-page "https://github.com/derat/xsettingsd")
2335 (synopsis "Xorg settings daemon")
2336 (description "@command{xsettingsd} is a lightweight daemon that provides settings to
2337 Xorg applications via the XSETTINGS specification. It is used for defining
2338 font and theme settings when a complete desktop environment (GNOME, KDE) is
2339 not running. With a simple @file{.xsettingsd} configuration file one can avoid
2340 configuring visual settings in different UI toolkits separately.")
2341 (license license:bsd-3)))
2343 (define-public clipnotify
2351 (url "https://github.com/cdown/clipnotify")
2353 (file-name (git-file-name name version))
2356 "1v3ydm5ljy8z1savmdxrjyx7a5bm5013rzw80frp3qbbjaci0wbg"))))
2357 (build-system gnu-build-system)
2360 (modify-phases %standard-phases
2363 (lambda* (#:key inputs outputs #:allow-other-keys)
2364 (let* ((out (assoc-ref outputs "out"))
2365 (bin (string-append out "/bin"))
2366 (doc (string-append %output "/share/doc/" ,name "-" ,version)))
2367 (install-file "clipnotify" bin)
2368 (install-file "README.md" doc)
2371 (list ,(string-append "CC=" (cc-for-target)))
2372 #:tests? #f)) ; no test suite
2374 `(("libx11" ,libx11)
2375 ("libXfixes" ,libxfixes)))
2376 (home-page "https://github.com/cdown/clipnotify")
2377 (synopsis "Notify on new X clipboard events")
2378 (description "@command{clipnotify} is a simple program that, using the
2379 XFIXES extension to X11, waits until a new selection is available and then
2382 It was primarily designed for clipmenu, to avoid polling for new selections.
2384 @command{clipnotify} doesn't try to print anything about the contents of the
2385 selection, it just exits when it changes. This is intentional -- X11's
2386 selection API is verging on the insane, and there are plenty of others who
2387 have already lost their sanity to bring us xclip/xsel/etc. Use one of those
2388 tools to complement clipnotify.")
2389 (license license:public-domain)))
2391 (define-public clipmenu
2392 (let ((commit "bcbe7b144598db4a103f14e8408c4b7327d6d5e1")
2396 (version (string-append "6.0.1-"
2397 revision "." (string-take commit 7)))
2402 (url "https://github.com/cdown/clipmenu")
2404 (file-name (git-file-name name version))
2407 "0053j4i14lz5m2bzc5sch5id5ilr1bl196mp8fp0q8x74w3vavs9"))))
2408 (build-system gnu-build-system)
2411 (modify-phases %standard-phases
2415 (lambda* (#:key inputs outputs #:allow-other-keys)
2416 (let* ((out (assoc-ref outputs "out"))
2417 (bin (string-append out "/bin"))
2418 (doc (string-append %output "/share/doc/"
2419 ,name "-" ,version)))
2420 (install-file "clipdel" bin)
2421 (install-file "clipmenu" bin)
2422 (install-file "clipmenud" bin)
2423 (install-file "README.md" doc)
2425 (add-after 'install 'wrap-script
2426 (lambda* (#:key inputs outputs #:allow-other-keys)
2427 (let* ((out (assoc-ref outputs "out"))
2428 (clipnotify (assoc-ref inputs "clipnotify"))
2429 (coreutils-minimal (assoc-ref inputs "coreutils-minimal"))
2430 (gawk (assoc-ref inputs "gawk"))
2431 (util-linux (assoc-ref inputs "util-linux"))
2432 (xdotool (assoc-ref inputs "xdotool"))
2433 (xsel (assoc-ref inputs "xsel")))
2436 (wrap-script (string-append out "/bin/" prog)
2439 (string-append dir "/bin"))
2440 (list clipnotify coreutils-minimal
2441 gawk util-linux xdotool xsel)))))
2442 '("clipmenu" "clipmenud" "clipdel")))
2445 (lambda* (#:key inputs outputs #:allow-other-keys)
2446 ;; substitute a shebang appearing inside a string (the test
2447 ;; file writes this string to a temporary file):
2448 (substitute* "tests/test-clipmenu"
2449 (("#!/usr/bin/env bash")
2450 (string-append "#!" (which "bash"))))
2451 (invoke "tests/test-clipmenu")
2454 `(("clipnotify" ,clipnotify)
2455 ("coreutils-minimal" ,coreutils-minimal)
2457 ("guile" ,guile-3.0) ; for wrap-script
2458 ("util-linux" ,util-linux)
2459 ("xdotool" ,xdotool)
2461 (home-page "https://github.com/cdown/clipmenu")
2462 (synopsis "Simple clipboard manager using dmenu or rofi and xsel")
2463 (description "Start @command{clipmenud}, then run @command{clipmenu} to
2464 select something to put on the clipboard.
2466 When @command{clipmenud} detects changes to the clipboard contents, it writes
2467 them out to the cache directory. @command{clipmenu} reads the cache directory
2468 to find all available clips and launches @command{dmenu} (or @command{rofi},
2469 depending on the value of @code{CM_LAUNCHER}) to let the user select a clip.
2470 After selection, the clip is put onto the PRIMARY and CLIPBOARD X selections.")
2471 (license license:public-domain))))
2481 (url "https://github.com/qnikst/kbdd")
2482 (commit (string-append "v" version))))
2483 (file-name (git-file-name name version))
2486 "0qkq75grbd4wkx4nlvswgavpijk9ad0pzqyj89a0ayjsbsn36pqy"))))
2487 (build-system gnu-build-system)
2489 `(("autoconf" ,autoconf)
2490 ("automake" ,automake)
2491 ("glib" ,glib "bin")
2492 ("pkg-config" ,pkg-config)))
2494 `(("dbus-glib" ,dbus-glib)
2496 ("libx11" ,libx11)))
2497 (home-page "https://github.com/qnikst/kbdd")
2498 (synopsis "Per-window keyboard layout switching daemon for X")
2499 (description "@command{kbdd} is a simple keyboard layout switching
2500 program, which is designed to run in an X11 session and remember
2501 keyboard layouts on a per-window basis. That can be very handy for a
2502 user of a non-US keyboard who does not want to jump through layouts back
2503 and forth while typing in terminals (mostly in a latin alphabet) and
2504 some kind of chat (in native language).
2506 @command{kbdd} also supports D-Bus signals, which makes it possible to
2507 create layout indicator widgets.")
2508 (license license:bsd-2)))
2510 (define-public j4-dmenu-desktop
2512 (name "j4-dmenu-desktop")
2517 (url "https://github.com/enkore/j4-dmenu-desktop")
2518 (commit (string-append "r" version))))
2519 (file-name (git-file-name name version))
2522 "1gxpgifzy0hnpd0ymw3r32amzr32z3bgb90ldjzl438p6h1q0i26"))))
2523 (build-system cmake-build-system)
2525 `(("catch2" ,catch-framework2)))
2527 `(#:configure-flags '("-DWITH_GIT_CATCH=off")
2529 (modify-phases %standard-phases
2530 (add-after 'unpack 'find-catch
2532 (substitute* "CMakeLists.txt"
2533 (("PATH_SUFFIXES catch") "PATH_SUFFIXES catch2"))
2537 (invoke "./j4-dmenu-tests" "exclude:SearchPath/XDG_DATA_HOME"))))))
2538 (synopsis "Fast desktop menu")
2540 "j4-dmenu-desktop is a replacement for i3-dmenu-desktop. Its purpose
2541 is to find @file{.desktop} files and offer you a menu to start an application
2542 using @command{dmenu}.")
2543 (home-page "https://github.com/enkore/j4-dmenu-desktop")
2544 (license license:gpl3+)))
2553 (url "https://hg.sr.ht/~scoopta/wofi")
2554 (changeset (string-append "v" version))))
2555 (file-name (git-file-name name version))
2558 "0glpb2gf5n78s01z3rn614ak8ibxhfr824gy6xlljbxclgds264i"))))
2559 (build-system meson-build-system)
2561 `(#:glib-or-gtk? #t))
2563 `(("pkg-config" ,pkg-config)))
2566 ("wayland" ,wayland)))
2567 (synopsis "Launcher/menu program for wayland")
2569 "Wofi is a launcher/menu program for wlroots based wayland compositors
2570 such as sway, similar to @command{rofi}.")
2571 (home-page "https://hg.sr.ht/~scoopta/wofi")
2572 (license license:gpl3+)))
2581 (url (string-append "https://github.com/jceb/dex"))
2582 (commit (string-append "v" version))))
2585 "03aapcywnz4kl548cygpi25m8adwbmqlmwgxa66v4156ax9dqs86"))
2586 (file-name (git-file-name name version))))
2587 (build-system gnu-build-system)
2589 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2591 (modify-phases %standard-phases
2592 (delete 'configure))
2595 `(("python", python)))
2597 `(("python-sphinx" ,python-sphinx)))
2598 (home-page "https://github.com/jceb/dex")
2599 (synopsis "Execute DesktopEntry files")
2601 "@command{dex}, @dfn{DesktopEntry Execution}, is a program to generate
2602 and execute @file{.desktop} files of the Application type.")
2603 (license license:gpl3+)))
2612 (url "https://github.com/Earnestly/sx")
2614 (file-name (git-file-name name version))
2617 "0p24ghp1ygvyc2hv81byhxax7491yhcc5priq5ldv07nzl7akagc"))))
2618 (build-system gnu-build-system)
2620 '(#:tests? #f ; no tests
2622 (let ((out (assoc-ref %outputs "out")))
2623 (list (string-append "PREFIX=" out)))
2625 (modify-phases %standard-phases
2626 ;; no configure script
2627 (delete 'configure))))
2629 `(("xauth" ,xauth)))
2630 (home-page "https://github.com/Earnestly/sx")
2631 (synopsis "Start an xorg server")
2633 "@command{sx} is a simple alternative to both @command{xinit} and
2634 @command{startx} for starting an Xorg server.")
2635 (license license:x11)))
2637 (define-public hsetroot
2641 (home-page "https://github.com/himdel/hsetroot")
2644 (file-name (git-file-name name version))
2650 "1jbk5hlxm48zmjzkaq5946s58rqwg1v1ds2sdyd2ba029hmvr722"))))
2651 (build-system gnu-build-system)
2657 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2659 (modify-phases %standard-phases
2661 (add-before 'install 'mkdir-install-path
2662 (lambda* (#:key outputs #:allow-other-keys)
2663 (let ((out (assoc-ref outputs "out")))
2664 (mkdir-p (string-append out "/bin"))))))))
2666 `(("libx11" ,libx11)
2668 ("libxinerama" ,libxinerama)))
2670 `(("pkg-config" ,pkg-config)))
2671 (synopsis "Imlib2-based wallpaper changer")
2673 "The @command{hsetroot} command composes wallpapers for X.
2674 This package is the fork of hsetroot by Hyriand.")
2675 (license license:gpl2+)))