Add new scripts and install/uninstall
This commit is contained in:
10
scripts/pcs-auto-resolution-monitor
Executable file
10
scripts/pcs-auto-resolution-monitor
Executable file
@ -0,0 +1,10 @@
|
||||
#!/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
|
Reference in New Issue
Block a user