Add more stuff, switch back to EXWM.
This commit is contained in:
parent
f001cb47cb
commit
5953585674
59
config.org
59
config.org
|
|
@ -682,6 +682,18 @@ Install the package, enable it and ensure that it always is installed, and then
|
||||||
;;(edwina-setup-dwm-keys)
|
;;(edwina-setup-dwm-keys)
|
||||||
(edwina-mode 1))
|
(edwina-mode 1))
|
||||||
+END_SRC
|
+END_SRC
|
||||||
|
** Ranger
|
||||||
|
This is a minor mode that runs within dired, it emulates many of
|
||||||
|
ranger's (terminal file manager) features. This minor mode shows a
|
||||||
|
stack of parent directories, and updates the parent buffers, while
|
||||||
|
you're navigating the file system. The preview window takes some of
|
||||||
|
the ideas from Peep-Dired, to display previews for the selected files,
|
||||||
|
in the primary dired buffer.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package ranger
|
||||||
|
:ensure t)
|
||||||
|
#+END_SRC
|
||||||
** EXWM
|
** EXWM
|
||||||
EXWM, The Emacs X Window Manager. As it says, it is an Emacs window
|
EXWM, The Emacs X Window Manager. As it says, it is an Emacs window
|
||||||
manager for the X display server. The benefits include using all your
|
manager for the X display server. The benefits include using all your
|
||||||
|
|
@ -691,15 +703,15 @@ For more information on setup, you should check out `https://github.com/ch11ng/e
|
||||||
|
|
||||||
Install the package, enable it and ensure that it always is installed, and then configure:
|
Install the package, enable it and ensure that it always is installed, and then configure:
|
||||||
*** EXWM
|
*** EXWM
|
||||||
+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package exwm
|
(use-package exwm
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
(require 'exwm-config)
|
(require 'exwm-config)
|
||||||
(exwm-config-default))
|
(exwm-config-default))
|
||||||
+END_SRC
|
#+END_SRC
|
||||||
**** Configuration
|
**** Configuration
|
||||||
+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
;; Systemtray
|
;; Systemtray
|
||||||
(require 'exwm-systemtray)
|
(require 'exwm-systemtray)
|
||||||
(exwm-systemtray-enable)
|
(exwm-systemtray-enable)
|
||||||
|
|
@ -773,42 +785,51 @@ Install the package, enable it and ensure that it always is installed, and then
|
||||||
;; Bindings for Edwina
|
;; Bindings for Edwina
|
||||||
|
|
||||||
;; Select next window in stack
|
;; Select next window in stack
|
||||||
([?\s-n] . edwina-select-next-window)
|
;;([?\s-n] . edwina-select-next-window)
|
||||||
|
|
||||||
;; Select previous window in stack
|
;; Select previous window in stack
|
||||||
([?\s-p] . edwina-select-previous-window)
|
;;([?\s-p] . edwina-select-previous-window)
|
||||||
|
|
||||||
;; Swap current window with next window in stack
|
;; Swap current window with next window in stack
|
||||||
([?\s-N] . edwina-swap-next-window)
|
;; ([?\s-N] . edwina-swap-next-window)
|
||||||
|
|
||||||
;; Swap current window with previous window in stack
|
;; Swap current window with previous window in stack
|
||||||
([?\s-P] . edwina-swap-previous-window)
|
;;([?\s-P] . edwina-swap-previous-window)
|
||||||
|
|
||||||
;; Make a new window in the stack
|
;; Make a new window in the stack
|
||||||
([?\s-b] . (lambda ()
|
;;([?\s-b] . (lambda ()
|
||||||
(interactive)
|
;; (interactive)
|
||||||
(edwina-clone-window)
|
;; (edwina-clone-window)
|
||||||
(edwina-select-next-window)))
|
;; (edwina-select-next-window)))
|
||||||
|
|
||||||
))
|
))
|
||||||
|
|
||||||
;; Could not integrate these into the exwm global keys variable
|
;; Could not integrate these into the exwm global keys variable, for some reason they do not work in NIXOS
|
||||||
(exwm-input-set-key (kbd "s-SPC") 'counsel-linux-app)
|
(exwm-input-set-key (kbd "s-SPC") 'counsel-linux-app)
|
||||||
|
|
||||||
|
;; (exwm-input-set-key (kbd "s-i") 'exwm-input-toggle-keyboard)
|
||||||
|
|
||||||
|
;; (exwm-input-set-key (kbd "s-h") 'exwm-switch-workspace-left)
|
||||||
|
|
||||||
|
;; (exwm-input-set-key (kbd "s-l") 'exwm-switch-workspace-right)
|
||||||
|
|
||||||
|
;; (exwm-input-set-key (kbd "s-H") 'exwm-swap-workspace-left)
|
||||||
|
|
||||||
|
;; (exwm-input-set-key (kbd "s-L") 'exwm-swap-workspace-right)
|
||||||
|
|
||||||
;; Edwina bindings
|
;; Edwina bindings
|
||||||
|
|
||||||
;; Increase master column size
|
;; Increase master column size
|
||||||
(exwm-input-set-key (kbd "s-=") 'edwina-inc-mfact)
|
;;(exwm-input-set-key (kbd "s-=") 'edwina-inc-mfact)
|
||||||
|
|
||||||
;; Increase master column size
|
;; Increase master column size
|
||||||
(exwm-input-set-key (kbd "s--") 'edwina-dec-mfact)
|
;;(exwm-input-set-key (kbd "s--") 'edwina-dec-mfact)
|
||||||
|
|
||||||
;; Increase number of windows in master stack
|
;; Increase number of windows in master stack
|
||||||
(exwm-input-set-key (kbd "s-+") 'edwina-inc-nmaster)
|
;;(exwm-input-set-key (kbd "s-+") 'edwina-inc-nmaster)
|
||||||
|
|
||||||
;; Decrease number of windows in master stack
|
;; Decrease number of windows in master stack
|
||||||
(exwm-input-set-key (kbd "s-_") 'edwina-dec-nmaster)
|
;;(exwm-input-set-key (kbd "s-_") 'edwina-dec-nmaster)
|
||||||
|
|
||||||
;; Set all X windows to open in char mode by default, allowing to pass through all key combinations
|
;; Set all X windows to open in char mode by default, allowing to pass through all key combinations
|
||||||
(add-hook 'exwm-manage-finish-hook
|
(add-hook 'exwm-manage-finish-hook
|
||||||
|
|
@ -818,14 +839,14 @@ Install the package, enable it and ensure that it always is installed, and then
|
||||||
|
|
||||||
;; Ido mode seems to be enabled in the default configuration, turn it back off as we are using Ivy completion instead.
|
;; Ido mode seems to be enabled in the default configuration, turn it back off as we are using Ivy completion instead.
|
||||||
(ido-mode -1)
|
(ido-mode -1)
|
||||||
+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
|
||||||
*** Counsel Linux Application
|
*** Counsel Linux Application
|
||||||
Counsel Linux Application is an application launcher for emacs using counsel (which is ivy).
|
Counsel Linux Application is an application launcher for emacs using counsel (which is ivy).
|
||||||
|
|
||||||
Install the package, enable it and ensure that it always is installed, and then configure:
|
Install the package, enable it and ensure that it always is installed, and then configure:
|
||||||
+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
;; some customization to make the display "nicer" and include any user local .desktop files
|
;; some customization to make the display "nicer" and include any user local .desktop files
|
||||||
|
|
||||||
(push (concat (getenv "HOME") "/.local/share/applications/") counsel-linux-apps-directories)
|
(push (concat (getenv "HOME") "/.local/share/applications/") counsel-linux-apps-directories)
|
||||||
|
|
@ -837,4 +858,4 @@ Install the package, enable it and ensure that it always is installed, and then
|
||||||
(propertize name 'face 'font-lock-builtin-face)
|
(propertize name 'face 'font-lock-builtin-face)
|
||||||
(or comment "")))
|
(or comment "")))
|
||||||
(setq counsel-linux-app-format-function #'ds/counsel-linux-app-format-function)
|
(setq counsel-linux-app-format-function #'ds/counsel-linux-app-format-function)
|
||||||
+END_SRC
|
#+END_SRC
|
||||||
|
|
|
||||||
2
init.el
2
init.el
|
|
@ -51,7 +51,7 @@
|
||||||
'(jdee-db-spec-breakpoint-face-colors (cons "#030100" "#100e0d"))
|
'(jdee-db-spec-breakpoint-face-colors (cons "#030100" "#100e0d"))
|
||||||
'(objed-cursor-color "#874804")
|
'(objed-cursor-color "#874804")
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
'(omnisharp csharp-mode bug-hunter ewal-doom-themes ewal-evil-cursors ewal-spacemacs-themes ewal org-bullets company flyspell-correct-ivy evil ivy which-key use-package))
|
'(ranger omnisharp csharp-mode bug-hunter ewal-doom-themes ewal-evil-cursors ewal-spacemacs-themes ewal org-bullets company flyspell-correct-ivy evil ivy which-key use-package))
|
||||||
'(pdf-view-midnight-colors '("#655370" . "#fbf8ef"))
|
'(pdf-view-midnight-colors '("#655370" . "#fbf8ef"))
|
||||||
'(rustic-ansi-faces
|
'(rustic-ansi-faces
|
||||||
["#040201" "#874804" "#813c07" "#a45101" "#A76A19" "#D76C03" "#F09010" "#e8c99f"])
|
["#040201" "#874804" "#813c07" "#a45101" "#A76A19" "#D76C03" "#F09010" "#e8c99f"])
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
("~/.emacs.d/")
|
("/run/media/cspark/BloxieSHDD/Distros/archlinuxinstallscript/" "~/Documents/CPP/javidx9/olcPixelGameEngine/" "/run/media/cspark/BloxieSHDD/Distros/etcnixos/packages/" "~/Documents/CPP/javidx9/flappybird/" "~/.emacs.d/" "/run/media/cspark/BloxieSHDD/Distros/etcnixos/desktop/" "/etc/nixos/virt/" "/etc/nixos/desktop/" "~/nixtest/virt/" "~/nixtest/graphics/")
|
||||||
Loading…
Reference in New Issue