polybar: make the bar a bit smaller

This commit is contained in:
Vincent Bernat 2021-08-07 21:09:10 +02:00
parent 8959299478
commit 17b0e272ae

View file

@ -1,7 +1,7 @@
#!/bin/sh
export DPI=$(xrdb -query | sed -nE 's/^Xft\.dpi:\s*//p')
export HEIGHT=$((20 * DPI / 96))
export HEIGHT=$((18 * DPI / 96))
MONITORS=$(xrandr --current --listactivemonitors | sed -nE 's/ *([0-9]+): [+*]*([^ ]*).*/\2/p')
PRIMARY=$(xrandr --current --listactivemonitors | sed -nE 's/ *([0-9]+): [+]?[*]([^ ]*).*/\2/p')