sxhkd: bugfixed monitor script

master
TiynGER 7 months ago
parent c6b9ffcc69
commit 97e54e74c5

@ -3,8 +3,8 @@
# toggle external monitor # toggle external monitor
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
[ -z "$INTERNAL_MONITOR" ] && intern="LVDS1" || intern="$EXTERNAL_MONITOR" [ -z "$INTERNAL_MONITOR" ] && intern="LVDS1" || intern="$INTERNAL_MONITOR"
[ -z "$EXTERNAL_MONITOR" ] && extern="HDMI2" || extern="$INTERNAL_MONITOR" [ -z "$EXTERNAL_MONITOR" ] && extern="HDMI2" || extern="$EXTERNAL_MONITOR"
case "$1" in case "$1" in
toggle) (xrandr | grep "$extern disconnected") toggle) (xrandr | grep "$extern disconnected")

Loading…
Cancel
Save