1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

scripts: updated to cleaner logic for global variables

This commit is contained in:
2025-02-17 04:19:49 +01:00
parent 7322a068c2
commit c7e33b6162
7 changed files with 17 additions and 20 deletions

View File

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