summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Fankhauser hiddenalpha.ch2022-08-29 13:41:26 +0200
committerAndreas Fankhauser hiddenalpha.ch2022-08-29 13:41:37 +0200
commit2f843b3b95f1d18ba593eec833b7fe6e9223fc31 (patch)
tree9b98e75c5109f4943716d8d92b66be5c0fb57eea
parent4252b472de5a3c00899c8cf47c69bc5ff57b7e12 (diff)
downloaddotfiles-2f843b3b95f1d18ba593eec833b7fe6e9223fc31.zip
dotfiles-2f843b3b95f1d18ba593eec833b7fe6e9223fc31.tar.gz
Add xrandr-* cmd for lg4k dual monitor setup
-rw-r--r--src/bin/xrandr-lg4k-fujitsuLeftHi34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/bin/xrandr-lg4k-fujitsuLeftHi b/src/bin/xrandr-lg4k-fujitsuLeftHi
new file mode 100644
index 0000000..406dfa9
--- /dev/null
+++ b/src/bin/xrandr-lg4k-fujitsuLeftHi
@@ -0,0 +1,34 @@
+
+# I suspect the lxpanel to destroy the intel driver in some way. So kill it
+# before we begin.
+pkill lxpanel
+
+# Secondary monitor (Fujitsu)
+# Using lower resolution so scale matches the other screen better
+# Native: 1920x1200
+# Scaled: 1440x900
+xrandr \
+ --output DP-1 \
+ --mode 1440x900 \
+ --rate 60.00 \
+ --rotate left
+
+sleep 0.1
+
+# Primary monitor (LG 4k)
+# "pos" is to have it right of the 2nd-dary monitor.
+xrandr \
+ --output HDMI-3 \
+ --mode 1920x1080 \
+ --rate 60.00 \
+ --pos 900x310
+
+sleep 0.1
+
+# Wallpaper
+feh --bg-tile "/home/andreas/.config/wallpaper/gfx/wallpaper-bricks-infinite.jpg"
+
+# Start (previously killed) panel again
+sleep 0.1
+lxpanel 2>/dev/null &
+