From 1c41c7cbdb1e62c9c3976bda5bba11ec7e3143a1 Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 16 Oct 2026 23:14:21 +0100 Subject: exwm: firefox support --- custom/jao-custom-exwm.el | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'custom') diff --git a/custom/jao-custom-exwm.el b/custom/jao-custom-exwm.el index 09a5180..d36c8f1 100644 --- a/custom/jao-custom-exwm.el +++ b/custom/jao-custom-exwm.el @@ -59,34 +59,8 @@ (start-process-shell-command "import" "* exwm - console *" c))) ;;; Firefox support -(jao-def-exwm-toggler jao-exwm-firefox -1 "firefox" "firefox") - -(defun jao-exwm-browse-with-firefox (&rest args) - (jao-exwm-firefox) - (apply #'browse-url-firefox args)) - (setq browse-url-secondary-browser-function #'jao-exwm-browse-with-firefox) -(defun jao-exwm-kill-firefox-url () - (interactive) - (when-let* ((b (jao-exwm-find-class-buffer "firefox"))) - (let ((cb (current-buffer))) - (switch-to-buffer b) - (exwm-input--fake-key ?y) - (exwm-input--fake-key ?y) - (prog1 (current-kill 1) - (switch-to-buffer cb))))) - -(defun jao-exwm-firefox-search (query) - (interactive "sQuery: ") - (jao-exwm-firefox) - (sit-for 0.5) - (exwm-input--fake-key ?s) - (dolist (k (string-to-list query)) - (exwm-input--fake-key k)) - (sit-for 0.5) - (exwm-input--fake-key ?\r)) - ;;; Transients (jao-transient-major-mode+ doc-view ["External viewers" -- cgit v1.2.3