minor changes

This commit is contained in:
Tiago Sousa 2024-09-16 17:00:06 +01:00
parent 8bfb0fcedf
commit 8ce30529f7
Signed by: tiago
SSH key fingerprint: SHA256:odOD9vln9U7qNe1R8o3UCbE3jkQCkr5/q5mgd5hwua0
6 changed files with 30 additions and 27 deletions

View file

@ -8,9 +8,11 @@ if [ -f /usr/bin/envycontrol ]; then
xrandr --output HDMI-0 --above eDP-1-1
xrandr --output HDMI-0 --primary
else
xrandr --auto
xrandr --output HDMI-1-0 --above eDP-1
xrandr --output HDMI-1-0 --primary
if [[ -n $(xrandr --listactivemonitors | grep HDMI-1-0) ]]; then
xrandr --output eDP-1 --off --output HDMI-1-0 --auto
else
xrandr --auto
fi
fi
fi