2024-02-06 20:08:18 +00:00
|
|
|
#!/bin/zsh
|
|
|
|
source ${0:a:h}/xorg.zsh
|
|
|
|
|
2024-06-27 00:42:33 +00:00
|
|
|
case $MONITOR_CONFIGURATION in
|
|
|
|
home )
|
2024-07-31 03:07:43 +00:00
|
|
|
XRANDR_SET \
|
|
|
|
--screen-blank disable \
|
2024-08-01 05:17:45 +00:00
|
|
|
${XRANDR_ARGS__smol__1440p[@]} --pos 0x0 --primary --rate 120.00 \
|
|
|
|
${XRANDR_ARGS__livingroom__1440p[@]} --pos 0x0 \
|
2024-07-31 03:07:43 +00:00
|
|
|
;
|
|
|
|
|
2024-06-27 00:42:33 +00:00
|
|
|
;;
|
|
|
|
unknown )
|
|
|
|
echo 'unknown state; using default configuration to prevent monitor issues'
|
|
|
|
xrandr --output $(xrandr | grep ' connected' | awk '{print $1;}') --primary
|
|
|
|
scwrypts desktop i3 set background -- $(scwrypts -n get theme).jpg
|
|
|
|
$DOTWRYN/bin/polybar
|
|
|
|
scwrypts desktop play sound -- login
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
esac
|