Tweak dk bar
This commit is contained in:
parent
5119f45598
commit
2bdabb3b84
@ -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
|
||||
|
Reference in New Issue
Block a user