summaryrefslogtreecommitdiffstats
path: root/bin/hornet
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-02-27 14:47:13 -0500
committerJesse Luehrs <doy@tozt.net>2021-02-27 14:47:13 -0500
commitdc5b9b92564413490788f3e573118c7a183131fa (patch)
treef9cb2ae3892d11758f3eee5571f504e1013b14c7 /bin/hornet
parent94d56e634a0313e8c1b35dafac691837d3f79286 (diff)
downloadconf-dc5b9b92564413490788f3e573118c7a183131fa.tar.gz
conf-dc5b9b92564413490788f3e573118c7a183131fa.zip
explicitly configure hdmi attachment
auto-mirroring doesn't work very well anymore now that this laptop isn't running at 1920x1080
Diffstat (limited to 'bin/hornet')
-rwxr-xr-xbin/hornet/tv8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/hornet/tv b/bin/hornet/tv
new file mode 100755
index 0000000..eea7fca
--- /dev/null
+++ b/bin/hornet/tv
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+xrandr --auto
+if xrandr -q | grep -q "DP-3 connected"; then
+ xrandr --output DP-3 --right-of eDP-1 --mode 1920x1080
+elif xrandr -q | grep -q "DP-4 connected"; then
+ xrandr --output DP-4 --right-of eDP-1 --mode 1920x1080
+fi