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>
45 ;;; This file is part of GNU Guix.
47 ;;; GNU Guix is free software; you can redistribute it and/or modify it
48 ;;; under the terms of the GNU General Public License as published by
49 ;;; the Free Software Foundation; either version 3 of the License, or (at
50 ;;; your option) any later version.
52 ;;; GNU Guix is distributed in the hope that it will be useful, but
53 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
54 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
55 ;;; GNU General Public License for more details.
57 ;;; You should have received a copy of the GNU General Public License
58 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
60 (define-module (gnu packages xdisorg)
61 #:use-module ((guix licenses) #:prefix license:)
62 #:use-module (guix packages)
63 #:use-module (guix download)
64 #:use-module (guix git-download)
65 #:use-module (guix hg-download)
66 #:use-module (guix utils)
67 #:use-module (guix build-system cmake)
68 #:use-module (guix build-system gnu)
69 #:use-module (guix build-system glib-or-gtk)
70 #:use-module (guix build-system meson)
71 #:use-module (guix build-system python)
72 #:use-module (guix build-system scons)
73 #:use-module (gnu packages)
74 #:use-module (gnu packages documentation)
75 #:use-module (gnu packages admin)
76 #:use-module (gnu packages base)
77 #:use-module (gnu packages algebra)
78 #:use-module (gnu packages autotools)
79 #:use-module (gnu packages check)
80 #:use-module (gnu packages compression)
81 #:use-module (gnu packages image)
82 #:use-module (gnu packages pkg-config)
83 #:use-module (gnu packages flex)
84 #:use-module (gnu packages freedesktop)
85 #:use-module (gnu packages gawk)
86 #:use-module (gnu packages gettext)
87 #:use-module (gnu packages gl)
88 #:use-module (gnu packages glib)
89 #:use-module (gnu packages gnome)
90 #:use-module (gnu packages haskell-xyz)
91 #:use-module (gnu packages icu4c)
92 #:use-module (gnu packages man)
93 #:use-module (gnu packages maths)
94 #:use-module (gnu packages m4)
95 #:use-module (gnu packages ncurses)
96 #:use-module (gnu packages perl)
97 #:use-module (gnu packages python)
98 #:use-module (gnu packages python-xyz)
99 #:use-module (gnu packages linux)
100 #:use-module (gnu packages gl)
101 #:use-module (gnu packages guile)
102 #:use-module (gnu packages xml)
103 #:use-module (gnu packages gtk)
104 #:use-module (gnu packages qt)
105 #:use-module (gnu packages xorg)
106 #:use-module (gnu packages fontutils)
107 #:use-module (gnu packages bison)
108 #:use-module (gnu packages sphinx)
109 #:use-module (ice-9 match))
111 ;; packages outside the x.org system proper
113 (define-public arandr
119 (uri (string-append "https://christian.amsuess.com/tools/arandr"
120 "/files/arandr-" version ".tar.gz"))
123 "135q0llvm077jil2fr92ssw3p095m4r8jfj0lc5rr3m71n4srj6v"))
124 (modules '((guix build utils)))
127 ;; Do not record a timestamp and file name in gzipped man
128 ;; pages (this is equivalent to 'gzip --no-name'.)
129 (substitute* "setup.py"
130 (("gzip\\.open\\(gzfile, 'w', 9\\)")
131 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)"))
133 (build-system python-build-system)
136 (modify-phases %standard-phases
137 (add-before 'build 'configure
138 (lambda* (#:key inputs #:allow-other-keys)
139 (substitute* "screenlayout/xrandr.py"
140 (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr")
143 (add-after 'install 'wrap-gi-typelib
144 (lambda* (#:key inputs outputs #:allow-other-keys)
145 (let ((out (assoc-ref outputs "out"))
146 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
147 (wrap-program (string-append out "/bin/arandr")
148 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
150 #:tests? #f)) ;no tests
151 (inputs `(("gtk+" ,gtk+)
152 ("pycairo" ,python-pycairo)
153 ("pygobject" ,python-pygobject)
155 (native-inputs `(("gettext" ,gettext-minimal)
156 ("python-docutils" ,python-docutils)))
157 (home-page "https://christian.amsuess.com/tools/arandr/")
158 (synopsis "Another RandR graphical user interface")
159 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
160 (description "ARandR is designed to provide a simple visual front end for
161 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
162 shown graphically and can be changed in a drag-and-drop way. Configurations
163 are saved as executable shell scripts which can be loaded without using this
165 (license license:gpl3+)))
167 (define-public autorandr
171 (home-page "https://github.com/phillipberndt/autorandr")
178 (file-name (git-file-name name version))
180 (base32 "0msw9b1hdy3gbq9w5d04mfizhyirz1c648x84mlcbzl8salm7vpg"))))
181 (build-system python-build-system)
183 `(("pkg-config" ,pkg-config)))
189 (modify-phases %standard-phases
190 (add-before 'build 'configure
191 (lambda* (#:key inputs outputs #:allow-other-keys)
192 (let ((xrandr (string-append (assoc-ref inputs "xrandr")
194 (substitute* "contrib/etc/xdg/autostart/autorandr.desktop"
195 (("/usr") (assoc-ref outputs "out")))
196 (substitute* "autorandr.py"
197 (("popen\\(\"xrandr") (string-append "popen(\"" xrandr))
198 (("\\[\"xrandr") (string-append "[\"" xrandr)))
199 (substitute* "contrib/autorandr_launcher/autorandr_launcher.c"
200 (("/usr/bin/autorandr")
201 (string-append (assoc-ref outputs "out") "/bin/autorandr")))
204 (add-after 'install 'install-contrib
205 (lambda* (#:key outputs #:allow-other-keys)
207 (string-append "DESTDIR=" (assoc-ref outputs "out"))
209 "BASH_COMPLETIONS_DIR=etc/bash_completion.d"
211 "TARGETS=autorandr launcher manpage bash_completion"))))))
212 (synopsis "Auto-detect connected displays and load appropriate setup")
213 (description "Autorandr wraps around xrandr to help with X11
214 multi-screen configuration management. It allows the user to create profiles
215 for various multi-screen setups. Autorandr automatically detects the profiles
216 that can be activated based on the connected hardware. Hook scripts can be
217 used to further tweak the behaviour of the different profiles.")
218 (license license:gpl3+)))
220 (define-public bemenu
228 (url "https://github.com/Cloudef/bemenu")
230 (file-name (git-file-name name version))
232 (base32 "1fjcs9d3533ay3nz79cx3c0lmy2chgragr2lhsy0xl2ckr0iins0"))))
233 (build-system gnu-build-system)
236 #:make-flags (list "CC=gcc"
238 (string-append "LDFLAGS=-Wl,-rpath="
239 (assoc-ref %outputs "out") "/lib")
240 (string-append "PREFIX=" (assoc-ref %outputs "out")))
242 (modify-phases %standard-phases
243 (delete 'configure))))
247 ("libxkbcomon" ,libxkbcommon)
248 ("libxinerama" ,libxinerama)
252 ("wayland-protocols" ,wayland-protocols)))
254 `(("doxygen" ,doxygen)
255 ("pkg-config" ,pkg-config)))
256 (home-page "https://github.com/Cloudef/bemenu")
257 (synopsis "Dynamic menu library and client program inspired by dmenu")
259 "bemenu is a dynamic menu which allows the user to flexibly select from a
260 list of options (usually programs to launch). It renders the menu graphically
261 with X11 or Wayland, or in a text terminal with ncurses.")
262 (license (list license:gpl3+ ; client program[s] and other sources
263 license:lgpl3+)))) ; library and bindings
272 (url "https://github.com/hluk/CopyQ")
273 (commit (string-append "v" version))))
274 (file-name (git-file-name name version))
277 "0wlwq9xg8rzsbj0b29z358k4mbrqy04iraa8x0p26pa95yskgcma"))))
278 (build-system cmake-build-system)
280 `(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release")
281 #:tests? #f)) ; Test suite is a rather manual process.
284 ("qtscript" ,qtscript)
286 ("qtx11extras" ,qtx11extras)))
287 (synopsis "Clipboard manager with advanced features")
288 (description "CopyQ is clipboard manager with editing and scripting
289 features. CopyQ monitors system clipboard and saves its content in customized
290 tabs. Saved clipboard can be later copied and pasted directly into any
292 (home-page "https://hluk.github.io/CopyQ/")
293 (license license:gpl3+)))
303 (url "https://github.com/astrand/xclip")
305 (file-name (git-file-name name version))
308 "0q0hmvcjlv8arhh1pzhja2wglyj6n7z209jnpnzd281kqqv4czcs"))))
309 (build-system gnu-build-system)
311 '(#:tests? #f)) ;there is no test suite
313 `(("autoconf" ,autoconf)
314 ("automake" ,automake)))
315 (inputs `(("libxmu" ,libxmu)
317 (home-page "https://github.com/astrand/xclip")
318 (synopsis "Command line interface to X11 clipboard")
319 (description "Xclip is a command line interface to the X11 clipboard. It
320 can also be used for copying files, as an alternative to sftp/scp, thus
321 avoiding password prompts when X11 forwarding has already been setup.")
322 (license license:gpl2+)))
324 (define-public libxkbcommon
326 (name "libxkbcommon")
330 (uri (string-append "https://xkbcommon.org/download/libxkbcommon-"
334 "13bcdf2xpjxwbghas0cr448z89qqki2ssgfgswc257y9859v4s5b"))))
335 (build-system meson-build-system)
341 ("wayland-protocols" ,wayland-protocols)
342 ("xkeyboard-config" ,xkeyboard-config)))
346 ("pkg-config" ,pkg-config)))
349 (list (string-append "-Dxkb-config-root="
350 (assoc-ref %build-inputs "xkeyboard-config")
352 (string-append "-Dx-locale-root="
353 (assoc-ref %build-inputs "libx11")
354 "/share/X11/locale"))))
355 (home-page "https://xkbcommon.org/")
356 (synopsis "Library to handle keyboard descriptions")
357 (description "Xkbcommon is a library to handle keyboard descriptions,
358 including loading them from disk, parsing them and handling their
359 state. It is mainly meant for client toolkits, window systems, and other
360 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
361 Clutter, and more. Despite the name, it is not currently used by anything
363 (license (license:x11-style "file://COPYING"
364 "See 'COPYING' in the distribution."))
365 (properties '((cpe-name . "xkbcommon")))))
367 (define-public libfakekey
375 (url "https://git.yoctoproject.org/git/libfakekey")
377 (file-name (git-file-name name version))
379 (base32 "1jw1d4wc1ysiijirc7apnz3sryrxbl9akgb92mh06dvfkz2nblj0"))))
380 (build-system gnu-build-system)
382 `(#:make-flags (list "AM_LDFLAGS=-lX11")
384 (modify-phases %standard-phases
386 ;; ./autogen.sh calls ./configure before shebangs have been patched.
388 (invoke "autoreconf" "-vfi"))))))
390 `(("pkg-config" ,pkg-config)
392 ;; For bootstrapping from git.
393 ("autoconf" ,autoconf)
394 ("automake" ,automake)
395 ("libtool" ,libtool)))
397 `(("libxtst" ,libxtst)
399 (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox")
400 (synopsis "X virtual keyboard library")
402 "Libfakekey is a virtual keyboard library for X.")
403 (license license:gpl2)))
405 (define-public xdotool
408 (version "3.20160805.1")
413 "https://github.com/jordansissel/xdotool/releases/download/v"
414 version "/xdotool-" version ".tar.gz"))
417 "1a6c1zr86zb53352yxv104l76l8x21gfl2bgw6h21iphxpv5zgim"))))
418 (build-system gnu-build-system)
420 '(#:tests? #f ; Test suite requires a lot of black magic
422 (modify-phases %standard-phases
424 (lambda* (#:key outputs #:allow-other-keys #:rest args)
425 (let ((out (assoc-ref outputs "out")))
426 (mkdir-p (string-append out "/lib"))
427 (setenv "PREFIX" out)
428 (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib"))
431 (native-inputs `(("perl" ,perl))) ; for pod2man
432 (inputs `(("libx11" ,libx11)
435 ("libxinerama" ,libxinerama)
437 ("libxkbcommon" ,libxkbcommon)))
438 (home-page "https://www.semicomplete.com/projects/xdotool/")
439 (synopsis "Fake keyboard/mouse input, window management, and more")
440 (description "Xdotool lets you simulate keyboard input and mouse activity,
441 move and resize windows, etc. It does this using X11's XTEST extension and
442 other Xlib functions. Additionally, you can search for windows and move,
443 resize, hide, and modify window properties like the title. If your window
444 manager supports it, you can use xdotool to switch desktops, move windows
445 between desktops, and change the number of desktops.")
446 (license license:bsd-3)))
455 (uri (string-append "https://www.x.org/releases/individual/app/"
456 name "-" version ".tar.bz2"))
458 (base32 "0lq5j7fryx1wn998jq6h3icz1h6pqrsbs3adskjzjyhn5l6yrg2p"))))
459 (build-system gnu-build-system)
461 `(("libxext" ,libxext)
463 ("libxrender" ,libxrender)
466 `(("pkg-config" ,pkg-config)))
467 (home-page "https://www.x.org/") ; no dedicated Xeyes page exists
468 (synopsis "Follow-the-mouse X demo")
469 (description "Xeyes is a demo program for x.org. It shows eyes
470 following the mouse.")
471 (license license:x11)))
474 (define-public pixman
481 "https://www.cairographics.org/releases/pixman-"
485 "1ryxzdf048x7wsx4dlvrr1p00gzwfs7lybnhgc7ygbj0dvyxcrns"))
486 (patches (search-patches "pixman-CVE-2016-5296.patch"))))
487 (build-system gnu-build-system)
489 '(#:configure-flags '("--disable-static")))
494 `(("pkg-config" ,pkg-config)))
495 (home-page "http://www.pixman.org/")
496 (synopsis "Low-level pixel manipulation library")
497 (description "Pixman is a low-level software library for pixel
498 manipulation, providing features such as image compositing and trapezoid
500 (license license:x11)))
502 (define-public libdrm
509 "https://dri.freedesktop.org/libdrm/libdrm-"
513 "0nx0bd9dhymdsd99v4ifib77yjirkvkxf5hzdkbr7qr8dhrzkjwb"))))
514 (build-system meson-build-system)
517 '(,@(match (%current-system)
518 ((or "armhf-linux" "aarch64-linux")
523 "-Dfreedreno-kgsl=true"))
526 #:phases (modify-phases %standard-phases
529 (invoke "meson" "test" "--timeout-multiplier" "5"))))))
531 `(("libpciaccess" ,libpciaccess)))
533 `(("pkg-config" ,pkg-config)))
534 (home-page "https://dri.freedesktop.org/wiki/")
535 (synopsis "Direct rendering userspace library")
536 (description "The Direct Rendering Infrastructure, also known as the DRI,
537 is a framework for allowing direct access to graphics hardware under the
538 X Window System in a safe and efficient manner. It includes changes to the
539 X server, to several client libraries, and to the kernel (DRM, Direct
540 Rendering Manager). The most important use for the DRI is to create fast
541 OpenGL implementations providing hardware acceleration for Mesa.
542 Several 3D accelerated drivers have been written to the DRI specification,
543 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
545 (license license:x11)))
556 "http://bitmath.org/code/mtdev/mtdev-"
560 "1q700h9dqcm3zl6c3gj0qxxjcx6ibw2c51wjijydhwdcm26v5mqm"))))
561 (build-system gnu-build-system)
562 (arguments '(#:configure-flags '("--disable-static")))
563 (home-page "http://bitmath.org/code/mtdev/")
564 (synopsis "Multitouch protocol translation library")
565 (description "Mtdev is a stand-alone library which transforms all
566 variants of kernel MT events to the slotted type B protocol. The events
567 put into mtdev may be from any MT device, specifically type A without
568 contact tracking, type A with contact tracking, or type B with contact
570 (license license:x11)))
572 (define-public startup-notification
574 (name "startup-notification")
579 (uri (string-append "https://www.freedesktop.org/software/" name
580 "/releases/" name "-" version ".tar.gz"))
583 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
584 (build-system gnu-build-system)
585 (native-inputs `(("pkg-config" ,pkg-config)))
588 ("xcb-util" ,xcb-util)))
589 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
590 (synopsis "Application startup notification and feedback library")
592 "Startup-notification contains a reference implementation of the startup
593 notification protocol. The reference implementation is mostly under an X Window
594 System style license, and has no special dependencies.")
595 ;; Most of the code is provided under x11 license.
596 (license license:lgpl2.0+)))
598 (define-public wmctrl
605 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
609 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
610 (patches (search-patches "wmctrl-64-fix.patch"))))
611 (build-system gnu-build-system)
614 (list (string-append "--mandir="
615 (assoc-ref %outputs "out")
618 `(("pkg-config" ,pkg-config)))
623 (home-page "http://tomas.styblo.name/wmctrl/")
624 (synopsis "Command-line tool to control X window managers")
626 "Wmctrl interacts with an X window manager that is compatible
627 with the EWMH/NetWM specification. It can query the window manager for
628 information, and request for certain window management actions (resize and
629 move windows, switch between desktops, etc.).")
630 (license license:gpl2+)))
641 (url "https://github.com/resurrecting-open-source-projects/scrot")
643 (file-name (git-file-name name version))
646 "12xq6glg70icwsvbnfw9gm4dahlbnrc7b6adpd0mpf89h4sj2gds"))))
647 (build-system gnu-build-system)
649 `(("autoconf" ,autoconf)
650 ("autoconf-archive" ,autoconf-archive)
651 ("automake" ,automake)))
655 ("libXcursor" ,libxcursor)
656 ("libxcomposite" ,libxcomposite)
657 ("libXfixes" ,libxfixes)))
658 (home-page "https://github.com/resurrecting-open-source-projects/scrot")
659 (synopsis "Command-line screen capture utility for X Window System")
661 "Scrot saves a screenshot of a full screen, a window or a part
662 of the screen selected by mouse.")
663 ;; This license removes a clause about X Consortium from the original
665 (license (license:x11-style "file://COPYING"
666 "See 'COPYING' in the distribution."))))
675 (url "https://github.com/naelstrof/slop")
676 (commit (string-append "v" version))))
677 (file-name (git-file-name name version))
680 "1k8xxb4rj2fylr4vj16yvsf73cyywliz9cy78pl4ibmi03jhg837"))))
681 (build-system cmake-build-system)
683 '(#:tests? #f)) ; no "check" target
689 ("libxrender" ,libxrender)
691 (home-page "https://github.com/naelstrof/slop")
692 (synopsis "Select a region and print its bounds to stdout")
694 "slop (Select Operation) is a tool that queries for a selection from a
695 user and prints the region to stdout. It grabs the mouse and turns it into a
696 crosshair, lets the user click and drag to make a selection (or click on a
697 window) while drawing a pretty box around it, then finally prints the
698 selection's dimensions to stdout.")
699 (license license:gpl3+)))
708 (url "https://github.com/naelstrof/maim")
709 (commit (string-append "v" version))))
710 (file-name (git-file-name name version))
713 "181mjjrjb9fs1ficcv9miqbk94v95j1yli7fjp2dj514g7nj9l3x"))))
714 (build-system cmake-build-system)
716 '(#:tests? #f)) ; no "check" target
719 ("libjpeg" ,libjpeg-turbo)
721 ("libxcomposite" ,libxcomposite)
722 ("libxfixes" ,libxfixes)
723 ("libxrandr" ,libxrandr)
727 (home-page "https://github.com/naelstrof/maim")
728 (synopsis "Screenshot utility for X Window System")
730 "maim (Make Image) is a tool that takes screenshots of your desktop and
731 saves it in any format. Along with a full screen, it allows you to capture a
732 predefined region or a particular window. Also, it makes it possible to
733 include cursor in the resulting image.")
734 (license license:gpl3+)))
736 (define-public unclutter
743 "http://ftp.x.org/contrib/utilities/unclutter-"
747 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
748 (build-system gnu-build-system)
750 '(#:tests? #f ; no check target
752 (modify-phases %standard-phases
755 (lambda* (#:key inputs outputs #:allow-other-keys)
756 (let* ((out (assoc-ref outputs "out"))
757 (bin (string-append out "/bin"))
758 (man1 (string-append out "/share/man/man1")))
761 (invoke "make" "install" "install.man"
762 (string-append "BINDIR=" bin)
763 (string-append "MANDIR=" man1))))))))
764 (inputs `(("libx11" ,libx11)))
765 (home-page "http://ftp.x.org/contrib/utilities/")
766 (synopsis "Hide idle mouse cursor")
768 "Unclutter is a program which runs permanently in the background of an
769 X11 session. It checks on the X11 pointer (cursor) position every few
770 seconds, and when it finds it has not moved (and no buttons are pressed
771 on the mouse, and the cursor is not in the root window) it creates a
772 small sub-window as a child of the window the cursor is in. The new
773 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
774 invisible cursor. This allows you to see all the text in an xterm or
775 xedit, for example. The human factors crowd would agree it should make
776 things less distracting.")
777 (license license:public-domain)))
779 (define-public xautomation
786 (uri (string-append "https://www.hoopajoo.net/static/projects/"
787 "xautomation-" version ".tar.gz"))
791 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
792 (build-system gnu-build-system)
797 ("libxtst" ,libxtst)))
799 `(("xorgproto" ,xorgproto)))
800 (synopsis "Tools to automate tasks in X such as detecting on screen images")
802 "Xautomation can control X from the command line for scripts, and
803 do visual scraping to find things on the screen. The control interface
804 allows mouse movement, clicking, button up/down, key up/down, etc, and
805 uses the XTest extension so you don't have the annoying problems that
806 xse has when apps ignore sent events. The visgrep program can find
807 images inside of images and reports the coordinates, allowing programs
808 to find buttons, etc, on the screen to click on.")
809 (home-page "https://www.hoopajoo.net/projects/xautomation.html")
810 (license license:gpl2+)))
812 (define-public xbanish
816 (home-page "https://github.com/jcs/xbanish")
819 (uri (git-reference (url home-page)
820 (commit (string-append "v" version))))
821 (file-name (git-file-name name version))
824 "0ic5f7zgc32p5g1wxas9y5h8dhik0pvsa8wmn6skdry56gw9vg9q"))))
825 (build-system gnu-build-system)
827 `(#:tests? #f ; no tests
828 #:make-flags (list "CC=gcc"
829 (string-append "PREFIX=" (assoc-ref %outputs "out")))
830 #:phases (modify-phases %standard-phases
831 (delete 'configure)))) ; no configure script
834 ("libxfixes" ,libxfixes)
837 (synopsis "Banish the mouse cursor")
839 "@command{xbanish} hides the mouse cursor when you start typing, and
840 shows it again when the mouse cursor moves or a mouse button is pressed.")
841 (license license:bsd-3)))
843 (define-public xlockmore
849 (uri (list (string-append "http://sillycycle.com/xlock/"
850 "xlockmore-" version ".tar.xz")
851 ;; Previous releases are moved to a subdirectory.
852 (string-append "http://sillycycle.com/xlock/"
854 "xlockmore-" version ".tar.xz")))
857 "0wdb7gpyjw3sigmhiplgg1bqxz6wipr0c3n9492x2a18cv1saxjr"))))
858 (build-system gnu-build-system)
860 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
861 (assoc-ref %outputs "out")
862 "/lib/X11/app-defaults"))
863 #:tests? #f)) ;no such thing as a test suite
868 ("linux-pam" ,linux-pam)))
869 (home-page "https://sillycycle.com/xlockmore.html")
870 (synopsis "Screen locker for the X Window System")
872 "XLockMore is a classic screen locker and screen saver for the
874 (license (license:non-copyleft #f "See xlock.c.")
875 ))) ; + GPLv2 in modes/glx/biof.c.
884 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
885 name "-" version ".tar.gz"))
888 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
889 (build-system gnu-build-system)
892 (list (string-append "--mandir=" %output "/share/man"))))
897 ("libxinerama" ,libxinerama)))
898 (home-page "https://sourceforge.net/projects/libxosd/")
899 (synopsis "X On Screen Display")
901 "XOSD provides a C library and a simple utility (osd_cat) for displaying
902 transparent text on your screen.")
903 (license license:gpl2+)))
905 (define-public xbindkeys
911 ;; Download from the savannah mirror list fails
913 "http://www.nongnu.org/xbindkeys/xbindkeys-"
918 "1wl2vc5alisiwyk8m07y1ryq8w3ll9ym83j27g4apm4ixjl8d6x2"))))
919 (build-system gnu-build-system)
921 `(("pkg-config" ,pkg-config)))
924 ("guile" ,guile-2.2)))
925 (home-page "https://www.nongnu.org/xbindkeys/")
926 (synopsis "Associate a combination of keys with a shell command")
928 "XBindKeys is a program that allows you to launch shell commands with
929 your keyboard or your mouse under the X Window System. It links commands to
930 keys or mouse buttons, using a configuration file. It's independent of the
931 window manager and can capture all keyboard keys (ex: Power, Wake...). It
932 optionally supports a Guile-based configuration file layout, which enables you
933 to access all XBindKeys internals, so you can have key combinations, double
934 clicks or timed double clicks take actions. Also all functions that work in
935 Guile will work for XBindKeys.")
936 (license license:gpl2+)))
946 (url "https://github.com/baskerville/sxhkd")
948 (file-name (git-file-name name version))
950 (base32 "1winwzdy9yxvxnrv8gqpigl9y0c2px27mnms62bdilp4x6llrs9r"))))
951 (build-system gnu-build-system)
953 `(("asciidoc" ,asciidoc)
955 ("xcb-util" ,xcb-util)
956 ("xcb-util-keysyms" ,xcb-util-keysyms)
957 ("xcb-util-wm" ,xcb-util-wm)))
959 `(#:phases (modify-phases %standard-phases (delete 'configure))
960 #:tests? #f ; no check target
963 (string-append "PREFIX=" %output)
964 ;; Keep the documentation where the build system installs LICENSE.
965 (string-append "DOCPREFIX=" %output
966 "/share/doc/" ,name "-" ,version))))
967 (home-page "https://github.com/baskerville/sxhkd")
968 (synopsis "Simple X hotkey daemon")
969 (description "sxhkd is a simple X hotkey daemon with a powerful and
970 compact configuration syntax.")
971 (license license:bsd-2)))
973 (define-public rxvt-unicode
975 (name "rxvt-unicode")
979 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
980 name "-" version ".tar.bz2"))
981 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
984 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
985 (build-system gnu-build-system)
987 ;; This sets the destination when installing the necessary terminal
988 ;; capability data, which are not provided by 'ncurses'. See
989 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
990 `(#:configure-flags (list "--enable-256-color")
991 #:make-flags (list (string-append "TERMINFO="
992 (assoc-ref %outputs "out")
995 (modify-phases %standard-phases
996 (add-after 'install 'install-desktop-urxvt
997 (lambda* (#:key outputs #:allow-other-keys)
998 (let* ((output (assoc-ref outputs "out"))
999 (desktop (string-append output "/share/applications")))
1001 (with-output-to-file
1002 (string-append desktop "/urxvt.desktop")
1009 TryExec=~@*~a/bin/urxvt~@
1014 (add-after 'install 'install-desktop-urxvtc
1015 (lambda* (#:key outputs #:allow-other-keys)
1016 (let* ((output (assoc-ref outputs "out"))
1017 (desktop (string-append output "/share/applications")))
1019 (with-output-to-file
1020 (string-append desktop "/urxvtc.desktop")
1024 Name=rxvt-unicode (client)~@
1025 Comment=Rxvt clone with XFT and unicode support~@
1026 Exec=~a/bin/urxvtc~@
1027 TryExec=~@*~a/bin/urxvtc~@
1033 `(("libXft" ,libxft)
1034 ("libX11" ,libx11)))
1036 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
1038 ("pkg-config" ,pkg-config)))
1039 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
1040 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
1041 (native-search-paths
1042 (list (search-path-specification
1043 (variable "TERMINFO_DIRS")
1044 (files '("share/terminfo")))))
1045 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
1046 (synopsis "Rxvt clone with XFT and unicode support")
1047 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
1048 intended as an xterm replacement for users who do not require features such as
1049 Tektronix 4014 emulation and toolkit-style configurability. It supports
1050 unicode, XFT and may be extended with Perl plugins. It also comes with a
1051 client/daemon pair that lets you open any number of terminal windows from
1052 within a single process.")
1053 (license license:gpl3+)))
1055 (define-public xcape
1062 (url "https://github.com/alols/xcape")
1063 (commit (string-append "v" version))))
1064 (file-name (git-file-name name version))
1067 "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm"))))
1068 (build-system gnu-build-system)
1070 `(#:tests? #f ; no check target
1071 ;; no configure script
1072 #:phases (modify-phases %standard-phases (delete 'configure))
1073 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1074 "MANDIR=/share/man/man1"
1077 `(("libxtst" ,libxtst)
1078 ("libx11" ,libx11)))
1080 `(("pkg-config" ,pkg-config)))
1081 (home-page "https://github.com/alols/xcape")
1082 (synopsis "Use a modifier key in X.org as another key")
1084 "This utility for X.org uses a modifier key as another key when
1085 pressed and released on its own. The default behaviour is to generate the
1086 Escape key when Left Control is pressed and released on its own.")
1087 (license license:gpl3+)))
1089 (define-public libwacom
1096 "https://github.com/linuxwacom/libwacom/releases/download/"
1097 "libwacom-" version "/libwacom-" version ".tar.bz2"))
1100 "1a5ffxyhl6crspybcfsx5ribgrgkzwfl5w9y32slxbgjwczb473h"))))
1101 (build-system glib-or-gtk-build-system)
1103 `(#:configure-flags '("--disable-static")))
1105 `(("pkg-config" ,pkg-config)))
1108 ("libgudev" ,libgudev)
1110 ("libxml2" ,libxml2)))
1112 ;; libwacom includes header files that include GLib, and libinput uses
1113 ;; those header files.
1115 (home-page "https://linuxwacom.github.io/")
1116 (synopsis "Helper library for Wacom tablet settings")
1118 "Libwacom is a library to help implement Wacom tablet settings. It is
1119 intended to be used by client-programs that need model identification. It is
1120 already being used by the gnome-settings-daemon and the GNOME Control Center
1121 Wacom tablet applet.")
1122 (license license:x11)))
1124 (define-public xf86-input-wacom
1126 (name "xf86-input-wacom")
1132 "https://github.com/linuxwacom/xf86-input-wacom/releases/download/"
1133 "xf86-input-wacom-" version "/"
1134 "xf86-input-wacom-" version ".tar.bz2"))
1136 (base32 "11qk58az6qwii774ga45h5yqzipwn56f0d74kdbajqdv45p85gqj"))))
1139 (list (string-append "--with-sdkdir="
1140 (assoc-ref %outputs "out")
1142 (string-append "--with-xorg-conf-dir="
1143 (assoc-ref %outputs "out")
1144 "/share/X11/xorg.conf.d"))))
1145 (build-system gnu-build-system)
1147 `(("pkg-config" ,pkg-config)))
1149 `(("xorg-server" ,xorg-server)
1150 ("libxrandr" ,libxrandr)
1151 ("libxinerama" ,libxinerama)
1154 (home-page "https://linuxwacom.github.io/")
1155 (synopsis "Wacom input driver for X")
1157 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
1158 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
1159 (license license:x11)))
1161 (define-public redshift
1169 (string-append "https://github.com/jonls/redshift/"
1170 "releases/download/v" version
1171 "/redshift-" version ".tar.xz"))
1174 "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j"))))
1175 (build-system gnu-build-system)
1177 `(#:imported-modules (,@%gnu-build-system-modules
1178 (guix build python-build-system))
1180 (modify-phases %standard-phases
1181 (add-after 'install 'split-outputs
1182 (lambda* (#:key outputs #:allow-other-keys)
1183 (let ((out (assoc-ref outputs "out"))
1184 (gtk (assoc-ref outputs "gtk"))
1185 (desktop-file "/share/applications/redshift-gtk.desktop"))
1186 (mkdir-p (string-append gtk "/bin"))
1187 (link (string-append out "/bin/redshift-gtk")
1188 (string-append gtk "/bin/redshift-gtk"))
1189 (delete-file (string-append out "/bin/redshift-gtk"))
1190 (copy-recursively (string-append out "/lib")
1191 (string-append gtk "/lib"))
1192 (delete-file-recursively (string-append out "/lib"))
1193 (mkdir-p (string-append gtk "/share/applications"))
1194 (link (string-append out desktop-file)
1195 (string-append gtk desktop-file))
1196 (delete-file (string-append out desktop-file))
1197 (with-directory-excursion (string-append out "/share")
1198 (for-each (lambda (dir)
1200 (string-append out "/share/" dir)
1201 (string-append gtk "/share/" dir))
1202 (delete-file-recursively dir))
1203 '("appdata" "icons")))
1205 (add-after 'split-outputs 'wrap
1206 (lambda* (#:key inputs outputs #:allow-other-keys)
1207 (let* ((gtk (assoc-ref outputs "gtk"))
1209 (@ (guix build python-build-system) python-version))
1210 (python (assoc-ref inputs "python"))
1211 (sitedir (string-append gtk "/lib/python"
1212 (python-version python)
1214 (wrap-program (string-append gtk "/bin/redshift-gtk")
1215 `("PYTHONPATH" ":" prefix
1216 (,(string-append sitedir ":" (getenv "PYTHONPATH"))))
1217 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH"))))
1219 (outputs '("out" "gtk"))
1221 `(("pkg-config" ,pkg-config)
1222 ("intltool" ,intltool)))
1224 `(("libdrm" ,libdrm)
1227 ("libxxf86vm" ,libxxf86vm)
1228 ("glib" ,glib) ;for Geoclue2 support
1230 ;; To build the GTK3 GUI, we need these.
1233 ("python-pygobject" ,python-pygobject)
1234 ("python-pyxdg" ,python-pyxdg)))
1235 (home-page "https://github.com/jonls/redshift")
1236 (synopsis "Adjust the color temperature of your screen")
1238 "Redshift adjusts the color temperature according to the position of the
1239 sun. A different color temperature is set during night and daytime. During
1240 twilight and early morning, the color temperature transitions smoothly from
1241 night to daytime temperature to allow your eyes to slowly adapt. At night the
1242 color temperature should be set to match the lamps in your room.")
1243 (license license:gpl3+)))
1245 (define-public redshift-wayland
1246 (let ((commit "7da875d34854a6a34612d5ce4bd8718c32bec804")
1249 (name "redshift-wayland")
1250 (version (string-append "1.12-"
1251 revision "." (string-take commit 7)))
1255 (url "https://github.com/minus7/redshift")
1257 (file-name (string-append name "-" version))
1260 "0nbkcw3avmzjg1jr1g9yfpm80kzisy55idl09b6wvzv2sz27n957"))))
1261 (build-system gnu-build-system)
1263 '(#:phases (modify-phases %standard-phases
1264 (add-after 'install 'create-desktop-file
1265 (lambda* (#:key outputs #:allow-other-keys)
1266 ;; For the GeoClue provider to work, a .desktop file
1267 ;; needs to be provided. A template is available,
1268 ;; but it only gets installed when the GUI is enabled.
1269 ;; Install it manually for this Wayland variant.
1270 (let* ((out (assoc-ref outputs "out"))
1273 out "/share/applications/redshift.desktop")))
1274 (mkdir-p (dirname desktop-file))
1275 (copy-file "data/applications/redshift.desktop.in"
1277 (substitute* desktop-file
1281 `(("autoconf" ,autoconf)
1282 ("automake" ,automake)
1283 ("libtool" ,libtool)
1284 ("pkg-config" ,pkg-config)
1285 ("intltool" ,intltool)))
1287 `(("libdrm" ,libdrm)
1290 ("libxxf86vm" ,libxxf86vm)
1291 ("glib" ,glib) ; for Geoclue2 support
1292 ("wayland" ,wayland)))
1293 (home-page "https://github.com/minus7/redshift")
1294 (synopsis "Adjust the color temperature of your screen (with Wayland support)")
1296 "Redshift adjusts the color temperature according to the position of the
1297 sun. A different color temperature is set during night and daytime. During
1298 twilight and early morning, the color temperature transitions smoothly from
1299 night to daytime temperature to allow your eyes to slowly adapt. At night the
1300 color temperature should be set to match the lamps in your room.
1302 This is a fork with added support for Wayland using the wlr-gamma-control
1304 (license license:gpl3+))))
1306 (define-public xscreensaver
1308 (name "xscreensaver")
1314 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
1317 (base32 "15bv05vpfjwsrqbazrjmm382jd7vvw0mp6y9vasn6wvxzjf0in3k"))))
1318 (build-system gnu-build-system)
1320 `(#:tests? #f ; no check target
1322 (modify-phases %standard-phases
1323 (add-before 'configure 'adjust-gtk-resource-paths
1325 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
1326 (("@GTK_DATADIR@") "@datadir@")
1327 (("@PO_DATADIR@") "@datadir@"))
1329 #:configure-flags '("--with-pam" "--with-proc-interrupts"
1330 "--without-readdisplay")
1331 #:make-flags (list (string-append "AD_DIR="
1332 (assoc-ref %outputs "out")
1333 "/lib/X11/app-defaults"))))
1335 `(("pkg-config" ,pkg-config)
1336 ("intltool" ,intltool)))
1338 `(("libx11" ,libx11)
1339 ("libxext" ,libxext)
1345 ("libglade" ,libglade)
1346 ("libxml2" ,libxml2)
1348 ("libjpeg" ,libjpeg-turbo)
1349 ("linux-pam" ,linux-pam)
1355 ("libxrandr" ,libxrandr)
1358 (home-page "https://www.jwz.org/xscreensaver/")
1359 (synopsis "Classic screen saver suite supporting screen locking")
1361 "xscreensaver is a popular screen saver collection with many entertaining
1362 demos. It also acts as a nice screen locker.")
1363 ;; xscreensaver doesn't have a single copyright file and instead relies on
1364 ;; source comment headers, though most files have the same lax
1365 ;; permissions. To reduce complexity, we're pointing at Debian's
1366 ;; breakdown of the copyright information.
1367 (license (license:non-copyleft
1369 "http://metadata.ftp-master.debian.org/changelogs/"
1370 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1372 (define-public xssproxy
1379 (url "https://github.com/timakro/xssproxy")
1380 (commit (string-append "v" version))))
1381 (file-name (string-append name "-" version "-checkout"))
1384 "0c83wmipnsdnbihc5niyczs7jrkss2s8n6iwwjdia7hkjzbd0hl7"))))
1385 (build-system gnu-build-system)
1386 (arguments `(#:make-flags `("bindir=/bin"
1387 "man1dir=/share/man/man1"
1388 ,(string-append "DESTDIR=" (assoc-ref %outputs "out"))
1390 #:phases (modify-phases %standard-phases
1394 `(("pkg-config" ,pkg-config)))
1398 ("libxext" ,libxext)
1399 ("libxscrnsaver" ,libxscrnsaver)
1401 (synopsis "Forward freedesktop.org Idle Inhibition Service calls to Xss")
1402 (description "xssproxy implements the @code{org.freedesktop.ScreenSaver}
1403 D-Bus interface described in the Idle Inhibition Service Draft by the
1404 freedesktop.org developers. The inhibition of the screensaver is then
1405 controlled using the XScreenSaverSuspend function from the Xss (X11 Screen
1406 Saver extension) library.")
1407 (home-page "https://github.com/timakro/xssproxy")
1408 (license license:gpl3+)))
1416 (uri (string-append "http://www.vergenet.net/~conrad/software"
1417 "/xsel/download/xsel-" version ".tar.gz"))
1420 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1421 (build-system gnu-build-system)
1423 `(("libxt" ,libxt)))
1424 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1425 (synopsis "Manipulate X selection")
1427 "XSel is a command-line program for getting and setting the contents of
1428 the X selection. Normally this is only accessible by manually highlighting
1429 information and pasting it with the middle mouse button.
1431 XSel reads from standard input and writes to standard output by default,
1432 but can also follow a growing file, display contents, delete entries and more.")
1433 (license (license:x11-style "file://COPYING"
1434 "See COPYING in the distribution."))))
1436 (define-public xdpyprobe
1442 (uri (string-append "https://github.com/alezost/" name
1443 "/releases/download/v" version
1444 "/" name "-" version ".tar.gz"))
1447 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1448 (build-system gnu-build-system)
1450 `(("libx11" ,libx11)))
1451 (home-page "https://github.com/alezost/xdpyprobe")
1452 (synopsis "Probe X server for connectivity")
1454 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1455 connectivity of the X server running on a particular @code{DISPLAY}.")
1456 (license license:gpl3+)))
1464 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1465 "releases/download/"
1466 version "/rofi-" version ".tar.xz"))
1469 "0566b499lbpfb1gk4p17iw78ywmk9l2jww1kqjbdanrl22hai1y4"))))
1470 (build-system gnu-build-system)
1475 ("startup-notification" ,startup-notification)
1476 ("libjpeg" ,libjpeg-turbo)
1477 ("librsvg" ,librsvg)
1478 ("libxkbcommon" ,libxkbcommon)
1480 ("xcb-util" ,xcb-util)
1481 ("xcb-util-xrm" ,xcb-util-xrm)
1482 ("xcb-util-wm" ,xcb-util-wm)))
1487 ("glib:bin" ,glib "bin")
1488 ("pkg-config" ,pkg-config)))
1490 `(#:parallel-tests? #f ; fails in some circumstances
1492 (modify-phases %standard-phases
1493 (add-before 'configure 'adjust-tests
1495 (substitute* '("test/helper-expand.c")
1498 (("g_get_home_dir \\(\\)") "\"/\""))
1500 (home-page "https://github.com/DaveDavenport/rofi")
1501 (synopsis "Application launcher")
1502 (description "Rofi is a minimalist application launcher. It memorizes which
1503 applications you regularly use and also allows you to search for an application
1505 (license license:expat)))
1507 (define-public tint2
1513 (uri (string-append "https://gitlab.com/o9000/" name
1514 "/repository/archive.tar.gz?ref=" version))
1515 (file-name (string-append name "-" version ".tar.gz"))
1518 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1519 (build-system cmake-build-system)
1521 '(#:tests? #f ;no test target
1523 (modify-phases %standard-phases
1524 (add-after 'unpack 'fix-installation-prefix
1526 (substitute* "CMakeLists.txt"
1527 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))
1532 ("librsvg" ,librsvg)
1533 ("libxcomposite" ,libxcomposite)
1534 ("libxdamage" ,libxdamage)
1536 ("libxinerama" ,libxinerama)
1537 ("libxrandr" ,libxrandr)
1538 ("startup-notification" ,startup-notification)))
1540 `(("gettext" ,gettext-minimal)
1541 ("pkg-config" ,pkg-config)))
1542 (home-page "https://gitlab.com/o9000/tint2")
1543 (synopsis "Lightweight task bar")
1545 "Tint2 is a simple task bar made for modern X window managers. It was
1546 specifically made for Openbox but it should also work with other window
1547 managers (GNOME, KDE, XFCE etc.).
1549 The taskbar includes transparency and color settings for the font, icons,
1550 border, and background. It also supports multihead setups, customized mouse
1551 actions, a built-in clock, a battery monitor and a system tray.")
1552 (license license:gpl2)))
1555 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1559 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1560 revision "." (string-take commit 7)))
1564 (url "https://github.com/robm/dzen")
1566 (file-name (string-append name "-" version))
1569 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1570 (build-system gnu-build-system)
1572 `(#:tests? #f ; No test suite.
1573 #:make-flags ; Replacement for `config.mk`.
1575 (string-append "VERSION = " ,version)
1576 (string-append "PREFIX = " %output)
1577 "MANPREFIX = ${PREFIX}/share/man"
1579 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1580 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1581 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1586 (modify-phases %standard-phases
1587 (delete 'configure) ; No configuration script.
1588 ;; Use own make-flags instead of `config.mk`.
1589 (add-before 'build 'dont-include-config-mk
1591 (substitute* "Makefile" (("include config.mk") ""))
1594 `(("libx11" ,libx11)
1597 ("libxinerama" ,libxinerama)))
1598 (native-inputs `(("pkg-config" ,pkg-config)))
1599 (synopsis "General purpose messaging, notification and menuing program for X11")
1600 (description "Dzen is a general purpose messaging, notification and menuing
1601 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1602 (home-page "https://github.com/robm/dzen")
1603 (license license:expat))))
1605 (define-public xftwidth
1608 (version "20170402")
1613 (url "http://github.com/vixus0/xftwidth")
1614 (commit "35ff963908d41a8a6a7101c434c88255728025ee")))
1617 "1jwl25785li24kbp0m1wxfwk4dgxkliynn03nsj813cjr34kq16h"))
1618 (file-name (string-append name "-" version "-checkout"))))
1619 (build-system gnu-build-system)
1620 (inputs `(("freetype" ,freetype)
1622 ("fontconfig" ,fontconfig)
1623 ("libxft" ,libxft)))
1625 `(("pkg-config" ,pkg-config)))
1628 (modify-phases %standard-phases
1629 (add-after 'unpack 'fix-makefile ; /usr/bin doesn't show up in PATH
1630 (lambda _ (substitute* "Makefile" (("usr/") "")) #t))
1631 (delete 'check) ; no check included in Makefile
1632 (delete 'configure))
1634 (let ((out (assoc-ref %outputs "out")))
1635 (list (string-append "DESTDIR=" out)))))
1636 (home-page "https://github.com/vixus0/xftwidth")
1637 (synopsis "Calculator for determining pixel widths of displayed text using Xft fonts")
1638 (description "xftwidth is a small C program for calculating the pixel
1639 widths of displayed text using Xft fonts. It is especially useful in scripts
1640 for displaying text in graphical panels, menus, popups, and notification
1641 windows generated using dzen. These scripts are often used in conjunction with
1642 minimalistic tiling window managers such as herbstluftwm and bspwm.")
1643 (license license:expat)))
1645 (define-public xcb-util-xrm
1647 (name "xcb-util-xrm")
1652 "https://github.com/Airblader/xcb-util-xrm/releases"
1653 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1656 "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h"))
1657 (modules '((guix build utils)))
1661 (delete-file-recursively "m4")
1663 (build-system gnu-build-system)
1665 `(("pkg-config" ,pkg-config)
1667 ("libx11" ,libx11))) ; for tests
1669 `(("libxcb" ,libxcb)
1670 ("xcb-util" ,xcb-util)))
1671 (home-page "https://github.com/Airblader/xcb-util-xrm")
1672 (synopsis "XCB utility functions for the X resource manager")
1674 "The XCB util module provides a number of libraries which sit on
1675 top of libxcb, the core X protocol library, and some of the extension
1676 libraries. These experimental libraries provide convenience functions
1677 and interfaces which make the raw X protocol more usable. Some of the
1678 libraries also provide client-side code which is not strictly part of
1679 the X protocol but which has traditionally been provided by Xlib.
1681 XCB util-xrm module provides the following libraries:
1683 - xrm: utility functions for the X resource manager.")
1684 (license license:x11)))
1686 (define-public xcalib
1690 (home-page "https://github.com/OpenICC/xcalib")
1696 (file-name (git-file-name name version))
1699 "05fzdjmhiafgi2jf0k41i3nm0837a78sb6yv59cwc23nla8g0bhr"))
1702 ;; Add missing documentation for the new --output option.
1703 ;; This upstream patch can be removed on the next update.
1707 home-page "/commit/"
1708 "ae03889b91fe984b18e925ad2b5e6f2f7354e058.patch"))
1709 (file-name "xcalib-update-man-page.patch")
1712 "0f7b4d5484x4b9n1bwhqmar0kcaa029ffff7bp3xpr734n1qgqb6")))))))
1713 (build-system cmake-build-system)
1715 '(#:tests? #f)) ; no test suite
1716 (inputs `(("libx11" ,libx11)
1717 ("libxext" ,libxext)
1718 ("libxrandr" ,libxrandr)
1719 ("libxxf86vm" ,libxxf86vm)))
1720 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1721 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1722 profiles to the video card's gamma ramp. It does work with most video card
1723 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1724 invert colors on a specific display/screen.")
1725 (license license:gpl2)))
1727 (define-public nxbelld
1734 (url "https://github.com/dusxmt/nxbelld")
1738 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1739 (file-name (git-file-name name version))))
1740 (build-system gnu-build-system)
1741 (arguments '(#:configure-flags `("--enable-sound"
1744 (native-inputs `(("autoconf" ,autoconf)
1745 ("automake" ,automake)
1746 ("pkg-config" ,pkg-config)
1748 (inputs `(("libx11" ,libx11)
1749 ("alsa-lib" ,alsa-lib)))
1750 (synopsis "Daemon that performs an action every time the X11 bell is rung")
1751 (description "nxbelld is a tiny utility to aid people who either don't
1752 like the default PC speaker beep, or use a sound driver that doesn't have
1753 support for the PC speaker. The utility performs a given action every time
1754 the X bell is rung. The actions nxbelld can currently perform include running
1755 a specified program, emulating the PC speaker beep using the sound card (default),
1756 or playing a PCM encoded WAVE file.")
1757 (home-page "https://github.com/dusxmt/nxbelld")
1758 (license license:gpl3+)))
1760 (define-public xautolock
1766 (uri (string-append "https://www.ibiblio.org/pub/linux/X11/"
1767 "screensavers/xautolock-" version ".tgz"))
1770 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1771 (build-system gnu-build-system)
1773 `(("imake" ,imake)))
1775 `(("libx11" ,libx11)
1776 ("libxext" ,libxext)
1777 ("libxscrnsaver" ,libxscrnsaver)))
1781 (modify-phases %standard-phases
1783 (lambda* (#:key inputs outputs #:allow-other-keys)
1784 (let ((imake (assoc-ref inputs "imake"))
1785 (out (assoc-ref outputs "out")))
1786 ;; Generate Makefile
1788 (substitute* "Makefile"
1789 ;; These imake variables somehow remain undefined
1790 (("DefaultGcc2[[:graph:]]*Opt") "-O2")
1791 ;; Reset a few variable defaults that are set in imake templates
1793 (("(MANPATH = )[[:graph:]]*" _ front)
1794 (string-append front out "/share/man")))
1795 ;; Old BSD-style 'union wait' is unneeded (defining
1796 ;; _USE_BSD did not seem to fix it)
1797 (substitute* "src/engine.c"
1798 (("union wait status") "int status = 0"))
1800 (add-after 'install 'install/man
1802 (invoke "make" "install.man"))))))
1803 (home-page "https://ibiblio.org/pub/Linux/X11/screensavers/")
1804 (synopsis "Program launcher for idle X sessions")
1805 (description "Xautolock monitors input devices under the X Window
1806 System, and launches a program of your choice if there is no activity after
1807 a user-configurable period of time.")
1808 (license license:gpl2)))
1810 (define-public screen-message
1812 (name "screen-message")
1817 "https://www.joachim-breitner.de/archive/screen-message"
1818 "/screen-message-" version ".tar.gz"))
1821 "1lw955qq5pq010lzmaf32ylj2iprgsri9ih4hx672c3f794ilab0"))))
1822 (build-system gnu-build-system)
1823 (inputs `(("gtk3" ,gtk+)
1826 (native-inputs `(("pkg-config" ,pkg-config)))
1828 ;; The default configure puts the 'sm' binary in games/ instead of bin/ -
1830 `(#:make-flags (list (string-append "execgamesdir=" %output "/bin"))))
1831 (synopsis "Print messages on your screen")
1832 (description "@code{screen-message} is a tool for displaying text on
1833 your screen. It will make the text as large as possible and display it
1834 with black color on a white background (colors are configurable on the
1836 (home-page "https://www.joachim-breitner.de/projects#screen-message")
1837 (license license:gpl2+)))
1839 (define-public xss-lock
1840 ;; xss-lock does not seem to be maintained any longer, but the last commits
1841 ;; fix important issues so we package them.
1842 (let ((version "0.3.0")
1844 (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717"))
1847 (version (git-version version revision commit))
1851 (url "https://bitbucket.org/raymonad/xss-lock.git")
1853 (file-name (git-file-name name version))
1856 "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r"))))
1857 (build-system cmake-build-system)
1858 (inputs `(("glib" ,glib)
1859 ("xcb-util" ,xcb-util)))
1861 `(("python-docutils" ,python-docutils)
1862 ("pkg-config" ,pkg-config)))
1865 (synopsis "Use external screen locker on events")
1866 (description "@code{xss-lock} listens to X signals to fire up a
1867 user-defined screensaver. In effect this automatically locks the
1868 screen when closing a laptop lid or after a period of user inactivity (as set
1869 with @code{xset s TIMEOUT}). The notifier command, if specified, is executed
1870 first. Additionally, xss-lock uses the inhibition logic to lock the screen
1871 before the system goes to sleep.")
1872 (home-page "https://bitbucket.org/raymonad/xss-lock")
1873 (license license:expat))))
1875 (define-public python-pyperclip
1877 (name "python-pyperclip")
1882 (uri (pypi-uri "pyperclip" version))
1885 "1p505c23ji06r28k1y67siihsbdzdf1brhlqpyv9ams4gk9863pp"))))
1886 (build-system python-build-system)
1888 '(#:tests? #f)) ; Not clear how to make tests pass.
1892 (home-page "https://github.com/asweigart/pyperclip")
1893 (synopsis "Python clipboard module")
1895 "Pyperclip is a clipboard module for Python, handling copy/pasting from
1897 (license license:bsd-3)))
1899 (define-public numlockx
1906 ;; It seems that upstream is gone.
1907 (url "https://github.com/rg3/numlockx")
1909 (file-name (git-file-name name version))
1912 "1w49fayhwzn5rx0z1q2lrvm7z8jrd34lgb89p853a024bixc3cf2"))))
1913 (build-system gnu-build-system)
1915 `(("xorg-server" ,xorg-server)))
1916 (home-page "https://github.com/rg3/numlockx")
1917 (synopsis "Turns on the numlock key in X11")
1918 (description "@command{numlockx} is a tiny program that lets you turn on
1919 the numlock key in X11. It can be called from the user's initialization files
1920 to automatically turn it on on login.")
1921 (license license:expat)))
1923 (define-public xrandr-invert-colors
1925 (name "xrandr-invert-colors")
1930 (url "https://github.com/zoltanp/xrandr-invert-colors")
1931 (commit (string-append "v" version))))
1932 (file-name (git-file-name name version))
1935 "1br3x9vr6xm4ika06n8cfxx1b3wdchdqvyzjl4y1chmivrml8x9h"))))
1936 (build-system gnu-build-system)
1938 `(#:make-flags (list "CC=gcc")
1939 #:tests? #f ; there are none
1941 (modify-phases %standard-phases
1944 (lambda* (#:key outputs #:allow-other-keys)
1945 (let* ((out (assoc-ref outputs "out"))
1946 (bin (string-append out "/bin")))
1947 (install-file "xrandr-invert-colors.bin" bin)
1950 `(("libxrandr" ,libxrandr)))
1951 (home-page "https://github.com/zoltanp/xrandr-invert-colors")
1952 (synopsis "Invert display colors")
1953 (description "This package provides a small utility for inverting the
1954 colors on all monitors attached to an XRandR-capable X11 display server.")
1955 (license license:gpl3+)))
1965 (string-append "https://www.umaxx.net/dl/sct-"
1968 (base32 "0lrhx771iccbw04wrhj0ygids1pzmjfc4hvklm30m3p3flvhqf0m"))))
1969 (build-system gnu-build-system)
1972 (list ,(string-append "CC=" (cc-for-target)))
1973 #:tests? #f ; no test suite
1975 (modify-phases %standard-phases
1977 (add-after 'unpack 'fix-sctd-paths
1978 (lambda* (#:key outputs inputs #:allow-other-keys)
1979 (let ((out (assoc-ref outputs "out"))
1980 (coreutils (assoc-ref inputs "coreutils"))
1981 (inetutils (assoc-ref inputs "inetutils"))
1982 (sed (assoc-ref inputs "sed")))
1983 (substitute* "sctd.sh"
1984 (("\\$\\(which sct\\)") (string-append out "/bin/sct"))
1985 (("date") (string-append coreutils "/bin/date"))
1986 (("printf") (string-append coreutils "/bin/printf"))
1987 (("sleep") (string-append coreutils "/bin/sleep"))
1988 (("logger") (string-append inetutils "/bin/logger"))
1989 (("sed") (string-append sed "/bin/sed"))))))
1991 (lambda* (#:key outputs #:allow-other-keys)
1992 (let ((out (assoc-ref outputs "out")))
1993 (install-file "sct" (string-append out "/bin"))
1994 (install-file "sctd.sh" (string-append out "/bin"))
1995 (install-file "sct.1" (string-append out "/man/man1"))
1996 (install-file "sctd.1" (string-append out "/man/man1"))
1997 (rename-file (string-append out "/bin/sctd.sh")
1998 (string-append out "/bin/sctd"))
2001 `(("coreutils" ,coreutils) ; sctd uses "date", "printf" and "sleep"
2002 ("inetutils" ,inetutils) ; sctd uses "logger"
2003 ("libxrandr" ,libxrandr)
2004 ("sed" ,sed))) ; sctd uses "sed"
2005 (home-page "https://www.umaxx.net")
2006 (synopsis "Set the color temperature of the screen")
2007 (description "@code{sct} is a lightweight utility to set the color
2008 temperature of the screen.")
2009 (license (license:non-copyleft "file://sct.c")))) ; "OpenBSD" license
2011 (define-public xsecurelock
2013 (name "xsecurelock")
2018 "https://github.com/google/xsecurelock/releases"
2019 "/download/v" version "/xsecurelock-" version ".tar.gz"))
2021 (base32 "070gknyv0s5hz9hkc6v73m2v7ssyjwgl93b5hd4glayfqxqjbmdp"))))
2022 (build-system gnu-build-system)
2025 '("--with-pam-service-name=login"
2027 "--with-default-authproto-module=/run/setuid-programs/authproto_pam")))
2029 `(("pandoc" ,pandoc)
2030 ("pkg-config" ,pkg-config)))
2032 `(("fontconfig" ,fontconfig)
2034 ("libxcomposite" ,libxcomposite)
2035 ("libxext" ,libxext)
2036 ("libxfixes" ,libxfixes)
2039 ("libxrandr" ,libxrandr)
2040 ("libxscrnsaver" ,libxscrnsaver)
2041 ("linux-pam" ,linux-pam)))
2042 (home-page "https://github.com/google/xsecurelock")
2043 (synopsis "X11 screen lock utility with the primary goal of security")
2044 (description "@code{xsecurelock} is an X11 screen locker which uses
2045 a modular design to avoid the usual pitfalls of screen locking utility design.
2047 As a consequence of the modular design, the usual screen locker service
2048 shouldn't be used with @code{xsecurelock}. Instead, you need to add a helper
2049 binary to setuid-binaries:
2051 (setuid-programs (cons*
2052 (file-append xsecurelock \"/libexec/xsecurelock/authproto_pam\")
2055 (license license:asl2.0)))
2057 (define-public wl-clipboard
2059 (name "wl-clipboard")
2065 (url "https://github.com/bugaevc/wl-clipboard")
2066 (commit (string-append "v" version))))
2067 (file-name (git-file-name name version))
2069 (base32 "0c4w87ipsw09aii34szj9p0xfy0m00wyjpll0gb0aqmwa60p0c5d"))))
2070 (build-system meson-build-system)
2072 `(("pkg-config" ,pkg-config)))
2074 `(("wayland" ,wayland)
2075 ("wayland-protocols" ,wayland-protocols)))
2076 (home-page "https://github.com/bugaevc/wl-clipboard")
2077 (synopsis "Command-line copy/paste utilities for Wayland")
2078 (description "Wl-clipboard is a set of command-line copy/paste utilities for
2080 (license license:gpl3+)))
2082 (define-public autocutsel
2088 (uri (string-append "https://github.com/sigmike/autocutsel"
2089 "/releases/download/" version "/"
2090 "autocutsel-" version ".tar.gz"))
2093 "0gsys2dzh4az51ndcsabhlbbrjn2nm75lnjr45kg6r8sm8q66dx2"))))
2094 (build-system gnu-build-system)
2096 '(#:tests? #f)) ; no "check" target
2097 (native-inputs `(("libx11" ,libx11)
2098 ("libxaw" ,libxaw)))
2099 (home-page "https://www.nongnu.org/autocutsel/")
2100 (synopsis "Automated X11 clipboard and cutbuffer synchronization")
2101 (description "@code{autocutsel} tracks changes in the server's cutbuffer
2102 and clipboard selection. When the clipboard is changed, it updates the
2103 cutbuffer. When the cutbuffer is changed, it owns the clipboard selection.
2104 The cutbuffer and clipboard selection are always synchronized.")
2105 (license license:gpl2+)))
2107 (define-public jgmenu
2115 (url "https://github.com/johanmalm/jgmenu")
2116 (commit (string-append "v" version))))
2117 (file-name (git-file-name name version))
2120 "1wsh37rapb1bszlq36hvwxqvfds39hbvbl152m8as4zlh93wfvvk"))))
2121 (build-system gnu-build-system)
2123 `(("cppcheck" ,cppcheck)
2125 ("pkg-config" ,pkg-config)))
2129 ("librsvg" ,librsvg)
2131 ("libxml2" ,libxml2)
2132 ("libxrandr" ,libxrandr)
2136 (modify-phases %standard-phases
2137 (add-after 'unpack 'fix-tests
2139 (substitute* "scripts/cppcheck-wrapper.sh"
2140 (("--library=/usr/share/cppcheck/cfg/gnu\\.cfg")
2144 (lambda* (#:key outputs #:allow-other-keys)
2146 (invoke "./configure"
2147 (string-append "--prefix=" (assoc-ref outputs "out")))
2149 (synopsis "Simple X11 menu")
2151 "This is a simple menu for X11 designed for scripting and tweaking. It
2152 can optionally use some appearance settings from XSettings, tint2 and GTK.")
2153 (home-page "https://jgmenu.github.io/")
2154 (license license:gpl2)))
2156 (define-public xwallpaper
2164 (url "https://github.com/stoeckmann/xwallpaper")
2165 (commit (string-append "v" version))))
2166 (file-name (git-file-name name version))
2168 (base32 "121ai4dc0v65qk12gn9w62ixly8hc8a5qrygkbb82vy8ck4jqxj7"))))
2169 (build-system gnu-build-system)
2171 `(("autoconf" ,autoconf)
2172 ("automake" ,automake)
2173 ("pkg-config" ,pkg-config)))
2175 `(("libjpeg-turbo" ,libjpeg-turbo)
2179 ("xcb-util" ,xcb-util)
2180 ("xcb-util-image" ,xcb-util-image)))
2181 (home-page "https://github.com/stoeckmann/xwallpaper")
2182 (synopsis "Wallpaper setting utility for X")
2184 "The xwallpaper utility allows you to set image files as your X
2185 wallpaper. JPEG, PNG, and XPM file formats are supported.
2187 The wallpaper is also advertised to programs which support semi-transparent
2189 (license license:isc)))
2191 (define-public xwrits
2198 (uri (string-append "https://www.lcdf.org/~eddietwo/xwrits/"
2199 "xwrits-" version ".tar.gz"))
2201 (base32 "1n7y0fqpcvmzznvbsn14hzy5ddaa3lilm8aw6ckscqndnh4lijma"))))
2202 (build-system gnu-build-system)
2205 (modify-phases %standard-phases
2206 (add-after 'install 'install-docs
2207 (lambda* (#:key outputs #:allow-other-keys)
2208 (let* ((out (assoc-ref outputs "out"))
2209 (doc (string-append out "/share/doc/xwrits")))
2210 (install-file "GESTURES" doc)
2211 (install-file "README" doc)
2214 `(("libx11" ,libx11)
2215 ("libxinerama" ,libxinerama)))
2216 (home-page "https://www.lcdf.org/~eddietwo/xwrits/")
2217 (synopsis "Reminds you to take wrist breaks")
2218 (description "Xwrits reminds you to take wrist breaks for prevention or
2219 management of repetitive stress injuries. When you should take a break, it
2220 pops up an X window, the warning window. You click on the warning window,
2221 then take a break. The window changes appearance while you take the break.
2222 It changes again when your break is over. Then you just resume typing.
2223 Xwrits hides itself until you should take another break.")
2224 (license license:gpl2)))
2226 (define-public xsettingsd
2234 (url "https://github.com/derat/xsettingsd")
2235 (commit (string-append "v" version))))
2236 (file-name (git-file-name name version))
2239 "05m4jlw0mgwp24cvyklncpziq1prr2lg0cq9c055sh4n9d93d07v"))))
2240 (build-system scons-build-system)
2242 `(("libx11" ,libx11)))
2244 `(("pkg-config" ,pkg-config)
2245 ("googletest" ,googletest)
2246 ("googletest-source" ,(package-source googletest))))
2248 `(#:scons ,scons-python2
2252 (modify-phases %standard-phases
2253 (add-before 'build 'patch-sconstruct
2254 (lambda* (#:key inputs #:allow-other-keys)
2255 (substitute* "SConstruct"
2256 ;; scons doesn't pick up environment variables automatically
2257 ;; so it needs help to find path variables
2258 (("env = Environment\\(")
2261 'PATH': os.environ['PATH'],
2262 'CPATH': os.environ['C_INCLUDE_PATH'],
2263 'LIBRARY_PATH': os.environ['LIBRARY_PATH'],
2264 'PKG_CONFIG_PATH': os.environ['PKG_CONFIG_PATH']
2266 ;; Update path to gtest source files used in tests
2267 (("/usr/src/gtest") (string-append
2268 (assoc-ref inputs "googletest-source")
2270 ;; Exclude one warning that causes a build error
2271 (("-Werror") "-Werror -Wno-error=sign-compare"))
2273 ;; The SConstruct script doesn't configure installation so
2274 ;; binaries must be copied to the output path directly
2276 (lambda* (#:key outputs #:allow-other-keys)
2277 (let* ((out (assoc-ref outputs "out"))
2278 (bin (string-append out "/bin")))
2280 (install-file "xsettingsd" bin)
2281 (install-file "dump_xsettings" bin)
2283 (home-page "https://github.com/derat/xsettingsd")
2284 (synopsis "Xorg settings daemon")
2285 (description "@command{xsettingsd} is a lightweight daemon that provides settings to
2286 Xorg applications via the XSETTINGS specification. It is used for defining
2287 font and theme settings when a complete desktop environment (GNOME, KDE) is
2288 not running. With a simple @file{.xsettingsd} configuration file one can avoid
2289 configuring visual settings in different UI toolkits separately.")
2290 (license license:bsd-3)))
2292 (define-public clipnotify
2300 (url "https://github.com/cdown/clipnotify")
2302 (file-name (git-file-name name version))
2305 "1v3ydm5ljy8z1savmdxrjyx7a5bm5013rzw80frp3qbbjaci0wbg"))))
2306 (build-system gnu-build-system)
2309 (modify-phases %standard-phases
2312 (lambda* (#:key inputs outputs #:allow-other-keys)
2313 (let* ((out (assoc-ref outputs "out"))
2314 (bin (string-append out "/bin"))
2315 (doc (string-append %output "/share/doc/" ,name "-" ,version)))
2316 (install-file "clipnotify" bin)
2317 (install-file "README.md" doc)
2320 (list ,(string-append "CC=" (cc-for-target)))
2321 #:tests? #f)) ; no test suite
2323 `(("libx11" ,libx11)
2324 ("libXfixes" ,libxfixes)))
2325 (home-page "https://github.com/cdown/clipnotify")
2326 (synopsis "Notify on new X clipboard events")
2327 (description "@command{clipnotify} is a simple program that, using the
2328 XFIXES extension to X11, waits until a new selection is available and then
2331 It was primarily designed for clipmenu, to avoid polling for new selections.
2333 @command{clipnotify} doesn't try to print anything about the contents of the
2334 selection, it just exits when it changes. This is intentional -- X11's
2335 selection API is verging on the insane, and there are plenty of others who
2336 have already lost their sanity to bring us xclip/xsel/etc. Use one of those
2337 tools to complement clipnotify.")
2338 (license license:public-domain)))
2340 (define-public clipmenu
2341 (let ((commit "bcbe7b144598db4a103f14e8408c4b7327d6d5e1")
2345 (version (string-append "6.0.1-"
2346 revision "." (string-take commit 7)))
2351 (url "https://github.com/cdown/clipmenu")
2353 (file-name (git-file-name name version))
2356 "0053j4i14lz5m2bzc5sch5id5ilr1bl196mp8fp0q8x74w3vavs9"))))
2357 (build-system gnu-build-system)
2360 (modify-phases %standard-phases
2364 (lambda* (#:key inputs outputs #:allow-other-keys)
2365 (let* ((out (assoc-ref outputs "out"))
2366 (bin (string-append out "/bin"))
2367 (doc (string-append %output "/share/doc/"
2368 ,name "-" ,version)))
2369 (install-file "clipdel" bin)
2370 (install-file "clipmenu" bin)
2371 (install-file "clipmenud" bin)
2372 (install-file "README.md" doc)
2374 (add-after 'install 'wrap-script
2375 (lambda* (#:key inputs outputs #:allow-other-keys)
2376 (let* ((out (assoc-ref outputs "out"))
2377 (clipnotify (assoc-ref inputs "clipnotify"))
2378 (coreutils-minimal (assoc-ref inputs "coreutils-minimal"))
2379 (gawk (assoc-ref inputs "gawk"))
2380 (util-linux (assoc-ref inputs "util-linux"))
2381 (xdotool (assoc-ref inputs "xdotool"))
2382 (xsel (assoc-ref inputs "xsel")))
2385 (wrap-script (string-append out "/bin/" prog)
2388 (string-append dir "/bin"))
2389 (list clipnotify coreutils-minimal
2390 gawk util-linux xdotool xsel)))))
2391 '("clipmenu" "clipmenud" "clipdel")))
2394 (lambda* (#:key inputs outputs #:allow-other-keys)
2395 ;; substitute a shebang appearing inside a string (the test
2396 ;; file writes this string to a temporary file):
2397 (substitute* "tests/test-clipmenu"
2398 (("#!/usr/bin/env bash")
2399 (string-append "#!" (which "bash"))))
2400 (invoke "tests/test-clipmenu")
2403 `(("clipnotify" ,clipnotify)
2404 ("coreutils-minimal" ,coreutils-minimal)
2406 ("guile" ,guile-3.0) ; for wrap-script
2407 ("util-linux" ,util-linux)
2408 ("xdotool" ,xdotool)
2410 (home-page "https://github.com/cdown/clipmenu")
2411 (synopsis "Simple clipboard manager using dmenu or rofi and xsel")
2412 (description "Start @command{clipmenud}, then run @command{clipmenu} to
2413 select something to put on the clipboard.
2415 When @command{clipmenud} detects changes to the clipboard contents, it writes
2416 them out to the cache directory. @command{clipmenu} reads the cache directory
2417 to find all available clips and launches @command{dmenu} (or @command{rofi},
2418 depending on the value of @code{CM_LAUNCHER}) to let the user select a clip.
2419 After selection, the clip is put onto the PRIMARY and CLIPBOARD X selections.")
2420 (license license:public-domain))))
2430 (url "https://github.com/qnikst/kbdd")
2431 (commit (string-append "v" version))))
2432 (file-name (git-file-name name version))
2435 "0qkq75grbd4wkx4nlvswgavpijk9ad0pzqyj89a0ayjsbsn36pqy"))))
2436 (build-system gnu-build-system)
2438 `(("autoconf" ,autoconf)
2439 ("automake" ,automake)
2440 ("glib" ,glib "bin")
2441 ("pkg-config" ,pkg-config)))
2443 `(("dbus-glib" ,dbus-glib)
2445 ("libx11" ,libx11)))
2446 (home-page "https://github.com/qnikst/kbdd")
2447 (synopsis "Per-window keyboard layout switching daemon for X")
2448 (description "@command{kbdd} is a simple keyboard layout switching
2449 program, which is designed to run in an X11 session and remember
2450 keyboard layouts on a per-window basis. That can be very handy for a
2451 user of a non-US keyboard who does not want to jump through layouts back
2452 and forth while typing in terminals (mostly in a latin alphabet) and
2453 some kind of chat (in native language).
2455 @command{kbdd} also supports D-Bus signals, which makes it possible to
2456 create layout indicator widgets.")
2457 (license license:bsd-2)))
2459 (define-public j4-dmenu-desktop
2461 (name "j4-dmenu-desktop")
2466 (url "https://github.com/enkore/j4-dmenu-desktop")
2467 (commit (string-append "r" version))))
2468 (file-name (git-file-name name version))
2471 "0v23fimkn83dcm5p53y2ymhklff3kwppxhf75sm8xmswrzkixpgc"))))
2472 (build-system cmake-build-system)
2474 `(("catch2" ,catch-framework2)))
2476 `(#:configure-flags '("-DWITH_GIT_CATCH=off")
2478 (modify-phases %standard-phases
2479 (add-after 'unpack 'find-catch
2481 (substitute* "CMakeLists.txt"
2482 (("PATH_SUFFIXES catch") "PATH_SUFFIXES catch2"))
2486 (invoke "./j4-dmenu-tests" "exclude:SearchPath/XDG_DATA_HOME"))))))
2487 (synopsis "Fast desktop menu")
2489 "j4-dmenu-desktop is a replacement for i3-dmenu-desktop. Its purpose
2490 is to find @file{.desktop} files and offer you a menu to start an application
2491 using @command{dmenu}.")
2492 (home-page "https://github.com/enkore/j4-dmenu-desktop")
2493 (license license:gpl3+)))
2502 (url "https://hg.sr.ht/~scoopta/wofi")
2503 (changeset (string-append "v" version))))
2504 (file-name (git-file-name name version))
2507 "086j5wshawjbwdmmmldivfagc2rr7g5a2gk11l0snqqslm294xsn"))))
2508 (build-system meson-build-system)
2510 `(#:glib-or-gtk? #t))
2512 `(("pkg-config" ,pkg-config)))
2515 ("wayland" ,wayland)))
2516 (synopsis "Launcher/menu program for wayland")
2518 "Wofi is a launcher/menu program for wlroots based wayland compositors
2519 such as sway, similar to @command{rofi}.")
2520 (home-page "https://hg.sr.ht/~scoopta/wofi")
2521 (license license:gpl3+)))
2530 (url (string-append "https://github.com/jceb/dex"))
2531 (commit (string-append "v" version))))
2534 "03aapcywnz4kl548cygpi25m8adwbmqlmwgxa66v4156ax9dqs86"))
2535 (file-name (git-file-name name version))))
2536 (build-system gnu-build-system)
2538 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2540 (modify-phases %standard-phases
2541 (delete 'configure))
2544 `(("python", python)))
2546 `(("python-sphinx" ,python-sphinx)))
2547 (home-page "https://github.com/jceb/dex")
2548 (synopsis "Execute DesktopEntry files")
2550 "@command{dex}, @dfn{DesktopEntry Execution}, is a program to generate
2551 and execute @file{.desktop} files of the Application type.")
2552 (license license:gpl3+)))
2561 (url "https://github.com/Earnestly/sx")
2563 (file-name (git-file-name name version))
2566 "0p24ghp1ygvyc2hv81byhxax7491yhcc5priq5ldv07nzl7akagc"))))
2567 (build-system gnu-build-system)
2569 '(#:tests? #f ; no tests
2571 (let ((out (assoc-ref %outputs "out")))
2572 (list (string-append "PREFIX=" out)))
2574 (modify-phases %standard-phases
2575 ;; no configure script
2576 (delete 'configure))))
2578 `(("xauth" ,xauth)))
2579 (home-page "https://github.com/Earnestly/sx")
2580 (synopsis "Start an xorg server")
2582 "@command{sx} is a simple alternative to both @command{xinit} and
2583 @command{startx} for starting an Xorg server.")
2584 (license license:x11)))