diff options
author | jao <jao@gnu.org> | 2025-08-01 02:41:52 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2025-08-01 02:41:52 +0100 |
commit | 0c9f29e8f39287ccc5f4f44be271a413e02ab800 (patch) | |
tree | 2343c25a5faa0205df7b3c2e8535ea2958011c1c | |
parent | 8f96eda3d6e90254ae14ea6e338336661e4ee2fb (diff) | |
download | elibs-0c9f29e8f39287ccc5f4f44be271a413e02ab800.tar.gz elibs-0c9f29e8f39287ccc5f4f44be271a413e02ab800.tar.bz2 |
exwm: system-tray watcher
-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) |