From c444cffa422de3762ec9eeed601ef4965347b585 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Mon, 28 Nov 2022 03:41:20 +0200 Subject: Add rofi --- .emacs.d/lisp/init-exwm.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '.emacs.d/lisp') diff --git a/.emacs.d/lisp/init-exwm.el b/.emacs.d/lisp/init-exwm.el index df14820..cce35df 100644 --- a/.emacs.d/lisp/init-exwm.el +++ b/.emacs.d/lisp/init-exwm.el @@ -17,11 +17,17 @@ (let ((command-parts (split-string command "[ ]+"))) (apply #'call-process `(,(car command-parts) nil 0 nil ,@(cdr command-parts))))) +(defun rofi () + "Run Rofi." + (interactive) + (apollo/run-in-background "rofi -show drun")) + (defun apollo/volume-increase () "Increase Volume." (interactive) (start-process-shell-command "amixer" nil "amixer sset Master 5%+")) + (defun apollo/volume-decrease () "Decrease Volume." (interactive) @@ -144,7 +150,7 @@ (number-sequence 0 9)))) (exwm-input-set-key (kbd "C-c d") 'dmenu) - (exwm-input-set-key (kbd "s-") 'apollo/rofi-switch-window) + (exwm-input-set-key (kbd "s-") 'rofi) (exwm-input-set-key (kbd "s-q") 'kill-emacs) (exwm-input-set-key (kbd "") 'apollo/volume-increase) (exwm-input-set-key (kbd "") 'apollo/volume-decrease) -- cgit v1.2.3