summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanosApollo <[email protected]>2022-11-02 05:44:37 +0200
committerThanosApollo <[email protected]>2022-11-02 05:44:37 +0200
commit5d79b753e35463e97bd4b1e88a330f8e3ef1a0e0 (patch)
treebd5cc9814f1ef99b4d792c494a2f9ec8df0f73f0
parent8b0a041893b4383168dbe58ae74c37c4638d8ac5 (diff)
parentbde0ac9c27df84840da6d9f2aa1feb9c080f5962 (diff)
Merge remote-tracking branch 'origin/master'
-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