From 7d69f1c5f899f4f43a5e1318a6d238717ec75578 Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 9 Mar 2022 20:39:56 +0000 Subject: exwm: toggle firefox --- exwm.org | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/exwm.org b/exwm.org index 56073f5..45bbee6 100644 --- a/exwm.org +++ b/exwm.org @@ -453,6 +453,13 @@ (switch-to-buffer b) (jao-exwm--send-str "yy") (switch-to-buffer cb)))) + + (defun jao-exwm-toggle-firefox (ff) + (interactive "P") + (if (and (not ff) (equal exwm-class-name "Firefox")) + (jao-afio--goto-main) + (jao-exwm-firefox-1))) + #+end_src * Transients #+begin_src emacs-lisp @@ -525,7 +532,7 @@ ([?\s-A] . org-agenda-list) ([?\s-a] . jao-first-window) ([?\s-b] . jao-transient-org-blog) - ([?\s-f] . jao-exwm-firefox-1) + ([?\s-e] . jao-exwm-toggle-firefox) ([?\s-m] . jao-transient-media) ([?\s-O] . jao-transpose-windows) ([?\s-o] . jao-other-window) -- cgit v1.2.3