X-Git-Url: https://git.shemshak.org/~bandali/configs/blobdiff_plain/cb058d219446b570acb36284353063ddd5914f3c..8bbb67ce1950243d6c0a9fb0f685bfc795d687be:/.emacs.d/init.el diff --git a/.emacs.d/init.el b/.emacs.d/init.el index e132088..93dd563 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -618,6 +618,18 @@ around if needed." (interactive) (start-process-shell-command "rofi-pass" nil "rofi-pass"))) + ([?\s-h] . windmove-left) + ([?\s-j] . windmove-down) + ([?\s-k] . windmove-up) + ([?\s-l] . windmove-right) + ([?\s-H] . windmove-swap-states-left) + ([?\s-J] . windmove-swap-states-down) + ([?\s-K] . windmove-swap-states-up) + ([?\s-L] . windmove-swap-states-right) + ([?\M-\s-h] . shrink-window-horizontally) + ([?\M-\s-l] . enlarge-window-horizontally) + ([?\M-\s-k] . shrink-window) + ([?\M-\s-j] . enlarge-window) ([?\s-\[] . (lambda () (interactive) (exwm-workspace-switch-create @@ -718,16 +730,20 @@ around if needed." (exwm-manage-finish . (lambda () (when exwm-class-name (cond - ((string= exwm-class-name "URxvt") - (exwm-input-set-local-simulation-keys - '(([?\C-c ?\C-c] . [?\C-c]) - ([?\C-c ?\C-u] . [?\C-u])))) ((string= exwm-class-name "Abrowser") (exwm-input-set-local-simulation-keys `(,@exwm-input-simulation-keys ([?\C-\S-d] . [?\C-d]) ([?\C-q] . [?\C-w]) - ([?\s-q] . [?\C-q]))))))))) + ([?\s-q] . [?\C-q])))) + ((string= exwm-class-name "URxvt") + (exwm-input-set-local-simulation-keys + '(([?\C-c ?\C-c] . [?\C-c]) + ([?\C-c ?\C-u] . [?\C-u])))) + ((string= exwm-class-name "Zathura") + (exwm-input-set-local-simulation-keys + '(([?\C-p] . [C-up]) + ([?\C-n] . [C-down]))))))))) (use-feature exwm-randr :demand @@ -747,6 +763,10 @@ around if needed." :custom (exwm-workspace-number 4)) +(use-package exwm-edit + :demand + :after exwm) + ;; use the org-plus-contrib package to get the whole deal (use-package org-plus-contrib) @@ -1471,6 +1491,7 @@ This function is intended for use with `ivy-ignore-buffers'." (load-theme 'tangomod t) (use-package smart-mode-line + :disabled :commands (sml/apply-theme) :demand :config @@ -1484,9 +1505,30 @@ This function is intended for use with `ivy-ignore-buffers'." :custom (doom-modeline-buffer-file-name-style 'relative-to-project)) -(use-package doom-themes) +(use-package doom-themes + :disabled) + +(use-package solarized-theme + :demand + :config + (load-theme 'solarized-light t) + (let ((line (face-attribute 'mode-line :underline))) + (set-face-attribute 'mode-line nil :overline line) + (set-face-attribute 'mode-line-inactive nil :overline line) + (set-face-attribute 'mode-line-inactive nil :underline line) + (set-face-attribute 'mode-line nil :box nil) + (set-face-attribute 'mode-line-inactive nil :box nil) + (set-face-attribute 'mode-line-inactive nil :background "#f9f2d9"))) + +(use-package moody + :demand + :config + (setq x-underline-at-descent-line t) + (moody-replace-mode-line-buffer-identification) + (moody-replace-vc-mode)) (defvar b/org-mode-font-lock-keywords + "For use with the `doom-tomorrow-night' theme." '(("[ \t]*\\(#\\+\\(BEGIN\\|END\\|begin\\|end\\)_\\(\\S-+\\)\\)[ \t]*\\([^\n:]*\\)" (1 '(:foreground "#5a5b5a" :background "#292b2b") t) ; directive (3 '(:foreground "#81a2be" :background "#292b2b") t) ; kind @@ -1496,21 +1538,21 @@ This function is intended for use with `ivy-ignore-buffers'." "Enable my favourite light theme." (interactive) (mapc #'disable-theme custom-enabled-themes) - (load-theme 'tangomod t) - (sml/apply-theme 'automatic) - (font-lock-remove-keywords - 'org-mode b/org-mode-font-lock-keywords) - (exwm-systemtray--refresh)) + (load-theme 'solarized-light t) + ;; (sml/apply-theme 'automatic) + ;; (font-lock-remove-keywords + ;; 'org-mode b/org-mode-font-lock-keywords) + (run-with-timer 0.01 nil 'exwm-systemtray--refresh)) (defun b/lights-off () "Go dark." (interactive) (mapc #'disable-theme custom-enabled-themes) - (load-theme 'doom-tomorrow-night t) - (sml/apply-theme 'automatic) - (font-lock-add-keywords - 'org-mode b/org-mode-font-lock-keywords t) - (exwm-systemtray--refresh)) + (load-theme 'solarized-dark t) + ;; (sml/apply-theme 'automatic) + ;; (font-lock-add-keywords + ;; 'org-mode b/org-mode-font-lock-keywords t) + (run-with-timer 0.01 nil 'exwm-systemtray--refresh)) (bind-keys ("C-c t d" . b/lights-off) @@ -2467,6 +2509,7 @@ https://csclub.uwaterloo.ca/~abandali") (erc-track-enable-keybindings nil) (erc-track-exclude-types '("JOIN" "MODE" "NICK" "PART" "QUIT" "324" "329" "332" "333" "353" "477")) + (erc-track-position-in-mode-line t) (erc-track-priority-faces-only 'all) (erc-track-shorten-function nil))