summaryrefslogtreecommitdiff
path: root/.local/bin/xrdb-set-dpi
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/xrdb-set-dpi')
-rwxr-xr-x.local/bin/xrdb-set-dpi4
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/bin/xrdb-set-dpi b/.local/bin/xrdb-set-dpi
new file mode 100755
index 0000000..2a6b055
--- /dev/null
+++ b/.local/bin/xrdb-set-dpi
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+
+dpi=$(LC_ALL=C DISPLAY=:0 xdpyinfo|sed -rn 's/^\s*resolution:\s*(.*) dots per inch$/\1/p')
+xrdb -merge <<<"Xft.dpi: ${dpi}"