2022-04-27 10:16:39 +02:00
|
|
|
(define-module (oni packages hlwm-switch-to-window)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix git-download)
|
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (gnu packages wm))
|
|
|
|
|
|
|
|
(define-public hlwm-switch-to-window
|
|
|
|
(let ((commit "9001a3391f17aa71cc299be8bc8ffadbb9b9ac12")
|
|
|
|
(revision "0"))
|
|
|
|
(package
|
2022-11-18 05:57:06 +01:00
|
|
|
(name "hlwm-switch-to-window")
|
|
|
|
(version (git-version "0.0.0" revision commit))
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(uri (git-reference
|
|
|
|
(url "git://ryuslash.org/util/tom/hlwm-switch-to-window.git")
|
|
|
|
(commit commit)))
|
|
|
|
(method git-fetch)
|
|
|
|
(sha256
|
|
|
|
(base32 "153rw46012pvbq624hwmfdfv36wl12g7m87vdf1nv4kp91am1nkm"))
|
|
|
|
(file-name (git-file-name name version))))
|
|
|
|
(propagated-inputs
|
|
|
|
(list herbstluftwm))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(delete 'configure)
|
|
|
|
(delete 'build)
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((bin (string-append (assoc-ref outputs "out") "/bin")))
|
|
|
|
(install-file "hlwm-switch-to-window" bin)))))))
|
|
|
|
(home-page "https://ryuslash.org/")
|
|
|
|
(synopsis "A simple script that checks which monitor to use to switch to a window before switching.")
|
|
|
|
(description "Can be bound to a key to make sure that when you switch to a window a specific monitor is always used.")
|
|
|
|
(license license:gpl3+))))
|