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