~ben/bin

ecd11c59aff3b640b94f9af05f25947b8b9b713f — Ben Sima 11 months ago d28b372
xtheme: switch emacs automatically
1 files changed, 2 insertions(+), 9 deletions(-)

M xtheme
M xtheme => xtheme +2 -9
@@ 26,18 26,11 @@ echo "$NEW_XTHEME" > $STATE

## application hooks

# switch terminal theme
# switch terminal & xmonad theme
home-manager switch

# set emacs theme using emacsclient
if [ "$XTHEME" == "light" ]
then
  exec emacsclient \
    --eval "(bs/switch-theme 'light)" &
else
  exec emacsclient \
    --eval "(bs/switch-theme 'dark)" &
fi
exec emacsclient --eval "(bs/switch-theme 'auto)" &

# restart polybar
systemctl --user restart polybar &