| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 |
|
| 22 | (define-module (gnu packages ratpoison)
|
| 23 | #:use-module (guix download)
|
| 24 | #:use-module (guix gexp)
|
| 25 | #:use-module (guix packages)
|
| 26 | #:use-module (guix build-system gnu)
|
| 27 | #:use-module ((guix licenses) #:select (gpl2+))
|
| 28 | #:use-module (gnu packages)
|
| 29 | #:use-module (gnu packages xorg)
|
| 30 | #:use-module (gnu packages perl)
|
| 31 | #:use-module (gnu packages readline)
|
| 32 | #:use-module (gnu packages pkg-config)
|
| 33 | #:use-module (gnu packages fontutils))
|
| 34 |
|
| 35 | (define-public ratpoison
|
| 36 | (package
|
| 37 | (name "ratpoison")
|
| 38 | (version "1.4.9")
|
| 39 | (source
|
| 40 | (origin (method url-fetch)
|
| 41 | (uri (string-append "mirror://savannah/ratpoison/ratpoison-"
|
| 42 | version ".tar.xz"))
|
| 43 | (sha256
|
| 44 | (base32
|
| 45 | "1wfir1gvh5h7izgvx2kd1pr2k7wlncd33zq7qi9s9k2y0aza93yr"))
|
| 46 | (patches (search-patches "ratpoison-shell.patch"))))
|
| 47 | (build-system gnu-build-system)
|
| 48 | (arguments
|
| 49 | (list
|
| 50 | #:modules `((ice-9 format)
|
| 51 | ,@%default-gnu-modules)
|
| 52 | |
| 53 | |
| 54 | |
| 55 | #:configure-flags
|
| 56 | #~(list (string-append "--with-xterm="
|
| 57 | (search-input-file %build-inputs "bin/xterm")))
|
| 58 | #:phases
|
| 59 | #~(modify-phases %standard-phases
|
| 60 | (add-after 'install 'install-xsession
|
| 61 | (lambda _
|
| 62 | |
| 63 | (let ((xsessions (string-append #$output "/share/xsessions")))
|
| 64 | (mkdir-p xsessions)
|
| 65 | (call-with-output-file (string-append xsessions
|
| 66 | "/ratpoison.desktop")
|
| 67 | (lambda (port)
|
| 68 | (format port
|
| 69 | "[Desktop Entry]~@
|
| 70 | Name=ratpoison~@
|
| 71 | Comment=Tiling window manager: say goodbye to the rodent!~@
|
| 72 | Exec=~a/bin/ratpoison~@
|
| 73 | TryExec=~@*~a/bin/ratpoison~@
|
| 74 | Type=Application~%"
|
| 75 | #$output)))))))))
|
| 76 | (inputs
|
| 77 | (list fontconfig
|
| 78 | freetype
|
| 79 | libxft
|
| 80 | libxi
|
| 81 | libxrandr
|
| 82 | libxpm
|
| 83 | libxt
|
| 84 | libxtst
|
| 85 | libx11
|
| 86 | readline
|
| 87 | xorgproto
|
| 88 | xterm))
|
| 89 | (native-inputs
|
| 90 | (list perl
|
| 91 | pkg-config))
|
| 92 | (home-page "https://www.nongnu.org/ratpoison/")
|
| 93 | (synopsis "Simple mouse-free tiling window manager")
|
| 94 | (description
|
| 95 | "Ratpoison is a simple window manager with no fat library
|
| 96 | dependencies, no fancy graphics, no window decorations, and no
|
| 97 | rodent dependence. It is largely modelled after GNU Screen which
|
| 98 | has done wonders in the virtual terminal market.
|
| 99 |
|
| 100 | The screen can be split into non-overlapping frames. All windows
|
| 101 | are kept maximized inside their frames to take full advantage of
|
| 102 | your precious screen real estate.
|
| 103 |
|
| 104 | All interaction with the window manager is done through keystrokes.
|
| 105 | Ratpoison has a prefix map to minimize the key clobbering that
|
| 106 | cripples Emacs and other quality pieces of software.")
|
| 107 | (license gpl2+)))
|