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