feat(display): dual monitor modes (right, left, center)
This commit is contained in:
parent
d46ca4e9ec
commit
ba2a0da0af
1 changed files with 19 additions and 3 deletions
22
display.sh
22
display.sh
|
@ -25,13 +25,29 @@ function main() {
|
||||||
echo "Listing all monitors"
|
echo "Listing all monitors"
|
||||||
xrandr --listmonitors
|
xrandr --listmonitors
|
||||||
;;
|
;;
|
||||||
"dual")
|
"dual"|"right")
|
||||||
echo "Setting dual display mode"
|
echo "Setting dual display right"
|
||||||
xrandr --output "$extern" --primary --auto --left-of "$intern" --output "$intern" --mode 1680x1050
|
xrandr --output "$extern" --primary --auto --left-of "$intern" --output "$intern" --mode 1680x1050
|
||||||
;;
|
;;
|
||||||
|
"left")
|
||||||
|
echo "Setting dual display left"
|
||||||
|
xrandr --output "$extern" --primary --auto --right-of "$intern" --output "$intern" --mode 1680x1050
|
||||||
|
;;
|
||||||
|
"center")
|
||||||
|
echo "Setting dual display center"
|
||||||
|
xrandr \
|
||||||
|
--output "$extern" --auto --above "$intern" \
|
||||||
|
--output "$intern" --primary --auto
|
||||||
|
;;
|
||||||
|
"ultra")
|
||||||
|
echo "Setting single display mode (ultrawide)"
|
||||||
|
xrandr --output "$intern" --off \
|
||||||
|
--output "$extern" --auto
|
||||||
|
;;
|
||||||
"solo")
|
"solo")
|
||||||
echo "Setting single display mode (internal only)"
|
echo "Setting single display mode (internal only)"
|
||||||
xrandr --output "$extern" --off --output "$intern" --auto
|
xrandr --output "$extern" --off \
|
||||||
|
--output "$intern" --auto
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Setting display to preferred size (1680x1050)"
|
echo "Setting display to preferred size (1680x1050)"
|
||||||
|
|
Loading…
Reference in a new issue