+ monitor_rr.sh
This commit is contained in:
parent
a8c6a4ef49
commit
d9236e3c30
14
monitor_rr.sh
Executable file
14
monitor_rr.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [[ $# -ne 2 ]]; then
|
||||||
|
echo "Usage: $0 <monitor> <refresh_rate>" >&2
|
||||||
|
echo "monitor: must be a display name"
|
||||||
|
echo "refresh_rate: must be a number"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
eDP-1) hyprctl keyword monitor eDP-1,1920x1080@$2,1920x0,1 ;;
|
||||||
|
HDMI-A-1) hyprctl keyword monitor HDMI-A-1,1920x1080@$2,0x0,1 ;;
|
||||||
|
*) echo "Unrecognized monitor '$1'"
|
||||||
|
esac
|
Loading…
x
Reference in New Issue
Block a user