Skip to content

Instantly share code, notes, and snippets.

@katsyoshi
Last active August 18, 2022 14:12
Show Gist options
  • Save katsyoshi/3d28b9609b7d395826ed93dd8288f0a9 to your computer and use it in GitHub Desktop.
Save katsyoshi/3d28b9609b7d395826ed93dd8288f0a9 to your computer and use it in GitHub Desktop.
  • os: gentoo linux
  • kernel: Linux rin 5.19.1-gentoo #1 SMP PREEMPT_DYNAMIC Sat Aug 13 22:33:43 JST 2022 x86_64 AMD Ryzen Threadripper 1950X 16-Core Processor AuthenticAMD GNU/Linux
  • X11
  • xremap version: 0.7.2
  • cargo install xremap --features x11
$ xremap --device "Pekaso The Fortitude60 Keyboard" --ignore "Mouse" --ignore "Control" ~/.config/xremap/config.yml
Selecting devices from the following list:
------------------------------------------------------------------------------
/dev/input/event0 : Power Button
/dev/input/event1 : Power Button
/dev/input/event10: Pekaso The Fortitude60 Keyboard System Control
/dev/input/event11: Pekaso The Fortitude60 Keyboard Consumer Control
/dev/input/event12: - GameBall
/dev/input/event13: - GameBall Keyboard
/dev/input/event14: - GameBall
/dev/input/event15: HD Web Camera: HD Web Camera
/dev/input/event16: Burr-Brown from TI               USB Audio CODEC
/dev/input/event2 : HDA NVidia HDMI/DP,pcm=3
/dev/input/event3 : HDA NVidia HDMI/DP,pcm=7
/dev/input/event4 : HDA NVidia HDMI/DP,pcm=8
/dev/input/event5 : HDA NVidia HDMI/DP,pcm=9
/dev/input/event6 : HDA NVidia HDMI/DP,pcm=10
/dev/input/event7 : HDA NVidia HDMI/DP,pcm=11
/dev/input/event8 : Pekaso The Fortitude60 Keyboard
/dev/input/event9 : Pekaso The Fortitude60 Keyboard Mouse
------------------------------------------------------------------------------
Selected devices matching ["Pekaso The Fortitude60 Keyboard"], ignoring ["Mouse", "Control"]:
------------------------------------------------------------------------------
/dev/input/event8 : Pekaso The Fortitude60 Keyboard
------------------------------------------------------------------------------
kkkapplication-client: none (supported: false)
23:10:58.396 INFO wezterm_term::terminalstate::keyboard > key_down: sending "a", Char('a') NONE
23:11:00.445 INFO wezterm_term::terminalstate::keyboard > key_down: sending "\u{1b}[H", Home NONE # CTRL-a を押すとこうなる
23:11:01.085 INFO wezterm_term::terminalstate::keyboard > key_down: sending "\u{1b}[H", Home NONE
23:11:01.357 INFO wezterm_term::terminalstate::keyboard > key_down: sending "\u{1b}[H", Home NONE
23:11:01.541 INFO wezterm_term::terminalstate::keyboard > key_down: sending "\u{1b}[H", Home NONE
23:11:01.813 INFO wezterm_term::terminalstate::keyboard > key_down: sending "\u{1b}[H", Home NONE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment