this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: keyboard remap using Kanata

+49 -2
+49 -2
configuration.nix
··· 70 70 71 71 # List services that you want to enable: 72 72 73 - # Enable the OpenSSH daemon. 74 - services.openssh.enable = true; 73 + services = { 74 + openssh.enable = true; 75 + pipewire = { 76 + enable = true; 77 + alsa.enable = true; 78 + pulse.enable = true; 79 + }; 80 + kanata = { 81 + enable = true; 82 + keyboards = { 83 + common = { 84 + devices = [ 85 + # TODO autodetect? 86 + "/dev/input/by-id/usb-RONGYUAN_2.4G_Wireless_Device-if02-event-kbd" 87 + ]; 88 + config = '' 89 + (defalias 90 + xcp (tap-hold-press 200 200 esc lctl) 91 + fn (layer-toggle function) 92 + ) 93 + 94 + (defsrc 95 + esc 1 2 3 4 5 6 7 8 9 0 - = bspc 96 + tab q w e r t y u i o p [ ] \ 97 + caps a s d f g h j k l ; ' ret 98 + lsft z x c v b n m , . / rsft 99 + lctl lmet lalt spc ralt rctl 100 + ) 101 + 102 + (deflayer qwerty 103 + grv 1 2 3 4 5 6 7 8 9 0 - = bspc 104 + tab q w e r t y u i o p [ ] \ 105 + @xcp a s d f g h j k l ; ' ret 106 + lsft z x c v b n m , . / rsft 107 + lctl lalt lmet spc @fn rctl 108 + ) 109 + 110 + (deflayer function 111 + _ 1 2 3 _ _ _ _ _ _ _ _ _ _ 112 + _ 4 5 6 _ _ _ _ _ _ _ _ _ _ 113 + _ 7 8 9 _ _ left down up rght _ _ _ 114 + _ _ 0 _ _ _ _ _ _ _ _ _ 115 + _ _ _ _ _ _ 116 + ) 117 + ''; 118 + }; 119 + }; 120 + }; 121 + }; 75 122 76 123 # Open ports in the firewall. 77 124 # networking.firewall.allowedTCPPorts = [ ... ];