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