Commit | Line | Data |
---|---|---|
3c156c8a JD |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr> | |
56ac2bf4 | 3 | ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org> |
3c156c8a | 4 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> |
9f1d33be | 5 | ;;; Copyright © 2014, 2015, 2016 Alex Kost <alezost@gmail.com> |
189be331 | 6 | ;;; Copyright © 2013, 2015, 2017, 2018 Ludovic Courtès <ludo@gnu.org> |
751f6871 | 7 | ;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org> |
42f2c2b9 | 8 | ;;; Copyright © 2015 Alexander I.Grafov <grafov@gmail.com> |
f1f7049e | 9 | ;;; Copyright © 2015 Andy Wingo <wingo@igalia.com> |
998b8c07 | 10 | ;;; Copyright © 2015 xd1le <elisp.vim@gmail.com> |
6645753b | 11 | ;;; Copyright © 2015 Florian Paul Schmidt <mista.tapas@gmx.net> |
6f74aecd | 12 | ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org> |
4cbbb160 | 13 | ;;; Copyright © 2016, 2018 Ricardo Wurmus <rekado@elephly.net> |
19110787 | 14 | ;;; Copyright © 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il> |
71ca0539 | 15 | ;;; Copyright © 2016 Leo Famulari <leo@famulari.name> |
6cfd1a68 | 16 | ;;; Copyright © 2016 Alex Kost <alezost@gmail.com> |
b2193c35 | 17 | ;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com> |
01278f16 | 18 | ;;; Copyright © 2016 Petter <petter@mykolab.ch> |
37447422 | 19 | ;;; Copyright © 2017 Mekeor Melire <mekeor.melire@gmail.com> |
4a78fd46 | 20 | ;;; Copyright © 2017 Nils Gillmann <ng0@n0.is> |
3659b0d7 | 21 | ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
f021382b | 22 | ;;; Copyright © 2017 Marek Benc <dusxmt@gmx.com> |
1d752e43 | 23 | ;;; Copyright © 2017 Mike Gerwitz <mtg@gnu.org> |
af1e3dfe | 24 | ;;; Copyright © 2018 Thomas Sigurdsen <tonton@riseup.net> |
95bf2fb6 | 25 | ;;; Copyright © 2018, 2019 Rutger Helling <rhelling@mykolab.com> |
4715f92e | 26 | ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz> |
d852cf9e | 27 | ;;; Copyright © 2018 Nam Nguyen <namn@berkeley.edu> |
3c156c8a JD |
28 | ;;; |
29 | ;;; This file is part of GNU Guix. | |
30 | ;;; | |
31 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
32 | ;;; under the terms of the GNU General Public License as published by | |
33 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
34 | ;;; your option) any later version. | |
35 | ;;; | |
36 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
37 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
38 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
39 | ;;; GNU General Public License for more details. | |
40 | ;;; | |
41 | ;;; You should have received a copy of the GNU General Public License | |
42 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
43 | ||
44 | (define-module (gnu packages xdisorg) | |
45 | #:use-module ((guix licenses) #:prefix license:) | |
46 | #:use-module (guix packages) | |
47 | #:use-module (guix download) | |
37447422 | 48 | #:use-module (guix git-download) |
18ad5bff | 49 | #:use-module (guix utils) |
9f1d33be | 50 | #:use-module (guix build-system cmake) |
3c156c8a | 51 | #:use-module (guix build-system gnu) |
f1f7049e | 52 | #:use-module (guix build-system glib-or-gtk) |
ae05b185 | 53 | #:use-module (guix build-system python) |
3c156c8a | 54 | #:use-module (gnu packages) |
99828fa7 | 55 | #:use-module (gnu packages documentation) |
d852cf9e NN |
56 | #:use-module (gnu packages admin) |
57 | #:use-module (gnu packages base) | |
b4c400a7 | 58 | #:use-module (gnu packages algebra) |
b2193c35 | 59 | #:use-module (gnu packages autotools) |
23e12d9d | 60 | #:use-module (gnu packages check) |
3c156c8a JD |
61 | #:use-module (gnu packages compression) |
62 | #:use-module (gnu packages image) | |
63 | #:use-module (gnu packages pkg-config) | |
23e12d9d | 64 | #:use-module (gnu packages flex) |
95bf2fb6 | 65 | #:use-module (gnu packages freedesktop) |
ae05b185 | 66 | #:use-module (gnu packages gettext) |
9f1d33be | 67 | #:use-module (gnu packages gl) |
2e88e089 | 68 | #:use-module (gnu packages glib) |
751f6871 | 69 | #:use-module (gnu packages gnome) |
01614de1 | 70 | #:use-module (gnu packages icu4c) |
937b71df | 71 | #:use-module (gnu packages maths) |
4493a3c2 | 72 | #:use-module (gnu packages m4) |
1ef3f91a | 73 | #:use-module (gnu packages ncurses) |
de51bf58 | 74 | #:use-module (gnu packages perl) |
ae05b185 | 75 | #:use-module (gnu packages python) |
ab69d9ac | 76 | #:use-module (gnu packages linux) |
b4c400a7 | 77 | #:use-module (gnu packages gl) |
76212b57 | 78 | #:use-module (gnu packages guile) |
f1f7049e AW |
79 | #:use-module (gnu packages xml) |
80 | #:use-module (gnu packages gtk) | |
cf60e76a | 81 | #:use-module (gnu packages xorg) |
1f42989e EF |
82 | #:use-module (gnu packages bison) |
83 | #:use-module (ice-9 match)) | |
3c156c8a | 84 | |
3c156c8a JD |
85 | ;; packages outside the x.org system proper |
86 | ||
ae05b185 ML |
87 | (define-public arandr |
88 | (package | |
89 | (name "arandr") | |
16d8f9be | 90 | (version "0.1.9") |
ae05b185 ML |
91 | (source (origin |
92 | (method url-fetch) | |
93 | (uri (string-append "http://christian.amsuess.com/tools/" name | |
94 | "/files/" name "-" version ".tar.gz")) | |
95 | (sha256 | |
96 | (base32 | |
04fa4cdf LC |
97 | "1i3f1agixxbfy4kxikb2b241p7c2lg73cl9wqfvlwz3q6zf5faxv")) |
98 | (modules '((guix build utils))) | |
99 | (snippet | |
6cbee49d MW |
100 | '(begin |
101 | ;; Do not record a timestamp and file name in gzipped man | |
102 | ;; pages (this is equivalent to 'gzip --no-name'.) | |
103 | (substitute* "setup.py" | |
104 | (("gzip\\.open\\(gzfile, 'w', 9\\)") | |
105 | "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)")) | |
106 | #t)))) | |
ae05b185 | 107 | (build-system python-build-system) |
b951e26f RW |
108 | (arguments |
109 | `(#:python ,python-2 ;incompatible with python 3 | |
28fd275c AI |
110 | #:phases |
111 | (modify-phases %standard-phases | |
112 | (add-before 'build 'configure | |
113 | (lambda* (#:key inputs #:allow-other-keys) | |
114 | (substitute* "screenlayout/xrandr.py" | |
115 | (("\"xrandr\"") (string-append "\"" (assoc-ref inputs "xrandr") | |
116 | "/bin/xrandr\""))) | |
117 | #t))) | |
b5244fcb | 118 | #:tests? #f)) ;no tests |
b951e26f RW |
119 | (inputs `(("pygtk" ,python2-pygtk) |
120 | ("xrandr" ,xrandr))) | |
b94a6ca0 | 121 | (native-inputs `(("gettext" ,gettext-minimal) |
f3b98f4f | 122 | ("python-docutils" ,python2-docutils))) |
ae05b185 ML |
123 | (home-page "https://christian.amsuess.com/tools/arandr/") |
124 | (synopsis "Another RandR graphical user interface") | |
125 | ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated. | |
126 | (description "ARandR is designed to provide a simple visual front end for | |
127 | the X11 resize-and-rotate (RandR) extension. Relative monitor positions are | |
128 | shown graphically and can be changed in a drag-and-drop way. Configurations | |
129 | are saved as executable shell scripts which can be loaded without using this | |
130 | program.") | |
131 | (license license:gpl3+))) | |
132 | ||
de878f1b JD |
133 | (define-public xclip |
134 | (package | |
135 | (name "xclip") | |
b2193c35 | 136 | (version "0.13") |
de878f1b | 137 | (source |
2d8387c3 RW |
138 | (origin |
139 | (method git-fetch) | |
140 | (uri (git-reference | |
141 | (url "https://github.com/astrand/xclip.git") | |
142 | (commit version))) | |
143 | (file-name (git-file-name name version)) | |
144 | (sha256 | |
145 | (base32 | |
146 | "0q0hmvcjlv8arhh1pzhja2wglyj6n7z209jnpnzd281kqqv4czcs")))) | |
de878f1b JD |
147 | (build-system gnu-build-system) |
148 | (arguments | |
189be331 | 149 | '(#:tests? #f)) ;there is no test suite |
b2193c35 MB |
150 | (native-inputs |
151 | `(("autoconf" ,autoconf) | |
152 | ("automake" ,automake))) | |
de878f1b JD |
153 | (inputs `(("libxmu" ,libxmu) |
154 | ("libxt" ,libxt))) | |
b2193c35 | 155 | (home-page "https://github.com/astrand/xclip") |
de878f1b JD |
156 | (synopsis "Command line interface to X11 clipboard") |
157 | (description "Xclip is a command line interface to the X11 clipboard. It | |
158 | can also be used for copying files, as an alternative to sftp/scp, thus | |
159 | avoiding password prompts when X11 forwarding has already been setup.") | |
160 | (license license:gpl2+))) | |
161 | ||
cf60e76a DM |
162 | (define-public libxkbcommon |
163 | (package | |
164 | (name "libxkbcommon") | |
766e46e2 | 165 | (version "0.8.2") |
cf60e76a DM |
166 | (source (origin |
167 | (method url-fetch) | |
fbb4755c | 168 | (uri (string-append "https://xkbcommon.org/download/" name "-" |
cf60e76a DM |
169 | version ".tar.xz")) |
170 | (sha256 | |
171 | (base32 | |
766e46e2 | 172 | "136mdq11lrwg6rjmm44lmysxxgb9c35p4sq6k0cd129x82rw9f3s")))) |
cf60e76a DM |
173 | (build-system gnu-build-system) |
174 | (inputs | |
175 | `(("libx11" ,libx11) | |
176 | ("libxcb" ,libxcb) | |
177 | ("xkeyboard-config" ,xkeyboard-config))) | |
178 | (native-inputs | |
179 | `(("bison" ,bison) | |
180 | ("pkg-config" ,pkg-config))) | |
181 | (arguments | |
182 | `(#:configure-flags | |
183 | (list (string-append "--with-xkb-config-root=" | |
184 | (assoc-ref %build-inputs "xkeyboard-config") | |
185 | "/share/X11/xkb") | |
186 | (string-append "--with-x-locale-root=" | |
187 | (assoc-ref %build-inputs "libx11") | |
188 | "/share/X11/locale")))) | |
fbb4755c | 189 | (home-page "https://xkbcommon.org/") |
cf60e76a DM |
190 | (synopsis "Library to handle keyboard descriptions") |
191 | (description "Xkbcommon is a library to handle keyboard descriptions, | |
192 | including loading them from disk, parsing them and handling their | |
193 | state. It is mainly meant for client toolkits, window systems, and other | |
194 | system applications; currently that includes Wayland, kmscon, GTK+, Qt, | |
195 | Clutter, and more. Despite the name, it is not currently used by anything | |
196 | X11 (yet).") | |
197 | (license (license:x11-style "file://COPYING" | |
198 | "See 'COPYING' in the distribution.")))) | |
199 | ||
e91f9d40 | 200 | (define-public libfakekey |
201 | (package | |
202 | (name "libfakekey") | |
203 | (version "0.1") | |
204 | (source | |
205 | (origin | |
206 | (method url-fetch) | |
207 | (uri (string-append "https://downloads.yoctoproject.org/releases" | |
208 | "/matchbox/libfakekey/" version "/libfakekey-" | |
209 | version ".tar.bz2")) | |
210 | (sha256 | |
211 | (base32 | |
212 | "1501l0bflcrhqbf12n7a7cqilvr0w4xawxw0vw75p2940nkl4464")))) | |
213 | (build-system gnu-build-system) | |
214 | (arguments | |
215 | `(#:make-flags (list "AM_LDFLAGS=-lX11"))) | |
216 | (native-inputs | |
217 | `(("pkg-config" ,pkg-config))) | |
218 | (inputs | |
219 | `(("libxtst" ,libxtst) | |
220 | ("libx11" ,libx11))) | |
221 | (home-page "https://www.yoctoproject.org/tools-resources/projects/matchbox") | |
222 | (synopsis "X virtual keyboard library") | |
223 | (description | |
224 | "Libfakekey is a virtual keyboard library for X.") | |
225 | (license license:gpl2))) | |
226 | ||
de51bf58 JD |
227 | (define-public xdotool |
228 | (package | |
229 | (name "xdotool") | |
ad430c71 | 230 | (version "3.20160805.1") |
de51bf58 JD |
231 | (source |
232 | (origin | |
233 | (method url-fetch) | |
234 | (uri (string-append | |
6f74aecd CAW |
235 | "https://github.com/jordansissel/xdotool/releases/download/v" |
236 | version "/xdotool-" version ".tar.gz")) | |
de51bf58 JD |
237 | (sha256 |
238 | (base32 | |
ad430c71 | 239 | "1a6c1zr86zb53352yxv104l76l8x21gfl2bgw6h21iphxpv5zgim")))) |
de51bf58 JD |
240 | (build-system gnu-build-system) |
241 | (arguments | |
242 | '(#:tests? #f ; Test suite requires a lot of black magic | |
ca0d2a63 | 243 | #:phases |
c237480b EF |
244 | (modify-phases %standard-phases |
245 | (replace 'configure | |
246 | (lambda* (#:key outputs #:allow-other-keys #:rest args) | |
ad430c71 MB |
247 | (let ((out (assoc-ref outputs "out"))) |
248 | (mkdir-p (string-append out "/lib")) | |
249 | (setenv "PREFIX" out) | |
250 | (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib")) | |
c6bf07d1 MW |
251 | (setenv "CC" "gcc") |
252 | #t)))))) | |
de51bf58 JD |
253 | (native-inputs `(("perl" ,perl))) ; for pod2man |
254 | (inputs `(("libx11" ,libx11) | |
255 | ("libxext" ,libxext) | |
256 | ("libxi" ,libxi) | |
257 | ("libxinerama" ,libxinerama) | |
6f74aecd CAW |
258 | ("libxtst" ,libxtst) |
259 | ("libxkbcommon" ,libxkbcommon))) | |
de51bf58 JD |
260 | (home-page "http://www.semicomplete.com/projects/xdotool") |
261 | (synopsis "Fake keyboard/mouse input, window management, and more") | |
262 | (description "Xdotool lets you simulate keyboard input and mouse activity, | |
263 | move and resize windows, etc. It does this using X11's XTEST extension and | |
264 | other Xlib functions. Additionally, you can search for windows and move, | |
265 | resize, hide, and modify window properties like the title. If your window | |
266 | manager supports it, you can use xdotool to switch desktops, move windows | |
267 | between desktops, and change the number of desktops.") | |
268 | (license license:bsd-3))) | |
269 | ||
3c156c8a JD |
270 | (define-public xeyes |
271 | (package | |
272 | (name "xeyes") | |
fa91433d | 273 | (version "1.1.2") |
3c156c8a | 274 | (source |
fa91433d TGR |
275 | (origin |
276 | (method url-fetch) | |
277 | (uri (string-append "https://www.x.org/releases/individual/app/" | |
278 | name "-" version ".tar.bz2")) | |
279 | (sha256 | |
280 | (base32 "0lq5j7fryx1wn998jq6h3icz1h6pqrsbs3adskjzjyhn5l6yrg2p")))) | |
3c156c8a JD |
281 | (build-system gnu-build-system) |
282 | (inputs | |
283 | `(("libxext" ,libxext) | |
284 | ("libxmu" ,libxmu) | |
fa91433d | 285 | ("libxrender" ,libxrender) |
3c156c8a JD |
286 | ("libxt" ,libxt))) |
287 | (native-inputs | |
288 | `(("pkg-config" ,pkg-config))) | |
5e996128 | 289 | (home-page "https://www.x.org/") ; no dedicated Xeyes page exists |
3c156c8a JD |
290 | (synopsis "Follow-the-mouse X demo") |
291 | (description "Xeyes is a demo program for x.org. It shows eyes | |
292 | following the mouse.") | |
293 | (license license:x11))) | |
294 | ||
295 | ||
296 | (define-public pixman | |
297 | (package | |
298 | (name "pixman") | |
6983ba56 | 299 | (version "0.34.0") |
997f86e9 LC |
300 | (source (origin |
301 | (method url-fetch) | |
302 | (uri (string-append | |
303 | "http://cairographics.org/releases/pixman-" | |
304 | version ".tar.gz")) | |
305 | (sha256 | |
306 | (base32 | |
35bbe88b MB |
307 | "13m842m9ffac3m9r0b4lvwjhwzg3w4353djkjpf00s0wnm4v5di1")) |
308 | (patches (search-patches "pixman-CVE-2016-5296.patch")))) | |
3c156c8a JD |
309 | (build-system gnu-build-system) |
310 | (inputs | |
997f86e9 LC |
311 | `(("libpng" ,libpng) |
312 | ("zlib" ,zlib))) | |
3c156c8a | 313 | (native-inputs |
997f86e9 | 314 | `(("pkg-config" ,pkg-config))) |
3c156c8a JD |
315 | (home-page "http://www.pixman.org/") |
316 | (synopsis "Low-level pixel manipulation library") | |
317 | (description "Pixman is a low-level software library for pixel | |
318 | manipulation, providing features such as image compositing and trapezoid | |
319 | rasterisation.") | |
320 | (license license:x11))) | |
321 | ||
3c156c8a JD |
322 | (define-public libdrm |
323 | (package | |
324 | (name "libdrm") | |
030c9126 | 325 | (version "2.4.93") |
3c156c8a JD |
326 | (source |
327 | (origin | |
328 | (method url-fetch) | |
329 | (uri (string-append | |
5cc3096c | 330 | "https://dri.freedesktop.org/libdrm/libdrm-" |
3c156c8a JD |
331 | version |
332 | ".tar.bz2")) | |
333 | (sha256 | |
0b684f49 | 334 | (base32 |
030c9126 | 335 | "0g6d9wsnb7lx8r1m4kq8js0wsc5jl20cz1csnlh6z9s8jpfd313f")) |
fc1adab1 | 336 | (patches (search-patches "libdrm-symbol-check.patch")))) |
3c156c8a | 337 | (build-system gnu-build-system) |
1f42989e EF |
338 | (arguments |
339 | `(#:configure-flags | |
340 | '(,@(match (%current-system) | |
341 | ("armhf-linux" | |
342 | '("--enable-exynos-experimental-api" | |
343 | "--enable-omap-experimental-api" | |
68932812 MB |
344 | ;; XXX: This fails a symbol check on a build machine: |
345 | ;; <https://hydra.gnu.org/build/2270314/nixlog/4/raw> | |
346 | ;; TODO: Update the list of symbols. | |
347 | ;;"--enable-etnaviv-experimental-api" | |
1f42989e EF |
348 | "--enable-tegra-experimental-api" |
349 | "--enable-freedreno-kgsl")) | |
350 | ("aarch64-linux" | |
351 | '("--enable-tegra-experimental-api" | |
352 | "--enable-freedreno-kgsl")) | |
353 | (_ '()))))) | |
3c156c8a | 354 | (inputs |
53e16a5a | 355 | `(("libpciaccess" ,libpciaccess))) |
3c156c8a | 356 | (native-inputs |
53e16a5a MB |
357 | `(("pkg-config" ,pkg-config))) |
358 | (home-page "https://dri.freedesktop.org/wiki/") | |
3c156c8a JD |
359 | (synopsis "Direct rendering userspace library") |
360 | (description "The Direct Rendering Infrastructure, also known as the DRI, | |
361 | is a framework for allowing direct access to graphics hardware under the | |
362 | X Window System in a safe and efficient manner. It includes changes to the | |
363 | X server, to several client libraries, and to the kernel (DRM, Direct | |
364 | Rendering Manager). The most important use for the DRI is to create fast | |
365 | OpenGL implementations providing hardware acceleration for Mesa. | |
366 | Several 3D accelerated drivers have been written to the DRI specification, | |
367 | including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel | |
368 | and Matrox.") | |
369 | (license license:x11))) | |
370 | ||
371 | ||
3c156c8a JD |
372 | (define-public mtdev |
373 | (package | |
374 | (name "mtdev") | |
1f1e620f | 375 | (version "1.1.5") |
3c156c8a JD |
376 | (source |
377 | (origin | |
378 | (method url-fetch) | |
379 | (uri (string-append | |
380 | "http://bitmath.org/code/mtdev/mtdev-" | |
381 | version ".tar.bz2")) | |
382 | (sha256 | |
1f1e620f EF |
383 | (base32 |
384 | "0zxs7shzgbalkvlaiibi25bd902rbmkv9n1lww6q8j3ri9qdaxv6")))) | |
3c156c8a JD |
385 | (build-system gnu-build-system) |
386 | (home-page "http://bitmath.org/code/mtdev/") | |
387 | (synopsis "Multitouch protocol translation library") | |
388 | (description "Mtdev is a stand-alone library which transforms all | |
389 | variants of kernel MT events to the slotted type B protocol. The events | |
390 | put into mtdev may be from any MT device, specifically type A without | |
391 | contact tracking, type A with contact tracking, or type B with contact | |
392 | tracking.") | |
393 | (license license:x11))) | |
a693bba1 SB |
394 | |
395 | (define-public startup-notification | |
396 | (package | |
397 | (name "startup-notification") | |
398 | (version "0.12") | |
399 | (source | |
400 | (origin | |
401 | (method url-fetch) | |
5cc3096c | 402 | (uri (string-append "https://www.freedesktop.org/software/" name |
a693bba1 SB |
403 | "/releases/" name "-" version ".tar.gz")) |
404 | (sha256 | |
405 | (base32 | |
406 | "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w")))) | |
407 | (build-system gnu-build-system) | |
408 | (native-inputs `(("pkg-config" ,pkg-config))) | |
409 | (inputs | |
410 | `(("libx11" ,libx11) | |
411 | ("xcb-util" ,xcb-util))) | |
57e7d748 | 412 | (home-page "https://www.freedesktop.org/wiki/Software/startup-notification/") |
a693bba1 SB |
413 | (synopsis "Application startup notification and feedback library") |
414 | (description | |
415 | "Startup-notification contains a reference implementation of the startup | |
416 | notification protocol. The reference implementation is mostly under an X Window | |
417 | System style license, and has no special dependencies.") | |
418 | ;; Most of the code is provided under x11 license. | |
419 | (license license:lgpl2.0+))) | |
2e88e089 AK |
420 | |
421 | (define-public wmctrl | |
422 | (package | |
423 | (name "wmctrl") | |
424 | (version "1.07") | |
425 | (source (origin | |
426 | (method url-fetch) | |
427 | (uri (string-append | |
d6420533 | 428 | "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-" |
2e88e089 AK |
429 | version ".tar.gz")) |
430 | (sha256 | |
431 | (base32 | |
432 | "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np")) | |
fc1adab1 | 433 | (patches (search-patches "wmctrl-64-fix.patch")))) |
2e88e089 AK |
434 | (build-system gnu-build-system) |
435 | (arguments | |
436 | '(#:configure-flags | |
437 | (list (string-append "--mandir=" | |
438 | (assoc-ref %outputs "out") | |
439 | "/share/man")))) | |
440 | (native-inputs | |
441 | `(("pkg-config" ,pkg-config))) | |
442 | (inputs | |
443 | `(("libx11" ,libx11) | |
444 | ("libxmu" ,libxmu) | |
445 | ("glib" ,glib))) | |
446 | (home-page "http://tomas.styblo.name/wmctrl/") | |
447 | (synopsis "Command-line tool to control X window managers") | |
448 | (description | |
449 | "Wmctrl allows to interact with an X window manager that is compatible | |
450 | with the EWMH/NetWM specification. It can query the window manager for | |
451 | information, and request for certain window management actions (resize and | |
e881752c | 452 | move windows, switch between desktops, etc.).") |
2e88e089 | 453 | (license license:gpl2+))) |
1410f342 AK |
454 | |
455 | (define-public scrot | |
456 | (package | |
457 | (name "scrot") | |
458 | (version "0.8") | |
459 | (source (origin | |
460 | (method url-fetch) | |
9da459f3 EF |
461 | (uri (list (string-append |
462 | "http://linuxbrit.co.uk/downloads/scrot-" | |
463 | version ".tar.gz") | |
464 | (string-append | |
465 | "https://fossies.org/linux/privat/old/scrot-" | |
c5d15d41 | 466 | version ".tar.gz"))) |
1410f342 AK |
467 | (sha256 |
468 | (base32 | |
469 | "1wll744rhb49lvr2zs6m93rdmiq59zm344jzqvijrdn24ksiqgb1")))) | |
470 | (build-system gnu-build-system) | |
471 | (arguments | |
472 | ;; By default, man and doc are put in PREFIX/{man,doc} instead of | |
473 | ;; PREFIX/share/{man,doc}. | |
474 | '(#:configure-flags | |
475 | (list (string-append "--mandir=" | |
476 | (assoc-ref %outputs "out") | |
477 | "/share/man")) | |
d5047266 EF |
478 | #:phases |
479 | (modify-phases %standard-phases | |
480 | (replace 'install | |
481 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
482 | (let* ((out (assoc-ref outputs "out")) | |
483 | (doc (string-append out "/share/doc/scrot"))) | |
484 | (mkdir-p doc) | |
e61c2991 | 485 | (invoke "make" "install" |
c6bf07d1 | 486 | (string-append "docsdir=" doc)))))))) |
1410f342 AK |
487 | (inputs |
488 | `(("libx11" ,libx11) | |
489 | ("giblib" ,giblib))) | |
490 | (home-page "http://linuxbrit.co.uk/software/") | |
491 | (synopsis "Command-line screen capture utility for X Window System") | |
492 | (description | |
493 | "Scrot allows to save a screenshot of a full screen, a window or a part | |
494 | of the screen selected by mouse.") | |
495 | ;; This license removes a clause about X Consortium from the original | |
496 | ;; X11 license. | |
497 | (license (license:x11-style "file://COPYING" | |
498 | "See 'COPYING' in the distribution.")))) | |
4a01b30b | 499 | |
9f1d33be AK |
500 | (define-public slop |
501 | (package | |
502 | (name "slop") | |
89f9ffff | 503 | (version "7.4") |
9f1d33be | 504 | (source (origin |
25d09f60 RW |
505 | (method git-fetch) |
506 | (uri (git-reference | |
507 | (url "https://github.com/naelstrof/slop.git") | |
508 | (commit (string-append "v" version)))) | |
509 | (file-name (git-file-name name version)) | |
9f1d33be AK |
510 | (sha256 |
511 | (base32 | |
25d09f60 | 512 | "0fgd8a2dqkg64all0f96sca92sdss9r3pzmv5kck46b99z2325z6")))) |
9f1d33be | 513 | (build-system cmake-build-system) |
937b71df | 514 | (arguments |
e1c014d7 | 515 | '(#:tests? #f)) ; no "check" target |
9f1d33be | 516 | (inputs |
eb2b5f9d MB |
517 | `(("glew" ,glew) |
518 | ("glm" ,glm) | |
01614de1 | 519 | ("icu4c" ,icu4c) |
9f1d33be | 520 | ("libxext" ,libxext) |
e1c014d7 | 521 | ("libxrender" ,libxrender) |
9f1d33be AK |
522 | ("mesa" ,mesa))) |
523 | (home-page "https://github.com/naelstrof/slop") | |
524 | (synopsis "Select a region and print its bounds to stdout") | |
525 | (description | |
526 | "slop (Select Operation) is a tool that queries for a selection from a | |
527 | user and prints the region to stdout. It grabs the mouse and turns it into a | |
528 | crosshair, lets the user click and drag to make a selection (or click on a | |
529 | window) while drawing a pretty box around it, then finally prints the | |
530 | selection's dimensions to stdout.") | |
531 | (license license:gpl3+))) | |
532 | ||
5c93de73 AK |
533 | (define-public maim |
534 | (package | |
535 | (name "maim") | |
ec8cdd0e | 536 | (version "5.5.2") |
5c93de73 | 537 | (source (origin |
ab3159f8 RW |
538 | (method git-fetch) |
539 | (uri (git-reference | |
540 | (url "https://github.com/naelstrof/maim.git") | |
541 | (commit (string-append "v" version)))) | |
542 | (file-name (git-file-name name version)) | |
5c93de73 AK |
543 | (sha256 |
544 | (base32 | |
ab3159f8 | 545 | "14mfxdm39kc5jk8wysrzx05ag2g4sk9l24i8m5pzqn8j611150v3")))) |
5c93de73 AK |
546 | (build-system cmake-build-system) |
547 | (arguments | |
2b7d10d2 | 548 | '(#:tests? #f)) ; no "check" target |
5c93de73 | 549 | (inputs |
2b7d10d2 MB |
550 | `(("glm" ,glm) |
551 | ("libjpeg" ,libjpeg-turbo) | |
552 | ("libpng" ,libpng) | |
553 | ("libxcomposite" ,libxcomposite) | |
5c93de73 | 554 | ("libxfixes" ,libxfixes) |
2b7d10d2 MB |
555 | ("libxrandr" ,libxrandr) |
556 | ("mesa" ,mesa) | |
557 | ("slop" ,slop) | |
558 | ("zlib" ,zlib))) | |
5c93de73 AK |
559 | (home-page "https://github.com/naelstrof/maim") |
560 | (synopsis "Screenshot utility for X Window System") | |
561 | (description | |
562 | "maim (Make Image) is a tool that takes screenshots of your desktop and | |
563 | saves it in any format. Along with a full screen, it allows you to capture a | |
564 | predefined region or a particular window. Also, it makes it possible to | |
565 | include cursor in the resulting image.") | |
566 | (license license:gpl3+))) | |
567 | ||
4a01b30b AK |
568 | (define-public unclutter |
569 | (package | |
570 | (name "unclutter") | |
571 | (version "8") | |
572 | (source (origin | |
573 | (method url-fetch) | |
574 | (uri (string-append | |
575 | "http://ftp.x.org/contrib/utilities/unclutter-" | |
576 | version ".tar.Z")) | |
577 | (sha256 | |
578 | (base32 | |
579 | "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq")))) | |
580 | (build-system gnu-build-system) | |
581 | (arguments | |
582 | '(#:tests? #f ; no check target | |
ea0836cd EF |
583 | #:phases |
584 | (modify-phases %standard-phases | |
585 | (delete 'configure) | |
586 | (replace 'install | |
587 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
588 | (let* ((out (assoc-ref outputs "out")) | |
589 | (bin (string-append out "/bin")) | |
590 | (man1 (string-append out "/share/man/man1"))) | |
591 | (mkdir-p bin) | |
592 | (mkdir-p man1) | |
e61c2991 TGR |
593 | (invoke "make" "install" "install.man" |
594 | (string-append "BINDIR=" bin) | |
595 | (string-append "MANDIR=" man1)))))))) | |
4a01b30b AK |
596 | (inputs `(("libx11" ,libx11))) |
597 | (home-page "http://ftp.x.org/contrib/utilities/") | |
598 | (synopsis "Hide idle mouse cursor") | |
599 | (description | |
600 | "Unclutter is a program which runs permanently in the background of an | |
601 | X11 session. It checks on the X11 pointer (cursor) position every few | |
602 | seconds, and when it finds it has not moved (and no buttons are pressed | |
603 | on the mouse, and the cursor is not in the root window) it creates a | |
604 | small sub-window as a child of the window the cursor is in. The new | |
605 | window installs a cursor of size 1x1 but a mask of all 0, i.e. an | |
606 | invisible cursor. This allows you to see all the text in an xterm or | |
607 | xedit, for example. The human factors crowd would agree it should make | |
608 | things less distracting.") | |
609 | (license license:public-domain))) | |
ab69d9ac | 610 | |
6e79949f | 611 | (define-public xautomation |
612 | (package | |
613 | (name "xautomation") | |
614 | (version "1.09") | |
615 | (source | |
616 | (origin | |
617 | (method url-fetch) | |
618 | (uri (string-append "https://www.hoopajoo.net/static/projects/" | |
619 | "xautomation-" version ".tar.gz")) | |
620 | ||
621 | (sha256 | |
622 | (base32 | |
623 | "03azv5wpg65h40ip2kk1kdh58vix4vy1r9bihgsq59jx2rhjr3zf")))) | |
624 | (build-system gnu-build-system) | |
625 | (inputs | |
626 | `(("libpng" ,libpng) | |
627 | ("libx11" ,libx11) | |
628 | ("libxi" ,libxi) | |
629 | ("libxtst" ,libxtst))) | |
630 | (native-inputs | |
82b4d9ec | 631 | `(("xorgproto" ,xorgproto))) |
6e79949f | 632 | (synopsis "Tools to automate tasks in X such as detecting on screen images") |
633 | (description | |
634 | "Xautomation can control X from the command line for scripts, and | |
635 | do visual scraping to find things on the screen. The control interface | |
636 | allows mouse movement, clicking, button up/down, key up/down, etc, and | |
637 | uses the XTest extension so you don't have the annoying problems that | |
638 | xse has when apps ignore sent events. The visgrep program can find | |
639 | images inside of images and reports the coordinates, allowing progams | |
640 | to find buttons, etc, on the screen to click on.") | |
641 | (home-page "https://www.hoopajoo.net/projects/xautomation.html") | |
642 | (license license:gpl2+))) | |
643 | ||
ab69d9ac LC |
644 | (define-public xlockmore |
645 | (package | |
646 | (name "xlockmore") | |
83ee7ee7 | 647 | (version "5.56") |
ab69d9ac LC |
648 | (source (origin |
649 | (method url-fetch) | |
2ec42868 TGR |
650 | (uri (list (string-append "http://sillycycle.com/xlock/" |
651 | name "-" version ".tar.xz") | |
652 | ;; Previous releases are moved to a subdirectory. | |
653 | (string-append "http://sillycycle.com/xlock/" | |
654 | "recent-releases/" | |
655 | name "-" version ".tar.xz"))) | |
ab69d9ac LC |
656 | (sha256 |
657 | (base32 | |
83ee7ee7 | 658 | "1dg1n79rnswhxqz36mxnl5lp8p37i9fbibnzzyrqknmvf2s8xpd0")))) |
ab69d9ac LC |
659 | (build-system gnu-build-system) |
660 | (arguments | |
661 | '(#:configure-flags (list (string-append "--enable-appdefaultdir=" | |
662 | (assoc-ref %outputs "out") | |
663 | "/lib/X11/app-defaults")) | |
664 | #:tests? #f)) ;no such thing as a test suite | |
665 | (inputs | |
666 | `(("libX11" ,libx11) | |
667 | ("libXext" ,libxext) | |
668 | ("libXt" ,libxt) | |
669 | ("linux-pam" ,linux-pam))) | |
2ec42868 | 670 | (home-page "http://sillycycle.com/xlockmore.html") |
ab69d9ac LC |
671 | (synopsis "Screen locker for the X Window System") |
672 | (description | |
673 | "XLockMore is a classic screen locker and screen saver for the | |
674 | X Window System.") | |
166191b3 | 675 | (license (license:non-copyleft #f "See xlock.c.") |
e4ddf924 | 676 | ))) ; + GPLv2 in modes/glx/biof.c. |
11447a79 AK |
677 | |
678 | (define-public xosd | |
679 | (package | |
680 | (name "xosd") | |
681 | (version "2.2.14") | |
682 | (source (origin | |
683 | (method url-fetch) | |
684 | (uri (string-append | |
de67e922 LF |
685 | "mirror://sourceforge/libxosd/libxosd/xosd-" version "/" |
686 | name "-" version ".tar.gz")) | |
11447a79 AK |
687 | (sha256 |
688 | (base32 | |
689 | "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg")))) | |
690 | (build-system gnu-build-system) | |
691 | (arguments | |
692 | '(#:configure-flags | |
693 | (list (string-append "--mandir=" %output "/share/man")))) | |
694 | (inputs | |
695 | `(("libx11" ,libx11) | |
696 | ("libxt" ,libxt) | |
697 | ("libxext" ,libxext) | |
698 | ("libxinerama" ,libxinerama))) | |
3b3b60d0 | 699 | (home-page "https://sourceforge.net/projects/libxosd/") |
11447a79 AK |
700 | (synopsis "X On Screen Display") |
701 | (description | |
702 | "XOSD provides a C library and a simple utility (osd_cat) for displaying | |
703 | transparent text on your screen.") | |
704 | (license license:gpl2+))) | |
76212b57 ML |
705 | |
706 | (define-public xbindkeys | |
707 | (package | |
708 | (name "xbindkeys") | |
709 | (version "1.8.6") | |
710 | (source (origin | |
711 | (method url-fetch) | |
712 | ;; Download from the savannah mirror list fails | |
713 | (uri (string-append | |
714 | "http://www.nongnu.org/xbindkeys/xbindkeys-" | |
715 | version | |
716 | ".tar.gz")) | |
717 | (sha256 | |
718 | (base32 | |
719 | "060df6d8y727jp1inp7blp44cs8a7jig7vcm8ndsn6gw36z1h3bc")))) | |
720 | (build-system gnu-build-system) | |
721 | (inputs | |
722 | `(("libx11" ,libx11) | |
723 | ("guile" ,guile-2.0))) | |
340978d7 | 724 | (home-page "https://www.nongnu.org/xbindkeys/") |
76212b57 ML |
725 | (synopsis "Associate a combination of keys with a shell command") |
726 | (description | |
727 | "XBindKeys is a program that allows you to launch shell commands with | |
728 | your keyboard or your mouse under the X Window System. It links commands to | |
729 | keys or mouse buttons, using a configuration file. It's independent of the | |
730 | window manager and can capture all keyboard keys (ex: Power, Wake...). It | |
731 | optionally supports a Guile-based configuration file layout, which enables you | |
732 | to access all XBindKeys internals, so you can have key combinations, double | |
733 | clicks or timed double clicks take actions. Also all functions that work in | |
734 | Guile will work for XBindKeys.") | |
735 | (license license:gpl2+))) | |
42f2c2b9 | 736 | |
998b8c07 | 737 | (define-public sxhkd |
738 | (package | |
739 | (name "sxhkd") | |
f8f0b652 | 740 | (version "0.5.9") |
998b8c07 | 741 | (source |
742 | (origin | |
f8f0b652 TGR |
743 | (method git-fetch) |
744 | (uri (git-reference | |
745 | (url "https://github.com/baskerville/sxhkd") | |
746 | (commit version))) | |
998b8c07 | 747 | (sha256 |
748 | (base32 | |
f8f0b652 | 749 | "0cw547x7vky55k3ksrmzmrra4zhslqcwq9xw0y4cmbvy4s1qf64v")))) |
998b8c07 | 750 | (build-system gnu-build-system) |
751 | (inputs | |
752 | `(("asciidoc" ,asciidoc) | |
753 | ("libxcb" ,libxcb) | |
754 | ("xcb-util" ,xcb-util) | |
755 | ("xcb-util-keysyms" ,xcb-util-keysyms) | |
756 | ("xcb-util-wm" ,xcb-util-wm))) | |
757 | (arguments | |
f8f0b652 | 758 | `(#:phases (modify-phases %standard-phases (delete 'configure)) |
998b8c07 | 759 | #:tests? #f ; no check target |
f8f0b652 TGR |
760 | #:make-flags |
761 | (list "CC=gcc" | |
762 | (string-append "PREFIX=" %output) | |
763 | ;; Keep the documentation where the build system installs LICENSE. | |
764 | (string-append "DOCPREFIX=" %output | |
765 | "/share/doc/" ,name "-" ,version)))) | |
998b8c07 | 766 | (home-page "https://github.com/baskerville/sxhkd") |
767 | (synopsis "Simple X hotkey daemon") | |
768 | (description "sxhkd is a simple X hotkey daemon with a powerful and | |
769 | compact configuration syntax.") | |
770 | (license license:bsd-2))) | |
771 | ||
42f2c2b9 AG |
772 | (define-public rxvt-unicode |
773 | (package | |
774 | (name "rxvt-unicode") | |
71ca0539 | 775 | (version "9.22") |
1ef3f91a ML |
776 | (source (origin |
777 | (method url-fetch) | |
63999415 | 778 | (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/" |
1ef3f91a | 779 | name "-" version ".tar.bz2")) |
0fd0bb56 | 780 | (patches (search-patches "rxvt-unicode-escape-sequences.patch")) |
1ef3f91a ML |
781 | (sha256 |
782 | (base32 | |
71ca0539 | 783 | "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9")))) |
42f2c2b9 | 784 | (build-system gnu-build-system) |
1ef3f91a ML |
785 | (arguments |
786 | ;; This sets the destination when installing the necessary terminal | |
787 | ;; capability data, which are not provided by 'ncurses'. See | |
788 | ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html | |
33c93ea3 | 789 | `(#:make-flags (list (string-append "TERMINFO=" |
1ef3f91a | 790 | (assoc-ref %outputs "out") |
33c93ea3 | 791 | "/share/terminfo")) |
792 | #:phases | |
793 | (modify-phases %standard-phases | |
794 | (add-after 'install 'install-desktop-urxvt | |
795 | (lambda* (#:key outputs #:allow-other-keys) | |
796 | (let* ((output (assoc-ref outputs "out")) | |
797 | (desktop (string-append output "/share/applications"))) | |
798 | (mkdir-p desktop) | |
799 | (with-output-to-file | |
800 | (string-append desktop "/urxvt.desktop") | |
801 | (lambda _ | |
802 | (format #t | |
803 | "[Desktop Entry]~@ | |
804 | Name=rxvt-unicode~@ | |
805 | Comment=~@ | |
806 | Exec=~a/bin/urxvt~@ | |
807 | TryExec=~@*~a/bin/urxvt~@ | |
808 | Icon=~@ | |
809 | Type=Application~%" | |
810 | output))) | |
811 | #t))) | |
812 | (add-after 'install 'install-desktop-urxvtc | |
813 | (lambda* (#:key outputs #:allow-other-keys) | |
814 | (let* ((output (assoc-ref outputs "out")) | |
815 | (desktop (string-append output "/share/applications"))) | |
816 | (mkdir-p desktop) | |
817 | (with-output-to-file | |
818 | (string-append desktop "/urxvtc.desktop") | |
819 | (lambda _ | |
820 | (format #t | |
821 | "[Desktop Entry]~@ | |
120349bf | 822 | Name=rxvt-unicode (client)~@ |
33c93ea3 | 823 | Comment=Rxvt clone with XFT and unicode support~@ |
824 | Exec=~a/bin/urxvtc~@ | |
825 | TryExec=~@*~a/bin/urxvtc~@ | |
826 | Icon=~@ | |
827 | Type=Application~%" | |
828 | output))) | |
829 | #t)))))) | |
42f2c2b9 AG |
830 | (inputs |
831 | `(("libXft" ,libxft) | |
832 | ("libX11" ,libx11))) | |
833 | (native-inputs | |
1ef3f91a ML |
834 | `(("ncurses" ,ncurses) ;trigger the installation of terminfo data |
835 | ("perl" ,perl) | |
42f2c2b9 | 836 | ("pkg-config" ,pkg-config))) |
1ef3f91a ML |
837 | ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is |
838 | ;; provided for usability reasons. See <https://bugs.gnu.org/22138>. | |
839 | (native-search-paths | |
840 | (list (search-path-specification | |
841 | (variable "TERMINFO_DIRS") | |
842 | (files '("share/terminfo"))))) | |
42f2c2b9 AG |
843 | (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html") |
844 | (synopsis "Rxvt clone with XFT and unicode support") | |
845 | (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator | |
846 | intended as an xterm replacement for users who do not require features such as | |
847 | Tektronix 4014 emulation and toolkit-style configurability. It supports | |
848 | unicode, XFT and may be extended with Perl plugins. It also comes with a | |
849 | client/daemon pair that lets you open any number of terminal windows from | |
850 | within a single process.") | |
851 | (license license:gpl3+))) | |
ca0d2a63 AG |
852 | |
853 | (define-public xcape | |
854 | (package | |
855 | (name "xcape") | |
82f44a36 | 856 | (version "1.2") |
4bb74ed5 RW |
857 | (source (origin |
858 | (method git-fetch) | |
859 | (uri (git-reference | |
860 | (url "https://github.com/alols/xcape.git") | |
861 | (commit (string-append "v" version)))) | |
862 | (file-name (git-file-name name version)) | |
863 | (sha256 | |
864 | (base32 | |
865 | "09a05cxgrip6nqy1qmwblamp2bhknqnqmxn7i2a1rgxa0nba95dm")))) | |
ca0d2a63 AG |
866 | (build-system gnu-build-system) |
867 | (arguments | |
868 | `(#:tests? #f ; no check target | |
dc1d3cde KK |
869 | ;; no configure script |
870 | #:phases (modify-phases %standard-phases (delete 'configure)) | |
ca0d2a63 AG |
871 | #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) |
872 | "MANDIR=/share/man/man1" | |
873 | "CC=gcc"))) | |
874 | (inputs | |
875 | `(("libxtst" ,libxtst) | |
876 | ("libx11" ,libx11))) | |
877 | (native-inputs | |
878 | `(("pkg-config" ,pkg-config))) | |
7bf837fd | 879 | (home-page "https://github.com/alols/xcape") |
ca0d2a63 AG |
880 | (synopsis "Use a modifier key in X.org as another key") |
881 | (description | |
882 | "This utility for X.org allows to use modifier key as another key when | |
883 | pressed and released on its own. The default behaviour is to generate the | |
884 | Escape key when Left Control is pressed and released on its own.") | |
885 | (license license:gpl3+))) | |
f1f7049e AW |
886 | |
887 | (define-public libwacom | |
888 | (package | |
889 | (name "libwacom") | |
b3ce80d2 | 890 | (version "0.31") |
f1f7049e AW |
891 | (source (origin |
892 | (method url-fetch) | |
0ac68e72 TGR |
893 | (uri (string-append |
894 | "https://github.com/linuxwacom/libwacom/releases/download/" | |
895 | name "-" version "/" name "-" version ".tar.bz2")) | |
f1f7049e AW |
896 | (sha256 |
897 | (base32 | |
b3ce80d2 | 898 | "00xzkxhm0s9bvhbf27hscjbh17wa8lcgvxjqbmzm527f9cjqrm8q")))) |
f1f7049e AW |
899 | (build-system glib-or-gtk-build-system) |
900 | (native-inputs | |
901 | `(("pkg-config" ,pkg-config))) | |
902 | (inputs | |
34efce4f | 903 | `(("gtk+" ,gtk+) |
b9cbe316 | 904 | ("libgudev" ,libgudev) |
f1f7049e AW |
905 | ("eudev" ,eudev) |
906 | ("libxml2" ,libxml2))) | |
34efce4f AW |
907 | (propagated-inputs |
908 | ;; libwacom includes header files that include GLib, and libinput uses | |
909 | ;; those header files. | |
910 | `(("glib" ,glib))) | |
81dc1d12 | 911 | (home-page "https://linuxwacom.github.io/") |
f1f7049e AW |
912 | (synopsis "Helper library for Wacom tablet settings") |
913 | (description | |
34efce4f AW |
914 | "Libwacom is a library to help implement Wacom tablet settings. It is |
915 | intended to be used by client-programs that need model identification. It is | |
916 | already being used by the gnome-settings-daemon and the GNOME Control Center | |
917 | Wacom tablet applet.") | |
f1f7049e | 918 | (license license:x11))) |
ab42a2a7 AW |
919 | |
920 | (define-public xf86-input-wacom | |
921 | (package | |
922 | (name "xf86-input-wacom") | |
fe049752 TGR |
923 | (version "0.36.1") |
924 | (source | |
925 | (origin | |
926 | (method url-fetch) | |
927 | (uri (string-append | |
928 | "https://github.com/linuxwacom/xf86-input-wacom/releases/download/" | |
929 | name "-" version "/" name "-" version ".tar.bz2")) | |
930 | (sha256 | |
931 | (base32 | |
932 | "029y8varbricba2dzhzhy0ndd7lbfif411ca8c3wxzni9qmbj1ij")))) | |
ab42a2a7 AW |
933 | (arguments |
934 | `(#:configure-flags | |
935 | (list (string-append "--with-sdkdir=" | |
936 | (assoc-ref %outputs "out") | |
937 | "/include/xorg") | |
938 | (string-append "--with-xorg-conf-dir=" | |
939 | (assoc-ref %outputs "out") | |
940 | "/share/X11/xorg.conf.d")))) | |
941 | (build-system gnu-build-system) | |
942 | (native-inputs | |
943 | `(("pkg-config" ,pkg-config))) | |
944 | (inputs | |
945 | `(("xorg-server" ,xorg-server) | |
946 | ("libxrandr" ,libxrandr) | |
947 | ("libxinerama" ,libxinerama) | |
948 | ("libxi" ,libxi) | |
949 | ("eudev" ,eudev))) | |
81dc1d12 | 950 | (home-page "https://linuxwacom.github.io/") |
ab42a2a7 AW |
951 | (synopsis "Wacom input driver for X") |
952 | (description | |
953 | "The xf86-input-wacom driver is the wacom-specific X11 input driver for | |
954 | the X.Org X Server version 1.7 and later (X11R7.5 or later).") | |
955 | (license license:x11))) | |
6645753b FPS |
956 | |
957 | (define-public redshift | |
958 | (package | |
959 | (name "redshift") | |
a5a568d2 | 960 | (version "1.12") |
6645753b FPS |
961 | (source |
962 | (origin | |
963 | (method url-fetch) | |
964 | (uri | |
965 | (string-append "https://github.com/jonls/redshift/" | |
966 | "releases/download/v" version | |
967 | "/redshift-" version ".tar.xz")) | |
968 | (sha256 | |
969 | (base32 | |
a5a568d2 | 970 | "1fi27b73x85qqar526dbd33av7mahca2ykaqwr7siqiw1qqcby6j")))) |
6645753b FPS |
971 | (build-system gnu-build-system) |
972 | (native-inputs | |
973 | `(("pkg-config" ,pkg-config) | |
974 | ("intltool" ,intltool))) | |
975 | (inputs | |
976 | `(("libdrm" ,libdrm) | |
977 | ("libx11" ,libx11) | |
978 | ("libxcb" ,libxcb) | |
b3546174 | 979 | ("libxxf86vm" ,libxxf86vm) |
a5a568d2 | 980 | ("glib" ,glib))) ; for Geoclue2 support |
6645753b FPS |
981 | (home-page "https://github.com/jonls/redshift") |
982 | (synopsis "Adjust the color temperature of your screen") | |
983 | (description | |
984 | "Redshift adjusts the color temperature according to the position of the | |
985 | sun. A different color temperature is set during night and daytime. During | |
986 | twilight and early morning, the color temperature transitions smoothly from | |
987 | night to daytime temperature to allow your eyes to slowly adapt. At night the | |
988 | color temperature should be set to match the lamps in your room.") | |
989 | (license license:gpl3+))) | |
b4c400a7 CAW |
990 | |
991 | (define-public xscreensaver | |
992 | (package | |
993 | (name "xscreensaver") | |
90b3e136 | 994 | (version "5.40") |
b4c400a7 CAW |
995 | (source |
996 | (origin | |
997 | (method url-fetch) | |
998 | (uri | |
999 | (string-append "https://www.jwz.org/xscreensaver/xscreensaver-" | |
1000 | version ".tar.gz")) | |
1001 | (sha256 | |
1002 | (base32 | |
90b3e136 | 1003 | "1q2sr7h6ps6d3hk8895g12rrcqiihjl7py1ly077ikv4866r181h")))) |
b4c400a7 CAW |
1004 | (build-system gnu-build-system) |
1005 | (arguments | |
1006 | `(#:tests? #f ; no check target | |
1007 | #:phases | |
1008 | (modify-phases %standard-phases | |
1009 | (add-before 'configure 'adjust-gtk-resource-paths | |
1010 | (lambda _ | |
1011 | (substitute* '("driver/Makefile.in" "po/Makefile.in.in") | |
1012 | (("@GTK_DATADIR@") "@datadir@") | |
c6bf07d1 MW |
1013 | (("@PO_DATADIR@") "@datadir@")) |
1014 | #t))) | |
b4c400a7 CAW |
1015 | #:configure-flags '("--with-pam" "--with-proc-interrupts" |
1016 | "--without-readdisplay") | |
1017 | #:make-flags (list (string-append "AD_DIR=" | |
1018 | (assoc-ref %outputs "out") | |
1019 | "/usr/lib/X11/app-defaults")))) | |
1020 | (native-inputs | |
1021 | `(("pkg-config" ,pkg-config) | |
1022 | ("intltool" ,intltool))) | |
1023 | (inputs | |
1024 | `(("libx11" ,libx11) | |
1025 | ("libxext" ,libxext) | |
1026 | ("libxi" ,libxi) | |
1027 | ("libxt" ,libxt) | |
1028 | ("libxft" ,libxft) | |
1029 | ("libxmu" ,libxmu) | |
1030 | ("libxpm" ,libxpm) | |
1031 | ("libglade" ,libglade) | |
1032 | ("libxml2" ,libxml2) | |
1033 | ("libsm" ,libsm) | |
1034 | ("libjpeg" ,libjpeg) | |
1035 | ("linux-pam" ,linux-pam) | |
1036 | ("pango" ,pango) | |
1037 | ("gtk+" ,gtk+) | |
1038 | ("perl" ,perl) | |
1039 | ("cairo" ,cairo) | |
1040 | ("bc" ,bc) | |
1041 | ("libxrandr" ,libxrandr) | |
1042 | ("glu" ,glu) | |
1043 | ("glib" ,glib))) | |
1044 | (home-page "https://www.jwz.org/xscreensaver/") | |
1045 | (synopsis "Classic screen saver suite supporting screen locking") | |
1046 | (description | |
1047 | "xscreensaver is a popular screen saver collection with many entertaining | |
1048 | demos. It also acts as a nice screen locker.") | |
1049 | ;; xscreensaver doesn't have a single copyright file and instead relies on | |
1050 | ;; source comment headers, though most files have the same lax | |
1051 | ;; permissions. To reduce complexity, we're pointing at Debian's | |
1052 | ;; breakdown of the copyright information. | |
1053 | (license (license:non-copyleft | |
1054 | (string-append | |
1055 | "http://metadata.ftp-master.debian.org/changelogs/" | |
706998e7 | 1056 | "/main/x/xscreensaver/xscreensaver_5.36-1_copyright"))))) |
f40dfcd0 | 1057 | |
cab1c117 MB |
1058 | (define-public xsel |
1059 | (package | |
1060 | (name "xsel") | |
1061 | (version "1.2.0") | |
1062 | (source (origin | |
1063 | (method url-fetch) | |
1064 | (uri (string-append "http://www.vergenet.net/~conrad/software" | |
1065 | "/xsel/download/xsel-" version ".tar.gz")) | |
1066 | (sha256 | |
1067 | (base32 | |
1068 | "070lbcpw77j143jrbkh0y1v10ppn1jwmjf92800w7x42vh4cw9xr")))) | |
1069 | (build-system gnu-build-system) | |
1070 | (inputs | |
1071 | `(("libxt" ,libxt))) | |
1072 | (home-page "http://www.vergenet.net/~conrad/software/xsel/") | |
1073 | (synopsis "Manipulate X selection") | |
1074 | (description | |
1075 | "XSel is a command-line program for getting and setting the contents of | |
1076 | the X selection. Normally this is only accessible by manually highlighting | |
1077 | information and pasting it with the middle mouse button. | |
1078 | ||
1079 | XSel reads from standard input and writes to standard output by default, | |
1080 | but can also follow a growing file, display contents, delete entries and more.") | |
1081 | (license (license:x11-style "file://COPYING" | |
1082 | "See COPYING in the distribution.")))) | |
1083 | ||
6cfd1a68 AK |
1084 | (define-public xdpyprobe |
1085 | (package | |
1086 | (name "xdpyprobe") | |
1087 | (version "0.1") | |
1088 | (source (origin | |
1089 | (method url-fetch) | |
1090 | (uri (string-append "https://github.com/alezost/" name | |
1091 | "/releases/download/v" version | |
1092 | "/" name "-" version ".tar.gz")) | |
1093 | (sha256 | |
1094 | (base32 | |
1095 | "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8")))) | |
1096 | (build-system gnu-build-system) | |
1097 | (inputs | |
1098 | `(("libx11" ,libx11))) | |
1099 | (home-page "https://github.com/alezost/xdpyprobe") | |
1100 | (synopsis "Probe X server for connectivity") | |
1101 | (description | |
1102 | "Xdpyprobe is a tiny C program whose only purpose is to probe a | |
1103 | connectivity of the X server running on a particular @code{DISPLAY}.") | |
1104 | (license license:gpl3+))) | |
1105 | ||
f40dfcd0 DM |
1106 | (define-public rofi |
1107 | (package | |
1108 | (name "rofi") | |
712be306 | 1109 | (version "1.5.1") |
f40dfcd0 DM |
1110 | (source (origin |
1111 | (method url-fetch) | |
1112 | (uri (string-append "https://github.com/DaveDavenport/rofi/" | |
1113 | "releases/download/" | |
1114 | version "/rofi-" version ".tar.xz")) | |
1115 | (sha256 | |
1116 | (base32 | |
576e0ae4 | 1117 | "0wx118banbwfqdwc5y44fkp3hxg97gj3vma16528slhy408hkg7i")))) |
f40dfcd0 DM |
1118 | (build-system gnu-build-system) |
1119 | (inputs | |
68c35ba9 | 1120 | `(("pango" ,pango) |
f40dfcd0 DM |
1121 | ("cairo" ,cairo) |
1122 | ("glib" ,glib) | |
1123 | ("startup-notification" ,startup-notification) | |
23e12d9d | 1124 | ("librsvg" ,librsvg) |
f40dfcd0 DM |
1125 | ("libxkbcommon" ,libxkbcommon) |
1126 | ("libxcb" ,libxcb) | |
1127 | ("xcb-util" ,xcb-util) | |
68c35ba9 | 1128 | ("xcb-util-xrm" ,xcb-util-xrm) |
f40dfcd0 DM |
1129 | ("xcb-util-wm" ,xcb-util-wm))) |
1130 | (native-inputs | |
23e12d9d | 1131 | `(("bison" ,bison) |
dfdf8d74 | 1132 | ("check" ,check) |
23e12d9d | 1133 | ("flex" ,flex) |
a3a7eb2f | 1134 | ("glib:bin" ,glib "bin") |
23e12d9d | 1135 | ("pkg-config" ,pkg-config))) |
f40dfcd0 | 1136 | (arguments |
46d6219d MB |
1137 | `(#:parallel-tests? #f ; May fail in some circumstances. |
1138 | #:phases | |
f40dfcd0 DM |
1139 | (modify-phases %standard-phases |
1140 | (add-before 'configure 'adjust-tests | |
1141 | (lambda _ | |
1142 | (substitute* '("test/helper-expand.c") | |
1143 | (("~root") "/root") | |
1144 | (("~") "") | |
a3a7eb2f | 1145 | (("g_get_home_dir \\(\\)") "\"/\"")) |
576e0ae4 | 1146 | #t))))) |
06229f18 | 1147 | (home-page "https://github.com/DaveDavenport/rofi") |
89be33f7 TGR |
1148 | (synopsis "Application launcher") |
1149 | (description "Rofi is a minimalist application launcher. It memorizes which | |
1150 | applications you regularly use and also allows you to search for an application | |
f40dfcd0 DM |
1151 | by name.") |
1152 | (license license:expat))) | |
751f6871 ML |
1153 | |
1154 | (define-public tint2 | |
1155 | (package | |
1156 | (name "tint2") | |
1ffe4171 | 1157 | (version "0.14.6") |
751f6871 ML |
1158 | (source (origin |
1159 | (method url-fetch) | |
1160 | (uri (string-append "https://gitlab.com/o9000/" name | |
1161 | "/repository/archive.tar.gz?ref=" version)) | |
1162 | (file-name (string-append name "-" version ".tar.gz")) | |
1163 | (sha256 | |
1164 | (base32 | |
1ffe4171 | 1165 | "1kwzwxy4myagybm3rc7dgynfgp75742n348qibn1p2an9ggyivda")))) |
751f6871 ML |
1166 | (build-system cmake-build-system) |
1167 | (arguments | |
1168 | '(#:tests? #f ;no test target | |
1169 | #:phases | |
1170 | (modify-phases %standard-phases | |
1171 | (add-after 'unpack 'fix-installation-prefix | |
1172 | (lambda _ | |
1173 | (substitute* "CMakeLists.txt" | |
c6bf07d1 MW |
1174 | (("/etc") "${CMAKE_INSTALL_PREFIX}/etc")) |
1175 | #t))))) | |
751f6871 ML |
1176 | (inputs |
1177 | `(("gtk+" ,gtk+-2) | |
1178 | ("imlib2" ,imlib2) | |
1179 | ("librsvg" ,librsvg) | |
1180 | ("libxcomposite" ,libxcomposite) | |
1181 | ("libxdamage" ,libxdamage) | |
1182 | ("libxft" ,libxft) | |
1183 | ("libxinerama" ,libxinerama) | |
1184 | ("libxrandr" ,libxrandr) | |
1185 | ("startup-notification" ,startup-notification))) | |
1186 | (native-inputs | |
b94a6ca0 | 1187 | `(("gettext" ,gettext-minimal) |
751f6871 ML |
1188 | ("pkg-config" ,pkg-config))) |
1189 | (home-page "https://gitlab.com/o9000/tint2") | |
1190 | (synopsis "Lightweight task bar") | |
1191 | (description | |
1192 | "Tint2 is a simple task bar made for modern X window managers. It was | |
1193 | specifically made for Openbox but it should also work with other window | |
1194 | managers (GNOME, KDE, XFCE etc.). | |
1195 | ||
1196 | The taskbar includes transparency and color settings for the font, icons, | |
1197 | border, and background. It also supports multihead setups, customized mouse | |
1198 | actions, a built-in clock, a battery monitor and a system tray.") | |
1199 | (license license:gpl2))) | |
4493a3c2 | 1200 | |
37447422 MM |
1201 | (define-public dzen |
1202 | (let ((commit "488ab66019f475e35e067646621827c18a879ba1") | |
1203 | (revision "1")) | |
1204 | (package | |
1205 | (name "dzen") | |
1206 | (version (string-append "0.9.5-" ; Taken from `config.mk`. | |
1207 | revision "." (string-take commit 7))) | |
1208 | (source (origin | |
1209 | (method git-fetch) | |
1210 | (uri (git-reference | |
1211 | (url "https://github.com/robm/dzen.git") | |
1212 | (commit commit))) | |
1213 | (file-name (string-append name "-" version)) | |
1214 | (sha256 | |
1215 | (base32 | |
1216 | "0y47d6ii87vf4a517gi4fh0yl06f8b085sra77immnsasbq9pxnw")))) | |
1217 | (build-system gnu-build-system) | |
1218 | (arguments | |
1219 | `(#:tests? #f ; No test suite. | |
1220 | #:make-flags ; Replacement for `config.mk`. | |
1221 | (list | |
1222 | (string-append "VERSION = " ,version) | |
1223 | (string-append "PREFIX = " %output) | |
1224 | "MANPREFIX = ${PREFIX}/share/man" | |
1225 | "INCS = -I." | |
1226 | "LIBS = -lc -lX11 -lXinerama -lXpm $(shell pkg-config --libs xft)" | |
1227 | "CFLAGS = -Wall -Os ${INCS} -DVERSION=\\\"${VERSION}\\\"\ | |
1228 | -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT $(shell pkg-config --cflags xft)" | |
1229 | "LDFLAGS = ${LIBS}" | |
1230 | "CC = gcc" | |
1231 | "LD = ${CC}") | |
1232 | #:phases | |
1233 | (modify-phases %standard-phases | |
1234 | (delete 'configure) ; No configuration script. | |
1235 | ;; Use own make-flags instead of `config.mk`. | |
1236 | (add-before 'build 'dont-include-config-mk | |
1237 | (lambda _ | |
1238 | (substitute* "Makefile" (("include config.mk") "")) | |
1239 | #t))))) | |
1240 | (inputs | |
1241 | `(("libx11" ,libx11) | |
1242 | ("libxft" ,libxft) | |
1243 | ("libxpm" ,libxpm) | |
1244 | ("libxinerama" ,libxinerama))) | |
1245 | (native-inputs `(("pkg-config" ,pkg-config))) | |
1246 | (synopsis "General purpose messaging, notification and menuing program for X11") | |
1247 | (description "Dzen is a general purpose messaging, notification and menuing | |
1248 | program for X11. It was designed to be fast, tiny and scriptable in any language.") | |
1249 | (home-page "https://github.com/robm/dzen") | |
1250 | (license license:expat)))) | |
1251 | ||
4493a3c2 MB |
1252 | (define-public xcb-util-xrm |
1253 | (package | |
1254 | (name "xcb-util-xrm") | |
40fb6b84 | 1255 | (version "1.3") |
4493a3c2 MB |
1256 | (source (origin |
1257 | (method url-fetch) | |
1258 | (uri (string-append | |
1259 | "https://github.com/Airblader/xcb-util-xrm/releases" | |
1260 | "/download/v" version "/xcb-util-xrm-" version ".tar.bz2")) | |
1261 | (sha256 | |
1262 | (base32 | |
40fb6b84 | 1263 | "118cj1ybw86pgw0l5whn9vbg5n5b0ijcpx295mwahzi004vz671h")) |
4493a3c2 MB |
1264 | (modules '((guix build utils))) |
1265 | (snippet | |
1266 | ;; Drop bundled m4. | |
6cbee49d MW |
1267 | '(begin |
1268 | (delete-file-recursively "m4") | |
1269 | #t)))) | |
4493a3c2 MB |
1270 | (build-system gnu-build-system) |
1271 | (native-inputs | |
1272 | `(("pkg-config" ,pkg-config) | |
1273 | ("m4" ,m4) | |
1274 | ("libx11" ,libx11))) ; for tests | |
1275 | (inputs | |
1276 | `(("libxcb" ,libxcb) | |
1277 | ("xcb-util" ,xcb-util))) | |
1278 | (home-page "https://github.com/Airblader/xcb-util-xrm") | |
1279 | (synopsis "XCB utility functions for the X resource manager") | |
1280 | (description | |
1281 | "The XCB util module provides a number of libraries which sit on | |
1282 | top of libxcb, the core X protocol library, and some of the extension | |
1283 | libraries. These experimental libraries provide convenience functions | |
1284 | and interfaces which make the raw X protocol more usable. Some of the | |
1285 | libraries also provide client-side code which is not strictly part of | |
1286 | the X protocol but which has traditionally been provided by Xlib. | |
1287 | ||
1288 | XCB util-xrm module provides the following libraries: | |
1289 | ||
1290 | - xrm: utility functions for the X resource manager.") | |
1291 | (license license:x11))) | |
01278f16 P |
1292 | |
1293 | (define-public xcalib | |
1294 | (package | |
1295 | (name "xcalib") | |
6d727bf4 TGR |
1296 | (version "0.10") |
1297 | (home-page "https://github.com/OpenICC/xcalib") | |
01278f16 | 1298 | (source (origin |
6d727bf4 TGR |
1299 | (method git-fetch) |
1300 | (uri (git-reference | |
1301 | (url home-page) | |
1302 | (commit version))) | |
01278f16 P |
1303 | (sha256 |
1304 | (base32 | |
6d727bf4 TGR |
1305 | "05fzdjmhiafgi2jf0k41i3nm0837a78sb6yv59cwc23nla8g0bhr")) |
1306 | (patches | |
1307 | (list | |
1308 | ;; Add missing documentation for the new --output option. | |
1309 | ;; This upstream patch can be removed on the next update. | |
1310 | (origin | |
1311 | (method url-fetch) | |
1312 | (uri (string-append | |
1313 | home-page "/commit/" | |
1314 | "ae03889b91fe984b18e925ad2b5e6f2f7354e058.patch")) | |
1315 | (file-name "xcalib-update-man-page.patch") | |
1316 | (sha256 | |
1317 | (base32 | |
1318 | "0f7b4d5484x4b9n1bwhqmar0kcaa029ffff7bp3xpr734n1qgqb6"))))))) | |
1319 | (build-system cmake-build-system) | |
01278f16 | 1320 | (arguments |
6d727bf4 | 1321 | '(#:tests? #f)) ; no test suite |
c695fb76 TGR |
1322 | (inputs `(("libx11" ,libx11) |
1323 | ("libxext" ,libxext) | |
6d727bf4 | 1324 | ("libxrandr" ,libxrandr) |
c695fb76 | 1325 | ("libxxf86vm" ,libxxf86vm))) |
01278f16 P |
1326 | (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)") |
1327 | (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC | |
1328 | profiles to the video card's gamma ramp. It does work with most video card | |
1329 | drivers except the generic VESA driver. Alter brightness, contrast, RGB, and | |
1330 | invert colors on a specific display/screen.") | |
01278f16 | 1331 | (license license:gpl2))) |
f021382b MB |
1332 | |
1333 | (define-public nxbelld | |
1334 | (package | |
1335 | (name "nxbelld") | |
1336 | (version "0.1.2") | |
1337 | (source (origin | |
1338 | (method git-fetch) | |
1339 | (uri (git-reference | |
1340 | (url "https://github.com/dusxmt/nxbelld.git") | |
1341 | (commit version))) | |
1342 | (sha256 | |
1343 | (base32 | |
1344 | "04qwhmjs51irinz5mjlxdb3dc6vr79dqmc5fkj80x1ll3ylh5n3z")) | |
1345 | (file-name (git-file-name name version)))) | |
1346 | (build-system gnu-build-system) | |
1347 | (arguments '(#:configure-flags `("--enable-sound" | |
1348 | "--enable-wave" | |
4cbbb160 RW |
1349 | "--enable-alsa"))) |
1350 | (native-inputs `(("autoconf" ,autoconf) | |
1351 | ("automake" ,automake) | |
1352 | ("pkg-config" ,pkg-config) | |
1353 | ("perl" ,perl))) | |
f021382b MB |
1354 | (inputs `(("libx11" ,libx11) |
1355 | ("alsa-lib" ,alsa-lib))) | |
1356 | (synopsis "Daemon that performs an action every time the X11 bell is rung") | |
1357 | (description "nxbelld is a tiny utility to aid people who either don't | |
1358 | like the default PC speaker beep, or use a sound driver that doesn't have | |
1359 | support for the PC speaker. The utility performs a given action every time | |
1360 | the X bell is rung. The actions nxbelld can currently perform include running | |
1361 | a specified program, emulating the PC speaker beep using the sound card (default), | |
1362 | or playing a PCM encoded WAVE file.") | |
1363 | (home-page "https://github.com/dusxmt/nxbelld") | |
1364 | (license license:gpl3+))) | |
1d752e43 MG |
1365 | |
1366 | (define-public xautolock | |
1367 | (package | |
1368 | (name "xautolock") | |
1369 | (version "2.2") | |
1370 | (source (origin | |
1371 | (method url-fetch) | |
1372 | (uri (string-append "http://www.ibiblio.org/pub/linux/X11/screensavers/" | |
1373 | name "-" version ".tgz")) | |
1374 | (sha256 | |
1375 | (base32 | |
1376 | "18jd3k3pvlm5x1adyqw63z2b3f4ixh9mfvz9asvnskk3fm8jgw0i")))) | |
1377 | (build-system gnu-build-system) | |
1378 | (native-inputs | |
1379 | `(("imake" ,imake))) | |
1380 | (inputs | |
1381 | `(("libx11" ,libx11) | |
1382 | ("libxext" ,libxext) | |
1383 | ("libxscrnsaver" ,libxscrnsaver))) | |
1384 | (arguments | |
1385 | `(#:tests? #f | |
1386 | #:phases | |
1387 | (modify-phases %standard-phases | |
1388 | (replace 'configure | |
1389 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1390 | (let ((imake (assoc-ref inputs "imake")) | |
1391 | (out (assoc-ref outputs "out"))) | |
1392 | ;; Generate Makefile | |
1393 | (invoke "xmkmf") | |
1394 | (substitute* "Makefile" | |
1395 | ;; These imake variables somehow remain undefined | |
1396 | (("DefaultGcc2[[:graph:]]*Opt") "-O2") | |
1397 | ;; Reset a few variable defaults that are set in imake templates | |
1398 | ((imake) out) | |
1399 | (("(MANPATH = )[[:graph:]]*" _ front) | |
1400 | (string-append front out "/share/man"))) | |
1401 | ;; Old BSD-style 'union wait' is unneeded (defining | |
1402 | ;; _USE_BSD did not seem to fix it) | |
1403 | (substitute* "src/engine.c" | |
1404 | (("union wait status") "int status = 0")) | |
1405 | #t))) | |
1406 | (add-after 'install 'install/man | |
1407 | (lambda _ | |
e61c2991 | 1408 | (invoke "make" "install.man")))))) |
1d752e43 MG |
1409 | (home-page "http://ibiblio.org/pub/Linux/X11/screensavers/") |
1410 | (synopsis "Program launcher for idle X sessions") | |
1411 | (description "Xautolock monitors input devices under the X Window | |
1412 | System, and launches a program of your choice if there is no activity after | |
1413 | a user-configurable period of time.") | |
1414 | (license license:gpl2))) | |
af1e3dfe T |
1415 | |
1416 | (define-public screen-message | |
1417 | (package | |
1418 | (name "screen-message") | |
1419 | (version "0.25") | |
1420 | (source (origin | |
1421 | (method url-fetch) | |
1422 | (uri (string-append | |
1423 | "https://www.joachim-breitner.de/archive/screen-message" | |
1424 | "/screen-message-" version ".tar.gz")) | |
1425 | (sha256 | |
1426 | (base32 | |
1427 | "1lw955qq5pq010lzmaf32ylj2iprgsri9ih4hx672c3f794ilab0")))) | |
1428 | (build-system gnu-build-system) | |
1429 | (inputs `(("gtk3" ,gtk+) | |
1430 | ("gdk" ,gdk-pixbuf) | |
1431 | ("pango" ,pango))) | |
1432 | (native-inputs `(("pkg-config" ,pkg-config))) | |
1433 | (arguments | |
1434 | ;; The default configure puts the 'sm' binary in games/ instead of bin/ - | |
1435 | ;; this fixes it: | |
1436 | `(#:make-flags (list (string-append "execgamesdir=" %output "/bin")))) | |
1437 | (synopsis "Print messages on your screen") | |
1438 | (description "@code{screen-message} is a tool for displaying text on | |
1439 | your screen. It will make the text as large as possible and display it | |
1440 | with black color on a white background (colors are configurable on the | |
1441 | commandline).") | |
1442 | (home-page "https://www.joachim-breitner.de/projects#screen-message") | |
1443 | (license license:gpl2+))) | |
428adbc2 PN |
1444 | |
1445 | (define-public xss-lock | |
1446 | ;; xss-lock does not seem to be maintained any longer, but the last commits | |
1447 | ;; fix important issues so we package them. | |
1448 | (let ((version "0.3.0") | |
1449 | (revision "1") | |
1450 | (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717")) | |
1451 | (package | |
1452 | (name "xss-lock") | |
1453 | (version (git-version version revision commit)) | |
1454 | (source (origin | |
1455 | (method git-fetch) | |
1456 | (uri (git-reference | |
1457 | (url "https://bitbucket.org/raymonad/xss-lock.git") | |
1458 | (commit commit))) | |
1459 | (file-name (git-file-name name version)) | |
1460 | (sha256 | |
1461 | (base32 | |
1462 | "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r")))) | |
1463 | (build-system cmake-build-system) | |
1464 | (inputs `(("glib" ,glib) | |
1465 | ("xcb-util" ,xcb-util))) | |
1466 | (native-inputs | |
1467 | `(("python-docutils" ,python-docutils) | |
1468 | ("pkg-config" ,pkg-config))) | |
1469 | (arguments | |
1470 | `(#:tests? #f)) | |
1471 | (synopsis "Use external screen locker on events") | |
1472 | (description "@code{xss-lock} listens to X signals to fire up a | |
1473 | user-defined screensaver. In effect this allows to automatically lock the | |
1474 | screen when closing a laptop lid or after a period of user inactivity (as set | |
1475 | with @code{xset s TIMEOUT}). The notifier command, if specified, is executed | |
1476 | first. Additionally, xss-lock uses the inhibition logic to lock the screen | |
1477 | before the system goes to sleep.") | |
1478 | (home-page "https://bitbucket.org/raymonad/xss-lock") | |
1479 | (license license:expat)))) | |
19110787 EF |
1480 | |
1481 | (define-public python-pyperclip | |
1482 | (package | |
1483 | (name "python-pyperclip") | |
1484 | (version "1.6.4") | |
1485 | (source | |
1486 | (origin | |
1487 | (method url-fetch) | |
1488 | (uri (pypi-uri "pyperclip" version)) | |
1489 | (sha256 | |
1490 | (base32 | |
1491 | "1p505c23ji06r28k1y67siihsbdzdf1brhlqpyv9ams4gk9863pp")))) | |
1492 | (build-system python-build-system) | |
1493 | (arguments | |
1494 | '(#:tests? #f)) ; Not clear how to make tests pass. | |
1495 | (inputs | |
1496 | `(("xclip" ,xclip) | |
1497 | ("xsel" ,xsel))) | |
1498 | (home-page "https://github.com/asweigart/pyperclip") | |
1499 | (synopsis "Python clipboard module") | |
1500 | (description | |
1501 | "Pyperclip is a clipboard module for Python, handling copy/pasting from | |
1502 | the X11 clipboard") | |
1503 | (license license:bsd-3))) | |
90337891 PN |
1504 | |
1505 | (define-public numlockx | |
1506 | (package | |
1507 | (name "numlockx") | |
1508 | (version "1.2") | |
1509 | (source (origin | |
1510 | (method git-fetch) | |
1511 | (uri (git-reference | |
1512 | ;; It seems that upstream is gone. | |
1513 | (url "https://github.com/rg3/numlockx") | |
1514 | (commit version))) | |
1515 | (file-name (git-file-name name version)) | |
1516 | (sha256 | |
1517 | (base32 | |
1518 | "1w49fayhwzn5rx0z1q2lrvm7z8jrd34lgb89p853a024bixc3cf2")))) | |
1519 | (build-system gnu-build-system) | |
1520 | (inputs | |
1521 | `(("xorg-server" ,xorg-server))) | |
1522 | (home-page "https://github.com/rg3/numlockx") | |
1523 | (synopsis "Turns on the numlock key in X11") | |
1524 | (description "@command{numlockx} is a tiny program that lets you turn on | |
1525 | the numlock key in X11. It can be called from the user's initialization files | |
1526 | to automatically turn it on on login.") | |
1527 | (license license:expat))) | |
67e0fb8b RW |
1528 | |
1529 | (define-public xrandr-invert-colors | |
1530 | (package | |
1531 | (name "xrandr-invert-colors") | |
1532 | (version "0.01") | |
1533 | (source (origin | |
1534 | (method git-fetch) | |
1535 | (uri (git-reference | |
1536 | (url "https://github.com/zoltanp/xrandr-invert-colors.git") | |
1537 | (commit (string-append "v" version)))) | |
1538 | (file-name (git-file-name name version)) | |
1539 | (sha256 | |
1540 | (base32 | |
1541 | "1br3x9vr6xm4ika06n8cfxx1b3wdchdqvyzjl4y1chmivrml8x9h")))) | |
1542 | (build-system gnu-build-system) | |
1543 | (arguments | |
1544 | `(#:make-flags (list "CC=gcc") | |
1545 | #:tests? #f ; there are none | |
1546 | #:phases | |
1547 | (modify-phases %standard-phases | |
1548 | (delete 'configure) | |
1549 | (replace 'install | |
1550 | (lambda* (#:key outputs #:allow-other-keys) | |
1551 | (let* ((out (assoc-ref outputs "out")) | |
1552 | (bin (string-append out "/bin"))) | |
1553 | (install-file "xrandr-invert-colors.bin" bin) | |
1554 | #t)))))) | |
1555 | (inputs | |
1556 | `(("libxrandr" ,libxrandr))) | |
1557 | (home-page "https://github.com/zoltanp/xrandr-invert-colors") | |
1558 | (synopsis "Invert display colors") | |
1559 | (description "This package provides a small utility for inverting the | |
1560 | colors on all monitors attached to an XRandR-capable X11 display server.") | |
1561 | (license license:gpl3+))) | |
d852cf9e NN |
1562 | |
1563 | (define-public sct | |
1564 | (package | |
1565 | (name "sct") | |
1566 | (version "0.4") | |
1567 | (source | |
1568 | (origin | |
1569 | (method url-fetch) | |
1570 | (uri | |
1571 | (string-append "https://www.umaxx.net/dl/sct-" | |
1572 | version ".tar.gz")) | |
1573 | (sha256 | |
1574 | (base32 | |
1575 | "0r57z9ki8pvxhawfxys0v5h85z2x211sqxki0xvk1bga88ryldlv")))) | |
1576 | (build-system gnu-build-system) | |
1577 | (arguments | |
1578 | '(#:make-flags (list "CC=gcc") | |
1579 | #:tests? #f ; No tests exist. | |
1580 | #:phases | |
1581 | (modify-phases %standard-phases | |
1582 | (delete 'configure) | |
1583 | (add-after 'unpack 'fix-sctd-paths | |
1584 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
1585 | (let ((out (assoc-ref outputs "out")) | |
1586 | (coreutils (assoc-ref inputs "coreutils")) | |
1587 | (inetutils (assoc-ref inputs "inetutils")) | |
1588 | (sed (assoc-ref inputs "sed"))) | |
1589 | (substitute* "sctd.sh" | |
1590 | (("\\$\\(which sct\\)") (string-append out "/bin/sct")) | |
1591 | (("date") (string-append coreutils "/bin/date")) | |
1592 | (("printf") (string-append coreutils "/bin/printf")) | |
1593 | (("sleep") (string-append coreutils "/bin/sleep")) | |
1594 | (("logger") (string-append inetutils "/bin/logger")) | |
1595 | (("sed") (string-append sed "/bin/sed")))))) | |
1596 | (replace 'install | |
1597 | (lambda* (#:key outputs #:allow-other-keys) | |
1598 | (let ((out (assoc-ref outputs "out"))) | |
1599 | (install-file "sct" (string-append out "/bin")) | |
1600 | (install-file "sctd.sh" (string-append out "/bin")) | |
1601 | (install-file "sct.1" (string-append out "/man/man1")) | |
1602 | (install-file "sctd.1" (string-append out "/man/man1")) | |
1603 | (rename-file (string-append out "/bin/sctd.sh") | |
1604 | (string-append out "/bin/sctd")) | |
1605 | #t)))))) | |
1606 | (inputs | |
1607 | `(("coreutils" ,coreutils) ; sctd uses "date", "printf" and "sleep" | |
1608 | ("inetutils" ,inetutils) ; sctd uses "logger" | |
1609 | ("libxrandr" ,libxrandr) | |
1610 | ("sed" ,sed))) ; sctd uses "sed" | |
1611 | (home-page "https://www.umaxx.net") | |
1612 | (synopsis "Set the color temperature of the screen") | |
1613 | (description "@code{sct} is a lightweight utility to set the color | |
1614 | temperature of the screen.") | |
1615 | (license license:bsd-3))) | |
95bf2fb6 RH |
1616 | |
1617 | (define-public wl-clipboard | |
1618 | (package | |
1619 | (name "wl-clipboard") | |
1620 | (version "1.0.0") | |
1621 | (source | |
1622 | (origin | |
1623 | (method git-fetch) | |
1624 | (uri (git-reference | |
1625 | (url "https://github.com/bugaevc/wl-clipboard.git") | |
1626 | (commit (string-append "v" version)))) | |
1627 | (file-name (git-file-name name version)) | |
1628 | (sha256 | |
1629 | (base32 "03h6ajcc30w6928bkd4h6xfj4iy2359ww6hdlybq8mr1zwmb2h0q")))) | |
1630 | (build-system meson-build-system) | |
1631 | (native-inputs | |
1632 | `(("pkg-config" ,pkg-config))) | |
1633 | (inputs | |
1634 | `(("wayland" ,wayland) | |
1635 | ("wayland-protocols" ,wayland-protocols))) | |
1636 | (home-page "https://github.com/bugaevc/wl-clipboard") | |
1637 | (synopsis "Command-line copy/paste utilities for Wayland") | |
1638 | (description "Wl-clipboard is a set of command-line copy/paste utilities for | |
1639 | Wayland.") | |
1640 | (license license:gpl3+))) |