| 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr> |
| 3 | ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org> |
| 4 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> |
| 5 | ;;; Copyright © 2014, 2015, 2016 Alex Kost <alezost@gmail.com> |
| 6 | ;;; Copyright © 2013, 2015, 2017 Ludovic Courtès <ludo@gnu.org> |
| 7 | ;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org> |
| 8 | ;;; Copyright © 2015 Alexander I.Grafov <grafov@gmail.com> |
| 9 | ;;; Copyright © 2015 Andy Wingo <wingo@igalia.com> |
| 10 | ;;; Copyright © 2015 xd1le <elisp.vim@gmail.com> |
| 11 | ;;; Copyright © 2015 Florian Paul Schmidt <mista.tapas@gmx.net> |
| 12 | ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org> |
| 13 | ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net> |
| 14 | ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> |
| 15 | ;;; Copyright © 2016 Leo Famulari <leo@famulari.name> |
| 16 | ;;; Copyright © 2016 Alex Kost <alezost@gmail.com> |
| 17 | ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com> |
| 18 | ;;; Copyright © 2016 Petter <petter@mykolab.ch> |
| 19 | ;;; |
| 20 | ;;; This file is part of GNU Guix. |
| 21 | ;;; |
| 22 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
| 23 | ;;; under the terms of the GNU General Public License as published by |
| 24 | ;;; the Free Software Foundation; either version 3 of the License, or (at |
| 25 | ;;; your option) any later version. |
| 26 | ;;; |
| 27 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
| 28 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
| 29 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 30 | ;;; GNU General Public License for more details. |
| 31 | ;;; |
| 32 | ;;; You should have received a copy of the GNU General Public License |
| 33 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
| 34 | |
| 35 | (define-module (gnu packages xdisorg) |
| 36 | #:use-module ((guix licenses) #:prefix license:) |
| 37 | #:use-module (guix packages) |
| 38 | #:use-module (guix download) |
| 39 | #:use-module (guix utils) |
| 40 | #:use-module (guix build-system cmake) |
| 41 | #:use-module (guix build-system gnu) |
| 42 | #:use-module (guix build-system glib-or-gtk) |
| 43 | #:use-module (guix build-system python) |
| 44 | #:use-module (gnu packages) |
| 45 | #:use-module (gnu packages documentation) |
| 46 | #:use-module (gnu packages algebra) |
| 47 | #:use-module (gnu packages compression) |
| 48 | #:use-module (gnu packages image) |
| 49 | #:use-module (gnu packages pkg-config) |
| 50 | #:use-module (gnu packages gettext) |
| 51 | #:use-module (gnu packages gl) |
| 52 | #:use-module (gnu packages glib) |
| 53 | #:use-module (gnu packages gnome) |
| 54 | #:use-module (gnu packages m4) |
| 55 | #:use-module (gnu packages ncurses) |
| 56 | #:use-module (gnu packages perl) |
| 57 | #:use-module (gnu packages python) |
| 58 | #:use-module (gnu packages linux) |
| 59 | #:use-module (gnu packages gl) |
| 60 | #:use-module (gnu packages guile) |
| 61 | #:use-module (gnu packages xml) |
| 62 | #:use-module (gnu packages gtk) |
| 63 | #:use-module (gnu packages xorg) |
| 64 | #:use-module (gnu packages bison)) |
| 65 | |
| 66 | ;; packages outside the x.org system proper |
| 67 | |
| 68 | (define-public arandr |
| 69 | (package |
| 70 | (name "arandr") |
| 71 | (version "0.1.9") |
| 72 | (source (origin |
| 73 | (method url-fetch) |
| 74 | (uri (string-append "http://christian.amsuess.com/tools/" name |
| 75 | "/files/" name "-" version ".tar.gz")) |
| 76 | (sha256 |
| 77 | (base32 |
| 78 | "1i3f1agixxbfy4kxikb2b241p7c2lg73cl9wqfvlwz3q6zf5faxv")) |
| 79 | (modules '((guix build utils))) |
| 80 | (snippet |
| 81 | ;; Do not record a timestamp and file name in gzipped man |
| 82 | ;; pages (this is equivalent to 'gzip --no-name'.) |
| 83 | '(substitute* "setup.py" |
| 84 | (("gzip\\.open\\(gzfile, 'w', 9\\)") |
| 85 | "gzip.GzipFile('', 'wb', 9, open(gzfile, 'wb'), 0.)"))))) |
| 86 | (build-system python-build-system) |
| 87 | (arguments |
| 88 | `(#:python ,python-2 ;incompatible with python 3 |
| 89 | #:tests? #f ;no tests |
| 90 | #:phases |
| 91 | (modify-phases %standard-phases |
| 92 | (add-after 'install 'make-xrandr-available |
| 93 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 94 | (wrap-program (string-append (assoc-ref outputs "out") |
| 95 | "/bin/arandr") |
| 96 | `("PATH" ":" prefix (,(string-append (assoc-ref inputs "xrandr") |
| 97 | "/bin")))) |
| 98 | #t))))) |
| 99 | (inputs `(("pygtk" ,python2-pygtk) |
| 100 | ("xrandr" ,xrandr))) |
| 101 | (native-inputs `(("gettext" ,gettext-minimal) |
| 102 | ("python-docutils" ,python2-docutils))) |
| 103 | (home-page "https://christian.amsuess.com/tools/arandr/") |
| 104 | (synopsis "Another RandR graphical user interface") |
| 105 | ;; TRANSLATORS: "X11 resize-and-rotate" should not be translated. |
| 106 | (description "ARandR is designed to provide a simple visual front end for |
| 107 | the X11 resize-and-rotate (RandR) extension. Relative monitor positions are |
| 108 | shown graphically and can be changed in a drag-and-drop way. Configurations |
| 109 | are saved as executable shell scripts which can be loaded without using this |
| 110 | program.") |
| 111 | (license license:gpl3+))) |
| 112 | |
| 113 | (define-public xclip |
| 114 | (package |
| 115 | (name "xclip") |
| 116 | (version "0.12") |
| 117 | (source |
| 118 | (origin |
| 119 | (method url-fetch) |
| 120 | (uri (string-append |
| 121 | "mirror://sourceforge/" name "/" name "/" version "/" |
| 122 | name "-" version ".tar.gz")) |
| 123 | (sha256 |
| 124 | (base32 |
| 125 | "0ibcf46rldnv0r424qcnai1fa5iq3lm5q5rdd7snsi5sb78gmixp")))) |
| 126 | (build-system gnu-build-system) |
| 127 | (arguments |
| 128 | '(#:tests? #f)) ; There is no test suite |
| 129 | (inputs `(("libxmu" ,libxmu) |
| 130 | ("libxt" ,libxt))) |
| 131 | (home-page "http://xclip.sourceforge.net/") |
| 132 | (synopsis "Command line interface to X11 clipboard") |
| 133 | (description "Xclip is a command line interface to the X11 clipboard. It |
| 134 | can also be used for copying files, as an alternative to sftp/scp, thus |
| 135 | avoiding password prompts when X11 forwarding has already been setup.") |
| 136 | (license license:gpl2+))) |
| 137 | |
| 138 | (define-public libxkbcommon |
| 139 | (package |
| 140 | (name "libxkbcommon") |
| 141 | (version "0.7.1") |
| 142 | (source (origin |
| 143 | (method url-fetch) |
| 144 | (uri (string-append "https://xkbcommon.org/download/" name "-" |
| 145 | version ".tar.xz")) |
| 146 | (sha256 |
| 147 | (base32 |
| 148 | "12z6hih3n1r0asp2hzp9qsiwdfkfz46jwp06x8kprr0r5rfk0nds")))) |
| 149 | (build-system gnu-build-system) |
| 150 | (inputs |
| 151 | `(("libx11" ,libx11) |
| 152 | ("libxcb" ,libxcb) |
| 153 | ("xkeyboard-config" ,xkeyboard-config))) |
| 154 | (native-inputs |
| 155 | `(("bison" ,bison) |
| 156 | ("pkg-config" ,pkg-config))) |
| 157 | (arguments |
| 158 | `(#:configure-flags |
| 159 | (list (string-append "--with-xkb-config-root=" |
| 160 | (assoc-ref %build-inputs "xkeyboard-config") |
| 161 | "/share/X11/xkb") |
| 162 | (string-append "--with-x-locale-root=" |
| 163 | (assoc-ref %build-inputs "libx11") |
| 164 | "/share/X11/locale")))) |
| 165 | (home-page "https://xkbcommon.org/") |
| 166 | (synopsis "Library to handle keyboard descriptions") |
| 167 | (description "Xkbcommon is a library to handle keyboard descriptions, |
| 168 | including loading them from disk, parsing them and handling their |
| 169 | state. It is mainly meant for client toolkits, window systems, and other |
| 170 | system applications; currently that includes Wayland, kmscon, GTK+, Qt, |
| 171 | Clutter, and more. Despite the name, it is not currently used by anything |
| 172 | X11 (yet).") |
| 173 | (license (license:x11-style "file://COPYING" |
| 174 | "See 'COPYING' in the distribution.")))) |
| 175 | |
| 176 | (define-public xdotool |
| 177 | (package |
| 178 | (name "xdotool") |
| 179 | (version "3.20150503.1") |
| 180 | (source |
| 181 | (origin |
| 182 | (method url-fetch) |
| 183 | (uri (string-append |
| 184 | "https://github.com/jordansissel/xdotool/releases/download/v" |
| 185 | version "/xdotool-" version ".tar.gz")) |
| 186 | (sha256 |
| 187 | (base32 |
| 188 | "1lcngsw33fy9my21rdiz1gs474bfdqcfxjrnfggbx4aypn1nhcp8")) |
| 189 | (patches (search-patches "xdotool-fix-makefile.patch")))) |
| 190 | (build-system gnu-build-system) |
| 191 | (arguments |
| 192 | '(#:tests? #f ; Test suite requires a lot of black magic |
| 193 | #:phases |
| 194 | (modify-phases %standard-phases |
| 195 | (replace 'configure |
| 196 | (lambda* (#:key outputs #:allow-other-keys #:rest args) |
| 197 | (setenv "PREFIX" (assoc-ref outputs "out")) |
| 198 | (setenv "LDFLAGS" |
| 199 | (string-append "-Wl,-rpath=" |
| 200 | (assoc-ref %outputs "out") "/lib")) |
| 201 | (setenv "CC" "gcc")))))) |
| 202 | (native-inputs `(("perl" ,perl))) ; for pod2man |
| 203 | (inputs `(("libx11" ,libx11) |
| 204 | ("libxext" ,libxext) |
| 205 | ("libxi" ,libxi) |
| 206 | ("libxinerama" ,libxinerama) |
| 207 | ("libxtst" ,libxtst) |
| 208 | ("libxkbcommon" ,libxkbcommon))) |
| 209 | (home-page "http://www.semicomplete.com/projects/xdotool") |
| 210 | (synopsis "Fake keyboard/mouse input, window management, and more") |
| 211 | (description "Xdotool lets you simulate keyboard input and mouse activity, |
| 212 | move and resize windows, etc. It does this using X11's XTEST extension and |
| 213 | other Xlib functions. Additionally, you can search for windows and move, |
| 214 | resize, hide, and modify window properties like the title. If your window |
| 215 | manager supports it, you can use xdotool to switch desktops, move windows |
| 216 | between desktops, and change the number of desktops.") |
| 217 | (license license:bsd-3))) |
| 218 | |
| 219 | (define-public xeyes |
| 220 | (package |
| 221 | (name "xeyes") |
| 222 | (version "1.0.1") |
| 223 | (source |
| 224 | (origin |
| 225 | (method url-fetch) |
| 226 | (uri (string-append |
| 227 | "http://xeyes.sourcearchive.com/downloads/1.0.1/xeyes_" |
| 228 | version |
| 229 | ".orig.tar.gz")) |
| 230 | (sha256 |
| 231 | (base32 |
| 232 | "04c3md570j67g55h3bix1qbngcslnq91skli51k3g1avki88zkm9")))) |
| 233 | (build-system gnu-build-system) |
| 234 | (inputs |
| 235 | `(("libxext" ,libxext) |
| 236 | ("libxmu" ,libxmu) |
| 237 | ("libxt" ,libxt))) |
| 238 | (native-inputs |
| 239 | `(("pkg-config" ,pkg-config))) |
| 240 | (home-page "http://xeyes.sourcearchive.com/") |
| 241 | (synopsis "Follow-the-mouse X demo") |
| 242 | (description "Xeyes is a demo program for x.org. It shows eyes |
| 243 | following the mouse.") |
| 244 | (license license:x11))) |
| 245 | |
| 246 | |
| 247 | (define-public pixman |
| 248 | (package |
| 249 | (name "pixman") |
| 250 | (version "0.34.0") |
| 251 | (source (origin |
| 252 | (method url-fetch) |
| 253 | (uri (string-append |
| 254 | "http://cairographics.org/releases/pixman-" |
| 255 | version ".tar.gz")) |
| 256 | (sha256 |
| 257 | (base32 |
| 258 | "13m842m9ffac3m9r0b4lvwjhwzg3w4353djkjpf00s0wnm4v5di1")) |
| 259 | (patches (search-patches "pixman-CVE-2016-5296.patch")))) |
| 260 | (build-system gnu-build-system) |
| 261 | (inputs |
| 262 | `(("libpng" ,libpng) |
| 263 | ("zlib" ,zlib))) |
| 264 | (native-inputs |
| 265 | `(("pkg-config" ,pkg-config))) |
| 266 | (home-page "http://www.pixman.org/") |
| 267 | (synopsis "Low-level pixel manipulation library") |
| 268 | (description "Pixman is a low-level software library for pixel |
| 269 | manipulation, providing features such as image compositing and trapezoid |
| 270 | rasterisation.") |
| 271 | (license license:x11))) |
| 272 | |
| 273 | (define-public libdrm |
| 274 | (package |
| 275 | (name "libdrm") |
| 276 | (version "2.4.75") |
| 277 | (source |
| 278 | (origin |
| 279 | (method url-fetch) |
| 280 | (uri (string-append |
| 281 | "https://dri.freedesktop.org/libdrm/libdrm-" |
| 282 | version |
| 283 | ".tar.bz2")) |
| 284 | (sha256 |
| 285 | (base32 |
| 286 | "0kq5hmck0gq7b29fr8jp94njc7jpkpbyws12s63w4b21xw750nid")) |
| 287 | (patches (search-patches "libdrm-symbol-check.patch")))) |
| 288 | (build-system gnu-build-system) |
| 289 | (inputs |
| 290 | `(("libpciaccess" ,libpciaccess) |
| 291 | ("libpthread-stubs" ,libpthread-stubs))) |
| 292 | (native-inputs |
| 293 | `(("pkg-config" ,pkg-config))) |
| 294 | (home-page "http://dri.freedesktop.org/wiki/") |
| 295 | (synopsis "Direct rendering userspace library") |
| 296 | (description "The Direct Rendering Infrastructure, also known as the DRI, |
| 297 | is a framework for allowing direct access to graphics hardware under the |
| 298 | X Window System in a safe and efficient manner. It includes changes to the |
| 299 | X server, to several client libraries, and to the kernel (DRM, Direct |
| 300 | Rendering Manager). The most important use for the DRI is to create fast |
| 301 | OpenGL implementations providing hardware acceleration for Mesa. |
| 302 | Several 3D accelerated drivers have been written to the DRI specification, |
| 303 | including drivers for chipsets produced by 3DFX, AMD (formerly ATI), Intel |
| 304 | and Matrox.") |
| 305 | (license license:x11))) |
| 306 | |
| 307 | |
| 308 | (define-public mtdev |
| 309 | (package |
| 310 | (name "mtdev") |
| 311 | (version "1.1.5") |
| 312 | (source |
| 313 | (origin |
| 314 | (method url-fetch) |
| 315 | (uri (string-append |
| 316 | "http://bitmath.org/code/mtdev/mtdev-" |
| 317 | version ".tar.bz2")) |
| 318 | (sha256 |
| 319 | (base32 |
| 320 | "0zxs7shzgbalkvlaiibi25bd902rbmkv9n1lww6q8j3ri9qdaxv6")))) |
| 321 | (build-system gnu-build-system) |
| 322 | (home-page "http://bitmath.org/code/mtdev/") |
| 323 | (synopsis "Multitouch protocol translation library") |
| 324 | (description "Mtdev is a stand-alone library which transforms all |
| 325 | variants of kernel MT events to the slotted type B protocol. The events |
| 326 | put into mtdev may be from any MT device, specifically type A without |
| 327 | contact tracking, type A with contact tracking, or type B with contact |
| 328 | tracking.") |
| 329 | (license license:x11))) |
| 330 | |
| 331 | (define-public startup-notification |
| 332 | (package |
| 333 | (name "startup-notification") |
| 334 | (version "0.12") |
| 335 | (source |
| 336 | (origin |
| 337 | (method url-fetch) |
| 338 | (uri (string-append "https://www.freedesktop.org/software/" name |
| 339 | "/releases/" name "-" version ".tar.gz")) |
| 340 | (sha256 |
| 341 | (base32 |
| 342 | "0jmyryrpqb35y9hd5sgxqy2z0r1snw7d3ljw0jak0n0cjdz1yf9w")))) |
| 343 | (build-system gnu-build-system) |
| 344 | (native-inputs `(("pkg-config" ,pkg-config))) |
| 345 | (inputs |
| 346 | `(("libx11" ,libx11) |
| 347 | ("xcb-util" ,xcb-util))) |
| 348 | (home-page "http://www.freedesktop.org/wiki/Software/startup-notification/") |
| 349 | (synopsis "Application startup notification and feedback library") |
| 350 | (description |
| 351 | "Startup-notification contains a reference implementation of the startup |
| 352 | notification protocol. The reference implementation is mostly under an X Window |
| 353 | System style license, and has no special dependencies.") |
| 354 | ;; Most of the code is provided under x11 license. |
| 355 | (license license:lgpl2.0+))) |
| 356 | |
| 357 | (define-public wmctrl |
| 358 | (package |
| 359 | (name "wmctrl") |
| 360 | (version "1.07") |
| 361 | (source (origin |
| 362 | (method url-fetch) |
| 363 | (uri (string-append |
| 364 | "https://sites.google.com/site/tstyblo/wmctrl/wmctrl-" |
| 365 | version ".tar.gz")) |
| 366 | (sha256 |
| 367 | (base32 |
| 368 | "1afclc57b9017a73mfs9w7lbdvdipmf9q0xdk116f61gnvyix2np")) |
| 369 | (patches (search-patches "wmctrl-64-fix.patch")))) |
| 370 | (build-system gnu-build-system) |
| 371 | (arguments |
| 372 | '(#:configure-flags |
| 373 | (list (string-append "--mandir=" |
| 374 | (assoc-ref %outputs "out") |
| 375 | "/share/man")))) |
| 376 | (native-inputs |
| 377 | `(("pkg-config" ,pkg-config))) |
| 378 | (inputs |
| 379 | `(("libx11" ,libx11) |
| 380 | ("libxmu" ,libxmu) |
| 381 | ("glib" ,glib))) |
| 382 | (home-page "http://tomas.styblo.name/wmctrl/") |
| 383 | (synopsis "Command-line tool to control X window managers") |
| 384 | (description |
| 385 | "Wmctrl allows to interact with an X window manager that is compatible |
| 386 | with the EWMH/NetWM specification. It can query the window manager for |
| 387 | information, and request for certain window management actions (resize and |
| 388 | move windows, switch between desktops, etc.).") |
| 389 | (license license:gpl2+))) |
| 390 | |
| 391 | (define-public scrot |
| 392 | (package |
| 393 | (name "scrot") |
| 394 | (version "0.8") |
| 395 | (source (origin |
| 396 | (method url-fetch) |
| 397 | (uri (list (string-append |
| 398 | "http://linuxbrit.co.uk/downloads/scrot-" |
| 399 | version ".tar.gz") |
| 400 | (string-append |
| 401 | "https://fossies.org/linux/privat/old/scrot-" |
| 402 | version ".tar.gz"))) |
| 403 | (sha256 |
| 404 | (base32 |
| 405 | "1wll744rhb49lvr2zs6m93rdmiq59zm344jzqvijrdn24ksiqgb1")))) |
| 406 | (build-system gnu-build-system) |
| 407 | (arguments |
| 408 | ;; By default, man and doc are put in PREFIX/{man,doc} instead of |
| 409 | ;; PREFIX/share/{man,doc}. |
| 410 | '(#:configure-flags |
| 411 | (list (string-append "--mandir=" |
| 412 | (assoc-ref %outputs "out") |
| 413 | "/share/man")) |
| 414 | #:phases |
| 415 | (modify-phases %standard-phases |
| 416 | (replace 'install |
| 417 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 418 | (let* ((out (assoc-ref outputs "out")) |
| 419 | (doc (string-append out "/share/doc/scrot"))) |
| 420 | (mkdir-p doc) |
| 421 | (zero? |
| 422 | (system* "make" "install" |
| 423 | (string-append "docsdir=" doc))))))))) |
| 424 | (inputs |
| 425 | `(("libx11" ,libx11) |
| 426 | ("giblib" ,giblib))) |
| 427 | (home-page "http://linuxbrit.co.uk/software/") |
| 428 | (synopsis "Command-line screen capture utility for X Window System") |
| 429 | (description |
| 430 | "Scrot allows to save a screenshot of a full screen, a window or a part |
| 431 | of the screen selected by mouse.") |
| 432 | ;; This license removes a clause about X Consortium from the original |
| 433 | ;; X11 license. |
| 434 | (license (license:x11-style "file://COPYING" |
| 435 | "See 'COPYING' in the distribution.")))) |
| 436 | |
| 437 | (define-public slop |
| 438 | (package |
| 439 | (name "slop") |
| 440 | (version "4.3.21") |
| 441 | (source (origin |
| 442 | (method url-fetch) |
| 443 | (uri (string-append |
| 444 | "https://github.com/naelstrof/slop/archive/v" |
| 445 | version ".tar.gz")) |
| 446 | (file-name (string-append name "-" version ".tar.gz")) |
| 447 | (sha256 |
| 448 | (base32 |
| 449 | "0z0p4a3p5mc6fjh5f8js9ppb0maxyvfxpiw2n6nqc5nim1kv6bim")))) |
| 450 | (build-system cmake-build-system) |
| 451 | (arguments '(#:tests? #f)) ; no "check" target |
| 452 | (inputs |
| 453 | `(("libx11" ,libx11) |
| 454 | ("libxrandr" ,libxrandr) |
| 455 | ("libxext" ,libxext) |
| 456 | ("imlib2" ,imlib2) |
| 457 | ("glew" ,glew) |
| 458 | ("mesa" ,mesa))) |
| 459 | (home-page "https://github.com/naelstrof/slop") |
| 460 | (synopsis "Select a region and print its bounds to stdout") |
| 461 | (description |
| 462 | "slop (Select Operation) is a tool that queries for a selection from a |
| 463 | user and prints the region to stdout. It grabs the mouse and turns it into a |
| 464 | crosshair, lets the user click and drag to make a selection (or click on a |
| 465 | window) while drawing a pretty box around it, then finally prints the |
| 466 | selection's dimensions to stdout.") |
| 467 | (license license:gpl3+))) |
| 468 | |
| 469 | (define-public maim |
| 470 | (package |
| 471 | (name "maim") |
| 472 | (version "3.4.47") |
| 473 | (source (origin |
| 474 | (method url-fetch) |
| 475 | (uri (string-append |
| 476 | "https://github.com/naelstrof/maim/archive/v" |
| 477 | version ".tar.gz")) |
| 478 | (file-name (string-append name "-" version ".tar.gz")) |
| 479 | (sha256 |
| 480 | (base32 |
| 481 | "0kfp7k55bxc5h6h0wv8bwmsc5ny66h9ra2z4dzs4yzszq16544pv")))) |
| 482 | (build-system cmake-build-system) |
| 483 | (arguments |
| 484 | '(#:tests? #f ; no "check" target |
| 485 | #:phases |
| 486 | (modify-phases %standard-phases |
| 487 | (add-after 'unpack 'patch-source |
| 488 | (lambda* (#:key inputs #:allow-other-keys) |
| 489 | (let ((slop (string-append (assoc-ref inputs "slop") |
| 490 | "/bin/slop"))) |
| 491 | ;; "slop" command is hardcoded in the source; replace it |
| 492 | ;; with the full file name. |
| 493 | (substitute* "src/main.cpp" |
| 494 | (("^( +slopcommand.*)\"slop\"" all front) |
| 495 | (string-append front "\"" slop "\""))))))))) |
| 496 | (inputs |
| 497 | `(("libx11" ,libx11) |
| 498 | ("libxrandr" ,libxrandr) |
| 499 | ("libxfixes" ,libxfixes) |
| 500 | ("imlib2" ,imlib2) |
| 501 | ("slop" ,slop))) |
| 502 | (home-page "https://github.com/naelstrof/maim") |
| 503 | (synopsis "Screenshot utility for X Window System") |
| 504 | (description |
| 505 | "maim (Make Image) is a tool that takes screenshots of your desktop and |
| 506 | saves it in any format. Along with a full screen, it allows you to capture a |
| 507 | predefined region or a particular window. Also, it makes it possible to |
| 508 | include cursor in the resulting image.") |
| 509 | (license license:gpl3+))) |
| 510 | |
| 511 | (define-public unclutter |
| 512 | (package |
| 513 | (name "unclutter") |
| 514 | (version "8") |
| 515 | (source (origin |
| 516 | (method url-fetch) |
| 517 | (uri (string-append |
| 518 | "http://ftp.x.org/contrib/utilities/unclutter-" |
| 519 | version ".tar.Z")) |
| 520 | (sha256 |
| 521 | (base32 |
| 522 | "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq")))) |
| 523 | (build-system gnu-build-system) |
| 524 | (arguments |
| 525 | '(#:tests? #f ; no check target |
| 526 | #:phases |
| 527 | (modify-phases %standard-phases |
| 528 | (delete 'configure) |
| 529 | (replace 'install |
| 530 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 531 | (let* ((out (assoc-ref outputs "out")) |
| 532 | (bin (string-append out "/bin")) |
| 533 | (man1 (string-append out "/share/man/man1"))) |
| 534 | (mkdir-p bin) |
| 535 | (mkdir-p man1) |
| 536 | (zero? |
| 537 | (system* "make" "install" "install.man" |
| 538 | (string-append "BINDIR=" bin) |
| 539 | (string-append "MANDIR=" man1))))))))) |
| 540 | (inputs `(("libx11" ,libx11))) |
| 541 | (home-page "http://ftp.x.org/contrib/utilities/") |
| 542 | (synopsis "Hide idle mouse cursor") |
| 543 | (description |
| 544 | "Unclutter is a program which runs permanently in the background of an |
| 545 | X11 session. It checks on the X11 pointer (cursor) position every few |
| 546 | seconds, and when it finds it has not moved (and no buttons are pressed |
| 547 | on the mouse, and the cursor is not in the root window) it creates a |
| 548 | small sub-window as a child of the window the cursor is in. The new |
| 549 | window installs a cursor of size 1x1 but a mask of all 0, i.e. an |
| 550 | invisible cursor. This allows you to see all the text in an xterm or |
| 551 | xedit, for example. The human factors crowd would agree it should make |
| 552 | things less distracting.") |
| 553 | (license license:public-domain))) |
| 554 | |
| 555 | (define-public xlockmore |
| 556 | (package |
| 557 | (name "xlockmore") |
| 558 | (version "5.47") |
| 559 | (source (origin |
| 560 | (method url-fetch) |
| 561 | (uri (list (string-append |
| 562 | "http://www.tux.org/~bagleyd/xlock/xlockmore-" |
| 563 | version ".tar.xz") |
| 564 | (string-append |
| 565 | "http://www.tux.org/~bagleyd/xlock/xlockmore-old" |
| 566 | "/xlockmore-" version |
| 567 | "/xlockmore-" version ".tar.xz"))) |
| 568 | (sha256 |
| 569 | (base32 |
| 570 | "138d79b8zc2hambbr9fnxp3fhihlcljgqns04zf0kv2f53pavqwl")))) |
| 571 | (build-system gnu-build-system) |
| 572 | (arguments |
| 573 | '(#:configure-flags (list (string-append "--enable-appdefaultdir=" |
| 574 | (assoc-ref %outputs "out") |
| 575 | "/lib/X11/app-defaults")) |
| 576 | #:tests? #f)) ;no such thing as a test suite |
| 577 | (inputs |
| 578 | `(("libX11" ,libx11) |
| 579 | ("libXext" ,libxext) |
| 580 | ("libXt" ,libxt) |
| 581 | ("linux-pam" ,linux-pam))) |
| 582 | (home-page "http://www.tux.org/~bagleyd/xlockmore.html") |
| 583 | (synopsis "Screen locker for the X Window System") |
| 584 | (description |
| 585 | "XLockMore is a classic screen locker and screen saver for the |
| 586 | X Window System.") |
| 587 | (license (license:non-copyleft #f "See xlock.c.") |
| 588 | ))) ; + GPLv2 in modes/glx/biof.c. |
| 589 | |
| 590 | (define-public xosd |
| 591 | (package |
| 592 | (name "xosd") |
| 593 | (version "2.2.14") |
| 594 | (source (origin |
| 595 | (method url-fetch) |
| 596 | (uri (string-append |
| 597 | "mirror://sourceforge/libxosd/libxosd/xosd-" version "/" |
| 598 | name "-" version ".tar.gz")) |
| 599 | (sha256 |
| 600 | (base32 |
| 601 | "025m7ha89q29swkc7s38knnbn8ysl24g2h5s7imfxflm91psj7sg")))) |
| 602 | (build-system gnu-build-system) |
| 603 | (arguments |
| 604 | '(#:configure-flags |
| 605 | (list (string-append "--mandir=" %output "/share/man")))) |
| 606 | (inputs |
| 607 | `(("libx11" ,libx11) |
| 608 | ("libxt" ,libxt) |
| 609 | ("libxext" ,libxext) |
| 610 | ("libxinerama" ,libxinerama))) |
| 611 | (home-page "https://sourceforge.net/projects/libxosd/") |
| 612 | (synopsis "X On Screen Display") |
| 613 | (description |
| 614 | "XOSD provides a C library and a simple utility (osd_cat) for displaying |
| 615 | transparent text on your screen.") |
| 616 | (license license:gpl2+))) |
| 617 | |
| 618 | (define-public xbindkeys |
| 619 | (package |
| 620 | (name "xbindkeys") |
| 621 | (version "1.8.6") |
| 622 | (source (origin |
| 623 | (method url-fetch) |
| 624 | ;; Download from the savannah mirror list fails |
| 625 | (uri (string-append |
| 626 | "http://www.nongnu.org/xbindkeys/xbindkeys-" |
| 627 | version |
| 628 | ".tar.gz")) |
| 629 | (sha256 |
| 630 | (base32 |
| 631 | "060df6d8y727jp1inp7blp44cs8a7jig7vcm8ndsn6gw36z1h3bc")))) |
| 632 | (build-system gnu-build-system) |
| 633 | (inputs |
| 634 | `(("libx11" ,libx11) |
| 635 | ("guile" ,guile-2.0))) |
| 636 | (home-page "http://www.nongnu.org/xbindkeys/") |
| 637 | (synopsis "Associate a combination of keys with a shell command") |
| 638 | (description |
| 639 | "XBindKeys is a program that allows you to launch shell commands with |
| 640 | your keyboard or your mouse under the X Window System. It links commands to |
| 641 | keys or mouse buttons, using a configuration file. It's independent of the |
| 642 | window manager and can capture all keyboard keys (ex: Power, Wake...). It |
| 643 | optionally supports a Guile-based configuration file layout, which enables you |
| 644 | to access all XBindKeys internals, so you can have key combinations, double |
| 645 | clicks or timed double clicks take actions. Also all functions that work in |
| 646 | Guile will work for XBindKeys.") |
| 647 | (license license:gpl2+))) |
| 648 | |
| 649 | (define-public sxhkd |
| 650 | (package |
| 651 | (name "sxhkd") |
| 652 | (version "0.5.6") |
| 653 | (source |
| 654 | (origin |
| 655 | (file-name (string-append name "-" version ".tar.gz")) |
| 656 | (method url-fetch) |
| 657 | (uri (string-append |
| 658 | "https://github.com/baskerville/sxhkd/archive/" |
| 659 | version ".tar.gz")) |
| 660 | (sha256 |
| 661 | (base32 |
| 662 | "15grmzpxz5fqlbfg2slj7gb7r6nzkvjmflmbkqx7mlby9pm6wdkj")))) |
| 663 | (build-system gnu-build-system) |
| 664 | (inputs |
| 665 | `(("asciidoc" ,asciidoc) |
| 666 | ("libxcb" ,libxcb) |
| 667 | ("xcb-util" ,xcb-util) |
| 668 | ("xcb-util-keysyms" ,xcb-util-keysyms) |
| 669 | ("xcb-util-wm" ,xcb-util-wm))) |
| 670 | (arguments |
| 671 | '(#:phases (alist-delete 'configure %standard-phases) |
| 672 | #:tests? #f ; no check target |
| 673 | #:make-flags (list "CC=gcc" |
| 674 | (string-append "PREFIX=" %output)))) |
| 675 | (home-page "https://github.com/baskerville/sxhkd") |
| 676 | (synopsis "Simple X hotkey daemon") |
| 677 | (description "sxhkd is a simple X hotkey daemon with a powerful and |
| 678 | compact configuration syntax.") |
| 679 | (license license:bsd-2))) |
| 680 | |
| 681 | (define-public rxvt-unicode |
| 682 | (package |
| 683 | (name "rxvt-unicode") |
| 684 | (version "9.22") |
| 685 | (source (origin |
| 686 | (method url-fetch) |
| 687 | (uri (string-append "http://dist.schmorp.de/rxvt-unicode/Attic/" |
| 688 | name "-" version ".tar.bz2")) |
| 689 | (sha256 |
| 690 | (base32 |
| 691 | "1pddjn5ynblwfrdmskylrsxb9vfnk3w4jdnq2l8xn2pspkljhip9")))) |
| 692 | (build-system gnu-build-system) |
| 693 | (arguments |
| 694 | ;; This sets the destination when installing the necessary terminal |
| 695 | ;; capability data, which are not provided by 'ncurses'. See |
| 696 | ;; https://lists.gnu.org/archive/html/bug-ncurses/2009-10/msg00031.html |
| 697 | '(#:make-flags (list (string-append "TERMINFO=" |
| 698 | (assoc-ref %outputs "out") |
| 699 | "/share/terminfo")))) |
| 700 | (inputs |
| 701 | `(("libXft" ,libxft) |
| 702 | ("libX11" ,libx11))) |
| 703 | (native-inputs |
| 704 | `(("ncurses" ,ncurses) ;trigger the installation of terminfo data |
| 705 | ("perl" ,perl) |
| 706 | ("pkg-config" ,pkg-config))) |
| 707 | ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is |
| 708 | ;; provided for usability reasons. See <https://bugs.gnu.org/22138>. |
| 709 | (native-search-paths |
| 710 | (list (search-path-specification |
| 711 | (variable "TERMINFO_DIRS") |
| 712 | (files '("share/terminfo"))))) |
| 713 | (home-page "http://software.schmorp.de/pkg/rxvt-unicode.html") |
| 714 | (synopsis "Rxvt clone with XFT and unicode support") |
| 715 | (description "Rxvt-unicode (urxvt) is a colour vt102 terminal emulator |
| 716 | intended as an xterm replacement for users who do not require features such as |
| 717 | Tektronix 4014 emulation and toolkit-style configurability. It supports |
| 718 | unicode, XFT and may be extended with Perl plugins. It also comes with a |
| 719 | client/daemon pair that lets you open any number of terminal windows from |
| 720 | within a single process.") |
| 721 | (license license:gpl3+))) |
| 722 | |
| 723 | (define-public xcape |
| 724 | (package |
| 725 | (name "xcape") |
| 726 | (version "1.2") |
| 727 | (source |
| 728 | (origin |
| 729 | (method url-fetch) |
| 730 | (uri (string-append "https://github.com/alols/" name |
| 731 | "/archive/v" version ".tar.gz")) |
| 732 | (file-name (string-append name "-" version ".tar.gz")) |
| 733 | (sha256 |
| 734 | (base32 |
| 735 | "0898zc3vwxia00h9kfknpf7jygxgwggrx8v5mxc31w4lzn2dhzm2")))) |
| 736 | (build-system gnu-build-system) |
| 737 | (arguments |
| 738 | `(#:tests? #f ; no check target |
| 739 | #:phases (alist-delete 'configure %standard-phases) ; no configure script |
| 740 | #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) |
| 741 | "MANDIR=/share/man/man1" |
| 742 | "CC=gcc"))) |
| 743 | (inputs |
| 744 | `(("libxtst" ,libxtst) |
| 745 | ("libx11" ,libx11))) |
| 746 | (native-inputs |
| 747 | `(("pkg-config" ,pkg-config))) |
| 748 | (home-page "http://github.com/alols/xcape") |
| 749 | (synopsis "Use a modifier key in X.org as another key") |
| 750 | (description |
| 751 | "This utility for X.org allows to use modifier key as another key when |
| 752 | pressed and released on its own. The default behaviour is to generate the |
| 753 | Escape key when Left Control is pressed and released on its own.") |
| 754 | (license license:gpl3+))) |
| 755 | |
| 756 | (define-public libwacom |
| 757 | (package |
| 758 | (name "libwacom") |
| 759 | (version "0.23") |
| 760 | (source (origin |
| 761 | (method url-fetch) |
| 762 | (uri (string-append "mirror://sourceforge/linuxwacom/libwacom/" |
| 763 | name "-" version ".tar.bz2")) |
| 764 | (sha256 |
| 765 | (base32 |
| 766 | "0qiikh95b9crybkwgcbbv9y80hb7lsbvvmvaia4gbgbdyagwb2m0")))) |
| 767 | (build-system glib-or-gtk-build-system) |
| 768 | (native-inputs |
| 769 | `(("pkg-config" ,pkg-config))) |
| 770 | (inputs |
| 771 | `(("gtk+" ,gtk+) |
| 772 | ("libgudev" ,libgudev) |
| 773 | ("eudev" ,eudev) |
| 774 | ("libxml2" ,libxml2))) |
| 775 | (propagated-inputs |
| 776 | ;; libwacom includes header files that include GLib, and libinput uses |
| 777 | ;; those header files. |
| 778 | `(("glib" ,glib))) |
| 779 | (home-page "http://linuxwacom.sourceforge.net/") |
| 780 | (synopsis "Helper library for Wacom tablet settings") |
| 781 | (description |
| 782 | "Libwacom is a library to help implement Wacom tablet settings. It is |
| 783 | intended to be used by client-programs that need model identification. It is |
| 784 | already being used by the gnome-settings-daemon and the GNOME Control Center |
| 785 | Wacom tablet applet.") |
| 786 | (license license:x11))) |
| 787 | |
| 788 | (define-public xf86-input-wacom |
| 789 | (package |
| 790 | (name "xf86-input-wacom") |
| 791 | (version "0.34.0") |
| 792 | (source (origin |
| 793 | (method url-fetch) |
| 794 | (uri (string-append |
| 795 | "mirror://sourceforge/linuxwacom/xf86-input-wacom/" |
| 796 | name "-" version ".tar.bz2")) |
| 797 | (sha256 |
| 798 | (base32 |
| 799 | "0idhkigl0pnyp08sqm6bqfb4h20v6rjrb71z1gdv59gk7d7qwpgi")))) |
| 800 | (arguments |
| 801 | `(#:configure-flags |
| 802 | (list (string-append "--with-sdkdir=" |
| 803 | (assoc-ref %outputs "out") |
| 804 | "/include/xorg") |
| 805 | (string-append "--with-xorg-conf-dir=" |
| 806 | (assoc-ref %outputs "out") |
| 807 | "/share/X11/xorg.conf.d")))) |
| 808 | (build-system gnu-build-system) |
| 809 | (native-inputs |
| 810 | `(("pkg-config" ,pkg-config))) |
| 811 | (inputs |
| 812 | `(("xorg-server" ,xorg-server) |
| 813 | ("libxrandr" ,libxrandr) |
| 814 | ("libxinerama" ,libxinerama) |
| 815 | ("libxi" ,libxi) |
| 816 | ("eudev" ,eudev))) |
| 817 | (home-page "http://linuxwacom.sourceforge.net/") |
| 818 | (synopsis "Wacom input driver for X") |
| 819 | (description |
| 820 | "The xf86-input-wacom driver is the wacom-specific X11 input driver for |
| 821 | the X.Org X Server version 1.7 and later (X11R7.5 or later).") |
| 822 | (license license:x11))) |
| 823 | |
| 824 | (define-public redshift |
| 825 | (package |
| 826 | (name "redshift") |
| 827 | (version "1.11") |
| 828 | (source |
| 829 | (origin |
| 830 | (method url-fetch) |
| 831 | (uri |
| 832 | (string-append "https://github.com/jonls/redshift/" |
| 833 | "releases/download/v" version |
| 834 | "/redshift-" version ".tar.xz")) |
| 835 | (sha256 |
| 836 | (base32 |
| 837 | "0ngkwj7rg8nfk806w0sg443w6wjr91xdc0zisqfm5h2i77wm1qqh")))) |
| 838 | (build-system gnu-build-system) |
| 839 | (native-inputs |
| 840 | `(("pkg-config" ,pkg-config) |
| 841 | ("intltool" ,intltool))) |
| 842 | (inputs |
| 843 | `(("libdrm" ,libdrm) |
| 844 | ("libx11" ,libx11) |
| 845 | ("libxcb" ,libxcb) |
| 846 | ("libxxf86vm" ,libxxf86vm) |
| 847 | ("glib" ,glib))) ;for Geoclue2 support |
| 848 | (home-page "https://github.com/jonls/redshift") |
| 849 | (synopsis "Adjust the color temperature of your screen") |
| 850 | (description |
| 851 | "Redshift adjusts the color temperature according to the position of the |
| 852 | sun. A different color temperature is set during night and daytime. During |
| 853 | twilight and early morning, the color temperature transitions smoothly from |
| 854 | night to daytime temperature to allow your eyes to slowly adapt. At night the |
| 855 | color temperature should be set to match the lamps in your room.") |
| 856 | (license license:gpl3+))) |
| 857 | |
| 858 | (define-public xscreensaver |
| 859 | (package |
| 860 | (name "xscreensaver") |
| 861 | (version "5.36") |
| 862 | (source |
| 863 | (origin |
| 864 | (method url-fetch) |
| 865 | (uri |
| 866 | (string-append "https://www.jwz.org/xscreensaver/xscreensaver-" |
| 867 | version ".tar.gz")) |
| 868 | (sha256 |
| 869 | (base32 |
| 870 | "0v60mdhvv42jla5hljp77igng11kxpah5fs9j7ci65kz0hw552vb")))) |
| 871 | (build-system gnu-build-system) |
| 872 | (arguments |
| 873 | `(#:tests? #f ; no check target |
| 874 | #:phases |
| 875 | (modify-phases %standard-phases |
| 876 | (add-before 'configure 'adjust-gtk-resource-paths |
| 877 | (lambda _ |
| 878 | (substitute* '("driver/Makefile.in" "po/Makefile.in.in") |
| 879 | (("@GTK_DATADIR@") "@datadir@") |
| 880 | (("@PO_DATADIR@") "@datadir@"))))) |
| 881 | #:configure-flags '("--with-pam" "--with-proc-interrupts" |
| 882 | "--without-readdisplay") |
| 883 | #:make-flags (list (string-append "AD_DIR=" |
| 884 | (assoc-ref %outputs "out") |
| 885 | "/usr/lib/X11/app-defaults")))) |
| 886 | (native-inputs |
| 887 | `(("pkg-config" ,pkg-config) |
| 888 | ("intltool" ,intltool))) |
| 889 | (inputs |
| 890 | `(("libx11" ,libx11) |
| 891 | ("libxext" ,libxext) |
| 892 | ("libxi" ,libxi) |
| 893 | ("libxt" ,libxt) |
| 894 | ("libxft" ,libxft) |
| 895 | ("libxmu" ,libxmu) |
| 896 | ("libxpm" ,libxpm) |
| 897 | ("libglade" ,libglade) |
| 898 | ("libxml2" ,libxml2) |
| 899 | ("libsm" ,libsm) |
| 900 | ("libjpeg" ,libjpeg) |
| 901 | ("linux-pam" ,linux-pam) |
| 902 | ("pango" ,pango) |
| 903 | ("gtk+" ,gtk+) |
| 904 | ("perl" ,perl) |
| 905 | ("cairo" ,cairo) |
| 906 | ("bc" ,bc) |
| 907 | ("libxrandr" ,libxrandr) |
| 908 | ("glu" ,glu) |
| 909 | ("glib" ,glib))) |
| 910 | (home-page "https://www.jwz.org/xscreensaver/") |
| 911 | (synopsis "Classic screen saver suite supporting screen locking") |
| 912 | (description |
| 913 | "xscreensaver is a popular screen saver collection with many entertaining |
| 914 | demos. It also acts as a nice screen locker.") |
| 915 | ;; xscreensaver doesn't have a single copyright file and instead relies on |
| 916 | ;; source comment headers, though most files have the same lax |
| 917 | ;; permissions. To reduce complexity, we're pointing at Debian's |
| 918 | ;; breakdown of the copyright information. |
| 919 | (license (license:non-copyleft |
| 920 | (string-append |
| 921 | "http://metadata.ftp-master.debian.org/changelogs/" |
| 922 | "/main/x/xscreensaver/xscreensaver_5.36-1_copyright"))))) |
| 923 | |
| 924 | (define-public xdpyprobe |
| 925 | (package |
| 926 | (name "xdpyprobe") |
| 927 | (version "0.1") |
| 928 | (source (origin |
| 929 | (method url-fetch) |
| 930 | (uri (string-append "https://github.com/alezost/" name |
| 931 | "/releases/download/v" version |
| 932 | "/" name "-" version ".tar.gz")) |
| 933 | (sha256 |
| 934 | (base32 |
| 935 | "1h09wd2qcg08rj5hcakvdh9q01hkrj8vxly94ax3ch2x06lm0zq8")))) |
| 936 | (build-system gnu-build-system) |
| 937 | (inputs |
| 938 | `(("libx11" ,libx11))) |
| 939 | (home-page "https://github.com/alezost/xdpyprobe") |
| 940 | (synopsis "Probe X server for connectivity") |
| 941 | (description |
| 942 | "Xdpyprobe is a tiny C program whose only purpose is to probe a |
| 943 | connectivity of the X server running on a particular @code{DISPLAY}.") |
| 944 | (license license:gpl3+))) |
| 945 | |
| 946 | (define-public rofi |
| 947 | (package |
| 948 | (name "rofi") |
| 949 | (version "1.3.1") |
| 950 | (source (origin |
| 951 | (method url-fetch) |
| 952 | (uri (string-append "https://github.com/DaveDavenport/rofi/" |
| 953 | "releases/download/" |
| 954 | version "/rofi-" version ".tar.xz")) |
| 955 | (sha256 |
| 956 | (base32 |
| 957 | "1s47biv6d68nblpz6d3aklsar1xxxcilzr4y77v3hz2w1wbz2b5m")))) |
| 958 | (build-system gnu-build-system) |
| 959 | (inputs |
| 960 | `(("pango" ,pango) |
| 961 | ("cairo" ,cairo) |
| 962 | ("glib" ,glib) |
| 963 | ("startup-notification" ,startup-notification) |
| 964 | ("libxkbcommon" ,libxkbcommon) |
| 965 | ("libxcb" ,libxcb) |
| 966 | ("xcb-util" ,xcb-util) |
| 967 | ("xcb-util-xrm" ,xcb-util-xrm) |
| 968 | ("xcb-util-wm" ,xcb-util-wm))) |
| 969 | (native-inputs |
| 970 | `(("pkg-config" ,pkg-config))) |
| 971 | (arguments |
| 972 | `(#:phases |
| 973 | (modify-phases %standard-phases |
| 974 | (add-before 'configure 'adjust-tests |
| 975 | (lambda _ |
| 976 | (substitute* '("test/helper-expand.c") |
| 977 | (("~root") "/root") |
| 978 | (("~") "") |
| 979 | (("g_get_home_dir \\(\\)") "\"/\""))))))) |
| 980 | (home-page "https://davedavenport.github.io/rofi/") |
| 981 | (synopsis "Application Launcher") |
| 982 | (description "Rofi is a minimalist Application Launcher. It memorizes which |
| 983 | applications you regularily use and also allows you to search for an application |
| 984 | by name.") |
| 985 | (license license:expat))) |
| 986 | |
| 987 | (define-public tint2 |
| 988 | (package |
| 989 | (name "tint2") |
| 990 | (version "0.12.11") |
| 991 | (source (origin |
| 992 | (method url-fetch) |
| 993 | (uri (string-append "https://gitlab.com/o9000/" name |
| 994 | "/repository/archive.tar.gz?ref=" version)) |
| 995 | (file-name (string-append name "-" version ".tar.gz")) |
| 996 | (sha256 |
| 997 | (base32 |
| 998 | "0dv7zaj2ahnfclnwnwcz9arrvzxn65yy29z7fqdgifdh3jk1kl2h")))) |
| 999 | (build-system cmake-build-system) |
| 1000 | (arguments |
| 1001 | '(#:tests? #f ;no test target |
| 1002 | #:phases |
| 1003 | (modify-phases %standard-phases |
| 1004 | (add-after 'unpack 'fix-installation-prefix |
| 1005 | (lambda _ |
| 1006 | (substitute* "CMakeLists.txt" |
| 1007 | (("/etc") "${CMAKE_INSTALL_PREFIX}/etc"))))))) |
| 1008 | (inputs |
| 1009 | `(("gtk+" ,gtk+-2) |
| 1010 | ("imlib2" ,imlib2) |
| 1011 | ("librsvg" ,librsvg) |
| 1012 | ("libxcomposite" ,libxcomposite) |
| 1013 | ("libxdamage" ,libxdamage) |
| 1014 | ("libxft" ,libxft) |
| 1015 | ("libxinerama" ,libxinerama) |
| 1016 | ("libxrandr" ,libxrandr) |
| 1017 | ("startup-notification" ,startup-notification))) |
| 1018 | (native-inputs |
| 1019 | `(("gettext" ,gettext-minimal) |
| 1020 | ("pkg-config" ,pkg-config))) |
| 1021 | (home-page "https://gitlab.com/o9000/tint2") |
| 1022 | (synopsis "Lightweight task bar") |
| 1023 | (description |
| 1024 | "Tint2 is a simple task bar made for modern X window managers. It was |
| 1025 | specifically made for Openbox but it should also work with other window |
| 1026 | managers (GNOME, KDE, XFCE etc.). |
| 1027 | |
| 1028 | The taskbar includes transparency and color settings for the font, icons, |
| 1029 | border, and background. It also supports multihead setups, customized mouse |
| 1030 | actions, a built-in clock, a battery monitor and a system tray.") |
| 1031 | (license license:gpl2))) |
| 1032 | |
| 1033 | (define-public xcb-util-xrm |
| 1034 | (package |
| 1035 | (name "xcb-util-xrm") |
| 1036 | (version "1.2") |
| 1037 | (source (origin |
| 1038 | (method url-fetch) |
| 1039 | (uri (string-append |
| 1040 | "https://github.com/Airblader/xcb-util-xrm/releases" |
| 1041 | "/download/v" version "/xcb-util-xrm-" version ".tar.bz2")) |
| 1042 | (sha256 |
| 1043 | (base32 |
| 1044 | "0vbqhag51i0njc8d5fc8c6aa12496cwrc3s6s7sa5kfc17cwhppp")) |
| 1045 | (modules '((guix build utils))) |
| 1046 | (snippet |
| 1047 | ;; Drop bundled m4. |
| 1048 | '(delete-file-recursively "m4")))) |
| 1049 | (build-system gnu-build-system) |
| 1050 | (native-inputs |
| 1051 | `(("pkg-config" ,pkg-config) |
| 1052 | ("m4" ,m4) |
| 1053 | ("libx11" ,libx11))) ; for tests |
| 1054 | (inputs |
| 1055 | `(("libxcb" ,libxcb) |
| 1056 | ("xcb-util" ,xcb-util))) |
| 1057 | (home-page "https://github.com/Airblader/xcb-util-xrm") |
| 1058 | (synopsis "XCB utility functions for the X resource manager") |
| 1059 | (description |
| 1060 | "The XCB util module provides a number of libraries which sit on |
| 1061 | top of libxcb, the core X protocol library, and some of the extension |
| 1062 | libraries. These experimental libraries provide convenience functions |
| 1063 | and interfaces which make the raw X protocol more usable. Some of the |
| 1064 | libraries also provide client-side code which is not strictly part of |
| 1065 | the X protocol but which has traditionally been provided by Xlib. |
| 1066 | |
| 1067 | XCB util-xrm module provides the following libraries: |
| 1068 | |
| 1069 | - xrm: utility functions for the X resource manager.") |
| 1070 | (license license:x11))) |
| 1071 | |
| 1072 | (define-public xcalib |
| 1073 | (package |
| 1074 | (name "xcalib") |
| 1075 | (version "0.8") |
| 1076 | (source (origin |
| 1077 | (method url-fetch) |
| 1078 | (uri (string-append "mirror://sourceforge/xcalib/xcalib/" version |
| 1079 | "/xcalib-source-" version ".tar.gz")) |
| 1080 | (sha256 |
| 1081 | (base32 |
| 1082 | "1rh6xb51c5xz926dnn82a2fn643g0sr4a8z66rn6yi7523kjw4ca")))) |
| 1083 | (build-system gnu-build-system) |
| 1084 | (arguments |
| 1085 | '(#:make-flags '("CC=gcc") |
| 1086 | #:tests? #f ; No test suite |
| 1087 | #:phases (modify-phases %standard-phases |
| 1088 | (delete 'configure) |
| 1089 | (replace 'install |
| 1090 | (lambda* (#:key outputs #:allow-other-keys) |
| 1091 | (let* ((out (assoc-ref outputs "out")) |
| 1092 | (bin (string-append out "/bin"))) |
| 1093 | (install-file "xcalib" bin)))) |
| 1094 | (add-after 'install 'install-doc |
| 1095 | (lambda* (#:key outputs #:allow-other-keys) |
| 1096 | (let ((doc (string-append(assoc-ref outputs "out") |
| 1097 | "/share/doc/xcalib"))) |
| 1098 | (install-file "README" doc) |
| 1099 | ;; Avoid unspecified return value. |
| 1100 | #t)))))) |
| 1101 | (inputs `(("libx11", libx11) |
| 1102 | ("libxext", libxext) |
| 1103 | ("libxxf86vm", libxxf86vm))) |
| 1104 | (synopsis "Tiny monitor calibration loader for XFree86 (or X.org)") |
| 1105 | (description "xcalib is a tiny tool to load the content of vcgt-Tags in ICC |
| 1106 | profiles to the video card's gamma ramp. It does work with most video card |
| 1107 | drivers except the generic VESA driver. Alter brightness, contrast, RGB, and |
| 1108 | invert colors on a specific display/screen.") |
| 1109 | (home-page "http://xcalib.sourceforge.net/") |
| 1110 | (license license:gpl2))) |