summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/lisp/init-exwm.el15
1 files changed, 10 insertions, 5 deletions
diff --git a/.emacs.d/lisp/init-exwm.el b/.emacs.d/lisp/init-exwm.el
index d1dc888..91c0bbf 100644
--- a/.emacs.d/lisp/init-exwm.el
+++ b/.emacs.d/lisp/init-exwm.el
@@ -3,6 +3,11 @@
;;; Code:
+(defun apollo/run_rofi ()
+ (interactive)
+ (start-process-shell-command
+ "rofi" nil "rofi -show drun"))
+(global-set-key (kbd "s-<tab>") 'apollo/run_rofi)
(defun apollo/exwm-update-class ()
@@ -16,8 +21,7 @@
(start-process-shell-command
- "xrandr" nil "xrandr --output DisplayPort-0 --off --output DisplayPort-1 --off --output DisplayPort-2 --primary --mode 2560x1440 --pos 1920x0 --rotate normal --output HDMI-A-0 --mode 1920x1080 --pos 0x0 --rotate normal")
-
+ "xrandr" nil "xrandr --output eDP1 --off --output DP1 --off --output DP2 --off --output HDMI1 --mode 1920x1080 --pos 0x0 --rotate left --output HDMI2 --primary --mode 2560x1440 --pos 1080x0 --rotate normal --output VIRTUAL1 --off")
;; Rebind CapsLock to Ctrl
@@ -38,7 +42,7 @@
?\M-x
?\M-`
?\M-&
- ?\M-:
+ ?\M-:
?\C-\M-j ;; Buffer list
?\C-\ )) ;; Ctrl+Space
@@ -57,6 +61,7 @@
([s-right] . windmove-right)
([s-up] . windmove-up)
([s-down] . windmove-down)
+ ([s-v] . split-window-right)
;; Launch applications via shell command
([?\s-&] . (lambda (command)
@@ -64,7 +69,7 @@
(start-process-shell-command command nil command)))
;; Switch workspace
- ([?\s-w] . exwm-workspace-switch)
+ ([?\s-e] . exwm-workspace-switch)
([?\s-`] . (lambda () (interactive) (exwm-workspace-switch-create 0)))
;; 's-N': Switch to certain workspace with Super (Win) plus a number key (0 - 9)
@@ -76,6 +81,6 @@
(number-sequence 0 9))))
(exwm-enable))
-(provide 'init-exwm)
+
;;; init-exwm.el ends here