Fix xresources theme switch

Will now correctly add theme colors, even if not applying permanently.
Will also quietly restart polybar instead of polluting terminal output.
This commit is contained in:
Marty Oehme 2020-01-31 01:00:48 +01:00
parent 69e0be77d5
commit b64529c535

View file

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