proper name for dmenu_displays
This commit is contained in:
parent
8ac263a880
commit
0ab5a9e76e
1 changed files with 0 additions and 0 deletions
18
dmenu_displays
Executable file
18
dmenu_displays
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env zsh
|
||||
if [[ -r $HOME/.displayrc ]]; then
|
||||
. $HOME/.displayrc
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
variants=(int ext both)
|
||||
selection=$(printf "%s\n" $variants|dmenu -p display "$@")
|
||||
case $selection in
|
||||
($variants[1]) xrandr --output $DISPLAY2 --off --output $DISPLAY1 --auto ;;
|
||||
($variants[2]) xrandr --output $DISPLAY1 --off --output $DISPLAY2 --auto ;;
|
||||
($variants[3]) xrandr --output $DISPLAY1 --auto --output $DISPLAY2 --auto --right-of eDP1 ;;
|
||||
(*) exit 0 ;;
|
||||
esac
|
||||
feh --bg-scale $HOME/.wallpaper.png
|
||||
sleep 1
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue