reflect new home monitor setup

This commit is contained in:
2024-07-30 21:07:43 -06:00
parent 926e373942
commit 3865dec90e
8 changed files with 21 additions and 57 deletions

View File

@ -3,6 +3,12 @@ source ${0:a:h}/xorg.zsh
case $MONITOR_CONFIGURATION in
home )
XRANDR_SET \
--screen-blank disable \
${XRANDR_ARGS__smol__1080p[@]} --pos 0x0 --rate 120.00 --primary \
${XRANDR_ARGS__livingroom__4k[@]} --pos 0x0 --rate 120.00 \
;
;;
unknown )
echo 'unknown state; using default configuration to prevent monitor issues'
@ -13,30 +19,3 @@ case $MONITOR_CONFIGURATION in
return 0
;;
esac
USE_SMOL=false
xrandr -q | grep $XRANDR_OUTPUT__smol | grep -v 'disconnected' && {
xrandr -q | grep $XRANDR_OUTPUT__smol | grep -qv primary && {
USE_SMOL=true
}
}
XRANDR_ARGS=()
case $USE_SMOL in
true )
XRANDR_ARGS+=(
${XRANDR_ARGS__smol__1080p[@]} --pos 0x0 --primary
)
;;
false )
XRANDR_ARGS+=(
${XRANDR_ARGS__office__4k[@]} --pos 0x0 --primary
${XRANDR_ARGS__livingroom__4k[@]} --pos 0x0
)
;;
esac
XRANDR_SET \
--screen-blank disable \
${XRANDR_ARGS[@]} \
;