polybar: use config.ini instead of config

This commit is contained in:
Protesilaos Stavrou 2024-12-06 08:04:02 +02:00
parent 119dae42e3
commit eb7128423a
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
3 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ _check xtwm_common && xtwm_common
# an overlap between panel and windows.
_panel_height() {
awk -F '=' '/height/ { print $2; exit; }' \
"$HOME"/.config/polybar/config
"$HOME"/.config/polybar/config.ini
}
bspc config bottom_padding "$(_panel_height)"

View file

@ -22,7 +22,7 @@
command -v polybar > /dev/null || { echo "ERROR: no polybar available"; exit 1; }
panel_height="$(awk -F '=' '/height/ { print $2; exit; }' "$HOME"/.config/polybar/config)"
panel_height="$(awk -F '=' '/height/ { print $2; exit; }' "$HOME"/.config/polybar/config.ini)"
# The bottom padding is extracted from the running program.
bottom_padding="$(bspc config bottom_padding)"