diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-02-27 20:12:38 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-02-27 20:12:38 -0500 |
commit | 4e802e740bb2f7c6891271d3eaab39768360e261 (patch) | |
tree | 52cd247d9ffabab2f5cfb9f7821fbafbb27678f7 /.local/bin/xrdb-set-dpi | |
parent | bd42aa1b31e2e41cac7ac2ffa6edc05e04354815 (diff) | |
parent | d09fa8687ee01dcb4ef540deb106b8531f56b403 (diff) |
Merge branch 'master' into build64-par/master
Diffstat (limited to '.local/bin/xrdb-set-dpi')
-rwxr-xr-x | .local/bin/xrdb-set-dpi | 4 |
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}" |