kmonad to kanata

This commit is contained in:
Matt Nish-Lapidus 2024-10-13 11:35:30 -04:00
parent ed904f2d2b
commit 510b963a94
7 changed files with 61 additions and 64 deletions

View file

@ -1,27 +1,23 @@
(defcfg (defcfg
input (device-file "/dev/input/by-id/usb-Razer_Razer_Blade-if01-event-kbd") linux-dev /dev/input/by-id/usb-Razer_Razer_Blade-if01-event-kbd
output (uinput-sink "kmonad-razer") linux-continue-if-no-devs-found yes
fallthrough true process-unmapped-keys yes)
)
(defsrc (defsrc
grv 1 2 3 4 5 6 7 8 9 0 - = bspc grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \ tab q w e r t y u i o p [ ] \
caps a s d f g h j k l ; ' ret caps a s d f g h j k l ; ' ret
lsft z x c v b n m , . / rsft lsft z x c v b n m , . / rsft
lctl lmet lalt spc ralt rmet lctl lmet lalt spc ralt rmet)
)
(defalias (defalias
ctrlesc (tap-hold-next-release 200 esc lctrl) supesc (tap-hold-release 200 200 esc lmet)
sp-lsft (tap-hold-next-release 200 \( lsft) sp-lsft (tap-hold-release 200 200 S-9 lsft)
sp-rsft (tap-hold-next-release 200 \) lsft) sp-rsft (tap-hold-release 200 200 S-0 rsft))
hypr C-A-M-S)
(deflayer qwerty (deflayer qwerty
grv 1 2 3 4 5 6 7 8 9 0 - = bspc grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \ tab q w e r t y u i o p [ ] \
@ctrlesc a s d f g h j k l ; ' ret @supesc a s d f g h j k l ; ' ret
@sp-lsft z x c v b n m , . / @sp-rsft @sp-lsft z x c v b n m , . / @sp-rsft
@hypr lalt lmet spc rmet ralt lmet lalt lctrl spc rctrl ralt)
)

View file

@ -1,26 +1,25 @@
(defcfg (defcfg
input (device-file "/dev/input/by-id/usb-nullbits_SNAP-event-kbd") linux-dev /dev/input/by-id/usb-nullbits_SNAP-event-kbd
output (uinput-sink "kmonad-snap") linux-continue-if-no-devs-found yes
fallthrough true) process-unmapped-keys yes)
(defsrc (defsrc
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 ins del esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 ins del
f13 grv 1 2 3 4 5 6 7 8 9 0 - = bspc KeyHome f13 grv 1 2 3 4 5 6 7 8 9 0 - = bspc home
f14 tab q w e r t y u i o p [ ] \ KeyEnd f14 tab q w e r t y u i o p [ ] \ end
f15 caps a s d f g h j k l ; ' ret pgup f15 caps a s d f g h j k l ; ' ret pgup
f16 lsft z x c v b n m , . / rsft pgdn f16 lsft z x c v b n m , . / rsft pgdn
f17 lctl slck lmet lalt spc ralt rmet rctrl) f17 lctl slck lmet lalt spc ralt rmet rctrl)
(defalias (defalias
supesc (tap-hold-next-release 200 esc lmet) supesc (tap-hold-release 200 200 esc lmet)
sp-lsft (tap-hold-next-release 200 \( lsft) sp-lsft (tap-hold-release 200 200 S-9 lsft)
sp-rsft (tap-hold-next-release 200 \) lsft) sp-rsft (tap-hold-release 200 200 S-0 rsft))
hypr C-A-M-S)
(deflayer qwerty (deflayer qwerty
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 ins del esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 ins del
f13 grv 1 2 3 4 5 6 7 8 9 0 - = bspc KeyHome f13 grv 1 2 3 4 5 6 7 8 9 0 - = bspc home
f14 tab q w e r t y u i o p [ ] \ KeyEnd f14 tab q w e r t y u i o p [ ] \ end
f15 @supesc a s d f g h j k l ; ' ret pgup f15 @supesc a s d f g h j k l ; ' ret pgup
f16 @sp-lsft z x c v b n m , . / @sp-rsft pgdn f16 @sp-lsft z x c v b n m , . / @sp-rsft pgdn
f17 @hypr lmet lalt lctrl spc rctrl ralt rmet) f17 lmet lmet lalt lctrl spc rctrl ralt rmet)

44
flake.lock generated
View file

@ -84,11 +84,11 @@
}, },
"locked": { "locked": {
"dir": "nix", "dir": "nix",
"lastModified": 1727508868, "lastModified": 1728567251,
"narHash": "sha256-fxvkjUK661MWM9ClLWM+YmOIfL9omqGibdf4gONgMW0=", "narHash": "sha256-ymM01ZxzDDY0RTgSOlzVLTRx3mais7dcfb1bYStVcRU=",
"ref": "refs/heads/master", "ref": "refs/heads/master",
"rev": "b3eb93c86abc66c7e7420585c3fe7e410208b2e8", "rev": "751bad81ce48557b3e2c56de36e3c6db906b752a",
"revCount": 859, "revCount": 864,
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://github.com/kmonad/kmonad?dir=nix" "url": "https://github.com/kmonad/kmonad?dir=nix"
@ -147,11 +147,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1727953523, "lastModified": 1728593025,
"narHash": "sha256-cT8fN56OHCqTajmj2JwDL5uhTIEFvVSnBRvypXfZ9f4=", "narHash": "sha256-j/p2ftkP8MXYEK7Vx65jH/Knr2QkEcRSVoDnVOUDe6Q=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix-eval-jobs", "repo": "nix-eval-jobs",
"rev": "7ae693d28c5922533ce86f348ddb6709a2beffbf", "rev": "a3307ac4b38b6dae769f771c877a6f2c236ee238",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -162,11 +162,11 @@
}, },
"nix-flatpak": { "nix-flatpak": {
"locked": { "locked": {
"lastModified": 1721549352, "lastModified": 1728416205,
"narHash": "sha256-nlXJa8RSOX0kykrIYW33ukoHYq+FOSNztHLLgqKwOp8=", "narHash": "sha256-t30gsrwiBc2oBsd89DwdsVZuEbMT5ed81PYY57CIOJE=",
"owner": "gmodena", "owner": "gmodena",
"repo": "nix-flatpak", "repo": "nix-flatpak",
"rev": "dbce39ea8664820ba9037caaf1e2fad365ed6b4b", "rev": "d65dbf59900de4beaaaba8b42a15994f8433c1bc",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -199,11 +199,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1728269138, "lastModified": 1728729581,
"narHash": "sha256-oKxDImsOvgUZMY4NwXVyUc/c1HiU2qInX+b5BU0yXls=", "narHash": "sha256-oazkQ/z7r43YkDLLQdMg8oIB3CwWNb+2ZrYOxtLEWTQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "ecfcd787f373f43307d764762e139a7cdeb9c22b", "rev": "a8dd1b21995964b115b1e3ec639dd6ce24ab9806",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -215,11 +215,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1728241625, "lastModified": 1728492678,
"narHash": "sha256-yumd4fBc/hi8a9QgA9IT8vlQuLZ2oqhkJXHPKxH/tRw=", "narHash": "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c31898adf5a8ed202ce5bea9f347b1c6871f32d1", "rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -246,11 +246,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1728193676, "lastModified": 1728627514,
"narHash": "sha256-PbDWAIjKJdlVg+qQRhzdSor04bAPApDqIv2DofTyynk=", "narHash": "sha256-r+SF9AnHrTg+bk6YszoKfV9lgyw+yaFUQe0dOjI0Z2o=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "ecbc1ca8ffd6aea8372ad16be9ebbb39889e55b6", "rev": "c505ebf777526041d792a49d5f6dd4095ea391a7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -270,11 +270,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1728373025, "lastModified": 1728757472,
"narHash": "sha256-5iEV1QH5A74HbTvSR+yrPttqwf6gzlL76JQiXB+P/Q4=", "narHash": "sha256-AM37viNRyjiPo8l+MgjtuBbLQbZ14UdqUsQZQYC7v8Q=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixpkgs-wayland", "repo": "nixpkgs-wayland",
"rev": "0a5e8f7bd281e879e9a5fe614d27162261c544d9", "rev": "f31d5880ded44894e6c14e04d3a2dc624c542756",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -10,7 +10,7 @@
erdtree erdtree
age age
figlet figlet
ffmpeg ffmpeg-full
rlwrap rlwrap
pinentry pinentry
gcr gcr
@ -76,6 +76,7 @@
icloudpd icloudpd
libheif libheif
libheif.out libheif.out
openal
# node packages # node packages
nodePackages.typescript-language-server nodePackages.typescript-language-server
@ -101,7 +102,6 @@
bitwarden-desktop bitwarden-desktop
rbw rbw
tailscale tailscale
protonplus
font-manager font-manager
gnomeExtensions.just-perfection gnomeExtensions.just-perfection
gnomeExtensions.dash-to-dock gnomeExtensions.dash-to-dock
@ -184,19 +184,21 @@
alsa-tools alsa-tools
clapper clapper
amberol amberol
ardour
parinfer-rust-emacs parinfer-rust-emacs
# Audio plugins (LV2, VST2, VST3, LADSPA) # Audio plugins (LV2, VST2, VST3, LADSPA)
distrho distrho
eq10q eq10q
lsp-plugins lsp-plugins
x42-plugins # FIL-plugins
x42-gmsynth
dragonfly-reverb
FIL-plugins
geonkick geonkick
bespokesynth bespokesynth
helm
surge
odin2
tunefish
calf
# Fonts # Fonts
fira-code fira-code

View file

@ -22,7 +22,7 @@
git-lfs git-lfs
tailscale tailscale
rsync rsync
kmonad #kmonad
gnupg gnupg
openrazer-daemon openrazer-daemon
linuxKernel.packages.linux_6_10.openrazer linuxKernel.packages.linux_6_10.openrazer
@ -229,20 +229,20 @@
services.accounts-daemon.enable = true; services.accounts-daemon.enable = true;
services.gnome.gnome-online-accounts.enable = true; services.gnome.gnome-online-accounts.enable = true;
services.kmonad = { services.kanata = {
enable = true; enable = true;
keyboards = { keyboards = {
quefrency = { # quefrency = {
device = "/dev/input/by-id/usb-Keebio_Quefrency_Rev._5-event-kbd"; # device = "/dev/input/by-id/usb-Keebio_Quefrency_Rev._5-event-kbd";
config = builtins.readFile ../../dotfiles/dot_config/kmonad/quefrency.kbd; # config = builtins.readFile ../../dotfiles/dot_config/kmonad/quefrency.kbd;
}; # };
snap = { snap = {
device = "/dev/input/by-id/usb-nullbits_SNAP-event-kbd"; devices = ["/dev/input/by-id/usb-nullbits_SNAP-event-kbd"];
config = builtins.readFile ../../dotfiles/dot_config/kmonad/snap.kbd; configFile = ../../dotfiles/dot_config/kanata/snap.kbd;
}; };
razer = { razer = {
device = "/dev/input/by-id/usb-Razer_Razer_Blade-if01-event-kbd"; devices = ["/dev/input/by-id/usb-Razer_Razer_Blade-if01-event-kbd"];
config = builtins.readFile ../../dotfiles/dot_config/kmonad/razer.kbd; configFile = ../../dotfiles/dot_config/kanata/razer.kbd;
}; };
}; };
}; };