dmenu_laptop_screens
This commit is contained in:
parent
c5db86536a
commit
08946d0527
1 changed files with 12 additions and 0 deletions
12
dmenu_laptop_screens
Executable file
12
dmenu_laptop_screens
Executable 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
|
Loading…
Reference in a new issue