1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 09:31:01 +00:00
nixpkgs/pkgs/tools/misc/mons/xrandr.patch
Thiago Kenji Okada d79c466e99 mons: declare xrandr explicitly instead of using it from PATH
mons tries to detect if xrandr is installed in the PATH, failing
otherwise. However, this is not the way that packages are generally
packaged in nixpkgs.

This commit changes it to hardcode the path of xrandr explicitly instead
of depending of xrandr being declared in PATH.
2021-02-28 20:57:52 -03:00

15 lines
449 B
Diff

diff --git a/mons.sh b/mons.sh
index b86ce5c..feb0f33 100755
--- a/mons.sh
+++ b/mons.sh
@@ -151,8 +151,7 @@ main() {
# =============================
[ -z "$DISPLAY" ] && { echo 'DISPLAY: no variable set.'; exit 1; }
- command -vp xrandr >/dev/null 2>&1 || { echo 'xrandr: command not found.'; exit 1; }
- XRANDR="$(command -pv xrandr)"
+ XRANDR="@xrandr@"
# =============================
# Argument Checking