some fixes for dmenu_displays
This commit is contained in:
parent
0ab5a9e76e
commit
c77623fdcd
1 changed files with 8 additions and 8 deletions
|
@ -5,14 +5,14 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
variants=(int ext both)
|
variants=('int' 'ext' 'both')
|
||||||
selection=$(printf "%s\n" $variants|dmenu -p display "$@")
|
selection=$(printf "%s\n" $variants|/usr/bin/dmenu -p display "$@")
|
||||||
case $selection in
|
case $selection in
|
||||||
($variants[1]) xrandr --output $DISPLAY2 --off --output $DISPLAY1 --auto ;;
|
($variants[1]) /usr/bin/xrandr --output $DISPLAY2 --off --output $DISPLAY1 --auto ;;
|
||||||
($variants[2]) xrandr --output $DISPLAY1 --off --output $DISPLAY2 --auto ;;
|
($variants[2]) /usr/bin/xrandr --output $DISPLAY1 --off --output $DISPLAY2 --auto ;;
|
||||||
($variants[3]) xrandr --output $DISPLAY1 --auto --output $DISPLAY2 --auto --right-of eDP1 ;;
|
($variants[3]) /usr/bin/xrandr --output $DISPLAY1 --auto --output $DISPLAY2 --auto --right-of $DISPLAY1 ;;
|
||||||
(*) exit 0 ;;
|
(*) exit 1 ;;
|
||||||
esac
|
esac
|
||||||
feh --bg-scale $HOME/.wallpaper.png
|
/usr/bin/feh --bg-scale $HOME/.wallpaper.png
|
||||||
sleep 1
|
/usr/bin/sleep 1
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue