update resolution switcher

This commit is contained in:
2025-05-26 09:51:58 +02:00
parent de73605221
commit a58c51fd4a

View File

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
# Check if display connected # Check if display connected
if xrandr --listactivemonitors | grep -q "1: +DP-3"; then if xrandr --listactivemonitors | grep -q "1: +DP"; then
autorandr --load home_usbc --force autorandr --load home_usbc --force
else else
echo "Monitor 1 (DP-3) is not connected." echo "Monitor 1 (DP) is not connected."
fi fi