summaryrefslogtreecommitdiff
path: root/.local/bin/xrdb-set-dpi
blob: a87627e189068bf94c03fb1ce025196ac23c271e (plain)
1
2
3
#!/usr/bin/env bash
dpi=$(LC_ALL=C xdpyinfo|sed -rn 's/^\s*resolution:\s*(.*) dots per inch$/\1/p')
xrdb -merge <<<"Xft.dpi: ${dpi}"