From 69e0be77d57c1feea7a53dedfd9caf4ccc3e3fd9 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 31 Jan 2020 00:54:10 +0100 Subject: [PATCH] Attach polybar restart script to xresources --- theme_xresources | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/theme_xresources b/theme_xresources index d72fedc..84792bd 100755 --- a/theme_xresources +++ b/theme_xresources @@ -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() {