dotwryn/bin/umbreon/homedock

24 lines
525 B
Bash
Executable File

#!/bin/zsh
source ${0:a:h}/xorg.zsh
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[@]}
xset dpms 0 0 0 && xset s noblank && xset s off \
&& notify-send 'DPMS' 'disabled screen blank'
(pkill compton; sleep 0.5; compton;) &
$DOTWRYN/bin/set-background random
$DOTWRYN/bin/play-sound gamedock