From d10623aa109584adaa4dd520de35a226e3ddff2b Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 4 Dec 2019 08:20:43 -0500 Subject: [PATCH] Make firefox command smarter --- stumpwm/.stumpwm.d/init.lisp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stumpwm/.stumpwm.d/init.lisp b/stumpwm/.stumpwm.d/init.lisp index 28f0166..cdc8982 100644 --- a/stumpwm/.stumpwm.d/init.lisp +++ b/stumpwm/.stumpwm.d/init.lisp @@ -5,10 +5,14 @@ (swank-loader:init) (swank:create-server :port 4004 :style swank:*communication-style* - :dont-close t) + :dont-close t) + +;; Commands +(defcommand firefox () () + (run-or-raise "firefox" '(:class "firefox"))) ;; Keybindings -(define-key stumpwm:*root-map* (kbd "C-f") "exec firefox") +(define-key stumpwm:*root-map* (kbd "C-f") "firefox") (define-key stumpwm:*root-map* (kbd "d") "exec rofi -show run") (define-key stumpwm:*root-map* (kbd "w") "exec rofi -show window") (define-key stumpwm:*root-map* (kbd "P") "exec passmenu")