File: sim.kbd

package info (click to toggle)
rust-kanata 1.9.0-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,852 kB
  • sloc: sh: 33; makefile: 4
file content (30 lines) | stat: -rw-r--r-- 1,764 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
(defcfg
  process-unmapped-keys	yes	;;|no| enable processing of keys that are not in defsrc, useful if mapping a few keys in defsrc instead of most of the keys on your keyboard. Without this, the tap-hold-release and tap-hold-press actions will not activate for keys that are not in defsrc. Disabled because some keys may not work correctly if they are intercepted. E.g. rctl/altgr on Windows; see the windows-altgr configuration item above for context.
  log-layer-changes    	yes	;;|no| overhead
)
(defvar ;; declare commonly-used values. prefix with $ to call them. They are refered with `$<var name>`
  tap-repress-timeout 	1000 ;;|500|
  hold-timeout	        1500 ;;|500|
  πŸ•β†•          	        $tap-repress-timeout
  πŸ•πŸ Ώ          	        $hold-timeout
)
(defalias
  ;; home row mods ↕tap 🠿hold
  ;; pinky ring middle index | index middle ring pinky
  ;; 	          timeout ↕tap 🠿hold¦↕tap 🠿hold action
  βŒ‚β€Ήβ—†	(tap-hold-release $πŸ•β†• $πŸ•πŸ Ώ a β€Ήβ—†)	;;
  βŒ‚β€ΉβŽ‡	(tap-hold-release $πŸ•β†• $πŸ•πŸ Ώ s β€ΉβŽ‡)	;;
  βŒ‚β€ΉβŽˆ	(tap-hold-release $πŸ•β†• $πŸ•πŸ Ώ d β€ΉβŽˆ)	;;
  βŒ‚β€Ήβ‡§	(tap-hold-release $πŸ•β†• $πŸ•πŸ Ώ f ‹⇧)	;;
  βŒ‚β‡§β€Ί	(tap-hold-release $πŸ•β†• $πŸ•πŸ Ώ j ⇧›)	;; same actions for the right side
  βŒ‚βŽˆβ€Ί	(tap-hold-release $πŸ•β†• $πŸ•πŸ Ώ k βŽˆβ€Ί)	;;
  βŒ‚βŽ‡β€Ί	(tap-hold-release $πŸ•β†• $πŸ•πŸ Ώ l βŽ‡β€Ί)	;;
  βŒ‚β—†β€Ί	(tap-hold-release $πŸ•β†• $πŸ•πŸ Ώ ; β—†β€Ί)	;;
)

(defsrc
` 1 2
a	s	d	f			j	k	l	;)
(deflayer βŒ‚ ;; modtap layer for home row mods and 1 printing a 🀲🏿 char (will appear as 🀲 until kanata's unicode feature is extended)
  β€— πŸ”£πŸ€²πŸΏ β€—
  @βŒ‚β€Ήβ—† @βŒ‚β€ΉβŽ‡ @βŒ‚β€ΉβŽˆ @βŒ‚β€Ήβ‡§        @βŒ‚β‡§β€Ί @βŒ‚βŽˆβ€Ί @βŒ‚βŽ‡β€Ί @βŒ‚β—†β€Ί)