compositors: avoid alt_shift for emacs

This commit is contained in:
FollieHiyuki 2021-02-17 20:42:02 +03:00
parent 6a243c6853
commit 2d04918742
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
7 changed files with 20 additions and 12 deletions

View File

@ -5,8 +5,8 @@
user-mail-address "folliekazetani@protonmail.com")
;; Font settings
(setq doom-font (font-spec :family "Iosevka Nerd Font" :size 15)
doom-variable-pitch-font (font-spec :family "sans" :size 15)
(setq doom-font (font-spec :family "Iosevka Nerd Font" :size 16)
doom-variable-pitch-font (font-spec :family "sans" :size 16)
doom-big-font (font-spec :family "Iosevka Nerd Font" :size 24)
doom-unicode-font (font-spec :family "Symbola" :size 14))
(custom-set-faces!
@ -124,6 +124,14 @@
(setq browse-url-browser-function 'browse-url-generic
browse-url-generic-program "qutebrowser")
;; Edit buffer as sudo
;;(defun follie/sudo-edit (&optional arg)
;; "Edit file as super-user with optional ARG."
;; (interactive "P")
;; (if (or arg (not buffer-file-name))
;; (find-file (concat "/sudo::" (read-file-name "File (as root): ")))
;; (find-alternate-file (concat "/sudo::" buffer-file-name))))
;; Here are some additional functions/macros that could help you configure Doom:
;;
;; - `load!' for loading external *.el files relative to this one

View File

@ -59,7 +59,7 @@
(exwm-workspace-rename-buffer exwm-class-name)))
;; Force tiling by default
(setq exwm-manage-force-tiling t)
(setq exwm-manage-force-tiling nil)
;; Window rules
(add-hook 'exwm-manage-finish-hook #'follie/configure-window-by-class)
@ -146,10 +146,10 @@
:config
(exwm-input-set-key (kbd "s-e") #'exwm-edit--compose))
;; xbps in Emacs
(use-package! system-packages
:config
(setq system-packages-use-sudo t))
;; xbps but with Emacs
;;(use-package! system-packages
;; :config
;; (setq system-packages-use-sudo t))
;; EMMS
;;(use-package! emms

View File

@ -52,7 +52,7 @@
;; Emacs is an OS
(package! exwm)
(package! exwm-edit)
(package! system-packages)
;;(package! system-packages)
(package! desktop-environment)
;;(package! emms)
;;(package! emms-mode-line-cycle)

View File

@ -57,7 +57,7 @@ inputs {
"*" = {
xkb = {
layout = "us,jp"
options = "grp:alt_shift_toggle"
options = "grp:alt_space_toggle"
}
repeat-rate = 25
repeat-delay = 600

View File

@ -67,7 +67,7 @@ input type:touchpad {
input type:keyboard {
xkb_layout us,jp
xkb_options grp:alt_shift_toggle
xkb_options grp:alt_space_toggle
}
input * xkb_numlock enable

View File

@ -2,7 +2,7 @@
[input]
xkb_layout = us,jp
xkb_options = grp:alt_shift_toggle
xkb_options = grp:alt_space_toggle
kb_numlock_default_state = true
cursor_theme = Breeze_Snow
cursor_size = 24

View File

@ -28,7 +28,7 @@ export PATH=$HOME/.local/bin/Wayland:$PATH
if [ "$1" = "river" ]
then
export XKB_DEFAULT_LAYOUT="us,jp"
export XKB_DEFAULT_OPTIONS="grp:alt_shift_toggle"
export XKB_DEFAULT_OPTIONS="grp:alt_space_toggle"
fi
export XDG_CURRENT_DESKTOP=$1