diff options
author | jao <jao@gnu.org> | 2022-09-02 02:38:21 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-09-02 02:38:21 +0100 |
commit | a0adbca81514fdd643e99ec58aed2646756e0097 (patch) | |
tree | 7f18818437b90941cd653c15578f40ca5bd09e9c /lib | |
parent | 96b235745674edd10579315705b5556438f92bfc (diff) | |
download | elibs-a0adbca81514fdd643e99ec58aed2646756e0097.tar.gz elibs-a0adbca81514fdd643e99ec58aed2646756e0097.tar.bz2 |
river: tracking indicator fix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/eos/jao-tracking.el | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/eos/jao-tracking.el b/lib/eos/jao-tracking.el index 26404a4..23bd099 100644 --- a/lib/eos/jao-tracking.el +++ b/lib/eos/jao-tracking.el @@ -85,10 +85,18 @@ `((t :foreground ,jao-tracking-bkg :background ,jao-tracking-bkg)) "" :group 'faces) +(defvar jao-tracking--pipe + (let ((name "/tmp/emacs.status")) + (unless (file-exists-p name) + (shell-command (format "mkfifo %s" name name))) + name)) + (defun jao-tracking-set-log (v) (when (member window-system '(x)) (x-change-window-property "_EMACS_LOG" v nil nil nil nil 0)) - (unless jao-wayland-enabled + (if jao-wayland-enabled + (let ((inhibit-message t)) + (shell-command (format "echo \"%s\" > %s" v jao-tracking--pipe))) (let* ((action (if (string-blank-p v) "remove" "add")) (cmd (format "wmctrl -r emacs -b %s,demands_attention" action))) (shell-command-to-string cmd)))) @@ -136,7 +144,7 @@ (let ((b (car tracking-buffers))) (if (eq 0 n) (tracking-next-buffer) - (jao-afio--goto-scratch) + (jao-afio-goto-scratch) (when b (pop-to-buffer b)) (tracking-remove-visible-buffers)))) (jao-tracking--start-frame |