dmenu_laptop_screens

This commit is contained in:
Von Random 2017-06-13 17:52:17 +03:00
parent c5db86536a
commit 08946d0527

12
dmenu_laptop_screens Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env zsh
variants=(int ext both)
selection=$(printf "%s\n" $variants|dmenu -p display "$@")
case $selection in
('int') xrandr --output HDMI1 --off --output eDP1 --auto ;;
('ext') xrandr --output eDP1 --off --output HDMI1 --auto ;;
('both') xrandr --output eDP1 --auto --output HDMI1 --auto --right-of eDP1 ;;
(*) exit 0 ;;
esac
feh --bg-scale ${HOME}/.wallpaper.png
sleep 1
exit 0