diff options
author | Ben Sima <ben@bsima.me> | 2019-04-10 21:40:15 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-04-10 21:40:15 -0700 |
commit | ecd11c59aff3b640b94f9af05f25947b8b9b713f (patch) | |
tree | f4ced87e9d5632cd6fdd1963e1cb3782cf9e45f1 /xtheme | |
parent | d28b372fc6a7f4a549687f33ebe4a34b2434ee3f (diff) |
xtheme: switch emacs automatically
Diffstat (limited to 'xtheme')
-rwxr-xr-x | xtheme | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -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 & |