mirror of
https://github.com/protesilaos/dotfiles.git
synced 2026-09-10 07:16:20 -04:00
polybar: use config.ini instead of config
This commit is contained in:
parent
119dae42e3
commit
eb7128423a
|
|
@ -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)"
|
||||
|
|
|
|||
|
|
@ -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)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue