Files
dotwryn/config/local/altaria/bin/default

25 lines
747 B
Plaintext
Raw Normal View History

#!/bin/zsh
2025-06-04 11:44:55 -06:00
[ $1 ] && RESOLUTION=$1 || RESOLUTION=2k
source ${0:a:h}/xorg.zsh ${RESOLUTION} ${@:2}
case $MONITOR_CONFIGURATION in
2025-06-04 11:44:55 -06:00
( home )
2025-08-09 09:26:07 -06:00
xrandr --output DP-4 --off # I'm trying out using just HDMI for a bit
2024-07-30 21:07:43 -06:00
XRANDR_SET \
2025-06-04 11:44:55 -06:00
--compositing enable \
2024-07-30 21:07:43 -06:00
--screen-blank disable \
2025-06-04 11:44:55 -06:00
--sound-effect login \
--background ${I3_DEFAULT_THEME_BACKGROUND} \
2025-08-09 09:26:07 -06:00
${XRANDR_ARGS__splitter[@]} --pos 0x0 --primary \
2025-06-04 11:44:55 -06: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
2025-06-04 11:44:55 -06:00
"$DOTWRYN/bin/polybar"
scwrypts desktop play sound -- login
return 0
;;
esac