Attach polybar restart script to xresources

This commit is contained in:
Marty Oehme 2020-01-31 00:54:10 +01:00
parent 14c69c674b
commit 69e0be77d5
1 changed files with 5 additions and 0 deletions

View File

@ -68,6 +68,11 @@ switch_xresources_theme() {
local x_dir="${XDG_CONFIG_HOME:-/$HOME/.config}/xresources"
xrdb -load "$x_dir/Xresources"
restart_custom_applications
}
restart_custom_applications() {
type polybar-launch >/dev/null 2>&1 && polybar-launch simple-top
}
set_xresources_theme() {