feat(display): add positioning to center with "middle" subcommand

This commit is contained in:
Ayo Ayco 2025-09-17 10:58:29 +02:00
parent b2ee639479
commit 72ab769aa6

View file

@ -33,11 +33,11 @@ function main() {
echo "Setting dual display left" echo "Setting dual display left"
xrandr --output "$extern" --primary --auto --right-of "$intern" --output "$intern" --mode 1680x1050 xrandr --output "$extern" --primary --auto --right-of "$intern" --output "$intern" --mode 1680x1050
;; ;;
"center") "center"|"middle")
echo "Setting dual display center" echo "Setting dual display center"
xrandr \ xrandr \
--output "$extern" --auto --above "$intern" \ --output "$extern" --auto --above "$intern" \
--output "$intern" --primary --auto --output "$intern" --primary --mode 1680x1050
;; ;;
"ultra") "ultra")
echo "Setting single display mode (ultrawide)" echo "Setting single display mode (ultrawide)"