diff --git a/betterlockscreen b/betterlockscreen index 860a59f..ffa9dfe 100755 --- a/betterlockscreen +++ b/betterlockscreen @@ -314,14 +314,8 @@ logical_px() { # adjust scaling if [ -n "$dpi" ]; then local scale - 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 - echo "$pixels" - else - echo "$scale * $pixels / 1" | bc - fi + scale=$(echo "scale=3; $dpi / 96.0" | bc) + echo "$scale * $pixels / 1" | bc else # return the default value if no DPI is set echo "$pixels" @@ -977,4 +971,4 @@ echof header "Betterlockscreen" [[ $runlock ]] && lockselect "$lockstyle" && \ { [[ $runsuspend ]] && systemctl suspend; } -exit 0 \ No newline at end of file +exit 0