Skip to content

Instantly share code, notes, and snippets.

@cxx
Last active August 3, 2024 07:53
Show Gist options
  • Save cxx/d0b4e308229ea8ad33c9fda3d619e6bc to your computer and use it in GitHub Desktop.
Save cxx/d0b4e308229ea8ad33c9fda3d619e6bc to your computer and use it in GitHub Desktop.
# Sony Computer Entertainment CECH-ZKB1
virtual_modifiers:
- fn
modmap:
- remap:
btn_right:
held: fn
alone: btn_right
device:
only: 'Wireless Keyboard Mouse'
keymap:
- remap:
Fn-btn_left: btn_middle
- remap:
Fn-xdowncursor: { set_mode: down }
Fn-xupcursor: { set_mode: up }
Fn-xrightcursor: { set_mode: right }
Fn-xleftcursor: { set_mode: left }
mode: neutral
- remap:
Fn-xdowncursor:
- { launch: ["ydotool", "mousemove", "-w", "--", "0", "-1"] }
- { set_mode: neutral }
Fn-xupcursor: { set_mode: up }
Fn-xrightcursor: { set_mode: down_right }
Fn-xleftcursor: { set_mode: down_left }
mode: down
- remap:
Fn-xdowncursor:
- { launch: ["ydotool", "mousemove", "-w", "--", "0", "-1"] }
- { set_mode: neutral }
Fn-xupcursor: { set_mode: up }
Fn-xrightcursor:
- { launch: ["ydotool", "mousemove", "-w", "--", "1", "0"] }
- { set_mode: neutral }
Fn-xleftcursor: { set_mode: left }
mode: down_right
- remap:
Fn-xdowncursor:
- { launch: ["ydotool", "mousemove", "-w", "--", "0", "-1"] }
- { set_mode: neutral }
Fn-xupcursor: { set_mode: up }
Fn-xrightcursor: { set_mode: right }
Fn-xleftcursor:
- { launch: ["ydotool", "mousemove", "-w", "--", "-1", "0"] }
- { set_mode: neutral }
mode: down_left
- remap:
Fn-xdowncursor: { set_mode: down }
Fn-xupcursor:
- { launch: ["ydotool", "mousemove", "-w", "--", "0", "1"] }
- { set_mode: neutral }
Fn-xrightcursor: { set_mode: up_right }
Fn-xleftcursor: { set_mode: up_left }
mode: up
- remap:
Fn-xdowncursor: { set_mode: down }
Fn-xupcursor:
- { launch: ["ydotool", "mousemove", "-w", "--", "0", "1"] }
- { set_mode: neutral }
Fn-xrightcursor:
- { launch: ["ydotool", "mousemove", "-w", "--", "1", "0"] }
- { set_mode: neutral }
Fn-xleftcursor: { set_mode: left }
mode: up_right
- remap:
Fn-xdowncursor: { set_mode: down }
Fn-xupcursor:
- { launch: ["ydotool", "mousemove", "-w", "--", "0", "1"] }
- { set_mode: neutral }
Fn-xrightcursor: { set_mode: right }
Fn-xleftcursor:
- { launch: ["ydotool", "mousemove", "-w", "--", "-1", "0"] }
- { set_mode: neutral }
mode: up_left
- remap:
Fn-xdowncursor: { set_mode: down }
Fn-xupcursor: { set_mode: up }
Fn-xrightcursor:
- { launch: ["ydotool", "mousemove", "-w", "--", "1", "0"] }
- { set_mode: neutral }
Fn-xleftcursor: { set_mode: left }
mode: right
- remap:
Fn-xdowncursor: { set_mode: down }
Fn-xupcursor: { set_mode: up }
Fn-xrightcursor: { set_mode: right }
Fn-xleftcursor:
- { launch: ["ydotool", "mousemove", "-w", "--", "-1", "0"] }
- { set_mode: neutral }
mode: left
default_mode: neutral
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment