feat(display): set solo or dual monitor mode
This commit is contained in:
parent
e082f75ea8
commit
98f3ac8fe9
1 changed files with 13 additions and 6 deletions
19
display.sh
19
display.sh
|
@ -6,12 +6,19 @@
|
||||||
#. ${HOME}/ayo.conf
|
#. ${HOME}/ayo.conf
|
||||||
#. ${scripts_dir}/functions.sh
|
#. ${scripts_dir}/functions.sh
|
||||||
|
|
||||||
#command=$1
|
intern=eDP-1
|
||||||
|
extern=DP-1
|
||||||
|
|
||||||
if [ $1 = "big" ] || [ "$1" = "1920" ] || [ "$1" = "1200" ]; then
|
command=$2
|
||||||
xrandr --output eDP-1 --mode 1920x1200
|
|
||||||
elif [ $1 = "small" ] || [ "$1" = "1280" ] || [ "$1" = "800" ]; then
|
if [ $command = "big" ] || [ "$command" = "1920" ] || [ "$command" = "1200" ]; then
|
||||||
xrandr --output eDP-1 --mode 1280x800
|
xrandr --output "$intern" --mode 1920x1200
|
||||||
|
elif [ $command = "small" ] || [ "$command" = "1280" ] || [ "$command" = "800" ]; then
|
||||||
|
xrandr --output "$intern" --mode 1280x800
|
||||||
|
elif [ $command = "solo" ]; then
|
||||||
|
xrandr --output "$extern" --off --output "$intern" --auto
|
||||||
|
elif [ $command = "dual" ]; then
|
||||||
|
xrandr --output "$extern" --mode 1680x1050 --right-of "$intern"
|
||||||
else
|
else
|
||||||
xrandr --output eDP-1 --mode 1680x1050
|
xrandr --output "$intern" --mode 1680x1050
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue