diff options
author | Amin Bandali <bandali@kelar.org> | 2022-05-07 15:10:27 -0400 |
---|---|---|
committer | Amin Bandali <bandali@kelar.org> | 2022-05-19 22:19:59 -0400 |
commit | e2640242fea89ec1057f3259139df59ebc6aa37b (patch) | |
tree | 844d925c27236a0f5e4cbd2a4599c649ba3d1187 | |
parent | 2a2c4c52cde6b843fe7a8ef24cef00a68252ea77 (diff) | |
download | configs-e2640242fea89ec1057f3259139df59ebc6aa37b.tar.gz configs-e2640242fea89ec1057f3259139df59ebc6aa37b.tar.xz configs-e2640242fea89ec1057f3259139df59ebc6aa37b.zip |
* .local/bin/change-theme: Only call emacsclient there is an emacs process.
Diffstat (limited to '')
-rwxr-xr-x | .local/bin/change-theme | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.local/bin/change-theme b/.local/bin/change-theme index 5d997cd..7b20bde 100755 --- a/.local/bin/change-theme +++ b/.local/bin/change-theme @@ -20,7 +20,9 @@ printf "*.foreground: $fg\n*.background: $bg" | xrdb -override printf "*VT100*foreground: $fg\n*VT100*background: $bg" | xrdb -override # emacs -emacsclient -ue "(set-face-attribute 'default nil :foreground \"$fg\" :background \"$bg\")" +if [ "$(pgrep -u $USER emacs)" ]; then + emacsclient -ue "(set-face-attribute 'default nil :foreground \"$fg\" :background \"$bg\")" +fi # terminals for term in /dev/pts/*; do if [ -w "$term" ]; then |