diff options
author | Yohann Leon <yohann@leon.re> | 2018-12-11 17:41:00 +0100 |
---|---|---|
committer | Yohann Leon <yohann@leon.re> | 2018-12-11 17:41:00 +0100 |
commit | 271bb033685aeb7cfc5e1e0e4cb850ae5fcba3f7 (patch) | |
tree | 87d77a64c16a31fe9c445acdb06aeee118b8b9b2 /betterlockscreen | |
parent | 9e96fa323f158ed29a72c7fe6f8710cf1cd99e50 (diff) |
fix: hardcoded DPI value in logical_px()
Diffstat (limited to 'betterlockscreen')
-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 |