From 0c9f29e8f39287ccc5f4f44be271a413e02ab800 Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 1 Aug 2025 02:41:52 +0100 Subject: exwm: system-tray watcher --- custom/jao-custom-exwm.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom/jao-custom-exwm.el b/custom/jao-custom-exwm.el index 3cb3fc9..ac88ec1 100644 --- a/custom/jao-custom-exwm.el +++ b/custom/jao-custom-exwm.el @@ -154,10 +154,10 @@ (exwm-systemtray-mode 1) (defun jao-exwm--watch-tray (sym newval op where) - (setq jao-minibuffer-right-margin (* 2 (length newval))) + (setq jao-minibuffer-right-margin (/ newval (string-pixel-width "a"))) (jao-minibuffer-refresh)) -(add-variable-watcher 'exwm-systemtray--list #'jao-exwm--watch-tray) +(add-variable-watcher 'exwm-systemtray-width #'jao-exwm--watch-tray) ;; Switch to buffer / app (defvar-local jao-exwm--name nil) -- cgit v1.2.3