diff options
author | Thanos Apollo <[email protected]> | 2022-11-30 05:59:18 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2022-11-30 05:59:18 +0200 |
commit | 1e92032263327765d5ae7e6e55e70ebfab35a4f3 (patch) | |
tree | da7799d4dde9a5466c0202102f81cabb3a2d601b /.emacs.d/init.el | |
parent | 84d21fff125407039dd300708226488ab4f6c660 (diff) |
Add exwm size functions +bindings
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r-- | .emacs.d/init.el | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 8b688a1..67f414d 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -368,12 +368,6 @@ (setq lsp-keymap-prefix "C-c l") ;; Or 'C-l', 's-l' :config (lsp-enable-which-key-integration t) - (lsp-register-custom-settings - '(("pyls.plugins.pyls_mypy.enabled" t t) - ("pyls.plugins.pyls_mypy.live_mode" nil t) - ("pyls.plugins.pyls_black.enabled" t t) - ("pyls.plugins.pyls_isort.enabled" t t) - ("pyls.plugins.flake8.enable" t t))) (setq lsp-pyls-server-command "~/.local/bin/pyls") ) @@ -643,6 +637,25 @@ (exwm-workspace-switch-create ,i)))) (number-sequence 0 9)))) + (defun exwm-enlarge-horizontally-50 () + (interactive) + (exwm-layout-enlarge-window-horizontally 50)) + + (defun exwm-shrink-horizontally-50 () + "Shrink window horizontally by 10" + (interactive) + (exwm-layout-shrink-window-horizontally 50)) + + (defun exwm-shrink-vertically-50 () + "Shrink window by 50." + (interactive) + (exwm-layout-shrink-window 50)) + + (defun exwm-enlarge-vertically-50 () + "Enlarge window by 50." + (interactive) + (exwm-layout-enlarge-window 50)) + (exwm-input-set-key (kbd "C-c d") 'dmenu) (exwm-input-set-key (kbd "s-<tab>") 'rofi) (exwm-input-set-key (kbd "s-Q") 'kill-emacs) @@ -650,6 +663,11 @@ (exwm-input-set-key (kbd "<XF86AudioLowerVolume>") 'apollo/volume-decrease) (exwm-input-set-key (kbd "s-0") 'apollo/emacs-keys) (exwm-input-set-key (kbd "s-9") 'apollo/greek-keyboard) + (exwm-input-set-key (kbd "C-w C-<left>") 'exwm-shrink-horizontally-50) + (exwm-input-set-key (kbd "C-w C-<right>") 'exwm-enlarge-horizontally-50) + (exwm-input-set-key (kbd "C-w C-<up>") 'exwm-shrink-vertically-50) + (exwm-input-set-key (kbd "C-w C-<up>") 'exwm-enlarge-vertically-50) + (exwm-enable)) ;;Transparency |