This commit is contained in:
h
2026-06-23 14:45:30 -04:00
parent 0f64debfdd
commit 4ab847b117
5 changed files with 86 additions and 9 deletions
+4
View File
@@ -8,6 +8,10 @@ elif [[ "$1" == "mirror-dp" ]]; then
xrandr --output eDP-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --mode 1920x1080 --output DP-2 --off --output DP-3 --off --output HDMI-1 --off --same-as eDP-1
elif [[ "$1" == "mirror-all" ]]; then
xrandr --output eDP-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --mode 1920x1080 --output DP-2 --off --output DP-3 --off --output HDMI-1 --mode 1920x1080 --same-as eDP-1
elif [[ "$1" == "hdmi" ]]; then
xrandr --output eDP-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --off --output DP-2 --off --output DP-3 --off --output HDMI-1 --mode "$2" --pos 1920x0 --rotate normal
elif [[ "$1" == "dp" ]]; then
xrandr --output eDP-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --mode "$2" --pos 1920x0 --rotate normal --output DP-2 --off --output DP-3 --off --output HDMI-1 --off
else
xrandr --output eDP-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --off --output DP-2 --off --output DP-3 --off --output HDMI-1 --mode "$1" --pos 1920x0 --rotate normal
fi