From 2bdabb3b84f9e2fe8d5abeb565c4d3cdb7c63668 Mon Sep 17 00:00:00 2001 From: natemaia Date: Sun, 21 Aug 2022 09:47:51 -0700 Subject: [PATCH] Tweak dk bar --- dk-home/.local/bin/bar | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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