config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

commit 2777071b718dcc51dd58952aa8b89436ad6833b9
parent 0b41c83a2c14e85d571c9611bc3056513426f41e
Author: dwrz <dwrz@dwrz.net>
Date:   Tue, 31 Oct 2023 19:56:02 +0000

Refactor monitor-hotplug outputs

Diffstat:
Mscripts/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-3 --auto && \ + xrandr --output eDP-1 --off --output DP-2 --auto && \ notify-send "Connected external monitor." } disconnect() { - xrandr --output eDP-1 --auto --output DP-3 --off && \ + xrandr --output eDP-1 --auto --output DP-2 --off && \ notify-send "Disconnected external monitor." } main() { - if xrandr | grep -q "DP-3 connected"; then + if xrandr | grep -q "DP-2 connected"; then connect else disconnect