gnu: xbindkeys: Refer to tk's wish interpreter.
[jackhill/guix/guix.git] / gnu / packages / xdisorg.scm
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>
46 ;;;
47 ;;; This file is part of GNU Guix.
48 ;;;
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.
53 ;;;
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.
58 ;;;
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/>.
61
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))
113
114 ;; packages outside the x.org system proper
115
116 (define-public xtitle
117 (package
118 (name "xtitle")
119 (version "0.4.4")
120 (source
121 (origin
122 (method git-fetch)
123 (uri (git-reference
124 (url "https://github.com/baskerville/xtitle")
125 (commit version)))
126 (file-name (git-file-name name version))
127 (sha256
128 (base32 "0f5070k2bwarghl1vq886pl52xck1x5p7x3qhlfchsc2y3dcqms9"))))
129 (build-system gnu-build-system)
130 (inputs
131 `(("libxcb" ,libxcb)
132 ("xcb-util" ,xcb-util)
133 ("xcb-util-wm" ,xcb-util-wm)))
134 (arguments
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")
141 (description
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)))
147
148 (define-public arandr
149 (package
150 (name "arandr")
151 (version "0.1.10")
152 (source (origin
153 (method url-fetch)
154 (uri (string-append "https://christian.amsuess.com/tools/arandr"
155 "/files/arandr-" version ".tar.gz"))
156 (sha256
157 (base32
158 "135q0llvm077jil2fr92ssw3p095m4r8jfj0lc5rr3m71n4srj6v"))
159 (modules '((guix build utils)))
160 (snippet
161 '(begin
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.)"))
167 #t))))
168 (build-system python-build-system)
169 (arguments
170 `(#:phases
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")
176 "/bin/xrandr\"")))
177 #t))
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))))
184 #t)))
185 #:tests? #f)) ;no tests
186 (inputs `(("gtk+" ,gtk+)
187 ("pycairo" ,python-pycairo)
188 ("pygobject" ,python-pygobject)
189 ("xrandr" ,xrandr)))
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
199 program.")
200 (license license:gpl3+)))
201
202 (define-public autorandr
203 (package
204 (name "autorandr")
205 (version "1.10.1")
206 (home-page "https://github.com/phillipberndt/autorandr")
207 (source
208 (origin
209 (method git-fetch)
210 (uri (git-reference
211 (url home-page)
212 (commit version)))
213 (file-name (git-file-name name version))
214 (sha256
215 (base32 "0msw9b1hdy3gbq9w5d04mfizhyirz1c648x84mlcbzl8salm7vpg"))))
216 (build-system python-build-system)
217 (native-inputs
218 `(("pkg-config" ,pkg-config)))
219 (inputs
220 `(("xrandr" ,xrandr)
221 ("libxcb" ,libxcb)))
222 (arguments
223 `(#:phases
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")
228 "/bin/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")))
237 (setenv "CC" "gcc"))
238 #t))
239 (add-after 'install 'install-contrib
240 (lambda* (#:key outputs #:allow-other-keys)
241 (invoke "make"
242 (string-append "DESTDIR=" (assoc-ref outputs "out"))
243 "PREFIX="
244 "BASH_COMPLETIONS_DIR=etc/bash_completion.d"
245 "install"
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+)))
254
255 (define-public bemenu
256 (package
257 (name "bemenu")
258 (version "0.4.1")
259 (source
260 (origin
261 (method git-fetch)
262 (uri (git-reference
263 (url "https://github.com/Cloudef/bemenu")
264 (commit version)))
265 (file-name (git-file-name name version))
266 (sha256
267 (base32 "1fjcs9d3533ay3nz79cx3c0lmy2chgragr2lhsy0xl2ckr0iins0"))))
268 (build-system gnu-build-system)
269 (arguments
270 '(#:tests? #f
271 #:make-flags (list "CC=gcc"
272 "CFLAGS=-O2 -fPIC"
273 (string-append "LDFLAGS=-Wl,-rpath="
274 (assoc-ref %outputs "out") "/lib")
275 (string-append "PREFIX=" (assoc-ref %outputs "out")))
276 #:phases
277 (modify-phases %standard-phases
278 (delete 'configure))))
279 (inputs
280 `(("cairo" ,cairo)
281 ("libx11" ,libx11)
282 ("libxkbcomon" ,libxkbcommon)
283 ("libxinerama" ,libxinerama)
284 ("ncurses" ,ncurses)
285 ("pango" ,pango)
286 ("wayland" ,wayland)
287 ("wayland-protocols" ,wayland-protocols)))
288 (native-inputs
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")
293 (description
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
299
300 (define-public copyq
301 (package
302 (name "copyq")
303 (version "3.9.3")
304 (source (origin
305 (method git-fetch)
306 (uri (git-reference
307 (url "https://github.com/hluk/CopyQ")
308 (commit (string-append "v" version))))
309 (file-name (git-file-name name version))
310 (sha256
311 (base32
312 "0wlwq9xg8rzsbj0b29z358k4mbrqy04iraa8x0p26pa95yskgcma"))))
313 (build-system cmake-build-system)
314 (arguments
315 `(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release")
316 #:tests? #f)) ; Test suite is a rather manual process.
317 (inputs
318 `(("qtbase" ,qtbase)
319 ("qtscript" ,qtscript)
320 ("qtsvg" ,qtsvg)
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
326 application.")
327 (home-page "https://hluk.github.io/CopyQ/")
328 (license license:gpl3+)))
329
330 (define-public xclip
331 (package
332 (name "xclip")
333 (version "0.13")
334 (source
335 (origin
336 (method git-fetch)
337 (uri (git-reference
338 (url "https://github.com/astrand/xclip")
339 (commit version)))
340 (file-name (git-file-name name version))
341 (sha256
342 (base32
343 "0q0hmvcjlv8arhh1pzhja2wglyj6n7z209jnpnzd281kqqv4czcs"))))
344 (build-system gnu-build-system)
345 (arguments
346 '(#:tests? #f)) ;there is no test suite
347 (native-inputs
348 `(("autoconf" ,autoconf)
349 ("automake" ,automake)))
350 (inputs `(("libxmu" ,libxmu)
351 ("libxt" ,libxt)))
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+)))
358
359 (define-public libxkbcommon
360 (package
361 (name "libxkbcommon")
362 (version "1.0.3")
363 (source (origin
364 (method url-fetch)
365 (uri (string-append "https://xkbcommon.org/download/libxkbcommon-"
366 version ".tar.xz"))
367 (sha256
368 (base32
369 "0lmwglj16anhpaq0h830xsl1ivknv75i4lir9bk88aq73s2jy852"))))
370 (build-system meson-build-system)
371 (inputs
372 `(("libx11" ,libx11)
373 ("libxcb" ,libxcb)
374 ("libxml2" ,libxml2)
375 ("wayland" ,wayland)
376 ("wayland-protocols" ,wayland-protocols)
377 ("xkeyboard-config" ,xkeyboard-config)))
378 (native-inputs
379 `(("bison" ,bison)
380 ("doxygen" ,doxygen)
381 ("pkg-config" ,pkg-config)))
382 (arguments
383 `(#:configure-flags
384 (list (string-append "-Dxkb-config-root="
385 (assoc-ref %build-inputs "xkeyboard-config")
386 "/share/X11/xkb")
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
397 X11 (yet).")
398 (license (license:x11-style "file://COPYING"
399 "See 'COPYING' in the distribution."))
400 (properties '((cpe-name . "xkbcommon")))))
401
402 (define-public libfakekey
403 (package
404 (name "libfakekey")
405 (version "0.3")
406 (source
407 (origin
408 (method git-fetch)
409 (uri (git-reference
410 (url "https://git.yoctoproject.org/git/libfakekey")
411 (commit version)))
412 (file-name (git-file-name name version))
413 (sha256
414 (base32 "1jw1d4wc1ysiijirc7apnz3sryrxbl9akgb92mh06dvfkz2nblj0"))))
415 (build-system gnu-build-system)
416 (arguments
417 `(#:make-flags (list "AM_LDFLAGS=-lX11")
418 #:phases
419 (modify-phases %standard-phases
420 (replace 'bootstrap
421 ;; ./autogen.sh calls ./configure before shebangs have been patched.
422 (lambda _
423 (invoke "autoreconf" "-vfi"))))))
424 (native-inputs
425 `(("pkg-config" ,pkg-config)
426
427 ;; For bootstrapping from git.
428 ("autoconf" ,autoconf)
429 ("automake" ,automake)
430 ("libtool" ,libtool)))
431 (inputs
432 `(("libxtst" ,libxtst)
433 ("libx11" ,libx11)))
434 (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox")
435 (synopsis "X virtual keyboard library")
436 (description
437 "Libfakekey is a virtual keyboard library for X.")
438 (license license:gpl2)))
439
440 (define-public xdotool
441 (package
442 (name "xdotool")
443 (version "3.20160805.1")
444 (source
445 (origin
446 (method url-fetch)
447 (uri (string-append
448 "https://github.com/jordansissel/xdotool/releases/download/v"
449 version "/xdotool-" version ".tar.gz"))
450 (sha256
451 (base32
452 "1a6c1zr86zb53352yxv104l76l8x21gfl2bgw6h21iphxpv5zgim"))))
453 (build-system gnu-build-system)
454 (arguments
455 '(#:tests? #f ; Test suite requires a lot of black magic
456 #:phases
457 (modify-phases %standard-phases
458 (replace 'configure
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"))
464 (setenv "CC" "gcc")
465 #t))))))
466 (native-inputs `(("perl" ,perl))) ; for pod2man
467 (inputs `(("libx11" ,libx11)
468 ("libxext" ,libxext)
469 ("libxi" ,libxi)
470 ("libxinerama" ,libxinerama)
471 ("libxtst" ,libxtst)
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)))
482
483 (define-public xeyes
484 (package
485 (name "xeyes")
486 (version "1.1.2")
487 (source
488 (origin
489 (method url-fetch)
490 (uri (string-append "https://www.x.org/releases/individual/app/"
491 name "-" version ".tar.bz2"))
492 (sha256
493 (base32 "0lq5j7fryx1wn998jq6h3icz1h6pqrsbs3adskjzjyhn5l6yrg2p"))))
494 (build-system gnu-build-system)
495 (inputs
496 `(("libxext" ,libxext)
497 ("libxmu" ,libxmu)
498 ("libxrender" ,libxrender)
499 ("libxt" ,libxt)))
500 (native-inputs
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)))
507
508
509 (define-public pixman
510 (package
511 (name "pixman")
512 (version "0.38.4")
513 (source
514 (origin
515 (method url-fetch)
516 (uri
517 (string-append
518 "https://www.cairographics.org/releases/pixman-"
519 version ".tar.gz"))
520 (sha256
521 (base32 "1ryxzdf048x7wsx4dlvrr1p00gzwfs7lybnhgc7ygbj0dvyxcrns"))
522 (patches
523 (search-patches
524 "pixman-CVE-2016-5296.patch"))))
525 (build-system gnu-build-system)
526 (arguments
527 '(#:configure-flags '("--disable-static")))
528 (native-inputs
529 `(("pkg-config" ,pkg-config)))
530 (inputs
531 `(("libpng" ,libpng)
532 ("zlib" ,zlib)))
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
536 rasterisation.")
537 (home-page "http://www.pixman.org/")
538 (license license:x11)))
539
540 (define-public libdrm
541 (package
542 (name "libdrm")
543 (version "2.4.103")
544 (source (origin
545 (method url-fetch)
546 (uri (string-append
547 "https://dri.freedesktop.org/libdrm/libdrm-"
548 version ".tar.xz"))
549 (sha256
550 (base32
551 "08h2nnf4w96b4ql7485mvjgbbsb8rwc0qa93fdm1cq34pbyszq1z"))))
552 (build-system meson-build-system)
553 (arguments
554 `(#:configure-flags
555 '(,@(match (%current-system)
556 ((or "armhf-linux" "aarch64-linux")
557 '("-Dexynos=true"
558 "-Domap=true"
559 "-Detnaviv=true"
560 "-Dtegra=true"
561 "-Dfreedreno-kgsl=true"))
562 (_ '())))
563
564 #:phases (modify-phases %standard-phases
565 (replace 'check
566 (lambda _
567 (invoke "meson" "test" "--timeout-multiplier" "5"))))))
568 (inputs
569 `(("libpciaccess" ,libpciaccess)))
570 (native-inputs
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
582 and Matrox.")
583 (license license:x11)))
584
585
586 (define-public mtdev
587 (package
588 (name "mtdev")
589 (version "1.1.6")
590 (source
591 (origin
592 (method url-fetch)
593 (uri (string-append
594 "http://bitmath.org/code/mtdev/mtdev-"
595 version ".tar.bz2"))
596 (sha256
597 (base32
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
607 tracking.")
608 (license license:x11)))
609
610 (define-public startup-notification
611 (package
612 (name "startup-notification")
613 (version "0.12")
614 (source
615 (origin
616 (method url-fetch)
617 (uri (string-append "https://www.freedesktop.org/software/" name
618 "/releases/" name "-" version ".tar.gz"))
619 (sha256
620 (base32
621 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
622 (build-system gnu-build-system)
623 (native-inputs `(("pkg-config" ,pkg-config)))
624 (inputs
625 `(("libx11" ,libx11)
626 ("xcb-util" ,xcb-util)))
627 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
628 (synopsis "Application startup notification and feedback library")
629 (description
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+)))
635
636 (define-public wmctrl
637 (package
638 (name "wmctrl")
639 (version "1.07")
640 (source (origin
641 (method url-fetch)
642 (uri (string-append
643 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
644 version ".tar.gz"))
645 (sha256
646 (base32
647 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
648 (patches (search-patches "wmctrl-64-fix.patch"))))
649 (build-system gnu-build-system)
650 (arguments
651 '(#:configure-flags
652 (list (string-append "--mandir="
653 (assoc-ref %outputs "out")
654 "/share/man"))))
655 (native-inputs
656 `(("pkg-config" ,pkg-config)))
657 (inputs
658 `(("libx11" ,libx11)
659 ("libxmu" ,libxmu)
660 ("glib" ,glib)))
661 (home-page "http://tomas.styblo.name/wmctrl/")
662 (synopsis "Command-line tool to control X window managers")
663 (description
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+)))
669
670 (define-public scrot
671 (package
672 (name "scrot")
673 (version "1.4")
674 (source
675 (origin
676 (method git-fetch)
677 (uri
678 (git-reference
679 (url "https://github.com/resurrecting-open-source-projects/scrot")
680 (commit version)))
681 (file-name (git-file-name name version))
682 (sha256
683 (base32
684 "12xq6glg70icwsvbnfw9gm4dahlbnrc7b6adpd0mpf89h4sj2gds"))))
685 (build-system gnu-build-system)
686 (native-inputs
687 `(("autoconf" ,autoconf)
688 ("autoconf-archive" ,autoconf-archive)
689 ("automake" ,automake)))
690 (inputs
691 `(("giblib" ,giblib)
692 ("libx11" ,libx11)
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")
698 (description
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
702 ;; X11 license.
703 (license (license:x11-style "file://COPYING"
704 "See 'COPYING' in the distribution."))))
705
706 (define-public slop
707 (package
708 (name "slop")
709 (version "7.5")
710 (source (origin
711 (method git-fetch)
712 (uri (git-reference
713 (url "https://github.com/naelstrof/slop")
714 (commit (string-append "v" version))))
715 (file-name (git-file-name name version))
716 (sha256
717 (base32
718 "1k8xxb4rj2fylr4vj16yvsf73cyywliz9cy78pl4ibmi03jhg837"))))
719 (build-system cmake-build-system)
720 (arguments
721 '(#:tests? #f)) ; no "check" target
722 (inputs
723 `(("glew" ,glew)
724 ("glm" ,glm)
725 ("icu4c" ,icu4c)
726 ("libxext" ,libxext)
727 ("libxrender" ,libxrender)
728 ("mesa" ,mesa)))
729 (home-page "https://github.com/naelstrof/slop")
730 (synopsis "Select a region and print its bounds to stdout")
731 (description
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+)))
738
739 (define-public maim
740 (package
741 (name "maim")
742 (version "5.6.3")
743 (source (origin
744 (method git-fetch)
745 (uri (git-reference
746 (url "https://github.com/naelstrof/maim")
747 (commit (string-append "v" version))))
748 (file-name (git-file-name name version))
749 (sha256
750 (base32
751 "181mjjrjb9fs1ficcv9miqbk94v95j1yli7fjp2dj514g7nj9l3x"))))
752 (build-system cmake-build-system)
753 (arguments
754 '(#:tests? #f)) ; no "check" target
755 (inputs
756 `(("glm" ,glm)
757 ("libjpeg" ,libjpeg-turbo)
758 ("libpng" ,libpng)
759 ("libxcomposite" ,libxcomposite)
760 ("libxfixes" ,libxfixes)
761 ("libxrandr" ,libxrandr)
762 ("mesa" ,mesa)
763 ("slop" ,slop)
764 ("zlib" ,zlib)))
765 (home-page "https://github.com/naelstrof/maim")
766 (synopsis "Screenshot utility for X Window System")
767 (description
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+)))
773
774 (define-public unclutter
775 (package
776 (name "unclutter")
777 (version "8")
778 (source (origin
779 (method url-fetch)
780 (uri (string-append
781 "http://ftp.x.org/contrib/utilities/unclutter-"
782 version ".tar.Z"))
783 (sha256
784 (base32
785 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
786 (build-system gnu-build-system)
787 (arguments
788 '(#:tests? #f ; no check target
789 #:phases
790 (modify-phases %standard-phases
791 (delete 'configure)
792 (replace 'install
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")))
797 (mkdir-p bin)
798 (mkdir-p 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")
805 (description
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)))
816
817 (define-public xautomation
818 (package
819 (name "xautomation")
820 (version "1.09")
821 (source
822 (origin
823 (method url-fetch)
824 (uri (string-append "https://www.hoopajoo.net/static/projects/"
825 "xautomation-" version ".tar.gz"))
826
827 (sha256
828 (base32
829 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
830 (build-system gnu-build-system)
831 (inputs
832 `(("libpng" ,libpng)
833 ("libx11" ,libx11)
834 ("libxi" ,libxi)
835 ("libxtst" ,libxtst)))
836 (native-inputs
837 `(("xorgproto" ,xorgproto)))
838 (synopsis "Tools to automate tasks in X such as detecting on screen images")
839 (description
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+)))
849
850 (define-public xbanish
851 (package
852 (name "xbanish")
853 (version "1.7")
854 (home-page "https://github.com/jcs/xbanish")
855 (source (origin
856 (method git-fetch)
857 (uri (git-reference (url home-page)
858 (commit (string-append "v" version))))
859 (file-name (git-file-name name version))
860 (sha256
861 (base32
862 "0ic5f7zgc32p5g1wxas9y5h8dhik0pvsa8wmn6skdry56gw9vg9q"))))
863 (build-system gnu-build-system)
864 (arguments
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
870 (inputs
871 `(("libx11" ,libx11)
872 ("libxfixes" ,libxfixes)
873 ("libxi" ,libxi)
874 ("libxt" ,libxt)))
875 (synopsis "Banish the mouse cursor")
876 (description
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)))
880
881 (define-public xlockmore
882 (package
883 (name "xlockmore")
884 (version "5.66")
885 (source (origin
886 (method url-fetch)
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/"
891 "recent-releases/"
892 "xlockmore-" version ".tar.xz")))
893 (sha256
894 (base32
895 "0wdb7gpyjw3sigmhiplgg1bqxz6wipr0c3n9492x2a18cv1saxjr"))))
896 (build-system gnu-build-system)
897 (arguments
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
902 (inputs
903 `(("libX11" ,libx11)
904 ("libXext" ,libxext)
905 ("libXt" ,libxt)
906 ("linux-pam" ,linux-pam)))
907 (home-page "https://sillycycle.com/xlockmore.html")
908 (synopsis "Screen locker for the X Window System")
909 (description
910 "XLockMore is a classic screen locker and screen saver for the
911 X Window System.")
912 (license (license:non-copyleft #f "See xlock.c.")
913 ))) ; + GPLv2 in modes/glx/biof.c.
914
915 (define-public xosd
916 (package
917 (name "xosd")
918 (version "2.2.14")
919 (source (origin
920 (method url-fetch)
921 (uri (string-append
922 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
923 name "-" version ".tar.gz"))
924 (sha256
925 (base32
926 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
927 (build-system gnu-build-system)
928 (arguments
929 '(#:configure-flags
930 (list (string-append "--mandir=" %output "/share/man"))))
931 (inputs
932 `(("libx11" ,libx11)
933 ("libxt" ,libxt)
934 ("libxext" ,libxext)
935 ("libxinerama" ,libxinerama)))
936 (home-page "https://sourceforge.net/projects/libxosd/")
937 (synopsis "X On Screen Display")
938 (description
939 "XOSD provides a C library and a simple utility (osd_cat) for displaying
940 transparent text on your screen.")
941 (license license:gpl2+)))
942
943 (define-public xbindkeys
944 (package
945 (name "xbindkeys")
946 (version "1.8.7")
947 (source (origin
948 (method url-fetch)
949 ;; Download from the savannah mirror list fails
950 (uri (string-append
951 "http://www.nongnu.org/xbindkeys/xbindkeys-"
952 version
953 ".tar.gz"))
954 (sha256
955 (base32
956 "1wl2vc5alisiwyk8m07y1ryq8w3ll9ym83j27g4apm4ixjl8d6x2"))))
957 (build-system gnu-build-system)
958 (arguments
959 `(#:phases
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.
964 (lambda _
965 (substitute* "xbindkeys_show"
966 (("^#!.*|^exec wish.*") "")
967 (("^# \\\\") (string-append "#!" (which "wish"))))
968 #t)))))
969 (native-inputs
970 `(("pkg-config" ,pkg-config)))
971 (inputs
972 `(("guile" ,guile-2.2)
973 ("libx11" ,libx11)
974 ("tk" ,tk)))
975 (home-page "https://www.nongnu.org/xbindkeys/")
976 (synopsis "Associate a combination of keys with a shell command")
977 (description
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+)))
987
988 (define-public sxhkd
989 (package
990 (name "sxhkd")
991 (version "0.6.2")
992 (source
993 (origin
994 (method git-fetch)
995 (uri (git-reference
996 (url "https://github.com/baskerville/sxhkd")
997 (commit version)))
998 (file-name (git-file-name name version))
999 (sha256
1000 (base32 "1winwzdy9yxvxnrv8gqpigl9y0c2px27mnms62bdilp4x6llrs9r"))))
1001 (build-system gnu-build-system)
1002 (inputs
1003 `(("asciidoc" ,asciidoc)
1004 ("libxcb" ,libxcb)
1005 ("xcb-util" ,xcb-util)
1006 ("xcb-util-keysyms" ,xcb-util-keysyms)
1007 ("xcb-util-wm" ,xcb-util-wm)))
1008 (arguments
1009 `(#:phases (modify-phases %standard-phases (delete 'configure))
1010 #:tests? #f ; no check target
1011 #:make-flags
1012 (list "CC=gcc"
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)))
1022
1023 (define-public rxvt-unicode
1024 (package
1025 (name "rxvt-unicode")
1026 (version "9.22")
1027 (source (origin
1028 (method url-fetch)
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"))
1032 (sha256
1033 (base32
1034 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
1035 (build-system gnu-build-system)
1036 (arguments
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")
1043 "/share/terminfo"))
1044 #:phases
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")))
1050 (mkdir-p desktop)
1051 (with-output-to-file
1052 (string-append desktop "/urxvt.desktop")
1053 (lambda _
1054 (format #t
1055 "[Desktop Entry]~@
1056 Name=rxvt-unicode~@
1057 Comment=~@
1058 Exec=~a/bin/urxvt~@
1059 TryExec=~@*~a/bin/urxvt~@
1060 Icon=~@
1061 Type=Application~%"
1062 output)))
1063 #t)))
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")))
1068 (mkdir-p desktop)
1069 (with-output-to-file
1070 (string-append desktop "/urxvtc.desktop")
1071 (lambda _
1072 (format #t
1073 "[Desktop Entry]~@
1074 Name=rxvt-unicode (client)~@
1075 Comment=Rxvt clone with XFT and unicode support~@
1076 Exec=~a/bin/urxvtc~@
1077 TryExec=~@*~a/bin/urxvtc~@
1078 Icon=~@
1079 Type=Application~%"
1080 output)))
1081 #t))))))
1082 (inputs
1083 `(("libXft" ,libxft)
1084 ("libX11" ,libx11)))
1085 (native-inputs
1086 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
1087 ("perl" ,perl)
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+)))
1104
1105 (define-public xcape
1106 (package
1107 (name "xcape")
1108 (version "1.2")
1109 (source (origin
1110 (method git-fetch)
1111 (uri (git-reference
1112 (url "https://github.com/alols/xcape")
1113 (commit (string-append "v" version))))
1114 (file-name (git-file-name name version))
1115 (sha256
1116 (base32
1117 "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm"))))
1118 (build-system gnu-build-system)
1119 (arguments
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"
1125 "CC=gcc")))
1126 (inputs
1127 `(("libxtst" ,libxtst)
1128 ("libx11" ,libx11)))
1129 (native-inputs
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")
1133 (description
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+)))
1138
1139 (define-public libwacom
1140 (package
1141 (name "libwacom")
1142 (version "1.7")
1143 (source (origin
1144 (method url-fetch)
1145 (uri (string-append
1146 "https://github.com/linuxwacom/libwacom/releases/download/"
1147 "libwacom-" version "/libwacom-" version ".tar.bz2"))
1148 (sha256
1149 (base32
1150 "0797gc055dgg2jfqijy9823bd83jwr4wb2z9id992qlcr0xmz1rw"))))
1151 (build-system glib-or-gtk-build-system)
1152 (arguments
1153 `(#:configure-flags '("--disable-static")))
1154 (native-inputs
1155 `(("pkg-config" ,pkg-config)
1156 ;; For tests.
1157 ("python" ,python)))
1158 (inputs
1159 `(("gtk+" ,gtk+)
1160 ("libgudev" ,libgudev)
1161 ("eudev" ,eudev)
1162 ("libxml2" ,libxml2)))
1163 (propagated-inputs
1164 ;; libwacom includes header files that include GLib, and libinput uses
1165 ;; those header files.
1166 `(("glib" ,glib)))
1167 (home-page "https://linuxwacom.github.io/")
1168 (synopsis "Helper library for Wacom tablet settings")
1169 (description
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)))
1175
1176 (define-public xf86-input-wacom
1177 (package
1178 (name "xf86-input-wacom")
1179 (version "0.39.0")
1180 (source
1181 (origin
1182 (method url-fetch)
1183 (uri (string-append
1184 "https://github.com/linuxwacom/xf86-input-wacom/releases/download/"
1185 "xf86-input-wacom-" version "/"
1186 "xf86-input-wacom-" version ".tar.bz2"))
1187 (sha256
1188 (base32 "11qk58az6qwii774ga45h5yqzipwn56f0d74kdbajqdv45p85gqj"))))
1189 (arguments
1190 `(#:configure-flags
1191 (list (string-append "--with-sdkdir="
1192 (assoc-ref %outputs "out")
1193 "/include/xorg")
1194 (string-append "--with-xorg-conf-dir="
1195 (assoc-ref %outputs "out")
1196 "/share/X11/xorg.conf.d"))))
1197 (build-system gnu-build-system)
1198 (native-inputs
1199 `(("pkg-config" ,pkg-config)))
1200 (inputs
1201 `(("xorg-server" ,xorg-server)
1202 ("libxrandr" ,libxrandr)
1203 ("libxinerama" ,libxinerama)
1204 ("libxi" ,libxi)
1205 ("eudev" ,eudev)))
1206 (home-page "https://linuxwacom.github.io/")
1207 (synopsis "Wacom input driver for X")
1208 (description
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)))
1212
1213 (define-public redshift
1214 (package
1215 (name "redshift")
1216 (version "1.12")
1217 (source
1218 (origin
1219 (method url-fetch)
1220 (uri
1221 (string-append "https://github.com/jonls/redshift/"
1222 "releases/download/v" version
1223 "/redshift-" version ".tar.xz"))
1224 (sha256
1225 (base32
1226 "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j"))))
1227 (build-system gnu-build-system)
1228 (arguments
1229 `(#:imported-modules (,@%gnu-build-system-modules
1230 (guix build python-build-system))
1231 #:phases
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)
1251 (copy-recursively
1252 (string-append out "/share/" dir)
1253 (string-append gtk "/share/" dir))
1254 (delete-file-recursively dir))
1255 '("appdata" "icons")))
1256 #t)))
1257 (add-after 'split-outputs 'wrap
1258 (lambda* (#:key inputs outputs #:allow-other-keys)
1259 (let* ((gtk (assoc-ref outputs "gtk"))
1260 (python-version
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)
1265 "/site-packages")))
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"))))
1270 #t))))))
1271 (outputs '("out" "gtk"))
1272 (native-inputs
1273 `(("pkg-config" ,pkg-config)
1274 ("intltool" ,intltool)))
1275 (inputs
1276 `(("libdrm" ,libdrm)
1277 ("libx11" ,libx11)
1278 ("libxcb" ,libxcb)
1279 ("libxxf86vm" ,libxxf86vm)
1280 ("glib" ,glib) ;for Geoclue2 support
1281
1282 ;; To build the GTK3 GUI, we need these.
1283 ("gtk+" ,gtk+)
1284 ("python" ,python)
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")
1289 (description
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+)))
1296
1297 (define-public redshift-wayland
1298 (let ((commit "7da875d34854a6a34612d5ce4bd8718c32bec804")
1299 (revision "1"))
1300 (package
1301 (name "redshift-wayland")
1302 (version (string-append "1.12-"
1303 revision "." (string-take commit 7)))
1304 (source (origin
1305 (method git-fetch)
1306 (uri (git-reference
1307 (url "https://github.com/minus7/redshift")
1308 (commit commit)))
1309 (file-name (string-append name "-" version))
1310 (sha256
1311 (base32
1312 "0nbkcw3avmzjg1jr1g9yfpm80kzisy55idl09b6wvzv2sz27n957"))))
1313 (build-system gnu-build-system)
1314 (arguments
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"))
1323 (desktop-file
1324 (string-append
1325 out "/share/applications/redshift.desktop")))
1326 (mkdir-p (dirname desktop-file))
1327 (copy-file "data/applications/redshift.desktop.in"
1328 desktop-file)
1329 (substitute* desktop-file
1330 (("^_") ""))
1331 #t))))))
1332 (native-inputs
1333 `(("autoconf" ,autoconf)
1334 ("automake" ,automake)
1335 ("libtool" ,libtool)
1336 ("pkg-config" ,pkg-config)
1337 ("intltool" ,intltool)))
1338 (inputs
1339 `(("libdrm" ,libdrm)
1340 ("libx11" ,libx11)
1341 ("libxcb" ,libxcb)
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)")
1347 (description
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.
1353
1354 This is a fork with added support for Wayland using the wlr-gamma-control
1355 protocol.")
1356 (license license:gpl3+))))
1357
1358 (define-public xscreensaver
1359 (package
1360 (name "xscreensaver")
1361 (version "5.44")
1362 (source
1363 (origin
1364 (method url-fetch)
1365 (uri
1366 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
1367 version ".tar.gz"))
1368 (sha256
1369 (base32 "15bv05vpfjwsrqbazrjmm382jd7vvw0mp6y9vasn6wvxzjf0in3k"))))
1370 (build-system gnu-build-system)
1371 (arguments
1372 `(#:tests? #f ; no check target
1373 #:phases
1374 (modify-phases %standard-phases
1375 (add-before 'configure 'adjust-gtk-resource-paths
1376 (lambda _
1377 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
1378 (("@GTK_DATADIR@") "@datadir@")
1379 (("@PO_DATADIR@") "@datadir@"))
1380 #t)))
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"))))
1386 (native-inputs
1387 `(("pkg-config" ,pkg-config)
1388 ("intltool" ,intltool)))
1389 (inputs
1390 `(("libx11" ,libx11)
1391 ("libxext" ,libxext)
1392 ("libxi" ,libxi)
1393 ("libxt" ,libxt)
1394 ("libxft" ,libxft)
1395 ("libxmu" ,libxmu)
1396 ("libxpm" ,libxpm)
1397 ("libglade" ,libglade)
1398 ("libxml2" ,libxml2)
1399 ("libsm" ,libsm)
1400 ("libjpeg" ,libjpeg-turbo)
1401 ("linux-pam" ,linux-pam)
1402 ("pango" ,pango)
1403 ("gtk+" ,gtk+)
1404 ("perl" ,perl)
1405 ("cairo" ,cairo)
1406 ("bc" ,bc)
1407 ("libxrandr" ,libxrandr)
1408 ("glu" ,glu)
1409 ("glib" ,glib)))
1410 (home-page "https://www.jwz.org/xscreensaver/")
1411 (synopsis "Classic screen saver suite supporting screen locking")
1412 (description
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
1420 (string-append
1421 "http://metadata.ftp-master.debian.org/changelogs/"
1422 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1423
1424 (define-public xssproxy
1425 (package
1426 (name "xssproxy")
1427 (version "1.0.0")
1428 (source (origin
1429 (method git-fetch)
1430 (uri (git-reference
1431 (url "https://github.com/timakro/xssproxy")
1432 (commit (string-append "v" version))))
1433 (file-name (string-append name "-" version "-checkout"))
1434 (sha256
1435 (base32
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"))
1441 "CC=gcc")
1442 #:phases (modify-phases %standard-phases
1443 (delete 'configure)
1444 (delete 'check))))
1445 (native-inputs
1446 `(("pkg-config" ,pkg-config)))
1447 (inputs
1448 `(("glib" ,glib)
1449 ("libx11" ,libx11)
1450 ("libxext" ,libxext)
1451 ("libxscrnsaver" ,libxscrnsaver)
1452 ("dbus" ,dbus)))
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+)))
1461
1462 (define-public xsel
1463 (package
1464 (name "xsel")
1465 (version "1.2.0")
1466 (source (origin
1467 (method url-fetch)
1468 (uri (string-append "http://www.vergenet.net/~conrad/software"
1469 "/xsel/download/xsel-" version ".tar.gz"))
1470 (sha256
1471 (base32
1472 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1473 (build-system gnu-build-system)
1474 (inputs
1475 `(("libxt" ,libxt)))
1476 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1477 (synopsis "Manipulate X selection")
1478 (description
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.
1482
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."))))
1487
1488 (define-public xdpyprobe
1489 (package
1490 (name "xdpyprobe")
1491 (version "0.1")
1492 (source (origin
1493 (method url-fetch)
1494 (uri (string-append "https://github.com/alezost/" name
1495 "/releases/download/v" version
1496 "/" name "-" version ".tar.gz"))
1497 (sha256
1498 (base32
1499 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1500 (build-system gnu-build-system)
1501 (inputs
1502 `(("libx11" ,libx11)))
1503 (home-page "https://github.com/alezost/xdpyprobe")
1504 (synopsis "Probe X server for connectivity")
1505 (description
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+)))
1509
1510 (define-public rofi
1511 (package
1512 (name "rofi")
1513 (version "1.6.1")
1514 (source (origin
1515 (method url-fetch)
1516 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1517 "releases/download/"
1518 version "/rofi-" version ".tar.xz"))
1519 (sha256
1520 (base32
1521 "12p9z8bl1gg8k024m4a6zfz7gf1zbyffardh98raqgabn6knwk22"))))
1522 (build-system gnu-build-system)
1523 (inputs
1524 `(("pango" ,pango)
1525 ("cairo" ,cairo)
1526 ("glib" ,glib)
1527 ("startup-notification" ,startup-notification)
1528 ("libjpeg" ,libjpeg-turbo)
1529 ("librsvg" ,librsvg)
1530 ("libxkbcommon" ,libxkbcommon)
1531 ("libxcb" ,libxcb)
1532 ("xcb-util" ,xcb-util)
1533 ("xcb-util-xrm" ,xcb-util-xrm)
1534 ("xcb-util-wm" ,xcb-util-wm)))
1535 (native-inputs
1536 `(("bison" ,bison)
1537 ("check" ,check)
1538 ("flex" ,flex)
1539 ("glib:bin" ,glib "bin")
1540 ("pkg-config" ,pkg-config)))
1541 (arguments
1542 `(#:parallel-tests? #f ; fails in some circumstances
1543 #:phases
1544 (modify-phases %standard-phases
1545 (add-before 'configure 'adjust-tests
1546 (lambda _
1547 (substitute* '("test/helper-expand.c")
1548 (("~root") "/root")
1549 (("~") "")
1550 (("g_get_home_dir \\(\\)") "\"/\""))
1551 #t)))))
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
1556 by name.")
1557 (license license:expat)))
1558
1559 (define-public tint2
1560 (package
1561 (name "tint2")
1562 (version "0.14.6")
1563 (source (origin
1564 (method url-fetch)
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"))
1568 (sha256
1569 (base32
1570 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1571 (build-system cmake-build-system)
1572 (arguments
1573 '(#:tests? #f ;no test target
1574 #:phases
1575 (modify-phases %standard-phases
1576 (add-after 'unpack 'fix-installation-prefix
1577 (lambda _
1578 (substitute* "CMakeLists.txt"
1579 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))
1580 #t)))))
1581 (inputs
1582 `(("gtk+" ,gtk+-2)
1583 ("imlib2" ,imlib2)
1584 ("librsvg" ,librsvg)
1585 ("libxcomposite" ,libxcomposite)
1586 ("libxdamage" ,libxdamage)
1587 ("libxft" ,libxft)
1588 ("libxinerama" ,libxinerama)
1589 ("libxrandr" ,libxrandr)
1590 ("startup-notification" ,startup-notification)))
1591 (native-inputs
1592 `(("gettext" ,gettext-minimal)
1593 ("pkg-config" ,pkg-config)))
1594 (home-page "https://gitlab.com/o9000/tint2")
1595 (synopsis "Lightweight task bar")
1596 (description
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.).
1600
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)))
1605
1606 (define-public dzen
1607 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1608 (revision "1"))
1609 (package
1610 (name "dzen")
1611 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1612 revision "." (string-take commit 7)))
1613 (source (origin
1614 (method git-fetch)
1615 (uri (git-reference
1616 (url "https://github.com/robm/dzen")
1617 (commit commit)))
1618 (file-name (string-append name "-" version))
1619 (sha256
1620 (base32
1621 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1622 (build-system gnu-build-system)
1623 (arguments
1624 `(#:tests? #f ; No test suite.
1625 #:make-flags ; Replacement for `config.mk`.
1626 (list
1627 (string-append "VERSION = " ,version)
1628 (string-append "PREFIX = " %output)
1629 "MANPREFIX = ${PREFIX}/share/man"
1630 "INCS = -I."
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)"
1634 "LDFLAGS = ${LIBS}"
1635 "CC = gcc"
1636 "LD = ${CC}")
1637 #:phases
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
1642 (lambda _
1643 (substitute* "Makefile" (("include config.mk") ""))
1644 #t)))))
1645 (inputs
1646 `(("libx11" ,libx11)
1647 ("libxft" ,libxft)
1648 ("libxpm" ,libxpm)
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))))
1656
1657 (define-public xftwidth
1658 (package
1659 (name "xftwidth")
1660 (version "20170402")
1661 (source
1662 (origin
1663 (method git-fetch)
1664 (uri (git-reference
1665 (url "http://github.com/vixus0/xftwidth")
1666 (commit "35ff963908d41a8a6a7101c434c88255728025ee")))
1667 (sha256
1668 (base32
1669 "1jwl25785li24kbp0m1wxfwk4dgxkliynn03nsj813cjr34kq16h"))
1670 (file-name (string-append name "-" version "-checkout"))))
1671 (build-system gnu-build-system)
1672 (inputs `(("freetype" ,freetype)
1673 ("libx11" ,libx11)
1674 ("fontconfig" ,fontconfig)
1675 ("libxft" ,libxft)))
1676 (native-inputs
1677 `(("pkg-config" ,pkg-config)))
1678 (arguments
1679 '(#:phases
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))
1685 #:make-flags
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)))
1696
1697 (define-public xcb-util-xrm
1698 (package
1699 (name "xcb-util-xrm")
1700 (version "1.3")
1701 (source (origin
1702 (method url-fetch)
1703 (uri (string-append
1704 "https://github.com/Airblader/xcb-util-xrm/releases"
1705 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1706 (sha256
1707 (base32
1708 "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h"))
1709 (modules '((guix build utils)))
1710 (snippet
1711 ;; Drop bundled m4.
1712 '(begin
1713 (delete-file-recursively "m4")
1714 #t))))
1715 (build-system gnu-build-system)
1716 (native-inputs
1717 `(("pkg-config" ,pkg-config)
1718 ("m4" ,m4)
1719 ("libx11" ,libx11))) ; for tests
1720 (inputs
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")
1725 (description
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.
1732
1733 XCB util-xrm module provides the following libraries:
1734
1735 - xrm: utility functions for the X resource manager.")
1736 (license license:x11)))
1737
1738 (define-public xcalib
1739 (package
1740 (name "xcalib")
1741 (version "0.10")
1742 (home-page "https://github.com/OpenICC/xcalib")
1743 (source (origin
1744 (method git-fetch)
1745 (uri (git-reference
1746 (url home-page)
1747 (commit version)))
1748 (file-name (git-file-name name version))
1749 (sha256
1750 (base32
1751 "05fzdjmhiafgi2jf0k41i3nm0837a78sb6yv59cwc23nla8g0bhr"))
1752 (patches
1753 (list
1754 ;; Add missing documentation for the new --output option.
1755 ;; This upstream patch can be removed on the next update.
1756 (origin
1757 (method url-fetch)
1758 (uri (string-append
1759 home-page "/commit/"
1760 "ae03889b91fe984b18e925ad2b5e6f2f7354e058.patch"))
1761 (file-name "xcalib-update-man-page.patch")
1762 (sha256
1763 (base32
1764 "0f7b4d5484x4b9n1bwhqmar0kcaa029ffff7bp3xpr734n1qgqb6")))))))
1765 (build-system cmake-build-system)
1766 (arguments
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)))
1778
1779 (define-public nxbelld
1780 (package
1781 (name "nxbelld")
1782 (version "0.1.2")
1783 (source (origin
1784 (method git-fetch)
1785 (uri (git-reference
1786 (url "https://github.com/dusxmt/nxbelld")
1787 (commit version)))
1788 (sha256
1789 (base32
1790 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1791 (file-name (git-file-name name version))))
1792 (build-system gnu-build-system)
1793 (arguments '(#:configure-flags `("--enable-sound"
1794 "--enable-wave"
1795 "--enable-alsa")))
1796 (native-inputs `(("autoconf" ,autoconf)
1797 ("automake" ,automake)
1798 ("pkg-config" ,pkg-config)
1799 ("perl" ,perl)))
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+)))
1811
1812 (define-public xautolock
1813 (package
1814 (name "xautolock")
1815 (version "2.2")
1816 (source (origin
1817 (method url-fetch)
1818 (uri (string-append "https://www.ibiblio.org/pub/linux/X11/"
1819 "screensavers/xautolock-" version ".tgz"))
1820 (sha256
1821 (base32
1822 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1823 (build-system gnu-build-system)
1824 (native-inputs
1825 `(("imake" ,imake)))
1826 (inputs
1827 `(("libx11" ,libx11)
1828 ("libxext" ,libxext)
1829 ("libxscrnsaver" ,libxscrnsaver)))
1830 (arguments
1831 `(#:tests? #f
1832 #:phases
1833 (modify-phases %standard-phases
1834 (replace 'configure
1835 (lambda* (#:key inputs outputs #:allow-other-keys)
1836 (let ((imake (assoc-ref inputs "imake"))
1837 (out (assoc-ref outputs "out")))
1838 ;; Generate Makefile
1839 (invoke "xmkmf")
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
1844 ((imake) out)
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"))
1851 #t)))
1852 (add-after 'install 'install/man
1853 (lambda _
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)))
1861
1862 (define-public screen-message
1863 (package
1864 (name "screen-message")
1865 (version "0.25")
1866 (source (origin
1867 (method url-fetch)
1868 (uri (string-append
1869 "https://www.joachim-breitner.de/archive/screen-message"
1870 "/screen-message-" version ".tar.gz"))
1871 (sha256
1872 (base32
1873 "1lw955qq5pq010lzmaf32ylj2iprgsri9ih4hx672c3f794ilab0"))))
1874 (build-system gnu-build-system)
1875 (inputs `(("gtk3" ,gtk+)
1876 ("gdk" ,gdk-pixbuf)
1877 ("pango" ,pango)))
1878 (native-inputs `(("pkg-config" ,pkg-config)))
1879 (arguments
1880 ;; The default configure puts the 'sm' binary in games/ instead of bin/ -
1881 ;; this fixes it:
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
1887 commandline).")
1888 (home-page "https://www.joachim-breitner.de/projects#screen-message")
1889 (license license:gpl2+)))
1890
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")
1895 (revision "1")
1896 (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717"))
1897 (package
1898 (name "xss-lock")
1899 (version (git-version version revision commit))
1900 (source (origin
1901 (method git-fetch)
1902 (uri (git-reference
1903 (url "https://bitbucket.org/raymonad/xss-lock.git")
1904 (commit commit)))
1905 (file-name (git-file-name name version))
1906 (sha256
1907 (base32
1908 "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r"))))
1909 (build-system cmake-build-system)
1910 (inputs `(("glib" ,glib)
1911 ("xcb-util" ,xcb-util)))
1912 (native-inputs
1913 `(("python-docutils" ,python-docutils)
1914 ("pkg-config" ,pkg-config)))
1915 (arguments
1916 `(#:tests? #f))
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))))
1926
1927 (define-public python-pyperclip
1928 (package
1929 (name "python-pyperclip")
1930 (version "1.6.4")
1931 (source
1932 (origin
1933 (method url-fetch)
1934 (uri (pypi-uri "pyperclip" version))
1935 (sha256
1936 (base32
1937 "1p505c23ji06r28k1y67siihsbdzdf1brhlqpyv9ams4gk9863pp"))))
1938 (build-system python-build-system)
1939 (arguments
1940 '(#:tests? #f)) ; Not clear how to make tests pass.
1941 (inputs
1942 `(("xclip" ,xclip)
1943 ("xsel" ,xsel)))
1944 (home-page "https://github.com/asweigart/pyperclip")
1945 (synopsis "Python clipboard module")
1946 (description
1947 "Pyperclip is a clipboard module for Python, handling copy/pasting from
1948 the X11 clipboard")
1949 (license license:bsd-3)))
1950
1951 (define-public numlockx
1952 (package
1953 (name "numlockx")
1954 (version "1.2")
1955 (source (origin
1956 (method git-fetch)
1957 (uri (git-reference
1958 ;; It seems that upstream is gone.
1959 (url "https://github.com/rg3/numlockx")
1960 (commit version)))
1961 (file-name (git-file-name name version))
1962 (sha256
1963 (base32
1964 "1w49fayhwzn5rx0z1q2lrvm7z8jrd34lgb89p853a024bixc3cf2"))))
1965 (build-system gnu-build-system)
1966 (inputs
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)))
1974
1975 (define-public xrandr-invert-colors
1976 (package
1977 (name "xrandr-invert-colors")
1978 (version "0.01")
1979 (source (origin
1980 (method git-fetch)
1981 (uri (git-reference
1982 (url "https://github.com/zoltanp/xrandr-invert-colors")
1983 (commit (string-append "v" version))))
1984 (file-name (git-file-name name version))
1985 (sha256
1986 (base32
1987 "1br3x9vr6xm4ika06n8cfxx1b3wdchdqvyzjl4y1chmivrml8x9h"))))
1988 (build-system gnu-build-system)
1989 (arguments
1990 `(#:make-flags (list "CC=gcc")
1991 #:tests? #f ; there are none
1992 #:phases
1993 (modify-phases %standard-phases
1994 (delete 'configure)
1995 (replace 'install
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)
2000 #t))))))
2001 (inputs
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+)))
2008
2009 (define-public sct
2010 (package
2011 (name "sct")
2012 (version "0.5")
2013 (source
2014 (origin
2015 (method url-fetch)
2016 (uri
2017 (string-append "https://www.umaxx.net/dl/sct-"
2018 version ".tar.gz"))
2019 (sha256
2020 (base32 "0lrhx771iccbw04wrhj0ygids1pzmjfc4hvklm30m3p3flvhqf0m"))))
2021 (build-system gnu-build-system)
2022 (arguments
2023 `(#:make-flags
2024 (list ,(string-append "CC=" (cc-for-target)))
2025 #:tests? #f ; no test suite
2026 #:phases
2027 (modify-phases %standard-phases
2028 (delete 'configure)
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"))))))
2042 (replace 'install
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"))
2051 #t))))))
2052 (inputs
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
2062
2063 (define-public xsecurelock
2064 (package
2065 (name "xsecurelock")
2066 (version "1.6.0")
2067 (source (origin
2068 (method url-fetch)
2069 (uri (string-append
2070 "https://github.com/google/xsecurelock/releases"
2071 "/download/v" version "/xsecurelock-" version ".tar.gz"))
2072 (sha256
2073 (base32 "070gknyv0s5hz9hkc6v73m2v7ssyjwgl93b5hd4glayfqxqjbmdp"))))
2074 (build-system gnu-build-system)
2075 (arguments
2076 '(#:configure-flags
2077 '("--with-pam-service-name=login"
2078 "--with-xkb"
2079 "--with-default-authproto-module=/run/setuid-programs/authproto_pam")))
2080 (native-inputs
2081 `(("pandoc" ,pandoc)
2082 ("pkg-config" ,pkg-config)))
2083 (inputs
2084 `(("fontconfig" ,fontconfig)
2085 ("libX11" ,libx11)
2086 ("libxcomposite" ,libxcomposite)
2087 ("libxext" ,libxext)
2088 ("libxfixes" ,libxfixes)
2089 ("libxft" ,libxft)
2090 ("libxmu" ,libxmu)
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.
2098
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:
2102 @example
2103 (setuid-programs (cons*
2104 (file-append xsecurelock \"/libexec/xsecurelock/authproto_pam\")
2105 %setuid-programs))
2106 @end example")
2107 (license license:asl2.0)))
2108
2109 (define-public wl-clipboard
2110 (package
2111 (name "wl-clipboard")
2112 (version "2.0.0")
2113 (source
2114 (origin
2115 (method git-fetch)
2116 (uri (git-reference
2117 (url "https://github.com/bugaevc/wl-clipboard")
2118 (commit (string-append "v" version))))
2119 (file-name (git-file-name name version))
2120 (sha256
2121 (base32 "0c4w87ipsw09aii34szj9p0xfy0m00wyjpll0gb0aqmwa60p0c5d"))))
2122 (build-system meson-build-system)
2123 (native-inputs
2124 `(("pkg-config" ,pkg-config)))
2125 (inputs
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
2131 Wayland.")
2132 (license license:gpl3+)))
2133
2134 (define-public autocutsel
2135 (package
2136 (name "autocutsel")
2137 (version "0.10.0")
2138 (source (origin
2139 (method url-fetch)
2140 (uri (string-append "https://github.com/sigmike/autocutsel"
2141 "/releases/download/" version "/"
2142 "autocutsel-" version ".tar.gz"))
2143 (sha256
2144 (base32
2145 "0gsys2dzh4az51ndcsabhlbbrjn2nm75lnjr45kg6r8sm8q66dx2"))))
2146 (build-system gnu-build-system)
2147 (arguments
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+)))
2158
2159 (define-public jgmenu
2160 (package
2161 (name "jgmenu")
2162 (version "4.1.0")
2163 (source
2164 (origin
2165 (method git-fetch)
2166 (uri (git-reference
2167 (url "https://github.com/johanmalm/jgmenu")
2168 (commit (string-append "v" version))))
2169 (file-name (git-file-name name version))
2170 (sha256
2171 (base32
2172 "1wsh37rapb1bszlq36hvwxqvfds39hbvbl152m8as4zlh93wfvvk"))))
2173 (build-system gnu-build-system)
2174 (native-inputs
2175 `(("cppcheck" ,cppcheck)
2176 ("perl" ,perl)
2177 ("pkg-config" ,pkg-config)))
2178 (inputs
2179 `(("cairo" ,cairo)
2180 ("glib" ,glib)
2181 ("librsvg" ,librsvg)
2182 ("libx11" ,libx11)
2183 ("libxml2" ,libxml2)
2184 ("libxrandr" ,libxrandr)
2185 ("pango" ,pango)))
2186 (arguments
2187 `(#:phases
2188 (modify-phases %standard-phases
2189 (add-after 'unpack 'fix-tests
2190 (lambda _
2191 (substitute* "scripts/cppcheck-wrapper.sh"
2192 (("--library=/usr/share/cppcheck/cfg/gnu\\.cfg")
2193 ""))
2194 #t))
2195 (replace 'configure
2196 (lambda* (#:key outputs #:allow-other-keys)
2197 (setenv "CC" "gcc")
2198 (invoke "./configure"
2199 (string-append "--prefix=" (assoc-ref outputs "out")))
2200 #t)))))
2201 (synopsis "Simple X11 menu")
2202 (description
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)))
2207
2208 (define-public xwallpaper
2209 (package
2210 (name "xwallpaper")
2211 (version "0.6.5")
2212 (source
2213 (origin
2214 (method git-fetch)
2215 (uri (git-reference
2216 (url "https://github.com/stoeckmann/xwallpaper")
2217 (commit (string-append "v" version))))
2218 (file-name (git-file-name name version))
2219 (sha256
2220 (base32 "121ai4dc0v65qk12gn9w62ixly8hc8a5qrygkbb82vy8ck4jqxj7"))))
2221 (build-system gnu-build-system)
2222 (native-inputs
2223 `(("autoconf" ,autoconf)
2224 ("automake" ,automake)
2225 ("pkg-config" ,pkg-config)))
2226 (inputs
2227 `(("libjpeg-turbo" ,libjpeg-turbo)
2228 ("libpng" ,libpng)
2229 ("libxpm" ,libxpm)
2230 ("pixman" ,pixman)
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")
2235 (description
2236 "The xwallpaper utility allows you to set image files as your X
2237 wallpaper. JPEG, PNG, and XPM file formats are supported.
2238
2239 The wallpaper is also advertised to programs which support semi-transparent
2240 backgrounds.")
2241 (license license:isc)))
2242
2243 (define-public xwrits
2244 (package
2245 (name "xwrits")
2246 (version "2.26")
2247 (source
2248 (origin
2249 (method url-fetch)
2250 (uri (string-append "https://www.lcdf.org/~eddietwo/xwrits/"
2251 "xwrits-" version ".tar.gz"))
2252 (sha256
2253 (base32 "1n7y0fqpcvmzznvbsn14hzy5ddaa3lilm8aw6ckscqndnh4lijma"))))
2254 (build-system gnu-build-system)
2255 (arguments
2256 `(#:phases
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)
2264 #t))))))
2265 (inputs
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)))
2277
2278 (define-public xsettingsd
2279 (package
2280 (name "xsettingsd")
2281 (version "1.0.2")
2282 (source
2283 (origin
2284 (method git-fetch)
2285 (uri (git-reference
2286 (url "https://github.com/derat/xsettingsd")
2287 (commit (string-append "v" version))))
2288 (file-name (git-file-name name version))
2289 (sha256
2290 (base32 "14gnkz18dipsa2v24f4nm9syxaa7g21iqjm7y65jn849ka2jr1h8"))))
2291 (build-system scons-build-system)
2292 (inputs
2293 `(("libx11" ,libx11)))
2294 (native-inputs
2295 `(("pkg-config" ,pkg-config)
2296 ("googletest" ,googletest)
2297 ("googletest-source" ,(package-source googletest))))
2298 (arguments
2299 `(#:scons ,scons-python2
2300 #:scons-flags
2301 (list "CC=gcc")
2302 #:phases
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\\(")
2310 "env = Environment(
2311 ENV = {
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']
2316 },")
2317 ;; Update path to gtest source files used in tests
2318 (("/usr/src/gtest") (string-append
2319 (assoc-ref inputs "googletest-source")
2320 "/googletest"))
2321 ;; Exclude one warning that causes a build error
2322 (("-Werror") "-Werror -Wno-error=sign-compare"))
2323 #t))
2324 ;; The SConstruct script doesn't configure installation so
2325 ;; binaries must be copied to the output path directly
2326 (replace 'install
2327 (lambda* (#:key outputs #:allow-other-keys)
2328 (let* ((out (assoc-ref outputs "out"))
2329 (bin (string-append out "/bin")))
2330 (mkdir-p bin)
2331 (install-file "xsettingsd" bin)
2332 (install-file "dump_xsettings" bin)
2333 #t))))))
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)))
2342
2343 (define-public clipnotify
2344 (package
2345 (name "clipnotify")
2346 (version "1.0.2")
2347 (source
2348 (origin
2349 (method git-fetch)
2350 (uri (git-reference
2351 (url "https://github.com/cdown/clipnotify")
2352 (commit version)))
2353 (file-name (git-file-name name version))
2354 (sha256
2355 (base32
2356 "1v3ydm5ljy8z1savmdxrjyx7a5bm5013rzw80frp3qbbjaci0wbg"))))
2357 (build-system gnu-build-system)
2358 (arguments
2359 `(#:phases
2360 (modify-phases %standard-phases
2361 (delete 'configure)
2362 (replace 'install
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)
2369 #t))))
2370 #:make-flags
2371 (list ,(string-append "CC=" (cc-for-target)))
2372 #:tests? #f)) ; no test suite
2373 (inputs
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
2380 exits.
2381
2382 It was primarily designed for clipmenu, to avoid polling for new selections.
2383
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)))
2390
2391 (define-public clipmenu
2392 (let ((commit "bcbe7b144598db4a103f14e8408c4b7327d6d5e1")
2393 (revision "1"))
2394 (package
2395 (name "clipmenu")
2396 (version (string-append "6.0.1-"
2397 revision "." (string-take commit 7)))
2398 (source
2399 (origin
2400 (method git-fetch)
2401 (uri (git-reference
2402 (url "https://github.com/cdown/clipmenu")
2403 (commit commit)))
2404 (file-name (git-file-name name version))
2405 (sha256
2406 (base32
2407 "0053j4i14lz5m2bzc5sch5id5ilr1bl196mp8fp0q8x74w3vavs9"))))
2408 (build-system gnu-build-system)
2409 (arguments
2410 `(#:phases
2411 (modify-phases %standard-phases
2412 (delete 'configure)
2413 (delete 'build)
2414 (replace 'install
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)
2424 #t)))
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")))
2434 (for-each
2435 (lambda (prog)
2436 (wrap-script (string-append out "/bin/" prog)
2437 `("PATH" ":" prefix
2438 ,(map (lambda (dir)
2439 (string-append dir "/bin"))
2440 (list clipnotify coreutils-minimal
2441 gawk util-linux xdotool xsel)))))
2442 '("clipmenu" "clipmenud" "clipdel")))
2443 #t))
2444 (replace 'check
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")
2452 #t)))))
2453 (inputs
2454 `(("clipnotify" ,clipnotify)
2455 ("coreutils-minimal" ,coreutils-minimal)
2456 ("gawk" ,gawk)
2457 ("guile" ,guile-3.0) ; for wrap-script
2458 ("util-linux" ,util-linux)
2459 ("xdotool" ,xdotool)
2460 ("xsel" ,xsel)))
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.
2465
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))))
2472
2473 (define-public kbdd
2474 (package
2475 (name "kbdd")
2476 (version "0.7.1")
2477 (source
2478 (origin
2479 (method git-fetch)
2480 (uri (git-reference
2481 (url "https://github.com/qnikst/kbdd")
2482 (commit (string-append "v" version))))
2483 (file-name (git-file-name name version))
2484 (sha256
2485 (base32
2486 "0qkq75grbd4wkx4nlvswgavpijk9ad0pzqyj89a0ayjsbsn36pqy"))))
2487 (build-system gnu-build-system)
2488 (native-inputs
2489 `(("autoconf" ,autoconf)
2490 ("automake" ,automake)
2491 ("glib" ,glib "bin")
2492 ("pkg-config" ,pkg-config)))
2493 (inputs
2494 `(("dbus-glib" ,dbus-glib)
2495 ("glib" ,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).
2505
2506 @command{kbdd} also supports D-Bus signals, which makes it possible to
2507 create layout indicator widgets.")
2508 (license license:bsd-2)))
2509
2510 (define-public j4-dmenu-desktop
2511 (package
2512 (name "j4-dmenu-desktop")
2513 (version "2.18")
2514 (source (origin
2515 (method git-fetch)
2516 (uri (git-reference
2517 (url "https://github.com/enkore/j4-dmenu-desktop")
2518 (commit (string-append "r" version))))
2519 (file-name (git-file-name name version))
2520 (sha256
2521 (base32
2522 "1gxpgifzy0hnpd0ymw3r32amzr32z3bgb90ldjzl438p6h1q0i26"))))
2523 (build-system cmake-build-system)
2524 (native-inputs
2525 `(("catch2" ,catch-framework2)))
2526 (arguments
2527 `(#:configure-flags '("-DWITH_GIT_CATCH=off")
2528 #:phases
2529 (modify-phases %standard-phases
2530 (add-after 'unpack 'find-catch
2531 (lambda _
2532 (substitute* "CMakeLists.txt"
2533 (("PATH_SUFFIXES catch") "PATH_SUFFIXES catch2"))
2534 #t))
2535 (replace 'check
2536 (lambda _
2537 (invoke "./j4-dmenu-tests" "exclude:SearchPath/XDG_DATA_HOME"))))))
2538 (synopsis "Fast desktop menu")
2539 (description
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+)))
2545
2546 (define-public wofi
2547 (package
2548 (name "wofi")
2549 (version "1.2.3")
2550 (source (origin
2551 (method hg-fetch)
2552 (uri (hg-reference
2553 (url "https://hg.sr.ht/~scoopta/wofi")
2554 (changeset (string-append "v" version))))
2555 (file-name (git-file-name name version))
2556 (sha256
2557 (base32
2558 "0glpb2gf5n78s01z3rn614ak8ibxhfr824gy6xlljbxclgds264i"))))
2559 (build-system meson-build-system)
2560 (arguments
2561 `(#:glib-or-gtk? #t))
2562 (native-inputs
2563 `(("pkg-config" ,pkg-config)))
2564 (inputs
2565 `(("gtk3" ,gtk+)
2566 ("wayland" ,wayland)))
2567 (synopsis "Launcher/menu program for wayland")
2568 (description
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+)))
2573
2574 (define-public dex
2575 (package
2576 (name "dex")
2577 (version "0.9.0")
2578 (source (origin
2579 (method git-fetch)
2580 (uri (git-reference
2581 (url (string-append "https://github.com/jceb/dex"))
2582 (commit (string-append "v" version))))
2583 (sha256
2584 (base32
2585 "03aapcywnz4kl548cygpi25m8adwbmqlmwgxa66v4156ax9dqs86"))
2586 (file-name (git-file-name name version))))
2587 (build-system gnu-build-system)
2588 (arguments
2589 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2590 #:phases
2591 (modify-phases %standard-phases
2592 (delete 'configure))
2593 #:tests? #f))
2594 (inputs
2595 `(("python", python)))
2596 (native-inputs
2597 `(("python-sphinx" ,python-sphinx)))
2598 (home-page "https://github.com/jceb/dex")
2599 (synopsis "Execute DesktopEntry files")
2600 (description
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+)))
2604
2605 (define-public sx
2606 (package
2607 (name "sx")
2608 (version "2.1.6")
2609 (source (origin
2610 (method git-fetch)
2611 (uri (git-reference
2612 (url "https://github.com/Earnestly/sx")
2613 (commit version)))
2614 (file-name (git-file-name name version))
2615 (sha256
2616 (base32
2617 "0p24ghp1ygvyc2hv81byhxax7491yhcc5priq5ldv07nzl7akagc"))))
2618 (build-system gnu-build-system)
2619 (arguments
2620 '(#:tests? #f ; no tests
2621 #:make-flags
2622 (let ((out (assoc-ref %outputs "out")))
2623 (list (string-append "PREFIX=" out)))
2624 #:phases
2625 (modify-phases %standard-phases
2626 ;; no configure script
2627 (delete 'configure))))
2628 (propagated-inputs
2629 `(("xauth" ,xauth)))
2630 (home-page "https://github.com/Earnestly/sx")
2631 (synopsis "Start an xorg server")
2632 (description
2633 "@command{sx} is a simple alternative to both @command{xinit} and
2634 @command{startx} for starting an Xorg server.")
2635 (license license:x11)))
2636
2637 (define-public hsetroot
2638 (package
2639 (name "hsetroot")
2640 (version "1.0.5")
2641 (home-page "https://github.com/himdel/hsetroot")
2642 (source (origin
2643 (method git-fetch)
2644 (file-name (git-file-name name version))
2645 (uri (git-reference
2646 (url home-page)
2647 (commit version)))
2648 (sha256
2649 (base32
2650 "1jbk5hlxm48zmjzkaq5946s58rqwg1v1ds2sdyd2ba029hmvr722"))))
2651 (build-system gnu-build-system)
2652 (arguments
2653 `(#:tests? #f
2654 #:make-flags
2655 (list
2656 "CC=gcc"
2657 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2658 #:phases
2659 (modify-phases %standard-phases
2660 (delete 'configure)
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"))))))))
2665 (inputs
2666 `(("libx11" ,libx11)
2667 ("imlib2" ,imlib2)
2668 ("libxinerama" ,libxinerama)))
2669 (native-inputs
2670 `(("pkg-config" ,pkg-config)))
2671 (synopsis "Imlib2-based wallpaper changer")
2672 (description
2673 "The @command{hsetroot} command composes wallpapers for X.
2674 This package is the fork of hsetroot by Hyriand.")
2675 (license license:gpl2+)))