2022-04-20 12:59:45 -06:00
|
|
|
#!/bin/zsh
|
2022-08-22 16:40:57 -06:00
|
|
|
source ${0:a:h}/xorg.zsh
|
2022-04-20 12:59:45 -06:00
|
|
|
|
2023-01-17 12:18:58 -07:00
|
|
|
MOBILE=1
|
|
|
|
|
|
|
|
ARGS=()
|
|
|
|
[[ $MOBILE -eq 1 ]] && {
|
|
|
|
ARGS+=(--output DP-3 --mode 1920x1080 --pos 0x0 --primary)
|
|
|
|
ARGS+=(--output eDP-1 --mode 1920x1200 --right-of DP-3)
|
|
|
|
} || {
|
|
|
|
ARGS+=(--output DP-3-1 --mode 1920x1080 --pos 0x0 --primary)
|
|
|
|
ARGS+=(--output eDP-1 --off)
|
|
|
|
}
|
|
|
|
|
|
|
|
xrandr ${ARGS[@]}
|
2022-04-20 12:59:45 -06:00
|
|
|
|
2022-05-24 09:33:55 -06:00
|
|
|
xset dpms 0 0 0 && xset s noblank && xset s off \
|
|
|
|
&& notify-send 'DPMS' 'disabled screen blank'
|
|
|
|
|
2022-08-09 13:27:44 -06:00
|
|
|
(pkill compton; sleep 0.5; compton;) &
|
|
|
|
|
2022-04-20 12:59:45 -06:00
|
|
|
$DOTWRYN/bin/set-background random
|
2022-08-22 16:40:57 -06:00
|
|
|
$DOTWRYN/bin/play-sound gamedock
|