From b64529c53544ef6ba687f3b307480aa083fa83ab Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 31 Jan 2020 01:00:48 +0100 Subject: [PATCH] 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. --- theme_xresources | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/theme_xresources b/theme_xresources index 84792bd..da991c0 100755 --- a/theme_xresources +++ b/theme_xresources @@ -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() {