lupan-set-theme: do not change background and emacs theme
This commit is contained in:
parent
89e648a623
commit
e0b0aa1dc5
@ -11,21 +11,14 @@ if [ "$THEME" = "toggle" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$THEME" = dark ]; then
|
if [ "$THEME" = dark ]; then
|
||||||
BGCOLOR=#4a4a4a
|
|
||||||
GTK_THEME=Materia-dark
|
GTK_THEME=Materia-dark
|
||||||
elif [ "$THEME" = light ]; then
|
elif [ "$THEME" = light ]; then
|
||||||
BGCOLOR=#cacaca
|
|
||||||
GTK_THEME=Materia-light
|
GTK_THEME=Materia-light
|
||||||
else
|
else
|
||||||
echo "error: unknown theme: should be either dark, light or toggle" >&2
|
echo "error: unknown theme: should be either dark, light or toggle" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Background color
|
|
||||||
if [ ! -x ~/.fehbg ]; then
|
|
||||||
hsetroot -solid "$BGCOLOR"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Alacritty
|
# Alacritty
|
||||||
if [ -f ~/.config/alacritty/alacritty.yml ]; then
|
if [ -f ~/.config/alacritty/alacritty.yml ]; then
|
||||||
sed -i "s/^colors: [*].*/colors: *$THEME/" ~/.config/alacritty/alacritty.yml
|
sed -i "s/^colors: [*].*/colors: *$THEME/" ~/.config/alacritty/alacritty.yml
|
||||||
@ -36,8 +29,3 @@ if [ -f ~/.config/xsettingsd/xsettingsd.conf ]; then
|
|||||||
sed -i -E "s#(Net/ThemeName) .*#\\1 \"${GTK_THEME}\"#" ~/.config/xsettingsd/xsettingsd.conf
|
sed -i -E "s#(Net/ThemeName) .*#\\1 \"${GTK_THEME}\"#" ~/.config/xsettingsd/xsettingsd.conf
|
||||||
pkill -HUP -x xsettingsd
|
pkill -HUP -x xsettingsd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Emacs
|
|
||||||
if which emacsclient > /dev/null; then
|
|
||||||
emacsclient --eval "(my-select-theme '$THEME)"
|
|
||||||
fi
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user