qzed / linux-surface-pen-button-remap Goto Github PK
View Code? Open in Web Editor NEWRemapper for the Bluetooth (Eraser) Button of the Surface Pen (Work in Progress).
License: MIT License
Remapper for the Bluetooth (Eraser) Button of the Surface Pen (Work in Progress).
License: MIT License
Allow custom key-mappings/configuration.
I just realized that single: vec![EV_KEY::KEY_LEFTCTRL, EV_KEY::KEY_C],
doesn't do CTRL+C. I only get 'c' instead of CTRL+C (Copy). I also tried with RIGHTCTRL but that doesn't work either.
Great idea but cannot get it to work on my SurfacePro9
Output i keep getting:
surface-pen-button[17261]: Error: Device not found
systemd[1]: surface-pen-button.service: Main process exited, code=exited, status=1/FAILURE
Remap config used:
[device]
vendor = 0x45e
product = 0x9ae
[actions]
single = ["KEY_LEFTMETA", "KEY_S"]
double = ["KEY_LEFT"]
hold = ["KEY_LEFTCTRL", "KEY_Q"]
This is evtest output. I have used them all but the one i think i should use is 12, see below evtest output:
Available devices:
/dev/input/event0: Lid Switch
/dev/input/event1: Intel Touch Host Controller
/dev/input/event2: Intel Touch Host Controller
/dev/input/event3: Intel Touch Host Controller
/dev/input/event4: Intel Touch Host Controller Touchscreen
/dev/input/event5: Intel Touch Host Controller
/dev/input/event6: Intel Touch Host Controller
/dev/input/event7: Intel Touch Host Controller Stylus
/dev/input/event8: Intel Touch Host Controller
/dev/input/event9: gpio-keys
/dev/input/event10: gpio-keys
/dev/input/event11: Microsoft Surface POS Tablet Mode Switch
/dev/input/event12: Microsoft Surface 045E:09AE Keyboard
/dev/input/event13: Microsoft Surface 045E:09B0 Keyboard
/dev/input/event14: Microsoft Surface 045E:09B0
/dev/input/event15: Microsoft Surface 045E:09B0
/dev/input/event16: IPTS Touch
/dev/input/event17: IPTS Stylus
/dev/input/event18: Microsoft Surface 045E:09AF Mouse
/dev/input/event19: Microsoft Surface 045E:09AF Touchpad
/dev/input/event20: Microsoft Surface 045E:09AF UNKNOWN
/dev/input/event21: Microsoft Surface 045E:09AF UNKNOWN
/dev/input/event22: Video Bus
/dev/input/event23: HDA Intel PCH HDMI/DP,pcm=3
/dev/input/event24: HDA Intel PCH HDMI/DP,pcm=7
/dev/input/event25: HDA Intel PCH HDMI/DP,pcm=8
/dev/input/event26: HDA Intel PCH HDMI/DP,pcm=9
Select the device event number [0-26]: 12
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x45e product 0x9ae version 0x111
Input device name: "Microsoft Surface 045E:09AE Keyboard"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 1 (KEY_ESC)
Event code 2 (KEY_1)
Event code 3 (KEY_2)
Event code 4 (KEY_3)
Event code 5 (KEY_4)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.