mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2025-03-14 13:09:21 +00:00
Fix typo when getting DPI from .Xresources (#140)
This commit is contained in:
parent
6c66db535f
commit
82d1a7280e
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ lockselect() {
|
||||||
logical_px() {
|
logical_px() {
|
||||||
# get dpi value from xrdb
|
# get dpi value from xrdb
|
||||||
local DPI
|
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
|
if [ -z "$DPI" ]; then
|
||||||
DPI=$(xdpyinfo | sed -En "s/\s*resolution:\s*([0-9]*)x([0-9]*)\s.*/\\$2/p" | head -n1)
|
DPI=$(xdpyinfo | sed -En "s/\s*resolution:\s*([0-9]*)x([0-9]*)\s.*/\\$2/p" | head -n1)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue