Fix polybar hardcoding

Polybar restarting is now done through its provided ipc interface,
instead of relying on a hardcoded script on the system.

Previously, the system needed access to a `polybar-launch` script.
Now, it invokes the `polybar-msg` command which is provided by polybar
itself.

It is important that polybar has ipc enabled in its configuration for
the restart to work.
This commit is contained in:
Marty Oehme 2020-12-22 11:25:51 +01:00
parent 2375cfe8a6
commit dfe8e03d66
Signed by: Marty
GPG key ID: B7538B8F50A1C800

View file

@ -43,8 +43,8 @@ theme() {
# Some applications reading from Xresources need a restart
# to use the new settings.
theme_post() {
type polybar-launch >/dev/null 2>&1 && {
polybar-launch simple-top >/dev/null
type polybar-msg >/dev/null 2>&1 && {
polybar-msg cmd restart
dbg_msg $app "Restarting polybar"
}
}