gnu: xsettingsd: Update to 1.0.2.
[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 licenses) #:prefix license:)
64 #:use-module (guix packages)
65 #:use-module (guix download)
66 #:use-module (guix git-download)
67 #:use-module (guix hg-download)
68 #:use-module (guix utils)
69 #:use-module (guix build-system cmake)
70 #:use-module (guix build-system gnu)
71 #:use-module (guix build-system glib-or-gtk)
72 #:use-module (guix build-system meson)
73 #:use-module (guix build-system python)
74 #:use-module (guix build-system scons)
75 #:use-module (gnu packages)
76 #:use-module (gnu packages documentation)
77 #:use-module (gnu packages admin)
78 #:use-module (gnu packages base)
79 #:use-module (gnu packages algebra)
80 #:use-module (gnu packages autotools)
81 #:use-module (gnu packages check)
82 #:use-module (gnu packages compression)
83 #:use-module (gnu packages image)
84 #:use-module (gnu packages pkg-config)
85 #:use-module (gnu packages flex)
86 #:use-module (gnu packages freedesktop)
87 #:use-module (gnu packages gawk)
88 #:use-module (gnu packages gettext)
89 #:use-module (gnu packages gl)
90 #:use-module (gnu packages glib)
91 #:use-module (gnu packages gnome)
92 #:use-module (gnu packages haskell-xyz)
93 #:use-module (gnu packages icu4c)
94 #:use-module (gnu packages man)
95 #:use-module (gnu packages maths)
96 #:use-module (gnu packages m4)
97 #:use-module (gnu packages ncurses)
98 #:use-module (gnu packages perl)
99 #:use-module (gnu packages python)
100 #:use-module (gnu packages python-xyz)
101 #:use-module (gnu packages linux)
102 #:use-module (gnu packages gl)
103 #:use-module (gnu packages guile)
104 #:use-module (gnu packages xml)
105 #:use-module (gnu packages gtk)
106 #:use-module (gnu packages qt)
107 #:use-module (gnu packages xorg)
108 #:use-module (gnu packages fontutils)
109 #:use-module (gnu packages bison)
110 #:use-module (gnu packages sphinx)
111 #:use-module (ice-9 match))
112
113 ;; packages outside the x.org system proper
114
115 (define-public xtitle
116 (package
117 (name "xtitle")
118 (version "0.4.4")
119 (source
120 (origin
121 (method git-fetch)
122 (uri (git-reference
123 (url "https://github.com/baskerville/xtitle")
124 (commit version)))
125 (file-name (git-file-name name version))
126 (sha256
127 (base32 "0f5070k2bwarghl1vq886pl52xck1x5p7x3qhlfchsc2y3dcqms9"))))
128 (build-system gnu-build-system)
129 (inputs
130 `(("libxcb" ,libxcb)
131 ("xcb-util" ,xcb-util)
132 ("xcb-util-wm" ,xcb-util-wm)))
133 (arguments
134 `(#:tests? #f ;no test suite
135 #:make-flags (list (string-append "CC=" ,(cc-for-target))
136 (string-append "PREFIX=" %output))
137 #:phases (modify-phases %standard-phases (delete 'configure))))
138 (home-page "https://github.com/baskerville/xtitle")
139 (synopsis "Output X window titles")
140 (description
141 "If arguments are given, @code{xtitle} outputs the title of each
142 specified window, otherwise it outputs the title of the active window. With
143 @emph{snoop} mode on, it continuously monitors the specified windows and
144 outputs when titles change.")
145 (license license:unlicense)))
146
147 (define-public arandr
148 (package
149 (name "arandr")
150 (version "0.1.10")
151 (source (origin
152 (method url-fetch)
153 (uri (string-append "https://christian.amsuess.com/tools/arandr"
154 "/files/arandr-" version ".tar.gz"))
155 (sha256
156 (base32
157 "135q0llvm077jil2fr92ssw3p095m4r8jfj0lc5rr3m71n4srj6v"))
158 (modules '((guix build utils)))
159 (snippet
160 '(begin
161 ;; Do not record a timestamp and file name in gzipped man
162 ;; pages (this is equivalent to 'gzip --no-name'.)
163 (substitute* "setup.py"
164 (("gzip\\.open\\(gzfile, 'w', 9\\)")
165 "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)"))
166 #t))))
167 (build-system python-build-system)
168 (arguments
169 `(#:phases
170 (modify-phases %standard-phases
171 (add-before 'build 'configure
172 (lambda* (#:key inputs #:allow-other-keys)
173 (substitute* "screenlayout/xrandr.py"
174 (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr")
175 "/bin/xrandr\"")))
176 #t))
177 (add-after 'install 'wrap-gi-typelib
178 (lambda* (#:key inputs outputs #:allow-other-keys)
179 (let ((out (assoc-ref outputs "out"))
180 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
181 (wrap-program (string-append out "/bin/arandr")
182 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
183 #t)))
184 #:tests? #f)) ;no tests
185 (inputs `(("gtk+" ,gtk+)
186 ("pycairo" ,python-pycairo)
187 ("pygobject" ,python-pygobject)
188 ("xrandr" ,xrandr)))
189 (native-inputs `(("gettext" ,gettext-minimal)
190 ("python-docutils" ,python-docutils)))
191 (home-page "https://christian.amsuess.com/tools/arandr/")
192 (synopsis "Another RandR graphical user interface")
193 ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated.
194 (description "ARandR is designed to provide a simple visual front end for
195 the X11 resize-and-rotate (RandR) extension. Relative monitor positions are
196 shown graphically and can be changed in a drag-and-drop way. Configurations
197 are saved as executable shell scripts which can be loaded without using this
198 program.")
199 (license license:gpl3+)))
200
201 (define-public autorandr
202 (package
203 (name "autorandr")
204 (version "1.10.1")
205 (home-page "https://github.com/phillipberndt/autorandr")
206 (source
207 (origin
208 (method git-fetch)
209 (uri (git-reference
210 (url home-page)
211 (commit version)))
212 (file-name (git-file-name name version))
213 (sha256
214 (base32 "0msw9b1hdy3gbq9w5d04mfizhyirz1c648x84mlcbzl8salm7vpg"))))
215 (build-system python-build-system)
216 (native-inputs
217 `(("pkg-config" ,pkg-config)))
218 (inputs
219 `(("xrandr" ,xrandr)
220 ("libxcb" ,libxcb)))
221 (arguments
222 `(#:phases
223 (modify-phases %standard-phases
224 (add-before 'build 'configure
225 (lambda* (#:key inputs outputs #:allow-other-keys)
226 (let ((xrandr (string-append (assoc-ref inputs "xrandr")
227 "/bin/xrandr")))
228 (substitute* "contrib/etc/xdg/autostart/autorandr.desktop"
229 (("/usr") (assoc-ref outputs "out")))
230 (substitute* "autorandr.py"
231 (("popen\\(\"xrandr") (string-append "popen(\"" xrandr))
232 (("\\[\"xrandr") (string-append "[\"" xrandr)))
233 (substitute* "contrib/autorandr_launcher/autorandr_launcher.c"
234 (("/usr/bin/autorandr")
235 (string-append (assoc-ref outputs "out") "/bin/autorandr")))
236 (setenv "CC" "gcc"))
237 #t))
238 (add-after 'install 'install-contrib
239 (lambda* (#:key outputs #:allow-other-keys)
240 (invoke "make"
241 (string-append "DESTDIR=" (assoc-ref outputs "out"))
242 "PREFIX="
243 "BASH_COMPLETIONS_DIR=etc/bash_completion.d"
244 "install"
245 "TARGETS=autorandr launcher manpage bash_completion"))))))
246 (synopsis "Auto-detect connected displays and load appropriate setup")
247 (description "Autorandr wraps around xrandr to help with X11
248 multi-screen configuration management. It allows the user to create profiles
249 for various multi-screen setups. Autorandr automatically detects the profiles
250 that can be activated based on the connected hardware. Hook scripts can be
251 used to further tweak the behaviour of the different profiles.")
252 (license license:gpl3+)))
253
254 (define-public bemenu
255 (package
256 (name "bemenu")
257 (version "0.4.1")
258 (source
259 (origin
260 (method git-fetch)
261 (uri (git-reference
262 (url "https://github.com/Cloudef/bemenu")
263 (commit version)))
264 (file-name (git-file-name name version))
265 (sha256
266 (base32 "1fjcs9d3533ay3nz79cx3c0lmy2chgragr2lhsy0xl2ckr0iins0"))))
267 (build-system gnu-build-system)
268 (arguments
269 '(#:tests? #f
270 #:make-flags (list "CC=gcc"
271 "CFLAGS=-O2 -fPIC"
272 (string-append "LDFLAGS=-Wl,-rpath="
273 (assoc-ref %outputs "out") "/lib")
274 (string-append "PREFIX=" (assoc-ref %outputs "out")))
275 #:phases
276 (modify-phases %standard-phases
277 (delete 'configure))))
278 (inputs
279 `(("cairo" ,cairo)
280 ("libx11" ,libx11)
281 ("libxkbcomon" ,libxkbcommon)
282 ("libxinerama" ,libxinerama)
283 ("ncurses" ,ncurses)
284 ("pango" ,pango)
285 ("wayland" ,wayland)
286 ("wayland-protocols" ,wayland-protocols)))
287 (native-inputs
288 `(("doxygen" ,doxygen)
289 ("pkg-config" ,pkg-config)))
290 (home-page "https://github.com/Cloudef/bemenu")
291 (synopsis "Dynamic menu library and client program inspired by dmenu")
292 (description
293 "bemenu is a dynamic menu which allows the user to flexibly select from a
294 list of options (usually programs to launch). It renders the menu graphically
295 with X11 or Wayland, or in a text terminal with ncurses.")
296 (license (list license:gpl3+ ; client program[s] and other sources
297 license:lgpl3+)))) ; library and bindings
298
299 (define-public copyq
300 (package
301 (name "copyq")
302 (version "3.9.3")
303 (source (origin
304 (method git-fetch)
305 (uri (git-reference
306 (url "https://github.com/hluk/CopyQ")
307 (commit (string-append "v" version))))
308 (file-name (git-file-name name version))
309 (sha256
310 (base32
311 "0wlwq9xg8rzsbj0b29z358k4mbrqy04iraa8x0p26pa95yskgcma"))))
312 (build-system cmake-build-system)
313 (arguments
314 `(#:configure-flags '("-DCMAKE_BUILD_TYPE=Release")
315 #:tests? #f)) ; Test suite is a rather manual process.
316 (inputs
317 `(("qtbase" ,qtbase)
318 ("qtscript" ,qtscript)
319 ("qtsvg" ,qtsvg)
320 ("qtx11extras" ,qtx11extras)))
321 (synopsis "Clipboard manager with advanced features")
322 (description "CopyQ is clipboard manager with editing and scripting
323 features. CopyQ monitors system clipboard and saves its content in customized
324 tabs. Saved clipboard can be later copied and pasted directly into any
325 application.")
326 (home-page "https://hluk.github.io/CopyQ/")
327 (license license:gpl3+)))
328
329 (define-public xclip
330 (package
331 (name "xclip")
332 (version "0.13")
333 (source
334 (origin
335 (method git-fetch)
336 (uri (git-reference
337 (url "https://github.com/astrand/xclip")
338 (commit version)))
339 (file-name (git-file-name name version))
340 (sha256
341 (base32
342 "0q0hmvcjlv8arhh1pzhja2wglyj6n7z209jnpnzd281kqqv4czcs"))))
343 (build-system gnu-build-system)
344 (arguments
345 '(#:tests? #f)) ;there is no test suite
346 (native-inputs
347 `(("autoconf" ,autoconf)
348 ("automake" ,automake)))
349 (inputs `(("libxmu" ,libxmu)
350 ("libxt" ,libxt)))
351 (home-page "https://github.com/astrand/xclip")
352 (synopsis "Command line interface to X11 clipboard")
353 (description "Xclip is a command line interface to the X11 clipboard. It
354 can also be used for copying files, as an alternative to sftp/scp, thus
355 avoiding password prompts when X11 forwarding has already been setup.")
356 (license license:gpl2+)))
357
358 (define-public libxkbcommon
359 (package
360 (name "libxkbcommon")
361 (version "1.0.1")
362 (source (origin
363 (method url-fetch)
364 (uri (string-append "https://xkbcommon.org/download/libxkbcommon-"
365 version ".tar.xz"))
366 (sha256
367 (base32
368 "13bcdf2xpjxwbghas0cr448z89qqki2ssgfgswc257y9859v4s5b"))))
369 (build-system meson-build-system)
370 (inputs
371 `(("libx11" ,libx11)
372 ("libxcb" ,libxcb)
373 ("libxml2" ,libxml2)
374 ("wayland" ,wayland)
375 ("wayland-protocols" ,wayland-protocols)
376 ("xkeyboard-config" ,xkeyboard-config)))
377 (native-inputs
378 `(("bison" ,bison)
379 ("doxygen" ,doxygen)
380 ("pkg-config" ,pkg-config)))
381 (arguments
382 `(#:configure-flags
383 (list (string-append "-Dxkb-config-root="
384 (assoc-ref %build-inputs "xkeyboard-config")
385 "/share/X11/xkb")
386 (string-append "-Dx-locale-root="
387 (assoc-ref %build-inputs "libx11")
388 "/share/X11/locale"))))
389 (home-page "https://xkbcommon.org/")
390 (synopsis "Library to handle keyboard descriptions")
391 (description "Xkbcommon is a library to handle keyboard descriptions,
392 including loading them from disk, parsing them and handling their
393 state. It is mainly meant for client toolkits, window systems, and other
394 system applications; currently that includes Wayland, kmscon, GTK+, Qt,
395 Clutter, and more. Despite the name, it is not currently used by anything
396 X11 (yet).")
397 (license (license:x11-style "file://COPYING"
398 "See 'COPYING' in the distribution."))
399 (properties '((cpe-name . "xkbcommon")))))
400
401 (define-public libfakekey
402 (package
403 (name "libfakekey")
404 (version "0.3")
405 (source
406 (origin
407 (method git-fetch)
408 (uri (git-reference
409 (url "https://git.yoctoproject.org/git/libfakekey")
410 (commit version)))
411 (file-name (git-file-name name version))
412 (sha256
413 (base32 "1jw1d4wc1ysiijirc7apnz3sryrxbl9akgb92mh06dvfkz2nblj0"))))
414 (build-system gnu-build-system)
415 (arguments
416 `(#:make-flags (list "AM_LDFLAGS=-lX11")
417 #:phases
418 (modify-phases %standard-phases
419 (replace 'bootstrap
420 ;; ./autogen.sh calls ./configure before shebangs have been patched.
421 (lambda _
422 (invoke "autoreconf" "-vfi"))))))
423 (native-inputs
424 `(("pkg-config" ,pkg-config)
425
426 ;; For bootstrapping from git.
427 ("autoconf" ,autoconf)
428 ("automake" ,automake)
429 ("libtool" ,libtool)))
430 (inputs
431 `(("libxtst" ,libxtst)
432 ("libx11" ,libx11)))
433 (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox")
434 (synopsis "X virtual keyboard library")
435 (description
436 "Libfakekey is a virtual keyboard library for X.")
437 (license license:gpl2)))
438
439 (define-public xdotool
440 (package
441 (name "xdotool")
442 (version "3.20160805.1")
443 (source
444 (origin
445 (method url-fetch)
446 (uri (string-append
447 "https://github.com/jordansissel/xdotool/releases/download/v"
448 version "/xdotool-" version ".tar.gz"))
449 (sha256
450 (base32
451 "1a6c1zr86zb53352yxv104l76l8x21gfl2bgw6h21iphxpv5zgim"))))
452 (build-system gnu-build-system)
453 (arguments
454 '(#:tests? #f ; Test suite requires a lot of black magic
455 #:phases
456 (modify-phases %standard-phases
457 (replace 'configure
458 (lambda* (#:key outputs #:allow-other-keys #:rest args)
459 (let ((out (assoc-ref outputs "out")))
460 (mkdir-p (string-append out "/lib"))
461 (setenv "PREFIX" out)
462 (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib"))
463 (setenv "CC" "gcc")
464 #t))))))
465 (native-inputs `(("perl" ,perl))) ; for pod2man
466 (inputs `(("libx11" ,libx11)
467 ("libxext" ,libxext)
468 ("libxi" ,libxi)
469 ("libxinerama" ,libxinerama)
470 ("libxtst" ,libxtst)
471 ("libxkbcommon" ,libxkbcommon)))
472 (home-page "https://www.semicomplete.com/projects/xdotool/")
473 (synopsis "Fake keyboard/mouse input, window management, and more")
474 (description "Xdotool lets you simulate keyboard input and mouse activity,
475 move and resize windows, etc. It does this using X11's XTEST extension and
476 other Xlib functions. Additionally, you can search for windows and move,
477 resize, hide, and modify window properties like the title. If your window
478 manager supports it, you can use xdotool to switch desktops, move windows
479 between desktops, and change the number of desktops.")
480 (license license:bsd-3)))
481
482 (define-public xeyes
483 (package
484 (name "xeyes")
485 (version "1.1.2")
486 (source
487 (origin
488 (method url-fetch)
489 (uri (string-append "https://www.x.org/releases/individual/app/"
490 name "-" version ".tar.bz2"))
491 (sha256
492 (base32 "0lq5j7fryx1wn998jq6h3icz1h6pqrsbs3adskjzjyhn5l6yrg2p"))))
493 (build-system gnu-build-system)
494 (inputs
495 `(("libxext" ,libxext)
496 ("libxmu" ,libxmu)
497 ("libxrender" ,libxrender)
498 ("libxt" ,libxt)))
499 (native-inputs
500 `(("pkg-config" ,pkg-config)))
501 (home-page "https://www.x.org/") ; no dedicated Xeyes page exists
502 (synopsis "Follow-the-mouse X demo")
503 (description "Xeyes is a demo program for x.org. It shows eyes
504 following the mouse.")
505 (license license:x11)))
506
507
508 (define-public pixman
509 (package
510 (name "pixman")
511 (version "0.38.4")
512 (source
513 (origin
514 (method url-fetch)
515 (uri
516 (string-append
517 "https://www.cairographics.org/releases/pixman-"
518 version ".tar.gz"))
519 (sha256
520 (base32 "1ryxzdf048x7wsx4dlvrr1p00gzwfs7lybnhgc7ygbj0dvyxcrns"))
521 (patches
522 (search-patches
523 "pixman-CVE-2016-5296.patch"))))
524 (build-system gnu-build-system)
525 (arguments
526 '(#:configure-flags '("--disable-static")))
527 (native-inputs
528 `(("pkg-config" ,pkg-config)))
529 (inputs
530 `(("libpng" ,libpng)
531 ("zlib" ,zlib)))
532 (synopsis "Low-level pixel manipulation library")
533 (description "Pixman is a low-level software library for pixel
534 manipulation, providing features such as image compositing and trapezoid
535 rasterisation.")
536 (home-page "http://www.pixman.org/")
537 (license license:x11)))
538
539 (define-public libdrm
540 (package
541 (name "libdrm")
542 (version "2.4.102")
543 (source (origin
544 (method url-fetch)
545 (uri (string-append
546 "https://dri.freedesktop.org/libdrm/libdrm-"
547 version ".tar.xz"))
548 (sha256
549 (base32
550 "0nx0bd9dhymdsd99v4ifib77yjirkvkxf5hzdkbr7qr8dhrzkjwb"))))
551 (build-system meson-build-system)
552 (arguments
553 `(#:configure-flags
554 '(,@(match (%current-system)
555 ((or "armhf-linux" "aarch64-linux")
556 '("-Dexynos=true"
557 "-Domap=true"
558 "-Detnaviv=true"
559 "-Dtegra=true"
560 "-Dfreedreno-kgsl=true"))
561 (_ '())))
562
563 #:phases (modify-phases %standard-phases
564 (replace 'check
565 (lambda _
566 (invoke "meson" "test" "--timeout-multiplier" "5"))))))
567 (inputs
568 `(("libpciaccess" ,libpciaccess)))
569 (native-inputs
570 `(("pkg-config" ,pkg-config)))
571 (home-page "https://dri.freedesktop.org/wiki/")
572 (synopsis "Direct rendering userspace library")
573 (description "The Direct Rendering Infrastructure, also known as the DRI,
574 is a framework for allowing direct access to graphics hardware under the
575 X Window System in a safe and efficient manner. It includes changes to the
576 X server, to several client libraries, and to the kernel (DRM, Direct
577 Rendering Manager). The most important use for the DRI is to create fast
578 OpenGL implementations providing hardware acceleration for Mesa.
579 Several 3D accelerated drivers have been written to the DRI specification,
580 including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel
581 and Matrox.")
582 (license license:x11)))
583
584
585 (define-public mtdev
586 (package
587 (name "mtdev")
588 (version "1.1.6")
589 (source
590 (origin
591 (method url-fetch)
592 (uri (string-append
593 "http://bitmath.org/code/mtdev/mtdev-"
594 version ".tar.bz2"))
595 (sha256
596 (base32
597 "1q700h9dqcm3zl6c3gj0qxxjcx6ibw2c51wjijydhwdcm26v5mqm"))))
598 (build-system gnu-build-system)
599 (arguments '(#:configure-flags '("--disable-static")))
600 (home-page "http://bitmath.org/code/mtdev/")
601 (synopsis "Multitouch protocol translation library")
602 (description "Mtdev is a stand-alone library which transforms all
603 variants of kernel MT events to the slotted type B protocol. The events
604 put into mtdev may be from any MT device, specifically type A without
605 contact tracking, type A with contact tracking, or type B with contact
606 tracking.")
607 (license license:x11)))
608
609 (define-public startup-notification
610 (package
611 (name "startup-notification")
612 (version "0.12")
613 (source
614 (origin
615 (method url-fetch)
616 (uri (string-append "https://www.freedesktop.org/software/" name
617 "/releases/" name "-" version ".tar.gz"))
618 (sha256
619 (base32
620 "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w"))))
621 (build-system gnu-build-system)
622 (native-inputs `(("pkg-config" ,pkg-config)))
623 (inputs
624 `(("libx11" ,libx11)
625 ("xcb-util" ,xcb-util)))
626 (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/")
627 (synopsis "Application startup notification and feedback library")
628 (description
629 "Startup-notification contains a reference implementation of the startup
630 notification protocol. The reference implementation is mostly under an X Window
631 System style license, and has no special dependencies.")
632 ;; Most of the code is provided under x11 license.
633 (license license:lgpl2.0+)))
634
635 (define-public wmctrl
636 (package
637 (name "wmctrl")
638 (version "1.07")
639 (source (origin
640 (method url-fetch)
641 (uri (string-append
642 "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-"
643 version ".tar.gz"))
644 (sha256
645 (base32
646 "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np"))
647 (patches (search-patches "wmctrl-64-fix.patch"))))
648 (build-system gnu-build-system)
649 (arguments
650 '(#:configure-flags
651 (list (string-append "--mandir="
652 (assoc-ref %outputs "out")
653 "/share/man"))))
654 (native-inputs
655 `(("pkg-config" ,pkg-config)))
656 (inputs
657 `(("libx11" ,libx11)
658 ("libxmu" ,libxmu)
659 ("glib" ,glib)))
660 (home-page "http://tomas.styblo.name/wmctrl/")
661 (synopsis "Command-line tool to control X window managers")
662 (description
663 "Wmctrl interacts with an X window manager that is compatible
664 with the EWMH/NetWM specification. It can query the window manager for
665 information, and request for certain window management actions (resize and
666 move windows, switch between desktops, etc.).")
667 (license license:gpl2+)))
668
669 (define-public scrot
670 (package
671 (name "scrot")
672 (version "1.4")
673 (source
674 (origin
675 (method git-fetch)
676 (uri
677 (git-reference
678 (url "https://github.com/resurrecting-open-source-projects/scrot")
679 (commit version)))
680 (file-name (git-file-name name version))
681 (sha256
682 (base32
683 "12xq6glg70icwsvbnfw9gm4dahlbnrc7b6adpd0mpf89h4sj2gds"))))
684 (build-system gnu-build-system)
685 (native-inputs
686 `(("autoconf" ,autoconf)
687 ("autoconf-archive" ,autoconf-archive)
688 ("automake" ,automake)))
689 (inputs
690 `(("giblib" ,giblib)
691 ("libx11" ,libx11)
692 ("libXcursor" ,libxcursor)
693 ("libxcomposite" ,libxcomposite)
694 ("libXfixes" ,libxfixes)))
695 (home-page "https://github.com/resurrecting-open-source-projects/scrot")
696 (synopsis "Command-line screen capture utility for X Window System")
697 (description
698 "Scrot saves a screenshot of a full screen, a window or a part
699 of the screen selected by mouse.")
700 ;; This license removes a clause about X Consortium from the original
701 ;; X11 license.
702 (license (license:x11-style "file://COPYING"
703 "See 'COPYING' in the distribution."))))
704
705 (define-public slop
706 (package
707 (name "slop")
708 (version "7.5")
709 (source (origin
710 (method git-fetch)
711 (uri (git-reference
712 (url "https://github.com/naelstrof/slop")
713 (commit (string-append "v" version))))
714 (file-name (git-file-name name version))
715 (sha256
716 (base32
717 "1k8xxb4rj2fylr4vj16yvsf73cyywliz9cy78pl4ibmi03jhg837"))))
718 (build-system cmake-build-system)
719 (arguments
720 '(#:tests? #f)) ; no "check" target
721 (inputs
722 `(("glew" ,glew)
723 ("glm" ,glm)
724 ("icu4c" ,icu4c)
725 ("libxext" ,libxext)
726 ("libxrender" ,libxrender)
727 ("mesa" ,mesa)))
728 (home-page "https://github.com/naelstrof/slop")
729 (synopsis "Select a region and print its bounds to stdout")
730 (description
731 "slop (Select Operation) is a tool that queries for a selection from a
732 user and prints the region to stdout. It grabs the mouse and turns it into a
733 crosshair, lets the user click and drag to make a selection (or click on a
734 window) while drawing a pretty box around it, then finally prints the
735 selection's dimensions to stdout.")
736 (license license:gpl3+)))
737
738 (define-public maim
739 (package
740 (name "maim")
741 (version "5.6.3")
742 (source (origin
743 (method git-fetch)
744 (uri (git-reference
745 (url "https://github.com/naelstrof/maim")
746 (commit (string-append "v" version))))
747 (file-name (git-file-name name version))
748 (sha256
749 (base32
750 "181mjjrjb9fs1ficcv9miqbk94v95j1yli7fjp2dj514g7nj9l3x"))))
751 (build-system cmake-build-system)
752 (arguments
753 '(#:tests? #f)) ; no "check" target
754 (inputs
755 `(("glm" ,glm)
756 ("libjpeg" ,libjpeg-turbo)
757 ("libpng" ,libpng)
758 ("libxcomposite" ,libxcomposite)
759 ("libxfixes" ,libxfixes)
760 ("libxrandr" ,libxrandr)
761 ("mesa" ,mesa)
762 ("slop" ,slop)
763 ("zlib" ,zlib)))
764 (home-page "https://github.com/naelstrof/maim")
765 (synopsis "Screenshot utility for X Window System")
766 (description
767 "maim (Make Image) is a tool that takes screenshots of your desktop and
768 saves it in any format. Along with a full screen, it allows you to capture a
769 predefined region or a particular window. Also, it makes it possible to
770 include cursor in the resulting image.")
771 (license license:gpl3+)))
772
773 (define-public unclutter
774 (package
775 (name "unclutter")
776 (version "8")
777 (source (origin
778 (method url-fetch)
779 (uri (string-append
780 "http://ftp.x.org/contrib/utilities/unclutter-"
781 version ".tar.Z"))
782 (sha256
783 (base32
784 "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
785 (build-system gnu-build-system)
786 (arguments
787 '(#:tests? #f ; no check target
788 #:phases
789 (modify-phases %standard-phases
790 (delete 'configure)
791 (replace 'install
792 (lambda* (#:key inputs outputs #:allow-other-keys)
793 (let* ((out (assoc-ref outputs "out"))
794 (bin (string-append out "/bin"))
795 (man1 (string-append out "/share/man/man1")))
796 (mkdir-p bin)
797 (mkdir-p man1)
798 (invoke "make" "install" "install.man"
799 (string-append "BINDIR=" bin)
800 (string-append "MANDIR=" man1))))))))
801 (inputs `(("libx11" ,libx11)))
802 (home-page "http://ftp.x.org/contrib/utilities/")
803 (synopsis "Hide idle mouse cursor")
804 (description
805 "Unclutter is a program which runs permanently in the background of an
806 X11 session. It checks on the X11 pointer (cursor) position every few
807 seconds, and when it finds it has not moved (and no buttons are pressed
808 on the mouse, and the cursor is not in the root window) it creates a
809 small sub-window as a child of the window the cursor is in. The new
810 window installs a cursor of size 1x1 but a mask of all 0, i.e. an
811 invisible cursor. This allows you to see all the text in an xterm or
812 xedit, for example. The human factors crowd would agree it should make
813 things less distracting.")
814 (license license:public-domain)))
815
816 (define-public xautomation
817 (package
818 (name "xautomation")
819 (version "1.09")
820 (source
821 (origin
822 (method url-fetch)
823 (uri (string-append "https://www.hoopajoo.net/static/projects/"
824 "xautomation-" version ".tar.gz"))
825
826 (sha256
827 (base32
828 "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf"))))
829 (build-system gnu-build-system)
830 (inputs
831 `(("libpng" ,libpng)
832 ("libx11" ,libx11)
833 ("libxi" ,libxi)
834 ("libxtst" ,libxtst)))
835 (native-inputs
836 `(("xorgproto" ,xorgproto)))
837 (synopsis "Tools to automate tasks in X such as detecting on screen images")
838 (description
839 "Xautomation can control X from the command line for scripts, and
840 do visual scraping to find things on the screen. The control interface
841 allows mouse movement, clicking, button up/down, key up/down, etc, and
842 uses the XTest extension so you don't have the annoying problems that
843 xse has when apps ignore sent events. The visgrep program can find
844 images inside of images and reports the coordinates, allowing programs
845 to find buttons, etc, on the screen to click on.")
846 (home-page "https://www.hoopajoo.net/projects/xautomation.html")
847 (license license:gpl2+)))
848
849 (define-public xbanish
850 (package
851 (name "xbanish")
852 (version "1.7")
853 (home-page "https://github.com/jcs/xbanish")
854 (source (origin
855 (method git-fetch)
856 (uri (git-reference (url home-page)
857 (commit (string-append "v" version))))
858 (file-name (git-file-name name version))
859 (sha256
860 (base32
861 "0ic5f7zgc32p5g1wxas9y5h8dhik0pvsa8wmn6skdry56gw9vg9q"))))
862 (build-system gnu-build-system)
863 (arguments
864 `(#:tests? #f ; no tests
865 #:make-flags (list "CC=gcc"
866 (string-append "PREFIX=" (assoc-ref %outputs "out")))
867 #:phases (modify-phases %standard-phases
868 (delete 'configure)))) ; no configure script
869 (inputs
870 `(("libx11" ,libx11)
871 ("libxfixes" ,libxfixes)
872 ("libxi" ,libxi)
873 ("libxt" ,libxt)))
874 (synopsis "Banish the mouse cursor")
875 (description
876 "@command{xbanish} hides the mouse cursor when you start typing, and
877 shows it again when the mouse cursor moves or a mouse button is pressed.")
878 (license license:bsd-3)))
879
880 (define-public xlockmore
881 (package
882 (name "xlockmore")
883 (version "5.66")
884 (source (origin
885 (method url-fetch)
886 (uri (list (string-append "http://sillycycle.com/xlock/"
887 "xlockmore-" version ".tar.xz")
888 ;; Previous releases are moved to a subdirectory.
889 (string-append "http://sillycycle.com/xlock/"
890 "recent-releases/"
891 "xlockmore-" version ".tar.xz")))
892 (sha256
893 (base32
894 "0wdb7gpyjw3sigmhiplgg1bqxz6wipr0c3n9492x2a18cv1saxjr"))))
895 (build-system gnu-build-system)
896 (arguments
897 '(#:configure-flags (list (string-append "--enable-appdefaultdir="
898 (assoc-ref %outputs "out")
899 "/lib/X11/app-defaults"))
900 #:tests? #f)) ;no such thing as a test suite
901 (inputs
902 `(("libX11" ,libx11)
903 ("libXext" ,libxext)
904 ("libXt" ,libxt)
905 ("linux-pam" ,linux-pam)))
906 (home-page "https://sillycycle.com/xlockmore.html")
907 (synopsis "Screen locker for the X Window System")
908 (description
909 "XLockMore is a classic screen locker and screen saver for the
910 X Window System.")
911 (license (license:non-copyleft #f "See xlock.c.")
912 ))) ; + GPLv2 in modes/glx/biof.c.
913
914 (define-public xosd
915 (package
916 (name "xosd")
917 (version "2.2.14")
918 (source (origin
919 (method url-fetch)
920 (uri (string-append
921 "mirror://sourceforge/libxosd/libxosd/xosd-" version "/"
922 name "-" version ".tar.gz"))
923 (sha256
924 (base32
925 "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg"))))
926 (build-system gnu-build-system)
927 (arguments
928 '(#:configure-flags
929 (list (string-append "--mandir=" %output "/share/man"))))
930 (inputs
931 `(("libx11" ,libx11)
932 ("libxt" ,libxt)
933 ("libxext" ,libxext)
934 ("libxinerama" ,libxinerama)))
935 (home-page "https://sourceforge.net/projects/libxosd/")
936 (synopsis "X On Screen Display")
937 (description
938 "XOSD provides a C library and a simple utility (osd_cat) for displaying
939 transparent text on your screen.")
940 (license license:gpl2+)))
941
942 (define-public xbindkeys
943 (package
944 (name "xbindkeys")
945 (version "1.8.7")
946 (source (origin
947 (method url-fetch)
948 ;; Download from the savannah mirror list fails
949 (uri (string-append
950 "http://www.nongnu.org/xbindkeys/xbindkeys-"
951 version
952 ".tar.gz"))
953 (sha256
954 (base32
955 "1wl2vc5alisiwyk8m07y1ryq8w3ll9ym83j27g4apm4ixjl8d6x2"))))
956 (build-system gnu-build-system)
957 (native-inputs
958 `(("pkg-config" ,pkg-config)))
959 (inputs
960 `(("libx11" ,libx11)
961 ("guile" ,guile-2.2)))
962 (home-page "https://www.nongnu.org/xbindkeys/")
963 (synopsis "Associate a combination of keys with a shell command")
964 (description
965 "XBindKeys is a program that allows you to launch shell commands with
966 your keyboard or your mouse under the X Window System. It links commands to
967 keys or mouse buttons, using a configuration file. It's independent of the
968 window manager and can capture all keyboard keys (ex: Power, Wake...). It
969 optionally supports a Guile-based configuration file layout, which enables you
970 to access all XBindKeys internals, so you can have key combinations, double
971 clicks or timed double clicks take actions. Also all functions that work in
972 Guile will work for XBindKeys.")
973 (license license:gpl2+)))
974
975 (define-public sxhkd
976 (package
977 (name "sxhkd")
978 (version "0.6.2")
979 (source
980 (origin
981 (method git-fetch)
982 (uri (git-reference
983 (url "https://github.com/baskerville/sxhkd")
984 (commit version)))
985 (file-name (git-file-name name version))
986 (sha256
987 (base32 "1winwzdy9yxvxnrv8gqpigl9y0c2px27mnms62bdilp4x6llrs9r"))))
988 (build-system gnu-build-system)
989 (inputs
990 `(("asciidoc" ,asciidoc)
991 ("libxcb" ,libxcb)
992 ("xcb-util" ,xcb-util)
993 ("xcb-util-keysyms" ,xcb-util-keysyms)
994 ("xcb-util-wm" ,xcb-util-wm)))
995 (arguments
996 `(#:phases (modify-phases %standard-phases (delete 'configure))
997 #:tests? #f ; no check target
998 #:make-flags
999 (list "CC=gcc"
1000 (string-append "PREFIX=" %output)
1001 ;; Keep the documentation where the build system installs LICENSE.
1002 (string-append "DOCPREFIX=" %output
1003 "/share/doc/" ,name "-" ,version))))
1004 (home-page "https://github.com/baskerville/sxhkd")
1005 (synopsis "Simple X hotkey daemon")
1006 (description "sxhkd is a simple X hotkey daemon with a powerful and
1007 compact configuration syntax.")
1008 (license license:bsd-2)))
1009
1010 (define-public rxvt-unicode
1011 (package
1012 (name "rxvt-unicode")
1013 (version "9.22")
1014 (source (origin
1015 (method url-fetch)
1016 (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/"
1017 name "-" version ".tar.bz2"))
1018 (patches (search-patches "rxvt-unicode-escape-sequences.patch"))
1019 (sha256
1020 (base32
1021 "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9"))))
1022 (build-system gnu-build-system)
1023 (arguments
1024 ;; This sets the destination when installing the necessary terminal
1025 ;; capability data, which are not provided by 'ncurses'. See
1026 ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html
1027 `(#:configure-flags (list "--enable-256-color")
1028 #:make-flags (list (string-append "TERMINFO="
1029 (assoc-ref %outputs "out")
1030 "/share/terminfo"))
1031 #:phases
1032 (modify-phases %standard-phases
1033 (add-after 'install 'install-desktop-urxvt
1034 (lambda* (#:key outputs #:allow-other-keys)
1035 (let* ((output (assoc-ref outputs "out"))
1036 (desktop (string-append output "/share/applications")))
1037 (mkdir-p desktop)
1038 (with-output-to-file
1039 (string-append desktop "/urxvt.desktop")
1040 (lambda _
1041 (format #t
1042 "[Desktop Entry]~@
1043 Name=rxvt-unicode~@
1044 Comment=~@
1045 Exec=~a/bin/urxvt~@
1046 TryExec=~@*~a/bin/urxvt~@
1047 Icon=~@
1048 Type=Application~%"
1049 output)))
1050 #t)))
1051 (add-after 'install 'install-desktop-urxvtc
1052 (lambda* (#:key outputs #:allow-other-keys)
1053 (let* ((output (assoc-ref outputs "out"))
1054 (desktop (string-append output "/share/applications")))
1055 (mkdir-p desktop)
1056 (with-output-to-file
1057 (string-append desktop "/urxvtc.desktop")
1058 (lambda _
1059 (format #t
1060 "[Desktop Entry]~@
1061 Name=rxvt-unicode (client)~@
1062 Comment=Rxvt clone with XFT and unicode support~@
1063 Exec=~a/bin/urxvtc~@
1064 TryExec=~@*~a/bin/urxvtc~@
1065 Icon=~@
1066 Type=Application~%"
1067 output)))
1068 #t))))))
1069 (inputs
1070 `(("libXft" ,libxft)
1071 ("libX11" ,libx11)))
1072 (native-inputs
1073 `(("ncurses" ,ncurses) ;trigger the installation of terminfo data
1074 ("perl" ,perl)
1075 ("pkg-config" ,pkg-config)))
1076 ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is
1077 ;; provided for usability reasons. See <https://bugs.gnu.org/22138>.
1078 (native-search-paths
1079 (list (search-path-specification
1080 (variable "TERMINFO_DIRS")
1081 (files '("share/terminfo")))))
1082 (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html")
1083 (synopsis "Rxvt clone with XFT and unicode support")
1084 (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator
1085 intended as an xterm replacement for users who do not require features such as
1086 Tektronix 4014 emulation and toolkit-style configurability. It supports
1087 unicode, XFT and may be extended with Perl plugins. It also comes with a
1088 client/daemon pair that lets you open any number of terminal windows from
1089 within a single process.")
1090 (license license:gpl3+)))
1091
1092 (define-public xcape
1093 (package
1094 (name "xcape")
1095 (version "1.2")
1096 (source (origin
1097 (method git-fetch)
1098 (uri (git-reference
1099 (url "https://github.com/alols/xcape")
1100 (commit (string-append "v" version))))
1101 (file-name (git-file-name name version))
1102 (sha256
1103 (base32
1104 "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm"))))
1105 (build-system gnu-build-system)
1106 (arguments
1107 `(#:tests? #f ; no check target
1108 ;; no configure script
1109 #:phases (modify-phases %standard-phases (delete 'configure))
1110 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1111 "MANDIR=/share/man/man1"
1112 "CC=gcc")))
1113 (inputs
1114 `(("libxtst" ,libxtst)
1115 ("libx11" ,libx11)))
1116 (native-inputs
1117 `(("pkg-config" ,pkg-config)))
1118 (home-page "https://github.com/alols/xcape")
1119 (synopsis "Use a modifier key in X.org as another key")
1120 (description
1121 "This utility for X.org uses a modifier key as another key when
1122 pressed and released on its own. The default behaviour is to generate the
1123 Escape key when Left Control is pressed and released on its own.")
1124 (license license:gpl3+)))
1125
1126 (define-public libwacom
1127 (package
1128 (name "libwacom")
1129 (version "1.7")
1130 (source (origin
1131 (method url-fetch)
1132 (uri (string-append
1133 "https://github.com/linuxwacom/libwacom/releases/download/"
1134 "libwacom-" version "/libwacom-" version ".tar.bz2"))
1135 (sha256
1136 (base32
1137 "0797gc055dgg2jfqijy9823bd83jwr4wb2z9id992qlcr0xmz1rw"))))
1138 (build-system glib-or-gtk-build-system)
1139 (arguments
1140 `(#:configure-flags '("--disable-static")))
1141 (native-inputs
1142 `(("pkg-config" ,pkg-config)
1143 ;; For tests.
1144 ("python" ,python)))
1145 (inputs
1146 `(("gtk+" ,gtk+)
1147 ("libgudev" ,libgudev)
1148 ("eudev" ,eudev)
1149 ("libxml2" ,libxml2)))
1150 (propagated-inputs
1151 ;; libwacom includes header files that include GLib, and libinput uses
1152 ;; those header files.
1153 `(("glib" ,glib)))
1154 (home-page "https://linuxwacom.github.io/")
1155 (synopsis "Helper library for Wacom tablet settings")
1156 (description
1157 "Libwacom is a library to help implement Wacom tablet settings. It is
1158 intended to be used by client-programs that need model identification. It is
1159 already being used by the gnome-settings-daemon and the GNOME Control Center
1160 Wacom tablet applet.")
1161 (license license:x11)))
1162
1163 (define-public xf86-input-wacom
1164 (package
1165 (name "xf86-input-wacom")
1166 (version "0.39.0")
1167 (source
1168 (origin
1169 (method url-fetch)
1170 (uri (string-append
1171 "https://github.com/linuxwacom/xf86-input-wacom/releases/download/"
1172 "xf86-input-wacom-" version "/"
1173 "xf86-input-wacom-" version ".tar.bz2"))
1174 (sha256
1175 (base32 "11qk58az6qwii774ga45h5yqzipwn56f0d74kdbajqdv45p85gqj"))))
1176 (arguments
1177 `(#:configure-flags
1178 (list (string-append "--with-sdkdir="
1179 (assoc-ref %outputs "out")
1180 "/include/xorg")
1181 (string-append "--with-xorg-conf-dir="
1182 (assoc-ref %outputs "out")
1183 "/share/X11/xorg.conf.d"))))
1184 (build-system gnu-build-system)
1185 (native-inputs
1186 `(("pkg-config" ,pkg-config)))
1187 (inputs
1188 `(("xorg-server" ,xorg-server)
1189 ("libxrandr" ,libxrandr)
1190 ("libxinerama" ,libxinerama)
1191 ("libxi" ,libxi)
1192 ("eudev" ,eudev)))
1193 (home-page "https://linuxwacom.github.io/")
1194 (synopsis "Wacom input driver for X")
1195 (description
1196 "The xf86-input-wacom driver is the wacom-specific X11 input driver for
1197 the X.Org X Server version 1.7 and later (X11R7.5 or later).")
1198 (license license:x11)))
1199
1200 (define-public redshift
1201 (package
1202 (name "redshift")
1203 (version "1.12")
1204 (source
1205 (origin
1206 (method url-fetch)
1207 (uri
1208 (string-append "https://github.com/jonls/redshift/"
1209 "releases/download/v" version
1210 "/redshift-" version ".tar.xz"))
1211 (sha256
1212 (base32
1213 "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j"))))
1214 (build-system gnu-build-system)
1215 (arguments
1216 `(#:imported-modules (,@%gnu-build-system-modules
1217 (guix build python-build-system))
1218 #:phases
1219 (modify-phases %standard-phases
1220 (add-after 'install 'split-outputs
1221 (lambda* (#:key outputs #:allow-other-keys)
1222 (let ((out (assoc-ref outputs "out"))
1223 (gtk (assoc-ref outputs "gtk"))
1224 (desktop-file "/share/applications/redshift-gtk.desktop"))
1225 (mkdir-p (string-append gtk "/bin"))
1226 (link (string-append out "/bin/redshift-gtk")
1227 (string-append gtk "/bin/redshift-gtk"))
1228 (delete-file (string-append out "/bin/redshift-gtk"))
1229 (copy-recursively (string-append out "/lib")
1230 (string-append gtk "/lib"))
1231 (delete-file-recursively (string-append out "/lib"))
1232 (mkdir-p (string-append gtk "/share/applications"))
1233 (link (string-append out desktop-file)
1234 (string-append gtk desktop-file))
1235 (delete-file (string-append out desktop-file))
1236 (with-directory-excursion (string-append out "/share")
1237 (for-each (lambda (dir)
1238 (copy-recursively
1239 (string-append out "/share/" dir)
1240 (string-append gtk "/share/" dir))
1241 (delete-file-recursively dir))
1242 '("appdata" "icons")))
1243 #t)))
1244 (add-after 'split-outputs 'wrap
1245 (lambda* (#:key inputs outputs #:allow-other-keys)
1246 (let* ((gtk (assoc-ref outputs "gtk"))
1247 (python-version
1248 (@ (guix build python-build-system) python-version))
1249 (python (assoc-ref inputs "python"))
1250 (sitedir (string-append gtk "/lib/python"
1251 (python-version python)
1252 "/site-packages")))
1253 (wrap-program (string-append gtk "/bin/redshift-gtk")
1254 `("PYTHONPATH" ":" prefix
1255 (,(string-append sitedir ":" (getenv "PYTHONPATH"))))
1256 `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH"))))
1257 #t))))))
1258 (outputs '("out" "gtk"))
1259 (native-inputs
1260 `(("pkg-config" ,pkg-config)
1261 ("intltool" ,intltool)))
1262 (inputs
1263 `(("libdrm" ,libdrm)
1264 ("libx11" ,libx11)
1265 ("libxcb" ,libxcb)
1266 ("libxxf86vm" ,libxxf86vm)
1267 ("glib" ,glib) ;for Geoclue2 support
1268
1269 ;; To build the GTK3 GUI, we need these.
1270 ("gtk+" ,gtk+)
1271 ("python" ,python)
1272 ("python-pygobject" ,python-pygobject)
1273 ("python-pyxdg" ,python-pyxdg)))
1274 (home-page "https://github.com/jonls/redshift")
1275 (synopsis "Adjust the color temperature of your screen")
1276 (description
1277 "Redshift adjusts the color temperature according to the position of the
1278 sun. A different color temperature is set during night and daytime. During
1279 twilight and early morning, the color temperature transitions smoothly from
1280 night to daytime temperature to allow your eyes to slowly adapt. At night the
1281 color temperature should be set to match the lamps in your room.")
1282 (license license:gpl3+)))
1283
1284 (define-public redshift-wayland
1285 (let ((commit "7da875d34854a6a34612d5ce4bd8718c32bec804")
1286 (revision "1"))
1287 (package
1288 (name "redshift-wayland")
1289 (version (string-append "1.12-"
1290 revision "." (string-take commit 7)))
1291 (source (origin
1292 (method git-fetch)
1293 (uri (git-reference
1294 (url "https://github.com/minus7/redshift")
1295 (commit commit)))
1296 (file-name (string-append name "-" version))
1297 (sha256
1298 (base32
1299 "0nbkcw3avmzjg1jr1g9yfpm80kzisy55idl09b6wvzv2sz27n957"))))
1300 (build-system gnu-build-system)
1301 (arguments
1302 '(#:phases (modify-phases %standard-phases
1303 (add-after 'install 'create-desktop-file
1304 (lambda* (#:key outputs #:allow-other-keys)
1305 ;; For the GeoClue provider to work, a .desktop file
1306 ;; needs to be provided. A template is available,
1307 ;; but it only gets installed when the GUI is enabled.
1308 ;; Install it manually for this Wayland variant.
1309 (let* ((out (assoc-ref outputs "out"))
1310 (desktop-file
1311 (string-append
1312 out "/share/applications/redshift.desktop")))
1313 (mkdir-p (dirname desktop-file))
1314 (copy-file "data/applications/redshift.desktop.in"
1315 desktop-file)
1316 (substitute* desktop-file
1317 (("^_") ""))
1318 #t))))))
1319 (native-inputs
1320 `(("autoconf" ,autoconf)
1321 ("automake" ,automake)
1322 ("libtool" ,libtool)
1323 ("pkg-config" ,pkg-config)
1324 ("intltool" ,intltool)))
1325 (inputs
1326 `(("libdrm" ,libdrm)
1327 ("libx11" ,libx11)
1328 ("libxcb" ,libxcb)
1329 ("libxxf86vm" ,libxxf86vm)
1330 ("glib" ,glib) ; for Geoclue2 support
1331 ("wayland" ,wayland)))
1332 (home-page "https://github.com/minus7/redshift")
1333 (synopsis "Adjust the color temperature of your screen (with Wayland support)")
1334 (description
1335 "Redshift adjusts the color temperature according to the position of the
1336 sun. A different color temperature is set during night and daytime. During
1337 twilight and early morning, the color temperature transitions smoothly from
1338 night to daytime temperature to allow your eyes to slowly adapt. At night the
1339 color temperature should be set to match the lamps in your room.
1340
1341 This is a fork with added support for Wayland using the wlr-gamma-control
1342 protocol.")
1343 (license license:gpl3+))))
1344
1345 (define-public xscreensaver
1346 (package
1347 (name "xscreensaver")
1348 (version "5.44")
1349 (source
1350 (origin
1351 (method url-fetch)
1352 (uri
1353 (string-append "https://www.jwz.org/xscreensaver/xscreensaver-"
1354 version ".tar.gz"))
1355 (sha256
1356 (base32 "15bv05vpfjwsrqbazrjmm382jd7vvw0mp6y9vasn6wvxzjf0in3k"))))
1357 (build-system gnu-build-system)
1358 (arguments
1359 `(#:tests? #f ; no check target
1360 #:phases
1361 (modify-phases %standard-phases
1362 (add-before 'configure 'adjust-gtk-resource-paths
1363 (lambda _
1364 (substitute* '("driver/Makefile.in" "po/Makefile.in.in")
1365 (("@GTK_DATADIR@") "@datadir@")
1366 (("@PO_DATADIR@") "@datadir@"))
1367 #t)))
1368 #:configure-flags '("--with-pam" "--with-proc-interrupts"
1369 "--without-readdisplay")
1370 #:make-flags (list (string-append "AD_DIR="
1371 (assoc-ref %outputs "out")
1372 "/lib/X11/app-defaults"))))
1373 (native-inputs
1374 `(("pkg-config" ,pkg-config)
1375 ("intltool" ,intltool)))
1376 (inputs
1377 `(("libx11" ,libx11)
1378 ("libxext" ,libxext)
1379 ("libxi" ,libxi)
1380 ("libxt" ,libxt)
1381 ("libxft" ,libxft)
1382 ("libxmu" ,libxmu)
1383 ("libxpm" ,libxpm)
1384 ("libglade" ,libglade)
1385 ("libxml2" ,libxml2)
1386 ("libsm" ,libsm)
1387 ("libjpeg" ,libjpeg-turbo)
1388 ("linux-pam" ,linux-pam)
1389 ("pango" ,pango)
1390 ("gtk+" ,gtk+)
1391 ("perl" ,perl)
1392 ("cairo" ,cairo)
1393 ("bc" ,bc)
1394 ("libxrandr" ,libxrandr)
1395 ("glu" ,glu)
1396 ("glib" ,glib)))
1397 (home-page "https://www.jwz.org/xscreensaver/")
1398 (synopsis "Classic screen saver suite supporting screen locking")
1399 (description
1400 "xscreensaver is a popular screen saver collection with many entertaining
1401 demos. It also acts as a nice screen locker.")
1402 ;; xscreensaver doesn't have a single copyright file and instead relies on
1403 ;; source comment headers, though most files have the same lax
1404 ;; permissions. To reduce complexity, we're pointing at Debian's
1405 ;; breakdown of the copyright information.
1406 (license (license:non-copyleft
1407 (string-append
1408 "http://metadata.ftp-master.debian.org/changelogs/"
1409 "/main/x/xscreensaver/xscreensaver_5.36-1_copyright")))))
1410
1411 (define-public xssproxy
1412 (package
1413 (name "xssproxy")
1414 (version "1.0.0")
1415 (source (origin
1416 (method git-fetch)
1417 (uri (git-reference
1418 (url "https://github.com/timakro/xssproxy")
1419 (commit (string-append "v" version))))
1420 (file-name (string-append name "-" version "-checkout"))
1421 (sha256
1422 (base32
1423 "0c83wmipnsdnbihc5niyczs7jrkss2s8n6iwwjdia7hkjzbd0hl7"))))
1424 (build-system gnu-build-system)
1425 (arguments `(#:make-flags `("bindir=/bin"
1426 "man1dir=/share/man/man1"
1427 ,(string-append "DESTDIR=" (assoc-ref %outputs "out"))
1428 "CC=gcc")
1429 #:phases (modify-phases %standard-phases
1430 (delete 'configure)
1431 (delete 'check))))
1432 (native-inputs
1433 `(("pkg-config" ,pkg-config)))
1434 (inputs
1435 `(("glib" ,glib)
1436 ("libx11" ,libx11)
1437 ("libxext" ,libxext)
1438 ("libxscrnsaver" ,libxscrnsaver)
1439 ("dbus" ,dbus)))
1440 (synopsis "Forward freedesktop.org Idle Inhibition Service calls to Xss")
1441 (description "xssproxy implements the @code{org.freedesktop.ScreenSaver}
1442 D-Bus interface described in the Idle Inhibition Service Draft by the
1443 freedesktop.org developers. The inhibition of the screensaver is then
1444 controlled using the XScreenSaverSuspend function from the Xss (X11 Screen
1445 Saver extension) library.")
1446 (home-page "https://github.com/timakro/xssproxy")
1447 (license license:gpl3+)))
1448
1449 (define-public xsel
1450 (package
1451 (name "xsel")
1452 (version "1.2.0")
1453 (source (origin
1454 (method url-fetch)
1455 (uri (string-append "http://www.vergenet.net/~conrad/software"
1456 "/xsel/download/xsel-" version ".tar.gz"))
1457 (sha256
1458 (base32
1459 "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr"))))
1460 (build-system gnu-build-system)
1461 (inputs
1462 `(("libxt" ,libxt)))
1463 (home-page "http://www.vergenet.net/~conrad/software/xsel/")
1464 (synopsis "Manipulate X selection")
1465 (description
1466 "XSel is a command-line program for getting and setting the contents of
1467 the X selection. Normally this is only accessible by manually highlighting
1468 information and pasting it with the middle mouse button.
1469
1470 XSel reads from standard input and writes to standard output by default,
1471 but can also follow a growing file, display contents, delete entries and more.")
1472 (license (license:x11-style "file://COPYING"
1473 "See COPYING in the distribution."))))
1474
1475 (define-public xdpyprobe
1476 (package
1477 (name "xdpyprobe")
1478 (version "0.1")
1479 (source (origin
1480 (method url-fetch)
1481 (uri (string-append "https://github.com/alezost/" name
1482 "/releases/download/v" version
1483 "/" name "-" version ".tar.gz"))
1484 (sha256
1485 (base32
1486 "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8"))))
1487 (build-system gnu-build-system)
1488 (inputs
1489 `(("libx11" ,libx11)))
1490 (home-page "https://github.com/alezost/xdpyprobe")
1491 (synopsis "Probe X server for connectivity")
1492 (description
1493 "Xdpyprobe is a tiny C program whose only purpose is to probe a
1494 connectivity of the X server running on a particular @code{DISPLAY}.")
1495 (license license:gpl3+)))
1496
1497 (define-public rofi
1498 (package
1499 (name "rofi")
1500 (version "1.6.1")
1501 (source (origin
1502 (method url-fetch)
1503 (uri (string-append "https://github.com/DaveDavenport/rofi/"
1504 "releases/download/"
1505 version "/rofi-" version ".tar.xz"))
1506 (sha256
1507 (base32
1508 "12p9z8bl1gg8k024m4a6zfz7gf1zbyffardh98raqgabn6knwk22"))))
1509 (build-system gnu-build-system)
1510 (inputs
1511 `(("pango" ,pango)
1512 ("cairo" ,cairo)
1513 ("glib" ,glib)
1514 ("startup-notification" ,startup-notification)
1515 ("libjpeg" ,libjpeg-turbo)
1516 ("librsvg" ,librsvg)
1517 ("libxkbcommon" ,libxkbcommon)
1518 ("libxcb" ,libxcb)
1519 ("xcb-util" ,xcb-util)
1520 ("xcb-util-xrm" ,xcb-util-xrm)
1521 ("xcb-util-wm" ,xcb-util-wm)))
1522 (native-inputs
1523 `(("bison" ,bison)
1524 ("check" ,check)
1525 ("flex" ,flex)
1526 ("glib:bin" ,glib "bin")
1527 ("pkg-config" ,pkg-config)))
1528 (arguments
1529 `(#:parallel-tests? #f ; fails in some circumstances
1530 #:phases
1531 (modify-phases %standard-phases
1532 (add-before 'configure 'adjust-tests
1533 (lambda _
1534 (substitute* '("test/helper-expand.c")
1535 (("~root") "/root")
1536 (("~") "")
1537 (("g_get_home_dir \\(\\)") "\"/\""))
1538 #t)))))
1539 (home-page "https://github.com/DaveDavenport/rofi")
1540 (synopsis "Application launcher")
1541 (description "Rofi is a minimalist application launcher. It memorizes which
1542 applications you regularly use and also allows you to search for an application
1543 by name.")
1544 (license license:expat)))
1545
1546 (define-public tint2
1547 (package
1548 (name "tint2")
1549 (version "0.14.6")
1550 (source (origin
1551 (method url-fetch)
1552 (uri (string-append "https://gitlab.com/o9000/" name
1553 "/repository/archive.tar.gz?ref=" version))
1554 (file-name (string-append name "-" version ".tar.gz"))
1555 (sha256
1556 (base32
1557 "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda"))))
1558 (build-system cmake-build-system)
1559 (arguments
1560 '(#:tests? #f ;no test target
1561 #:phases
1562 (modify-phases %standard-phases
1563 (add-after 'unpack 'fix-installation-prefix
1564 (lambda _
1565 (substitute* "CMakeLists.txt"
1566 (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))
1567 #t)))))
1568 (inputs
1569 `(("gtk+" ,gtk+-2)
1570 ("imlib2" ,imlib2)
1571 ("librsvg" ,librsvg)
1572 ("libxcomposite" ,libxcomposite)
1573 ("libxdamage" ,libxdamage)
1574 ("libxft" ,libxft)
1575 ("libxinerama" ,libxinerama)
1576 ("libxrandr" ,libxrandr)
1577 ("startup-notification" ,startup-notification)))
1578 (native-inputs
1579 `(("gettext" ,gettext-minimal)
1580 ("pkg-config" ,pkg-config)))
1581 (home-page "https://gitlab.com/o9000/tint2")
1582 (synopsis "Lightweight task bar")
1583 (description
1584 "Tint2 is a simple task bar made for modern X window managers. It was
1585 specifically made for Openbox but it should also work with other window
1586 managers (GNOME, KDE, XFCE etc.).
1587
1588 The taskbar includes transparency and color settings for the font, icons,
1589 border, and background. It also supports multihead setups, customized mouse
1590 actions, a built-in clock, a battery monitor and a system tray.")
1591 (license license:gpl2)))
1592
1593 (define-public dzen
1594 (let ((commit "488ab66019f475e35e067646621827c18a879ba1")
1595 (revision "1"))
1596 (package
1597 (name "dzen")
1598 (version (string-append "0.9.5-" ; Taken from `config.mk`.
1599 revision "." (string-take commit 7)))
1600 (source (origin
1601 (method git-fetch)
1602 (uri (git-reference
1603 (url "https://github.com/robm/dzen")
1604 (commit commit)))
1605 (file-name (string-append name "-" version))
1606 (sha256
1607 (base32
1608 "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw"))))
1609 (build-system gnu-build-system)
1610 (arguments
1611 `(#:tests? #f ; No test suite.
1612 #:make-flags ; Replacement for `config.mk`.
1613 (list
1614 (string-append "VERSION = " ,version)
1615 (string-append "PREFIX = " %output)
1616 "MANPREFIX = ${PREFIX}/share/man"
1617 "INCS = -I."
1618 "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)"
1619 "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\
1620 -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)"
1621 "LDFLAGS = ${LIBS}"
1622 "CC = gcc"
1623 "LD = ${CC}")
1624 #:phases
1625 (modify-phases %standard-phases
1626 (delete 'configure) ; No configuration script.
1627 ;; Use own make-flags instead of `config.mk`.
1628 (add-before 'build 'dont-include-config-mk
1629 (lambda _
1630 (substitute* "Makefile" (("include config.mk") ""))
1631 #t)))))
1632 (inputs
1633 `(("libx11" ,libx11)
1634 ("libxft" ,libxft)
1635 ("libxpm" ,libxpm)
1636 ("libxinerama" ,libxinerama)))
1637 (native-inputs `(("pkg-config" ,pkg-config)))
1638 (synopsis "General purpose messaging, notification and menuing program for X11")
1639 (description "Dzen is a general purpose messaging, notification and menuing
1640 program for X11. It was designed to be fast, tiny and scriptable in any language.")
1641 (home-page "https://github.com/robm/dzen")
1642 (license license:expat))))
1643
1644 (define-public xftwidth
1645 (package
1646 (name "xftwidth")
1647 (version "20170402")
1648 (source
1649 (origin
1650 (method git-fetch)
1651 (uri (git-reference
1652 (url "http://github.com/vixus0/xftwidth")
1653 (commit "35ff963908d41a8a6a7101c434c88255728025ee")))
1654 (sha256
1655 (base32
1656 "1jwl25785li24kbp0m1wxfwk4dgxkliynn03nsj813cjr34kq16h"))
1657 (file-name (string-append name "-" version "-checkout"))))
1658 (build-system gnu-build-system)
1659 (inputs `(("freetype" ,freetype)
1660 ("libx11" ,libx11)
1661 ("fontconfig" ,fontconfig)
1662 ("libxft" ,libxft)))
1663 (native-inputs
1664 `(("pkg-config" ,pkg-config)))
1665 (arguments
1666 '(#:phases
1667 (modify-phases %standard-phases
1668 (add-after 'unpack 'fix-makefile ; /usr/bin doesn't show up in PATH
1669 (lambda _ (substitute* "Makefile" (("usr/") "")) #t))
1670 (delete 'check) ; no check included in Makefile
1671 (delete 'configure))
1672 #:make-flags
1673 (let ((out (assoc-ref %outputs "out")))
1674 (list (string-append "DESTDIR=" out)))))
1675 (home-page "https://github.com/vixus0/xftwidth")
1676 (synopsis "Calculator for determining pixel widths of displayed text using Xft fonts")
1677 (description "xftwidth is a small C program for calculating the pixel
1678 widths of displayed text using Xft fonts. It is especially useful in scripts
1679 for displaying text in graphical panels, menus, popups, and notification
1680 windows generated using dzen. These scripts are often used in conjunction with
1681 minimalistic tiling window managers such as herbstluftwm and bspwm.")
1682 (license license:expat)))
1683
1684 (define-public xcb-util-xrm
1685 (package
1686 (name "xcb-util-xrm")
1687 (version "1.3")
1688 (source (origin
1689 (method url-fetch)
1690 (uri (string-append
1691 "https://github.com/Airblader/xcb-util-xrm/releases"
1692 "/download/v" version "/xcb-util-xrm-" version ".tar.bz2"))
1693 (sha256
1694 (base32
1695 "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h"))
1696 (modules '((guix build utils)))
1697 (snippet
1698 ;; Drop bundled m4.
1699 '(begin
1700 (delete-file-recursively "m4")
1701 #t))))
1702 (build-system gnu-build-system)
1703 (native-inputs
1704 `(("pkg-config" ,pkg-config)
1705 ("m4" ,m4)
1706 ("libx11" ,libx11))) ; for tests
1707 (inputs
1708 `(("libxcb" ,libxcb)
1709 ("xcb-util" ,xcb-util)))
1710 (home-page "https://github.com/Airblader/xcb-util-xrm")
1711 (synopsis "XCB utility functions for the X resource manager")
1712 (description
1713 "The XCB util module provides a number of libraries which sit on
1714 top of libxcb, the core X protocol library, and some of the extension
1715 libraries. These experimental libraries provide convenience functions
1716 and interfaces which make the raw X protocol more usable. Some of the
1717 libraries also provide client-side code which is not strictly part of
1718 the X protocol but which has traditionally been provided by Xlib.
1719
1720 XCB util-xrm module provides the following libraries:
1721
1722 - xrm: utility functions for the X resource manager.")
1723 (license license:x11)))
1724
1725 (define-public xcalib
1726 (package
1727 (name "xcalib")
1728 (version "0.10")
1729 (home-page "https://github.com/OpenICC/xcalib")
1730 (source (origin
1731 (method git-fetch)
1732 (uri (git-reference
1733 (url home-page)
1734 (commit version)))
1735 (file-name (git-file-name name version))
1736 (sha256
1737 (base32
1738 "05fzdjmhiafgi2jf0k41i3nm0837a78sb6yv59cwc23nla8g0bhr"))
1739 (patches
1740 (list
1741 ;; Add missing documentation for the new --output option.
1742 ;; This upstream patch can be removed on the next update.
1743 (origin
1744 (method url-fetch)
1745 (uri (string-append
1746 home-page "/commit/"
1747 "ae03889b91fe984b18e925ad2b5e6f2f7354e058.patch"))
1748 (file-name "xcalib-update-man-page.patch")
1749 (sha256
1750 (base32
1751 "0f7b4d5484x4b9n1bwhqmar0kcaa029ffff7bp3xpr734n1qgqb6")))))))
1752 (build-system cmake-build-system)
1753 (arguments
1754 '(#:tests? #f)) ; no test suite
1755 (inputs `(("libx11" ,libx11)
1756 ("libxext" ,libxext)
1757 ("libxrandr" ,libxrandr)
1758 ("libxxf86vm" ,libxxf86vm)))
1759 (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)")
1760 (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC
1761 profiles to the video card's gamma ramp. It does work with most video card
1762 drivers except the generic VESA driver. Alter brightness, contrast, RGB, and
1763 invert colors on a specific display/screen.")
1764 (license license:gpl2)))
1765
1766 (define-public nxbelld
1767 (package
1768 (name "nxbelld")
1769 (version "0.1.2")
1770 (source (origin
1771 (method git-fetch)
1772 (uri (git-reference
1773 (url "https://github.com/dusxmt/nxbelld")
1774 (commit version)))
1775 (sha256
1776 (base32
1777 "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z"))
1778 (file-name (git-file-name name version))))
1779 (build-system gnu-build-system)
1780 (arguments '(#:configure-flags `("--enable-sound"
1781 "--enable-wave"
1782 "--enable-alsa")))
1783 (native-inputs `(("autoconf" ,autoconf)
1784 ("automake" ,automake)
1785 ("pkg-config" ,pkg-config)
1786 ("perl" ,perl)))
1787 (inputs `(("libx11" ,libx11)
1788 ("alsa-lib" ,alsa-lib)))
1789 (synopsis "Daemon that performs an action every time the X11 bell is rung")
1790 (description "nxbelld is a tiny utility to aid people who either don't
1791 like the default PC speaker beep, or use a sound driver that doesn't have
1792 support for the PC speaker. The utility performs a given action every time
1793 the X bell is rung. The actions nxbelld can currently perform include running
1794 a specified program, emulating the PC speaker beep using the sound card (default),
1795 or playing a PCM encoded WAVE file.")
1796 (home-page "https://github.com/dusxmt/nxbelld")
1797 (license license:gpl3+)))
1798
1799 (define-public xautolock
1800 (package
1801 (name "xautolock")
1802 (version "2.2")
1803 (source (origin
1804 (method url-fetch)
1805 (uri (string-append "https://www.ibiblio.org/pub/linux/X11/"
1806 "screensavers/xautolock-" version ".tgz"))
1807 (sha256
1808 (base32
1809 "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i"))))
1810 (build-system gnu-build-system)
1811 (native-inputs
1812 `(("imake" ,imake)))
1813 (inputs
1814 `(("libx11" ,libx11)
1815 ("libxext" ,libxext)
1816 ("libxscrnsaver" ,libxscrnsaver)))
1817 (arguments
1818 `(#:tests? #f
1819 #:phases
1820 (modify-phases %standard-phases
1821 (replace 'configure
1822 (lambda* (#:key inputs outputs #:allow-other-keys)
1823 (let ((imake (assoc-ref inputs "imake"))
1824 (out (assoc-ref outputs "out")))
1825 ;; Generate Makefile
1826 (invoke "xmkmf")
1827 (substitute* "Makefile"
1828 ;; These imake variables somehow remain undefined
1829 (("DefaultGcc2[[:graph:]]*Opt") "-O2")
1830 ;; Reset a few variable defaults that are set in imake templates
1831 ((imake) out)
1832 (("(MANPATH = )[[:graph:]]*" _ front)
1833 (string-append front out "/share/man")))
1834 ;; Old BSD-style 'union wait' is unneeded (defining
1835 ;; _USE_BSD did not seem to fix it)
1836 (substitute* "src/engine.c"
1837 (("union wait status") "int status = 0"))
1838 #t)))
1839 (add-after 'install 'install/man
1840 (lambda _
1841 (invoke "make" "install.man"))))))
1842 (home-page "https://ibiblio.org/pub/Linux/X11/screensavers/")
1843 (synopsis "Program launcher for idle X sessions")
1844 (description "Xautolock monitors input devices under the X Window
1845 System, and launches a program of your choice if there is no activity after
1846 a user-configurable period of time.")
1847 (license license:gpl2)))
1848
1849 (define-public screen-message
1850 (package
1851 (name "screen-message")
1852 (version "0.25")
1853 (source (origin
1854 (method url-fetch)
1855 (uri (string-append
1856 "https://www.joachim-breitner.de/archive/screen-message"
1857 "/screen-message-" version ".tar.gz"))
1858 (sha256
1859 (base32
1860 "1lw955qq5pq010lzmaf32ylj2iprgsri9ih4hx672c3f794ilab0"))))
1861 (build-system gnu-build-system)
1862 (inputs `(("gtk3" ,gtk+)
1863 ("gdk" ,gdk-pixbuf)
1864 ("pango" ,pango)))
1865 (native-inputs `(("pkg-config" ,pkg-config)))
1866 (arguments
1867 ;; The default configure puts the 'sm' binary in games/ instead of bin/ -
1868 ;; this fixes it:
1869 `(#:make-flags (list (string-append "execgamesdir=" %output "/bin"))))
1870 (synopsis "Print messages on your screen")
1871 (description "@code{screen-message} is a tool for displaying text on
1872 your screen. It will make the text as large as possible and display it
1873 with black color on a white background (colors are configurable on the
1874 commandline).")
1875 (home-page "https://www.joachim-breitner.de/projects#screen-message")
1876 (license license:gpl2+)))
1877
1878 (define-public xss-lock
1879 ;; xss-lock does not seem to be maintained any longer, but the last commits
1880 ;; fix important issues so we package them.
1881 (let ((version "0.3.0")
1882 (revision "1")
1883 (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717"))
1884 (package
1885 (name "xss-lock")
1886 (version (git-version version revision commit))
1887 (source (origin
1888 (method git-fetch)
1889 (uri (git-reference
1890 (url "https://bitbucket.org/raymonad/xss-lock.git")
1891 (commit commit)))
1892 (file-name (git-file-name name version))
1893 (sha256
1894 (base32
1895 "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r"))))
1896 (build-system cmake-build-system)
1897 (inputs `(("glib" ,glib)
1898 ("xcb-util" ,xcb-util)))
1899 (native-inputs
1900 `(("python-docutils" ,python-docutils)
1901 ("pkg-config" ,pkg-config)))
1902 (arguments
1903 `(#:tests? #f))
1904 (synopsis "Use external screen locker on events")
1905 (description "@code{xss-lock} listens to X signals to fire up a
1906 user-defined screensaver. In effect this automatically locks the
1907 screen when closing a laptop lid or after a period of user inactivity (as set
1908 with @code{xset s TIMEOUT}). The notifier command, if specified, is executed
1909 first. Additionally, xss-lock uses the inhibition logic to lock the screen
1910 before the system goes to sleep.")
1911 (home-page "https://bitbucket.org/raymonad/xss-lock")
1912 (license license:expat))))
1913
1914 (define-public python-pyperclip
1915 (package
1916 (name "python-pyperclip")
1917 (version "1.6.4")
1918 (source
1919 (origin
1920 (method url-fetch)
1921 (uri (pypi-uri "pyperclip" version))
1922 (sha256
1923 (base32
1924 "1p505c23ji06r28k1y67siihsbdzdf1brhlqpyv9ams4gk9863pp"))))
1925 (build-system python-build-system)
1926 (arguments
1927 '(#:tests? #f)) ; Not clear how to make tests pass.
1928 (inputs
1929 `(("xclip" ,xclip)
1930 ("xsel" ,xsel)))
1931 (home-page "https://github.com/asweigart/pyperclip")
1932 (synopsis "Python clipboard module")
1933 (description
1934 "Pyperclip is a clipboard module for Python, handling copy/pasting from
1935 the X11 clipboard")
1936 (license license:bsd-3)))
1937
1938 (define-public numlockx
1939 (package
1940 (name "numlockx")
1941 (version "1.2")
1942 (source (origin
1943 (method git-fetch)
1944 (uri (git-reference
1945 ;; It seems that upstream is gone.
1946 (url "https://github.com/rg3/numlockx")
1947 (commit version)))
1948 (file-name (git-file-name name version))
1949 (sha256
1950 (base32
1951 "1w49fayhwzn5rx0z1q2lrvm7z8jrd34lgb89p853a024bixc3cf2"))))
1952 (build-system gnu-build-system)
1953 (inputs
1954 `(("xorg-server" ,xorg-server)))
1955 (home-page "https://github.com/rg3/numlockx")
1956 (synopsis "Turns on the numlock key in X11")
1957 (description "@command{numlockx} is a tiny program that lets you turn on
1958 the numlock key in X11. It can be called from the user's initialization files
1959 to automatically turn it on on login.")
1960 (license license:expat)))
1961
1962 (define-public xrandr-invert-colors
1963 (package
1964 (name "xrandr-invert-colors")
1965 (version "0.01")
1966 (source (origin
1967 (method git-fetch)
1968 (uri (git-reference
1969 (url "https://github.com/zoltanp/xrandr-invert-colors")
1970 (commit (string-append "v" version))))
1971 (file-name (git-file-name name version))
1972 (sha256
1973 (base32
1974 "1br3x9vr6xm4ika06n8cfxx1b3wdchdqvyzjl4y1chmivrml8x9h"))))
1975 (build-system gnu-build-system)
1976 (arguments
1977 `(#:make-flags (list "CC=gcc")
1978 #:tests? #f ; there are none
1979 #:phases
1980 (modify-phases %standard-phases
1981 (delete 'configure)
1982 (replace 'install
1983 (lambda* (#:key outputs #:allow-other-keys)
1984 (let* ((out (assoc-ref outputs "out"))
1985 (bin (string-append out "/bin")))
1986 (install-file "xrandr-invert-colors.bin" bin)
1987 #t))))))
1988 (inputs
1989 `(("libxrandr" ,libxrandr)))
1990 (home-page "https://github.com/zoltanp/xrandr-invert-colors")
1991 (synopsis "Invert display colors")
1992 (description "This package provides a small utility for inverting the
1993 colors on all monitors attached to an XRandR-capable X11 display server.")
1994 (license license:gpl3+)))
1995
1996 (define-public sct
1997 (package
1998 (name "sct")
1999 (version "0.5")
2000 (source
2001 (origin
2002 (method url-fetch)
2003 (uri
2004 (string-append "https://www.umaxx.net/dl/sct-"
2005 version ".tar.gz"))
2006 (sha256
2007 (base32 "0lrhx771iccbw04wrhj0ygids1pzmjfc4hvklm30m3p3flvhqf0m"))))
2008 (build-system gnu-build-system)
2009 (arguments
2010 `(#:make-flags
2011 (list ,(string-append "CC=" (cc-for-target)))
2012 #:tests? #f ; no test suite
2013 #:phases
2014 (modify-phases %standard-phases
2015 (delete 'configure)
2016 (add-after 'unpack 'fix-sctd-paths
2017 (lambda* (#:key outputs inputs #:allow-other-keys)
2018 (let ((out (assoc-ref outputs "out"))
2019 (coreutils (assoc-ref inputs "coreutils"))
2020 (inetutils (assoc-ref inputs "inetutils"))
2021 (sed (assoc-ref inputs "sed")))
2022 (substitute* "sctd.sh"
2023 (("\\$\\(which sct\\)") (string-append out "/bin/sct"))
2024 (("date") (string-append coreutils "/bin/date"))
2025 (("printf") (string-append coreutils "/bin/printf"))
2026 (("sleep") (string-append coreutils "/bin/sleep"))
2027 (("logger") (string-append inetutils "/bin/logger"))
2028 (("sed") (string-append sed "/bin/sed"))))))
2029 (replace 'install
2030 (lambda* (#:key outputs #:allow-other-keys)
2031 (let ((out (assoc-ref outputs "out")))
2032 (install-file "sct" (string-append out "/bin"))
2033 (install-file "sctd.sh" (string-append out "/bin"))
2034 (install-file "sct.1" (string-append out "/man/man1"))
2035 (install-file "sctd.1" (string-append out "/man/man1"))
2036 (rename-file (string-append out "/bin/sctd.sh")
2037 (string-append out "/bin/sctd"))
2038 #t))))))
2039 (inputs
2040 `(("coreutils" ,coreutils) ; sctd uses "date", "printf" and "sleep"
2041 ("inetutils" ,inetutils) ; sctd uses "logger"
2042 ("libxrandr" ,libxrandr)
2043 ("sed" ,sed))) ; sctd uses "sed"
2044 (home-page "https://www.umaxx.net")
2045 (synopsis "Set the color temperature of the screen")
2046 (description "@code{sct} is a lightweight utility to set the color
2047 temperature of the screen.")
2048 (license (license:non-copyleft "file://sct.c")))) ; "OpenBSD" license
2049
2050 (define-public xsecurelock
2051 (package
2052 (name "xsecurelock")
2053 (version "1.6.0")
2054 (source (origin
2055 (method url-fetch)
2056 (uri (string-append
2057 "https://github.com/google/xsecurelock/releases"
2058 "/download/v" version "/xsecurelock-" version ".tar.gz"))
2059 (sha256
2060 (base32 "070gknyv0s5hz9hkc6v73m2v7ssyjwgl93b5hd4glayfqxqjbmdp"))))
2061 (build-system gnu-build-system)
2062 (arguments
2063 '(#:configure-flags
2064 '("--with-pam-service-name=login"
2065 "--with-xkb"
2066 "--with-default-authproto-module=/run/setuid-programs/authproto_pam")))
2067 (native-inputs
2068 `(("pandoc" ,pandoc)
2069 ("pkg-config" ,pkg-config)))
2070 (inputs
2071 `(("fontconfig" ,fontconfig)
2072 ("libX11" ,libx11)
2073 ("libxcomposite" ,libxcomposite)
2074 ("libxext" ,libxext)
2075 ("libxfixes" ,libxfixes)
2076 ("libxft" ,libxft)
2077 ("libxmu" ,libxmu)
2078 ("libxrandr" ,libxrandr)
2079 ("libxscrnsaver" ,libxscrnsaver)
2080 ("linux-pam" ,linux-pam)))
2081 (home-page "https://github.com/google/xsecurelock")
2082 (synopsis "X11 screen lock utility with the primary goal of security")
2083 (description "@code{xsecurelock} is an X11 screen locker which uses
2084 a modular design to avoid the usual pitfalls of screen locking utility design.
2085
2086 As a consequence of the modular design, the usual screen locker service
2087 shouldn't be used with @code{xsecurelock}. Instead, you need to add a helper
2088 binary to setuid-binaries:
2089 @example
2090 (setuid-programs (cons*
2091 (file-append xsecurelock \"/libexec/xsecurelock/authproto_pam\")
2092 %setuid-programs))
2093 @end example")
2094 (license license:asl2.0)))
2095
2096 (define-public wl-clipboard
2097 (package
2098 (name "wl-clipboard")
2099 (version "2.0.0")
2100 (source
2101 (origin
2102 (method git-fetch)
2103 (uri (git-reference
2104 (url "https://github.com/bugaevc/wl-clipboard")
2105 (commit (string-append "v" version))))
2106 (file-name (git-file-name name version))
2107 (sha256
2108 (base32 "0c4w87ipsw09aii34szj9p0xfy0m00wyjpll0gb0aqmwa60p0c5d"))))
2109 (build-system meson-build-system)
2110 (native-inputs
2111 `(("pkg-config" ,pkg-config)))
2112 (inputs
2113 `(("wayland" ,wayland)
2114 ("wayland-protocols" ,wayland-protocols)))
2115 (home-page "https://github.com/bugaevc/wl-clipboard")
2116 (synopsis "Command-line copy/paste utilities for Wayland")
2117 (description "Wl-clipboard is a set of command-line copy/paste utilities for
2118 Wayland.")
2119 (license license:gpl3+)))
2120
2121 (define-public autocutsel
2122 (package
2123 (name "autocutsel")
2124 (version "0.10.0")
2125 (source (origin
2126 (method url-fetch)
2127 (uri (string-append "https://github.com/sigmike/autocutsel"
2128 "/releases/download/" version "/"
2129 "autocutsel-" version ".tar.gz"))
2130 (sha256
2131 (base32
2132 "0gsys2dzh4az51ndcsabhlbbrjn2nm75lnjr45kg6r8sm8q66dx2"))))
2133 (build-system gnu-build-system)
2134 (arguments
2135 '(#:tests? #f)) ; no "check" target
2136 (native-inputs `(("libx11" ,libx11)
2137 ("libxaw" ,libxaw)))
2138 (home-page "https://www.nongnu.org/autocutsel/")
2139 (synopsis "Automated X11 clipboard and cutbuffer synchronization")
2140 (description "@code{autocutsel} tracks changes in the server's cutbuffer
2141 and clipboard selection. When the clipboard is changed, it updates the
2142 cutbuffer. When the cutbuffer is changed, it owns the clipboard selection.
2143 The cutbuffer and clipboard selection are always synchronized.")
2144 (license license:gpl2+)))
2145
2146 (define-public jgmenu
2147 (package
2148 (name "jgmenu")
2149 (version "4.1.0")
2150 (source
2151 (origin
2152 (method git-fetch)
2153 (uri (git-reference
2154 (url "https://github.com/johanmalm/jgmenu")
2155 (commit (string-append "v" version))))
2156 (file-name (git-file-name name version))
2157 (sha256
2158 (base32
2159 "1wsh37rapb1bszlq36hvwxqvfds39hbvbl152m8as4zlh93wfvvk"))))
2160 (build-system gnu-build-system)
2161 (native-inputs
2162 `(("cppcheck" ,cppcheck)
2163 ("perl" ,perl)
2164 ("pkg-config" ,pkg-config)))
2165 (inputs
2166 `(("cairo" ,cairo)
2167 ("glib" ,glib)
2168 ("librsvg" ,librsvg)
2169 ("libx11" ,libx11)
2170 ("libxml2" ,libxml2)
2171 ("libxrandr" ,libxrandr)
2172 ("pango" ,pango)))
2173 (arguments
2174 `(#:phases
2175 (modify-phases %standard-phases
2176 (add-after 'unpack 'fix-tests
2177 (lambda _
2178 (substitute* "scripts/cppcheck-wrapper.sh"
2179 (("--library=/usr/share/cppcheck/cfg/gnu\\.cfg")
2180 ""))
2181 #t))
2182 (replace 'configure
2183 (lambda* (#:key outputs #:allow-other-keys)
2184 (setenv "CC" "gcc")
2185 (invoke "./configure"
2186 (string-append "--prefix=" (assoc-ref outputs "out")))
2187 #t)))))
2188 (synopsis "Simple X11 menu")
2189 (description
2190 "This is a simple menu for X11 designed for scripting and tweaking. It
2191 can optionally use some appearance settings from XSettings, tint2 and GTK.")
2192 (home-page "https://jgmenu.github.io/")
2193 (license license:gpl2)))
2194
2195 (define-public xwallpaper
2196 (package
2197 (name "xwallpaper")
2198 (version "0.6.5")
2199 (source
2200 (origin
2201 (method git-fetch)
2202 (uri (git-reference
2203 (url "https://github.com/stoeckmann/xwallpaper")
2204 (commit (string-append "v" version))))
2205 (file-name (git-file-name name version))
2206 (sha256
2207 (base32 "121ai4dc0v65qk12gn9w62ixly8hc8a5qrygkbb82vy8ck4jqxj7"))))
2208 (build-system gnu-build-system)
2209 (native-inputs
2210 `(("autoconf" ,autoconf)
2211 ("automake" ,automake)
2212 ("pkg-config" ,pkg-config)))
2213 (inputs
2214 `(("libjpeg-turbo" ,libjpeg-turbo)
2215 ("libpng" ,libpng)
2216 ("libxpm" ,libxpm)
2217 ("pixman" ,pixman)
2218 ("xcb-util" ,xcb-util)
2219 ("xcb-util-image" ,xcb-util-image)))
2220 (home-page "https://github.com/stoeckmann/xwallpaper")
2221 (synopsis "Wallpaper setting utility for X")
2222 (description
2223 "The xwallpaper utility allows you to set image files as your X
2224 wallpaper. JPEG, PNG, and XPM file formats are supported.
2225
2226 The wallpaper is also advertised to programs which support semi-transparent
2227 backgrounds.")
2228 (license license:isc)))
2229
2230 (define-public xwrits
2231 (package
2232 (name "xwrits")
2233 (version "2.26")
2234 (source
2235 (origin
2236 (method url-fetch)
2237 (uri (string-append "https://www.lcdf.org/~eddietwo/xwrits/"
2238 "xwrits-" version ".tar.gz"))
2239 (sha256
2240 (base32 "1n7y0fqpcvmzznvbsn14hzy5ddaa3lilm8aw6ckscqndnh4lijma"))))
2241 (build-system gnu-build-system)
2242 (arguments
2243 `(#:phases
2244 (modify-phases %standard-phases
2245 (add-after 'install 'install-docs
2246 (lambda* (#:key outputs #:allow-other-keys)
2247 (let* ((out (assoc-ref outputs "out"))
2248 (doc (string-append out "/share/doc/xwrits")))
2249 (install-file "GESTURES" doc)
2250 (install-file "README" doc)
2251 #t))))))
2252 (inputs
2253 `(("libx11" ,libx11)
2254 ("libxinerama" ,libxinerama)))
2255 (home-page "https://www.lcdf.org/~eddietwo/xwrits/")
2256 (synopsis "Reminds you to take wrist breaks")
2257 (description "Xwrits reminds you to take wrist breaks for prevention or
2258 management of repetitive stress injuries. When you should take a break, it
2259 pops up an X window, the warning window. You click on the warning window,
2260 then take a break. The window changes appearance while you take the break.
2261 It changes again when your break is over. Then you just resume typing.
2262 Xwrits hides itself until you should take another break.")
2263 (license license:gpl2)))
2264
2265 (define-public xsettingsd
2266 (package
2267 (name "xsettingsd")
2268 (version "1.0.2")
2269 (source
2270 (origin
2271 (method git-fetch)
2272 (uri (git-reference
2273 (url "https://github.com/derat/xsettingsd")
2274 (commit (string-append "v" version))))
2275 (file-name (git-file-name name version))
2276 (sha256
2277 (base32 "14gnkz18dipsa2v24f4nm9syxaa7g21iqjm7y65jn849ka2jr1h8"))))
2278 (build-system scons-build-system)
2279 (inputs
2280 `(("libx11" ,libx11)))
2281 (native-inputs
2282 `(("pkg-config" ,pkg-config)
2283 ("googletest" ,googletest)
2284 ("googletest-source" ,(package-source googletest))))
2285 (arguments
2286 `(#:scons ,scons-python2
2287 #:scons-flags
2288 (list "CC=gcc")
2289 #:phases
2290 (modify-phases %standard-phases
2291 (add-before 'build 'patch-sconstruct
2292 (lambda* (#:key inputs #:allow-other-keys)
2293 (substitute* "SConstruct"
2294 ;; scons doesn't pick up environment variables automatically
2295 ;; so it needs help to find path variables
2296 (("env = Environment\\(")
2297 "env = Environment(
2298 ENV = {
2299 'PATH': os.environ['PATH'],
2300 'CPATH': os.environ['C_INCLUDE_PATH'],
2301 'LIBRARY_PATH': os.environ['LIBRARY_PATH'],
2302 'PKG_CONFIG_PATH': os.environ['PKG_CONFIG_PATH']
2303 },")
2304 ;; Update path to gtest source files used in tests
2305 (("/usr/src/gtest") (string-append
2306 (assoc-ref inputs "googletest-source")
2307 "/googletest"))
2308 ;; Exclude one warning that causes a build error
2309 (("-Werror") "-Werror -Wno-error=sign-compare"))
2310 #t))
2311 ;; The SConstruct script doesn't configure installation so
2312 ;; binaries must be copied to the output path directly
2313 (replace 'install
2314 (lambda* (#:key outputs #:allow-other-keys)
2315 (let* ((out (assoc-ref outputs "out"))
2316 (bin (string-append out "/bin")))
2317 (mkdir-p bin)
2318 (install-file "xsettingsd" bin)
2319 (install-file "dump_xsettings" bin)
2320 #t))))))
2321 (home-page "https://github.com/derat/xsettingsd")
2322 (synopsis "Xorg settings daemon")
2323 (description "@command{xsettingsd} is a lightweight daemon that provides settings to
2324 Xorg applications via the XSETTINGS specification. It is used for defining
2325 font and theme settings when a complete desktop environment (GNOME, KDE) is
2326 not running. With a simple @file{.xsettingsd} configuration file one can avoid
2327 configuring visual settings in different UI toolkits separately.")
2328 (license license:bsd-3)))
2329
2330 (define-public clipnotify
2331 (package
2332 (name "clipnotify")
2333 (version "1.0.2")
2334 (source
2335 (origin
2336 (method git-fetch)
2337 (uri (git-reference
2338 (url "https://github.com/cdown/clipnotify")
2339 (commit version)))
2340 (file-name (git-file-name name version))
2341 (sha256
2342 (base32
2343 "1v3ydm5ljy8z1savmdxrjyx7a5bm5013rzw80frp3qbbjaci0wbg"))))
2344 (build-system gnu-build-system)
2345 (arguments
2346 `(#:phases
2347 (modify-phases %standard-phases
2348 (delete 'configure)
2349 (replace 'install
2350 (lambda* (#:key inputs outputs #:allow-other-keys)
2351 (let* ((out (assoc-ref outputs "out"))
2352 (bin (string-append out "/bin"))
2353 (doc (string-append %output "/share/doc/" ,name "-" ,version)))
2354 (install-file "clipnotify" bin)
2355 (install-file "README.md" doc)
2356 #t))))
2357 #:make-flags
2358 (list ,(string-append "CC=" (cc-for-target)))
2359 #:tests? #f)) ; no test suite
2360 (inputs
2361 `(("libx11" ,libx11)
2362 ("libXfixes" ,libxfixes)))
2363 (home-page "https://github.com/cdown/clipnotify")
2364 (synopsis "Notify on new X clipboard events")
2365 (description "@command{clipnotify} is a simple program that, using the
2366 XFIXES extension to X11, waits until a new selection is available and then
2367 exits.
2368
2369 It was primarily designed for clipmenu, to avoid polling for new selections.
2370
2371 @command{clipnotify} doesn't try to print anything about the contents of the
2372 selection, it just exits when it changes. This is intentional -- X11's
2373 selection API is verging on the insane, and there are plenty of others who
2374 have already lost their sanity to bring us xclip/xsel/etc. Use one of those
2375 tools to complement clipnotify.")
2376 (license license:public-domain)))
2377
2378 (define-public clipmenu
2379 (let ((commit "bcbe7b144598db4a103f14e8408c4b7327d6d5e1")
2380 (revision "1"))
2381 (package
2382 (name "clipmenu")
2383 (version (string-append "6.0.1-"
2384 revision "." (string-take commit 7)))
2385 (source
2386 (origin
2387 (method git-fetch)
2388 (uri (git-reference
2389 (url "https://github.com/cdown/clipmenu")
2390 (commit commit)))
2391 (file-name (git-file-name name version))
2392 (sha256
2393 (base32
2394 "0053j4i14lz5m2bzc5sch5id5ilr1bl196mp8fp0q8x74w3vavs9"))))
2395 (build-system gnu-build-system)
2396 (arguments
2397 `(#:phases
2398 (modify-phases %standard-phases
2399 (delete 'configure)
2400 (delete 'build)
2401 (replace 'install
2402 (lambda* (#:key inputs outputs #:allow-other-keys)
2403 (let* ((out (assoc-ref outputs "out"))
2404 (bin (string-append out "/bin"))
2405 (doc (string-append %output "/share/doc/"
2406 ,name "-" ,version)))
2407 (install-file "clipdel" bin)
2408 (install-file "clipmenu" bin)
2409 (install-file "clipmenud" bin)
2410 (install-file "README.md" doc)
2411 #t)))
2412 (add-after 'install 'wrap-script
2413 (lambda* (#:key inputs outputs #:allow-other-keys)
2414 (let* ((out (assoc-ref outputs "out"))
2415 (clipnotify (assoc-ref inputs "clipnotify"))
2416 (coreutils-minimal (assoc-ref inputs "coreutils-minimal"))
2417 (gawk (assoc-ref inputs "gawk"))
2418 (util-linux (assoc-ref inputs "util-linux"))
2419 (xdotool (assoc-ref inputs "xdotool"))
2420 (xsel (assoc-ref inputs "xsel")))
2421 (for-each
2422 (lambda (prog)
2423 (wrap-script (string-append out "/bin/" prog)
2424 `("PATH" ":" prefix
2425 ,(map (lambda (dir)
2426 (string-append dir "/bin"))
2427 (list clipnotify coreutils-minimal
2428 gawk util-linux xdotool xsel)))))
2429 '("clipmenu" "clipmenud" "clipdel")))
2430 #t))
2431 (replace 'check
2432 (lambda* (#:key inputs outputs #:allow-other-keys)
2433 ;; substitute a shebang appearing inside a string (the test
2434 ;; file writes this string to a temporary file):
2435 (substitute* "tests/test-clipmenu"
2436 (("#!/usr/bin/env bash")
2437 (string-append "#!" (which "bash"))))
2438 (invoke "tests/test-clipmenu")
2439 #t)))))
2440 (inputs
2441 `(("clipnotify" ,clipnotify)
2442 ("coreutils-minimal" ,coreutils-minimal)
2443 ("gawk" ,gawk)
2444 ("guile" ,guile-3.0) ; for wrap-script
2445 ("util-linux" ,util-linux)
2446 ("xdotool" ,xdotool)
2447 ("xsel" ,xsel)))
2448 (home-page "https://github.com/cdown/clipmenu")
2449 (synopsis "Simple clipboard manager using dmenu or rofi and xsel")
2450 (description "Start @command{clipmenud}, then run @command{clipmenu} to
2451 select something to put on the clipboard.
2452
2453 When @command{clipmenud} detects changes to the clipboard contents, it writes
2454 them out to the cache directory. @command{clipmenu} reads the cache directory
2455 to find all available clips and launches @command{dmenu} (or @command{rofi},
2456 depending on the value of @code{CM_LAUNCHER}) to let the user select a clip.
2457 After selection, the clip is put onto the PRIMARY and CLIPBOARD X selections.")
2458 (license license:public-domain))))
2459
2460 (define-public kbdd
2461 (package
2462 (name "kbdd")
2463 (version "0.7.1")
2464 (source
2465 (origin
2466 (method git-fetch)
2467 (uri (git-reference
2468 (url "https://github.com/qnikst/kbdd")
2469 (commit (string-append "v" version))))
2470 (file-name (git-file-name name version))
2471 (sha256
2472 (base32
2473 "0qkq75grbd4wkx4nlvswgavpijk9ad0pzqyj89a0ayjsbsn36pqy"))))
2474 (build-system gnu-build-system)
2475 (native-inputs
2476 `(("autoconf" ,autoconf)
2477 ("automake" ,automake)
2478 ("glib" ,glib "bin")
2479 ("pkg-config" ,pkg-config)))
2480 (inputs
2481 `(("dbus-glib" ,dbus-glib)
2482 ("glib" ,glib)
2483 ("libx11" ,libx11)))
2484 (home-page "https://github.com/qnikst/kbdd")
2485 (synopsis "Per-window keyboard layout switching daemon for X")
2486 (description "@command{kbdd} is a simple keyboard layout switching
2487 program, which is designed to run in an X11 session and remember
2488 keyboard layouts on a per-window basis. That can be very handy for a
2489 user of a non-US keyboard who does not want to jump through layouts back
2490 and forth while typing in terminals (mostly in a latin alphabet) and
2491 some kind of chat (in native language).
2492
2493 @command{kbdd} also supports D-Bus signals, which makes it possible to
2494 create layout indicator widgets.")
2495 (license license:bsd-2)))
2496
2497 (define-public j4-dmenu-desktop
2498 (package
2499 (name "j4-dmenu-desktop")
2500 (version "2.18")
2501 (source (origin
2502 (method git-fetch)
2503 (uri (git-reference
2504 (url "https://github.com/enkore/j4-dmenu-desktop")
2505 (commit (string-append "r" version))))
2506 (file-name (git-file-name name version))
2507 (sha256
2508 (base32
2509 "1gxpgifzy0hnpd0ymw3r32amzr32z3bgb90ldjzl438p6h1q0i26"))))
2510 (build-system cmake-build-system)
2511 (native-inputs
2512 `(("catch2" ,catch-framework2)))
2513 (arguments
2514 `(#:configure-flags '("-DWITH_GIT_CATCH=off")
2515 #:phases
2516 (modify-phases %standard-phases
2517 (add-after 'unpack 'find-catch
2518 (lambda _
2519 (substitute* "CMakeLists.txt"
2520 (("PATH_SUFFIXES catch") "PATH_SUFFIXES catch2"))
2521 #t))
2522 (replace 'check
2523 (lambda _
2524 (invoke "./j4-dmenu-tests" "exclude:SearchPath/XDG_DATA_HOME"))))))
2525 (synopsis "Fast desktop menu")
2526 (description
2527 "j4-dmenu-desktop is a replacement for i3-dmenu-desktop. Its purpose
2528 is to find @file{.desktop} files and offer you a menu to start an application
2529 using @command{dmenu}.")
2530 (home-page "https://github.com/enkore/j4-dmenu-desktop")
2531 (license license:gpl3+)))
2532
2533 (define-public wofi
2534 (package
2535 (name "wofi")
2536 (version "1.2.3")
2537 (source (origin
2538 (method hg-fetch)
2539 (uri (hg-reference
2540 (url "https://hg.sr.ht/~scoopta/wofi")
2541 (changeset (string-append "v" version))))
2542 (file-name (git-file-name name version))
2543 (sha256
2544 (base32
2545 "0glpb2gf5n78s01z3rn614ak8ibxhfr824gy6xlljbxclgds264i"))))
2546 (build-system meson-build-system)
2547 (arguments
2548 `(#:glib-or-gtk? #t))
2549 (native-inputs
2550 `(("pkg-config" ,pkg-config)))
2551 (inputs
2552 `(("gtk3" ,gtk+)
2553 ("wayland" ,wayland)))
2554 (synopsis "Launcher/menu program for wayland")
2555 (description
2556 "Wofi is a launcher/menu program for wlroots based wayland compositors
2557 such as sway, similar to @command{rofi}.")
2558 (home-page "https://hg.sr.ht/~scoopta/wofi")
2559 (license license:gpl3+)))
2560
2561 (define-public dex
2562 (package
2563 (name "dex")
2564 (version "0.9.0")
2565 (source (origin
2566 (method git-fetch)
2567 (uri (git-reference
2568 (url (string-append "https://github.com/jceb/dex"))
2569 (commit (string-append "v" version))))
2570 (sha256
2571 (base32
2572 "03aapcywnz4kl548cygpi25m8adwbmqlmwgxa66v4156ax9dqs86"))
2573 (file-name (git-file-name name version))))
2574 (build-system gnu-build-system)
2575 (arguments
2576 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2577 #:phases
2578 (modify-phases %standard-phases
2579 (delete 'configure))
2580 #:tests? #f))
2581 (inputs
2582 `(("python", python)))
2583 (native-inputs
2584 `(("python-sphinx" ,python-sphinx)))
2585 (home-page "https://github.com/jceb/dex")
2586 (synopsis "Execute DesktopEntry files")
2587 (description
2588 "@command{dex}, @dfn{DesktopEntry Execution}, is a program to generate
2589 and execute @file{.desktop} files of the Application type.")
2590 (license license:gpl3+)))
2591
2592 (define-public sx
2593 (package
2594 (name "sx")
2595 (version "2.1.6")
2596 (source (origin
2597 (method git-fetch)
2598 (uri (git-reference
2599 (url "https://github.com/Earnestly/sx")
2600 (commit version)))
2601 (file-name (git-file-name name version))
2602 (sha256
2603 (base32
2604 "0p24ghp1ygvyc2hv81byhxax7491yhcc5priq5ldv07nzl7akagc"))))
2605 (build-system gnu-build-system)
2606 (arguments
2607 '(#:tests? #f ; no tests
2608 #:make-flags
2609 (let ((out (assoc-ref %outputs "out")))
2610 (list (string-append "PREFIX=" out)))
2611 #:phases
2612 (modify-phases %standard-phases
2613 ;; no configure script
2614 (delete 'configure))))
2615 (propagated-inputs
2616 `(("xauth" ,xauth)))
2617 (home-page "https://github.com/Earnestly/sx")
2618 (synopsis "Start an xorg server")
2619 (description
2620 "@command{sx} is a simple alternative to both @command{xinit} and
2621 @command{startx} for starting an Xorg server.")
2622 (license license:x11)))
2623
2624 (define-public hsetroot
2625 (package
2626 (name "hsetroot")
2627 (version "1.0.5")
2628 (home-page "https://github.com/himdel/hsetroot")
2629 (source (origin
2630 (method git-fetch)
2631 (file-name (git-file-name name version))
2632 (uri (git-reference
2633 (url home-page)
2634 (commit version)))
2635 (sha256
2636 (base32
2637 "1jbk5hlxm48zmjzkaq5946s58rqwg1v1ds2sdyd2ba029hmvr722"))))
2638 (build-system gnu-build-system)
2639 (arguments
2640 `(#:tests? #f
2641 #:make-flags
2642 (list
2643 "CC=gcc"
2644 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2645 #:phases
2646 (modify-phases %standard-phases
2647 (delete 'configure)
2648 (add-before 'install 'mkdir-install-path
2649 (lambda* (#:key outputs #:allow-other-keys)
2650 (let ((out (assoc-ref outputs "out")))
2651 (mkdir-p (string-append out "/bin"))))))))
2652 (inputs
2653 `(("libx11" ,libx11)
2654 ("imlib2" ,imlib2)
2655 ("libxinerama" ,libxinerama)))
2656 (native-inputs
2657 `(("pkg-config" ,pkg-config)))
2658 (synopsis "Imlib2-based wallpaper changer")
2659 (description
2660 "The @command{hsetroot} command composes wallpapers for X.
2661 This package is the fork of hsetroot by Hyriand.")
2662 (license license:gpl2+)))