commit c172efc7af7cfc424a37c88755ebf4134732394b parent 34fa8684b51954376abb8f69f02c387b879ecdb8 Author: dwrz <dwrz@dwrz.net> Date: Thu, 4 Apr 2024 13:06:31 +0000 Update monitor-hotplug script Diffstat:
M | scripts/monitor-hotplug | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/monitor-hotplug b/scripts/monitor-hotplug @@ -3,17 +3,17 @@ export DISPLAY=:0.0 connect() { - xrandr --output eDP-1 --off --output DP-2 --auto && \ + xrandr --output eDP-1 --off --output DP-3 --auto && \ notify-send "Connected external monitor." } disconnect() { - xrandr --output eDP-1 --auto --output DP-2 --off && \ + xrandr --output eDP-1 --auto --output DP-3 --off && \ notify-send "Disconnected external monitor." } main() { - if xrandr | grep -q "DP-2 connected"; then + if xrandr | grep -q "DP-3 connected"; then connect else disconnect