Merge pull request #2 from sanchez2210/master

This commit is contained in:
Nikola Marić
2021-04-06 20:15:47 +02:00
committed by GitHub
4 changed files with 65 additions and 60 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
.ccls-cache .ccls-cache
*.swp *.swp
interception-vimproved

View File

@@ -15,10 +15,14 @@ $(TARGET): $(TARGET).cpp
clean: clean:
rm -f $(TARGET) $(TARGET).o rm -f $(TARGET) $(TARGET).o
.PHONY: build
build:
g++ -o interception-vimproved interception-vimproved.cpp
.PHONY: install .PHONY: install
install: install:
# If you have run `make test` then do not forget to run `make clean` after. Otherwise you may install with debug logs on. # If you have run `make test` then do not forget to run `make clean` after. Otherwise you may install with debug logs on.
install -D --strip -T $(INSTALL_FILE) $(TARGET) install -D --strip -T $(TARGET) $(INSTALL_FILE)
.PHONY: test .PHONY: test
test: test:

118
README.md
View File

@@ -16,73 +16,73 @@ Use it with a job specification for `udevmon` (from [Interception Tools](https:/
```yaml ```yaml
- JOB: "intercept -g $DEVNODE | /opt/interception/interception-vimproved | uinput -d $DEVNODE" - JOB: "intercept -g $DEVNODE | /opt/interception/interception-vimproved | uinput -d $DEVNODE"
DEVICE: DEVICE:
EVENTS: EVENTS:
EV_KEY: EV_KEY:
[ [
KEY_SPACE, KEY_SPACE,
KEY_1, KEY_1,
KEY_2, KEY_2,
KEY_3, KEY_3,
KEY_4, KEY_4,
KEY_5, KEY_5,
KEY_6, KEY_6,
KEY_7, KEY_7,
KEY_8, KEY_8,
KEY_9, KEY_9,
KEY_0, KEY_0,
KEY_MINUS, KEY_MINUS,
KEY_EQUAL, KEY_EQUAL,
KEY_F1, KEY_F1,
KEY_F2, KEY_F2,
KEY_F3, KEY_F3,
KEY_F4, KEY_F4,
KEY_F5, KEY_F5,
KEY_F6, KEY_F6,
KEY_F7, KEY_F7,
KEY_F8, KEY_F8,
KEY_F9, KEY_F9,
KEY_F10, KEY_F10,
KEY_F11, KEY_F11,
KEY_F12, KEY_F12,
KEY_B, KEY_B,
KEY_BACKSPACE, KEY_BACKSPACE,
KEY_E, KEY_E,
KEY_ESC, KEY_ESC,
KEY_D, KEY_D,
KEY_DELETE, KEY_DELETE,
KEY_Y, KEY_Y,
KEY_U, KEY_U,
KEY_I, KEY_I,
KEY_O, KEY_O,
KEY_HOME, KEY_HOME,
KEY_PAGEDOWN, KEY_PAGEDOWN,
KEY_PAGEUP, KEY_PAGEUP,
KEY_END, KEY_END,
KEY_H, KEY_H,
KEY_J, KEY_J,
KEY_K, KEY_K,
KEY_L, KEY_L,
KEY_LEFT, KEY_LEFT,
KEY_DOWN, KEY_DOWN,
KEY_UP, KEY_UP,
KEY_RIGHT, KEY_RIGHT,
KEY_M, KEY_M,
KEY_COMMA, KEY_COMMA,
KEY_DOT, KEY_DOT,
KEY_MUTE, KEY_MUTE,
KEY_VOLUMEDOWN, KEY_VOLUMEDOWN,
KEY_VOLUMEUP, KEY_VOLUMEUP,
KEY_CAPSLOCK, KEY_CAPSLOCK,
KEY_LEFTCTRL, KEY_LEFTCTRL,
] ]
``` ```
Alternatively, you can run it with `udevmon` straight, just make sure to be negatively nice (`nice -n -20 udevmon -c /etc/udevmon.yml`) so your input is always available. Alternatively, you can run it with `udevmon` straight, just make sure to be negatively nice (`nice -n -20 udevmon -c /etc/udevmon.yml`) so your input is always available.

Binary file not shown.