aboutsummaryrefslogtreecommitdiff
path: root/betterlockscreen
diff options
context:
space:
mode:
authorYohann Leon <yohann@leon.re>2018-12-11 17:41:00 +0100
committerYohann Leon <yohann@leon.re>2018-12-11 17:41:00 +0100
commit271bb033685aeb7cfc5e1e0e4cb850ae5fcba3f7 (patch)
tree87d77a64c16a31fe9c445acdb06aeee118b8b9b2 /betterlockscreen
parent9e96fa323f158ed29a72c7fe6f8710cf1cd99e50 (diff)
fix: hardcoded DPI value in logical_px()
Diffstat (limited to 'betterlockscreen')
-rwxr-xr-xbetterlockscreen2
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