summaryrefslogtreecommitdiffstats
path: root/.bin/x11-screen
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-23 18:28:03 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-23 18:28:03 +0000
commit0f08d04698c814955116b6bae50752e64b774d8f (patch)
tree8cf9a33557093eebfd25aab2872e97639c7e2f62 /.bin/x11-screen
downloaddots-0f08d04698c814955116b6bae50752e64b774d8f.tar.gz
Thu Dec 23 06:28:03 PM UTC 2021
Diffstat (limited to '.bin/x11-screen')
-rwxr-xr-x.bin/x11-screen27
1 files changed, 27 insertions, 0 deletions
diff --git a/.bin/x11-screen b/.bin/x11-screen
new file mode 100755
index 0000000..ccccda7
--- /dev/null
+++ b/.bin/x11-screen
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+__hidpi() {
+ xrdb -merge ~/.Xresources.hidpi
+
+ export GDK_SCALE=2
+ export GDK_DPI_SCALE=0.5
+ export GDK_SCALE=2
+ export QT_SCREEN_SCALE_FACTORS=2
+ export QT_AUTO_SCREEN_SCALE_FACTOR=1
+ export QT_QPA_PLATFORMTHEME=qt5ct
+}
+
+hostname=$(uname -n)
+
+xrandr -s 0
+xrdb ~/.Xresources
+
+if [ "${hostname}" = "ws-bare01" ]; then
+ xrandr --output HDMI-0 --left-of DVI-D-0
+fi
+
+if [ "${hostname}" = "ws-xps01" ]; then
+ xrandr --output eDP1 --mode 3200x1800
+ echo a
+ __hidpi
+fi
remember that computers suck.