From 97e54e74c57b81bb82cef039a40976e5adeba969 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sun, 19 May 2024 06:53:21 +0200 Subject: [PATCH] sxhkd: bugfixed monitor script --- .local/bin/etc/sxhkd/monitor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/etc/sxhkd/monitor b/.local/bin/etc/sxhkd/monitor index d1c8dc7..5d036fe 100755 --- a/.local/bin/etc/sxhkd/monitor +++ b/.local/bin/etc/sxhkd/monitor @@ -3,8 +3,8 @@ # toggle external monitor # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice -[ -z "$INTERNAL_MONITOR" ] && intern="LVDS1" || intern="$EXTERNAL_MONITOR" -[ -z "$EXTERNAL_MONITOR" ] && extern="HDMI2" || extern="$INTERNAL_MONITOR" +[ -z "$INTERNAL_MONITOR" ] && intern="LVDS1" || intern="$INTERNAL_MONITOR" +[ -z "$EXTERNAL_MONITOR" ] && extern="HDMI2" || extern="$EXTERNAL_MONITOR" case "$1" in toggle) (xrandr | grep "$extern disconnected")