gnu: autorandr: Update to 1.9.
* gnu/packages/xdisorg.scm (autorandr): Update to 1.9. [native-inputs]: Remove man-db. [arguments]: Install XDG autostart config.
This commit is contained in:
parent
e2684594f6
commit
cde4cb4dd2
1 changed files with 43 additions and 47 deletions
|
@ -32,6 +32,7 @@
|
||||||
;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
|
;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
|
||||||
;;; Copyright © 2020 David Wilson <david@daviwil.com>
|
;;; Copyright © 2020 David Wilson <david@daviwil.com>
|
||||||
;;; Copyright © 2020 Ivan Vilata i Balaguer <ivan@selidor.net>
|
;;; Copyright © 2020 Ivan Vilata i Balaguer <ivan@selidor.net>
|
||||||
|
;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -153,26 +154,20 @@ (define-public arandr
|
||||||
(license license:gpl3+)))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
(define-public autorandr
|
(define-public autorandr
|
||||||
;; Use latest commit since 1.7 lacks many new features such as the
|
|
||||||
;; autorandr_launcher.
|
|
||||||
(let ((commit "b484c0ea9c9a4838278bbd661a7cc384333c1df8"))
|
|
||||||
(package
|
(package
|
||||||
(name "autorandr")
|
(name "autorandr")
|
||||||
(version (git-version "1.7" "1" commit))
|
(version "1.9")
|
||||||
(home-page "https://github.com/phillipberndt/autorandr")
|
(home-page "https://github.com/phillipberndt/autorandr")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url home-page)
|
(url home-page)
|
||||||
(commit commit)))
|
(commit version)))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "1bb0l7fcm5lcx9y02zdxv7pfdqf4v4gsc5br3v1x9gzjvqj64l7n"))))
|
||||||
"0da17kzsisjv3s993j5idkk1n2d2cvjdn7pngs2b0ic1r2h5z02h"))))
|
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(native-inputs
|
|
||||||
`(("man-db" ,man-db)))
|
|
||||||
(inputs
|
(inputs
|
||||||
`(("xrandr" ,xrandr)
|
`(("xrandr" ,xrandr)
|
||||||
("libxcb" ,libxcb)))
|
("libxcb" ,libxcb)))
|
||||||
|
@ -180,14 +175,14 @@ (define-public autorandr
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before 'build 'configure
|
(add-before 'build 'configure
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(substitute* "autorandr.py"
|
(let ((xrandr (string-append (assoc-ref inputs "xrandr")
|
||||||
(("popen\\(\"xrandr") (string-append "popen(\""
|
|
||||||
(assoc-ref inputs "xrandr")
|
|
||||||
"/bin/xrandr"))
|
|
||||||
(("\\[\"xrandr") (string-append "[\""
|
|
||||||
(assoc-ref inputs "xrandr")
|
|
||||||
"/bin/xrandr")))
|
"/bin/xrandr")))
|
||||||
|
(substitute* "contrib/etc/xdg/autostart/autorandr.desktop"
|
||||||
|
(("/usr") (assoc-ref outputs "out")))
|
||||||
|
(substitute* "autorandr.py"
|
||||||
|
(("popen\\(\"xrandr") (string-append "popen(\"" xrandr))
|
||||||
|
(("\\[\"xrandr") (string-append "[\"" xrandr))))
|
||||||
#t))
|
#t))
|
||||||
(add-after 'install 'install-contrib
|
(add-after 'install 'install-contrib
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
@ -197,14 +192,15 @@ (define-public autorandr
|
||||||
"BASH_COMPLETIONS_DIR=etc/bash_completiond.d"
|
"BASH_COMPLETIONS_DIR=etc/bash_completiond.d"
|
||||||
"install_manpage"
|
"install_manpage"
|
||||||
"install_bash_completion"
|
"install_bash_completion"
|
||||||
"install_launcher"))))))
|
"install_launcher"
|
||||||
|
"install_autostart_config"))))))
|
||||||
(synopsis "Auto-detect connected displays and load appropriate setup")
|
(synopsis "Auto-detect connected displays and load appropriate setup")
|
||||||
(description "Autorandr wraps around xrandr to help with X11
|
(description "Autorandr wraps around xrandr to help with X11
|
||||||
multi-screen configuration management. It allows the user to create profiles
|
multi-screen configuration management. It allows the user to create profiles
|
||||||
for various multi-screen setups. Autorandr automatically detects the profiles
|
for various multi-screen setups. Autorandr automatically detects the profiles
|
||||||
that can be activated based on the connected hardware. Hook scripts can be
|
that can be activated based on the connected hardware. Hook scripts can be
|
||||||
used to further tweak the behaviour of the different profiles.")
|
used to further tweak the behaviour of the different profiles.")
|
||||||
(license license:gpl3+))))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
(define-public bemenu
|
(define-public bemenu
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in a new issue