Skip to content

feat(lobtop): install and configure Karabiner Elements - #500

Open
stackptr wants to merge 2 commits into
mainfrom
lobtop/feat-karabiner
Open

stackptr wants to merge 2 commits into
mainfrom
lobtop/feat-karabiner

Conversation

@stackptr

@stackptr stackptr commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds a reusable programs.karabiner darwin module (modules/darwin/programs/karabiner.nix) that installs karabiner-elements from nixpkgs and writes ~/.config/karabiner/karabiner.json during activation
  • Enables it on lobtop with the MX Master 4 M (vendor 1133, product 45122) and the three existing complex modifications: mission control (button7), right space (button4), left space (button5)

Test plan

  • Run nh darwin switch .#lobtop and verify Karabiner Elements is installed
  • Confirm ~/.config/karabiner/karabiner.json matches the expected config (MX Master 4 M device enabled, 3 complex mod rules present)
  • Verify the mouse buttons trigger mission control and space switching as expected
  • Re-run switch and confirm the config file is idempotently overwritten without error

🤖 Generated with Claude Code

stackptr and others added 2 commits May 29, 2026 12:25
Adds a karabiner.nix darwin program module that writes karabiner.json
during activation. Enables it on lobtop with the MX Master 4 M device
and the three mission-control/space-switching complex modifications.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Moves the device and complex modification rules into the module as
mkDefault values, activated by enableDefaults. This allows both lobtop
and Rhizome to share the config without duplication. Simplifies lobtop
to use enableDefaults = true.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant