summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2022-11-28 03:41:20 +0200
committerThanos Apollo <[email protected]>2022-11-28 03:41:20 +0200
commitc444cffa422de3762ec9eeed601ef4965347b585 (patch)
treee179ec0b0b988fd4fde97f0027c666db26575fdf
parent8cccade7828b5304ecedf9fa6fb67e1bdea6a35f (diff)
Add rofi
-rw-r--r--.emacs.d/lisp/init-exwm.el8
1 files changed, 7 insertions, 1 deletions
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-<tab>") 'apollo/rofi-switch-window)
+ (exwm-input-set-key (kbd "s-<tab>") 'rofi)
(exwm-input-set-key (kbd "s-q") 'kill-emacs)
(exwm-input-set-key (kbd "<XF86AudioRaiseVolume>") 'apollo/volume-increase)
(exwm-input-set-key (kbd "<XF86AudioLowerVolume>") 'apollo/volume-decrease)