diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-02-27 20:02:10 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-02-27 20:06:21 -0500 |
commit | 65cb251ba9d9203056c3c71e49576d7bd7e36069 (patch) | |
tree | 025b4015b5b8bed7906f271cc7d3b369c07535ba /.local/bin/xrdb-set-dpi | |
parent | 5e5e5029e76d88b3887bb175e28709a9022323a8 (diff) |
more systemd/x11 stuff
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}" |