mirror of
https://github.com/lordmathis/dotfiles.git
synced 2025-11-06 01:34:22 +00:00
Update monitor setup and switching
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
intern=eDP-1
|
||||
extern=HDMI-1
|
||||
|
||||
if xrandr | grep "$extern disconnected"; then
|
||||
xrandr --output "$extern" --off --output "$intern" --auto
|
||||
if xrandr --listactivemonitors | grep "$intern"; then
|
||||
xrandr --output "$intern" --off
|
||||
else
|
||||
xrandr --output "$intern" --off --output "$extern" --auto
|
||||
xrandr --output "$intern" --auto
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user