Skip to content

Conversation

Copy link

Copilot AI commented Dec 6, 2025

Adds kanata as an alternative to kmonad for Linux keyboard remapping, replicating the existing Leap Code layout features.

Configuration Files

  • kanata/profiles/: Two keyboard profiles (generic-laptop, ms-ergo) with:
    • Right Alt → layer toggle for leapmode
    • CapsLock → tap: Escape (<200ms), hold: Control
    • Leapmode layer: coding symbols (left hand) + navigation (right hand)

Syntax Migration

Kanata requires explicit shifted key notation unlike kmonad's escape sequences:

;; kmonad
\(   \)   $    {    }    \_   >

;; kanata  
@lprn @rprn @dlr @lcbr @rcbr @unds @grtr

;; where aliases defined as:
(defalias
  lprn S-9    ;; (
  rprn S-0    ;; )
  dlr  S-4    ;; $
  lcbr S-[    ;; {
  rcbr S-]    ;; }
  unds S--    ;; _
  grtr S-.    ;; >
)

Installation Scripts

  • download.sh: Fetches kanata v1.10.0 with SHA256 verification
  • install.sh: Systemd service setup, uses $SUDO_USER for correct group membership
  • uninstall.sh: Clean removal
  • kanata.service: Systemd unit with Nice=-20 priority
  • kanata.rules: udev permissions for uinput device

Main README updated to list kanata first among Linux options.

Original prompt

in addtion to the ./kmonad settings, add a ./kanata folder and replicate all the features from kmonad in kanata, installing the installation script. The goal is to have a simple way to install the kanata software as well as the configurations.

Key features in my existing kmonad:

  • Hold Right Alt for activating second layers
  • CapsLock is Escape, on tap, Ctrl on hold.

You must first, carefully study how kanata works from https://github.com/jtroo/kanata. It's syntax and features are similar to kmonad at (https://github.com/kmonad/kmonad) but not identical. Make sure you migrate all the feature s from kmonad to kanata correctly.

After the migration, update README.md to add kanata.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits December 6, 2025 20:21
…onad

Co-authored-by: chuanqisun <1895289+chuanqisun@users.noreply.github.com>
…rification

Co-authored-by: chuanqisun <1895289+chuanqisun@users.noreply.github.com>
Copilot AI changed the title [WIP] Add kanata folder and replicate kmonad features Add kanata keyboard remapper with parity to kmonad configuration Dec 6, 2025
Copilot AI requested a review from chuanqisun December 6, 2025 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants