Make firefox command smarter

This commit is contained in:
Jeremy Dormitzer 2019-12-04 08:20:43 -05:00
parent 24566a61c3
commit d10623aa10

View File

@ -5,10 +5,14 @@
(swank-loader:init) (swank-loader:init)
(swank:create-server :port 4004 (swank:create-server :port 4004
:style swank:*communication-style* :style swank:*communication-style*
:dont-close t) :dont-close t)
;; Commands
(defcommand firefox () ()
(run-or-raise "firefox" '(:class "firefox")))
;; Keybindings ;; 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 "d") "exec rofi -show run")
(define-key stumpwm:*root-map* (kbd "w") "exec rofi -show window") (define-key stumpwm:*root-map* (kbd "w") "exec rofi -show window")
(define-key stumpwm:*root-map* (kbd "P") "exec passmenu") (define-key stumpwm:*root-map* (kbd "P") "exec passmenu")