remove st theme switching using sending signal

This commit is contained in:
2023-07-29 11:50:00 +02:00
parent 39b6738c66
commit 104fd83815
2 changed files with 0 additions and 237 deletions

View File

@ -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