feat: refactor codes

feat: custom rime - disable full_shape punctuations
feat: remap capslock key
This commit is contained in:
Ryan Yin
2023-07-15 16:53:42 +08:00
parent 52c72bd45d
commit cf33721ec1
16 changed files with 43 additions and 162 deletions

View File

@@ -120,8 +120,14 @@
# but it's not supported by macOS yet.
keyboard = {
enableKeyMapping = true; # enable key mapping so that we can use `option` as `control`
# NOTE: do NOT support remap capslock to both control and escape at the same time
remapCapsLockToControl = false; # remap caps lock to control
remapCapsLockToEscape = false; # remap caps lock to escape
remapCapsLockToEscape = true; # remap caps lock to escape
# swap left command and left alt,
# so it matches common keyboard layout: `ctrl | command | alt`
swapLeftCommandAndLeftAlt = true;
};
};

View File

@@ -171,6 +171,19 @@
services.gnome.gnome-keyring.enable = true;
security.pam.services.greetd.enableGnomeKeyring = true;
# A key remapping daemon for linux.
# https://github.com/rvaiya/keyd
services.keyd = {
enable = true;
settings = {
main = {
# overloads the capslock key to function as both escape (when tapped) and control (when held)
capslock = "overload(control, esc)";
};
};
};
services = {
dbus.packages = [ pkgs.gcr ];