Tweak dk bar

This commit is contained in:
natemaia 2022-08-21 09:47:51 -07:00
parent 5119f45598
commit 2bdabb3b84

View File

@ -12,8 +12,8 @@ underline=3
separator="┃"
# xfonts (adjust size based on resolution)
px=$(xrandr | grep ' connected' | grep -o '[0-9]\+x[0-9]\+' | cut -d'x' -f2)
mm=$(xrandr | grep ' connected' | grep -o '[0-9]\+mm' | tail -n1 | sed 's/mm//')
px=$(xrandr | grep ' connected' | tail -n1 | grep -o '[0-9]\+x[0-9]\+' | cut -d'x' -f2)
mm=$(xrandr | grep ' connected' | tail -n1 | grep -o '[0-9]\+mm' | tail -n1 | sed 's/mm//')
dpi=$(( (px / mm) * 25 ))
if (( dpi >= 140 )); then