mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-11-09 10:39:45 +00:00
fix: hardcoded DPI value in logical_px()
This commit is contained in:
parent
9e96fa323f
commit
271bb03368
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue