diff options
| author | jao <jao@gnu.org> | 2026-08-16 19:08:32 +0100 |
|---|---|---|
| committer | jao <jao@gnu.org> | 2026-08-16 19:08:32 +0100 |
| commit | 6f6c75ffc0a05cdb84544a966a51bbebb99029d1 (patch) | |
| tree | 7ea80e9a2c25892dd712c55e5ff27f6b6518ec80 /attic/elisp/misc.el | |
| parent | 6ad42751a40084dade974cabf3040cb9a97a58b9 (diff) | |
| download | elibs-6f6c75ffc0a05cdb84544a966a51bbebb99029d1.tar.gz elibs-6f6c75ffc0a05cdb84544a966a51bbebb99029d1.tar.bz2 | |
mail notifications with hammerspoonmain
Diffstat (limited to 'attic/elisp/misc.el')
| -rw-r--r-- | attic/elisp/misc.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/attic/elisp/misc.el b/attic/elisp/misc.el index 0e74ea4..8fe9bfd 100644 --- a/attic/elisp/misc.el +++ b/attic/elisp/misc.el @@ -1301,3 +1301,15 @@ It should be the title of the web page as returned by `rdrview'" (lsp-ui-peek-always-show t) (lsp-ui-sideline-show-hover t) (lsp-ui-doc-enable t)) +;;; xbar +(defvar jao-notmuch-xbar-queries + `((:name "" :query "tag:new and not tag:draft" :face jao-themes-f00) + (:name "i" :query "tag:new and tag:/inbox|write|drivel/" + :face jao-themes-warning))) + +(defvar jao-notmuch-mac-xbar t) + +(defun jao-notmuch-xbar () + (let ((cnts (notmuch-hello-query-counts jao-notmuch-xbar-queries))) + (jao-shell-exec (format "echo '%s | color=#8b3626 | size=11' >/tmp/xbar" + (mapconcat 'jao-notmuch--qstr cnts " "))))) |
