From ecd11c59aff3b640b94f9af05f25947b8b9b713f Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 10 Apr 2019 21:40:15 -0700 Subject: xtheme: switch emacs automatically --- xtheme | 11 ++--------- 1 file 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 & -- cgit v1.2.3