Added menu to switch display
This commit is contained in:
parent
cbd6b38517
commit
474a633309
3 changed files with 41 additions and 3 deletions
|
@ -10,9 +10,9 @@ nextconfig='laptop'
|
|||
|
||||
case $activeconfig in
|
||||
home)
|
||||
nextconfig='home-office'
|
||||
nextconfig='homeoffice'
|
||||
;;
|
||||
home-office)
|
||||
homeoffice)
|
||||
nextconfig='laptop'
|
||||
;;
|
||||
laptop)
|
||||
|
@ -20,6 +20,15 @@ case $activeconfig in
|
|||
;;
|
||||
esac
|
||||
|
||||
if [ $1 ]; then
|
||||
if [ "$1" = "menu" ]; then
|
||||
chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 1)"
|
||||
exit 0
|
||||
else
|
||||
nextconfig=$1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo ${nextconfig} > ~/.screenlayout.info
|
||||
|
||||
case $nextconfig in
|
||||
|
@ -34,7 +43,7 @@ case $nextconfig in
|
|||
--output DP-2 --off \
|
||||
--output DP-1 --off
|
||||
;;
|
||||
home-office)
|
||||
homeoffice)
|
||||
# Home Office
|
||||
xrandr --output DP-2-1 --primary --mode 2560x1080 --pos 0x520 --rotate normal \
|
||||
--output DP-2-2 --mode 1920x1080 --pos 2560x0 --rotate left \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue