diff --git a/dk-home/.local/bin/bar b/dk-home/.local/bin/bar index eb71244b..7b8726c8 100755 --- a/dk-home/.local/bin/bar +++ b/dk-home/.local/bin/bar @@ -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