mirror of
https://github.com/lordmathis/dotfiles.git
synced 2025-11-06 01:34:22 +00:00
Add script to switch screens
This commit is contained in:
9
bin/switch_monitors.sh
Executable file
9
bin/switch_monitors.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
intern=eDP-1
|
||||
extern=HDMI-1
|
||||
|
||||
if xrandr | grep "$extern disconnected"; then
|
||||
xrandr --output "$extern" --off --output "$intern" --auto
|
||||
else
|
||||
xrandr --output "$intern" --off --output "$extern" --auto
|
||||
fi
|
||||
Reference in New Issue
Block a user