2022-04-20 18:59:45 +00:00
|
|
|
#!/bin/zsh
|
2022-08-22 22:40:57 +00:00
|
|
|
source ${0:a:h}/xorg.zsh
|
2022-04-20 18:59:45 +00:00
|
|
|
|
2023-01-17 19:18:58 +00: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 18:59:45 +00:00
|
|
|
|
2022-05-24 15:33:55 +00:00
|
|
|
xset dpms 0 0 0 && xset s noblank && xset s off \
|
|
|
|
&& notify-send 'DPMS' 'disabled screen blank'
|
|
|
|
|
2022-08-09 19:27:44 +00:00
|
|
|
(pkill compton; sleep 0.5; compton;) &
|
|
|
|
|
2022-04-20 18:59:45 +00:00
|
|
|
$DOTWRYN/bin/set-background random
|
2022-08-22 22:40:57 +00:00
|
|
|
$DOTWRYN/bin/play-sound gamedock
|