feat(display): add secondary-dual mode
This commit is contained in:
parent
8382dea4c5
commit
000e8cecb0
1 changed files with 8 additions and 1 deletions
|
|
@ -33,10 +33,17 @@ function main() {
|
|||
echo "Listing all monitors"
|
||||
xrandr --listmonitors
|
||||
;;
|
||||
"secondary-dual")
|
||||
echo "Setting dual display right"
|
||||
xrandr \
|
||||
--output "$main" --off \
|
||||
--output "$secondary" --primary --auto --right-of "$internal" \
|
||||
--output "$internal" --auto
|
||||
;;
|
||||
"dual"|"right")
|
||||
echo "Setting dual display right"
|
||||
xrandr \
|
||||
--output "$main" --primary --auto --left-of "$secondary" \
|
||||
--output "$main" --primary --auto --right-of "$secondary" \
|
||||
--output "$secondary" --auto \
|
||||
--output "$internal" --off
|
||||
;;
|
||||
|
|
|
|||
Loading…
Reference in a new issue