11 lines
252 B
Bash
Executable File
11 lines
252 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Check if DP1 is connected
|
|
if xrandr --listactivemonitors | grep -q "1: +DP1"; then
|
|
# DP1 is connected
|
|
autorandr --load home_usbc --force
|
|
else
|
|
# DP1 is not connected, do nothing
|
|
echo "Monitor 1 (DP1) is not connected."
|
|
fi
|