You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Test with nix run:nixrungithub:yuja/hhkb-studio-tools# Install via flake:inputs={hhkb-studio-tools={url="github:yuja/hhkb-studio-tools";inputs.nixpkgs.follows="nixpkgs";};};# Your output packages + hhkb-studio-toolsoutputs={# self,# nixpkgs,hhkb-studio-tools,# ...};# In your configuration.nix{inputs, ...}:{# Your other configurationsenvironment.systemPackages=withpkgs;[inputs.hhkb-studio-tools.packages.${$system}.default];}
Usage
Find /dev/hidraw* device to communicate and adjust permission
$ sudo setfacl -m u:$USER:rw /dev/hidraw1
Query the keyboard to see if the communication channel works
$ hhkb-studio-tools info
Product name: HHKB-Studio
...
Fetch the current keymap data (of the current profile)
$ hhkb-studio-tools read-profile > profile.toml
Show the fetched keymap data and modify it by using text editor
$ hhkb-studio-tools show-profile < profile.toml
The keymap data consists of four layers (Base, Fn1, Fn2, and Fn3.)
Each layer is 240 bytes (15 keys x 8 rows with some blank entries.)