Fix typo when getting DPI from .Xresources (#140)

This commit is contained in:
Kieran Siek 2019-09-14 17:16:17 +08:00 committed by AUTplayed
parent 6c66db535f
commit 82d1a7280e

View file

@ -158,7 +158,7 @@ lockselect() {
logical_px() {
# get dpi value from xrdb
local DPI
DPI=$(cat ~/.Xresource | grep -oP 'Xft.dpi:\s*\K\d+' | bc)
DPI=$(cat ~/.Xresources | grep -oP 'Xft.dpi:\s*\K\d+' | bc)
if [ -z "$DPI" ]; then
DPI=$(xdpyinfo | sed -En "s/\s*resolution:\s*([0-9]*)x([0-9]*)\s.*/\\$2/p" | head -n1)
fi