diff options
Diffstat (limited to 'custom/jao-custom-exwm.el')
-rw-r--r-- | custom/jao-custom-exwm.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/custom/jao-custom-exwm.el b/custom/jao-custom-exwm.el index d90eeda..3cb3fc9 100644 --- a/custom/jao-custom-exwm.el +++ b/custom/jao-custom-exwm.el @@ -130,7 +130,7 @@ (defun jao-exwm--setup-float () (set-frame-parameter nil 'jao-position nil) - (cond ((string= "Firefox" exwm-class-name) + (cond ((member exwm-class-name '("firefox" "Firefox" "Sofice")) (jao-exwm--center-float 900 600)) ((member exwm-class-name '("mpv" "vlc")) (jao-exwm--center-float 1200)))) @@ -151,7 +151,7 @@ (add-hook 'exwm-workspace-switch-hook #'jao-minibuffer-refresh) (require 'exwm-systemtray) -(exwm-systemtray-enable) +(exwm-systemtray-mode 1) (defun jao-exwm--watch-tray (sym newval op where) (setq jao-minibuffer-right-margin (* 2 (length newval))) @@ -194,7 +194,9 @@ (defun jao-exwm-switch-to-next-x () (interactive) - (let ((bfs (seq-filter (lambda (b) (buffer-local-value 'exwm-class-name b)) + (let ((bfs (seq-filter (lambda (b) + (with-current-buffer b + (derived-mode-p 'exwm-mode))) (buffer-list (window-frame))))) (when (car bfs) (switch-to-buffer (car (reverse bfs)))))) @@ -530,6 +532,7 @@ ([f9] . jao-bright-show))) ;; (customize-set-variable 'exwm-input-global-keys exwm-input-global-keys) +(exwm-wm-mode) ;;; . (provide 'jao-custom-exwm) |