dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 2ff3fbbaec77c8fbcdea5e40bbbbf03b5392806d
parent fba1ce8f939c3ac9292ce30f5c0efb4734935600
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Mon, 31 Oct 2022 22:43:29 +0100

set-theme: attempt to also change running emacs instance

Diffstat:
Mscripts/set-theme | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/scripts/set-theme b/scripts/set-theme @@ -50,6 +50,11 @@ set_gtk() { [ -f ~/.dotfiles/gtk-3.0/"$1".ini ] && ln -sf ~/.dotfiles/gtk-3.0/"$1".ini ~/.config/gtk-3.0/settings.ini } +set_emacs() { + pgrep emacsclient >/dev/null 2>&1 \ + && emacsclient -nw -e "(progn (za/$1-theme) (kill-terminal))" +} + # Change the 'colors' setting in the Alacritty config alacritty_change_theme() { # Look up the config file @@ -119,3 +124,5 @@ esac set_p10k "$theme" set_tmux "$theme" +set_emacs "$theme" +exit 0