diff options
-rwxr-xr-x | betterlockscreen | 2 |
1 files changed, 1 insertions, 1 deletions
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 |