2017-06-13 17:52:17 +03:00
|
|
|
#!/usr/bin/env zsh
|
2017-06-13 18:03:08 +03:00
|
|
|
if [[ -r $HOME/.displayrc ]]; then
|
|
|
|
. $HOME/.displayrc
|
|
|
|
else
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2017-06-28 20:00:07 +03:00
|
|
|
selection=$(printf "%s\n" $VARIANTS|/usr/bin/dmenu -p display "$@")
|
2017-06-13 17:52:17 +03:00
|
|
|
case $selection in
|
2019-02-14 13:05:39 +02:00
|
|
|
($VARIANTS[1]) /usr/bin/xrandr --output $EXT --off --output $BUILTIN $BUILTIN_MODE[@];;
|
|
|
|
($VARIANTS[2]) /usr/bin/xrandr --output $BUILTIN --off --output $EXT $EXT_MODE[@];;
|
|
|
|
($VARIANTS[3]) /usr/bin/xrandr --output $BUILTIN $BUILTIN_MODE[@] --auto --output $EXT $EXT_MODE[@] --right-of $BUILTIN;;
|
2017-06-14 19:12:54 +03:00
|
|
|
(*) exit 1 ;;
|
2017-06-13 17:52:17 +03:00
|
|
|
esac
|
2019-01-26 03:19:50 +02:00
|
|
|
/usr/bin/feh --bg-${WP_MODE-scale} $WALLPAPER
|
2017-06-14 19:12:54 +03:00
|
|
|
/usr/bin/sleep 1
|
2017-06-13 17:52:17 +03:00
|
|
|
exit 0
|