remove st theme switching using sending signal
This commit is contained in:
@ -3,15 +3,12 @@
|
||||
THEME="$1"
|
||||
|
||||
if [ "$THEME" = dark ]; then
|
||||
SIGNAL=USR1
|
||||
BGCOLOR=#4a4a4a
|
||||
GTK_THEME=Materia-dark
|
||||
elif [ "$THEME" = light ]; then
|
||||
SIGNAL=USR2
|
||||
BGCOLOR=#dde1e3
|
||||
GTK_THEME=Materia-light
|
||||
elif [ "$THEME" = faff ]; then
|
||||
SIGNAL=USR2
|
||||
BGCOLOR=#4a4a4a
|
||||
GTK_THEME=Materia-light
|
||||
else
|
||||
@ -29,9 +26,6 @@ if [ -f ~/.config/alacritty/alacritty.yml ]; then
|
||||
sed -i "s/^colors: [*].*/colors: *$THEME/" ~/.config/alacritty/alacritty.yml
|
||||
fi
|
||||
|
||||
# ST (patched)
|
||||
pkill -$SIGNAL -x st
|
||||
|
||||
# GTK
|
||||
if [ -f ~/.config/xsettingsd/xsettingsd.conf ]; then
|
||||
sed -i -E "s#(Net/ThemeName) .*#\\1 \"${GTK_THEME}\"#" ~/.config/xsettingsd/xsettingsd.conf
|
||||
|
Reference in New Issue
Block a user