summaryrefslogtreecommitdiffstats
path: root/bin/hornet/tv
diff options
context:
space:
mode:
Diffstat (limited to 'bin/hornet/tv')
-rwxr-xr-xbin/hornet/tv13
1 files changed, 10 insertions, 3 deletions
diff --git a/bin/hornet/tv b/bin/hornet/tv
index 620cb1a..1c99e2e 100755
--- a/bin/hornet/tv
+++ b/bin/hornet/tv
@@ -1,8 +1,15 @@
#!/bin/sh
-xrandr --auto
-if xrandr -q | grep -q "DP-3 connected"; then
+if xrandr -q | grep -q "DP-3 connected ("; then
+ xrandr --auto
xrandr --output DP-3 --right-of eDP-1 --mode 1920x1080
-elif xrandr -q | grep -q "DP-4 connected"; then
+elif xrandr -q | grep -q "DP-4 connected ("; then
+ xrandr --auto
xrandr --output DP-4 --right-of eDP-1 --mode 1920x1080
+elif xrandr -q | grep -q "DP-3 connected"; then
+ xrandr --auto
+ xrandr --output DP-4 --off
+elif xrandr -q | grep -q "DP-4 connected"; then
+ xrandr --auto
+ xrandr --output DP-4 --off
fi