added everythig
This commit is contained in:
28
kanata/.config/kanata/config.kbd
Normal file
28
kanata/.config/kanata/config.kbd
Normal 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 @;
|
||||
)
|
||||
22
kanata/.config/systemd/user/kanata.service
Normal file
22
kanata/.config/systemd/user/kanata.service
Normal 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
|
||||
Reference in New Issue
Block a user