diff options
-rw-r--r-- | custom/jao-custom-exwm.el | 4 |
1 files 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) |