summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-03-09 20:39:56 +0000
committerjao <jao@gnu.org>2022-03-09 20:39:56 +0000
commit7d69f1c5f899f4f43a5e1318a6d238717ec75578 (patch)
treeff6f0d55f7833a0e29d29d11a5c810146f5a800d
parent21a3923d4c4545cc9b74b84620479f301cbffa4c (diff)
downloadelibs-7d69f1c5f899f4f43a5e1318a6d238717ec75578.tar.gz
elibs-7d69f1c5f899f4f43a5e1318a6d238717ec75578.tar.bz2
exwm: toggle firefox
-rw-r--r--exwm.org9
1 files changed, 8 insertions, 1 deletions
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)