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