added everythig

This commit is contained in:
liph22
2025-12-19 23:40:16 +01:00
parent 438be2a491
commit 3a741ac23c
148 changed files with 12034 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
;; defsrc is still necessary
(defcfg
process-unmapped-keys yes
)
(defsrc
caps a s d f j k l ;
)
(defvar
tap-time 250
hold-time 250
)
(defalias
escctrl (tap-hold 250 250 esc lctrl)
a (multi f24 (tap-hold $tap-time $hold-time a lmet))
s (multi f24 (tap-hold $tap-time $hold-time s lalt))
d (multi f24 (tap-hold $tap-time $hold-time d lsft))
f (multi f24 (tap-hold $tap-time $hold-time f lctl))
j (multi f24 (tap-hold $tap-time $hold-time j rctl))
k (multi f24 (tap-hold $tap-time $hold-time k rsft))
l (multi f24 (tap-hold $tap-time $hold-time l ralt))
; (multi f24 (tap-hold $tap-time $hold-time ; rmet))
)
(deflayer base
@escctrl @a @s @d @f @j @k @l @;
)

View File

@@ -0,0 +1,22 @@
[Unit]
Description=Kanata keyboard remapper
Documentation=https://github.com/jtroo/kanata
[Service]
Environment=PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:${HOME}/.local/bin
Environment=DISPLAY=:0
# Uncomment the 4 lines beneath this to increase process priority
# of Kanata in case you encounter lagginess when resource constrained.
# WARNING: doing so will require the service to run as an elevated user such as root.
# Implementing least privilege access is an exercise left to the reader.
#
CPUSchedulingPolicy=rr
CPUSchedulingPriority=99
IOSchedulingClass=realtime
Nice=-20
Type=simple
ExecStart=/usr/bin/sh -c "exec $$(which kanata) --cfg $$HOME/.config/kanata/config.kbd"
Restart=no
[Install]
WantedBy=default.target