aboutsummaryrefslogtreecommitdiff
path: root/sway/load_resources.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sway/load_resources.sh')
-rwxr-xr-xsway/load_resources.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/load_resources.sh b/sway/load_resources.sh
new file mode 100755
index 0000000..b1c07a2
--- /dev/null
+++ b/sway/load_resources.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+xrdb -load ~/.Xresources
+(swaymsg -p -t get_outputs | grep -q "Current mode: 3840x2160") && \
+ echo "Xft.dpi: 120" | xrdb -override
+