summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2019-04-10 21:40:15 -0700
committerBen Sima <ben@bsima.me>2019-04-10 21:40:15 -0700
commitecd11c59aff3b640b94f9af05f25947b8b9b713f (patch)
treef4ced87e9d5632cd6fdd1963e1cb3782cf9e45f1
parentd28b372fc6a7f4a549687f33ebe4a34b2434ee3f (diff)
xtheme: switch emacs automatically
-rwxr-xr-xxtheme11
1 files changed, 2 insertions, 9 deletions
diff --git a/xtheme b/xtheme
index 95c9404..baa7843 100755
--- a/xtheme
+++ b/xtheme
@@ -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 &