From 271bb033685aeb7cfc5e1e0e4cb850ae5fcba3f7 Mon Sep 17 00:00:00 2001 From: Yohann Leon Date: Tue, 11 Dec 2018 17:41:00 +0100 Subject: [PATCH] fix: hardcoded DPI value in logical_px() --- betterlockscreen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/betterlockscreen b/betterlockscreen index 4f286be..0cef78d 100755 --- a/betterlockscreen +++ b/betterlockscreen @@ -123,7 +123,7 @@ lockselect() { logical_px() { # get dpi value from xrdb local DPI=$(xrdb -query | awk '/Xft.dpi/ {print $2}') - local SCALE=$(echo "scale=2; 150 / 96.0" | bc) + local SCALE=$(echo "scale=2; $DPI / 96.0" | bc) # check if scaling the value is worthy if [ $(echo "$SCALE > 1.25" | bc -l) -eq 0 ]; then