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:
parent
69e0be77d5
commit
b64529c535
1 changed files with 2 additions and 2 deletions
|
@ -67,12 +67,12 @@ theme_xresources() {
|
||||||
switch_xresources_theme() {
|
switch_xresources_theme() {
|
||||||
local x_dir="${XDG_CONFIG_HOME:-/$HOME/.config}/xresources"
|
local x_dir="${XDG_CONFIG_HOME:-/$HOME/.config}/xresources"
|
||||||
|
|
||||||
xrdb -load "$x_dir/Xresources"
|
xrdb -merge "$tfile"
|
||||||
restart_custom_applications
|
restart_custom_applications
|
||||||
}
|
}
|
||||||
|
|
||||||
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() {
|
set_xresources_theme() {
|
||||||
|
|
Loading…
Reference in a new issue