mirror of
https://github.com/RecentRunner/interception-vimproved-personal.git
synced 2026-06-04 16:19:18 -06:00
* ivimp-1: refactor for generic handling of keys * Get CAPS and SPACE code as close to each other as possible. * Remove `caps_is_esc` and use `caps_tapped_should_emit` instead * Use `continue` keyword after successfully handling the event (work towards daisy chaining) * wip: started moving to classes * feat: Now additional mappings can be easily added * Refactored to OOP C++ classes * Each key handles its own processing.. these types available: * tap and hold for layer mappings * tap and hold for modifier key * feat: extend to cover mouse buttons (not impl) * fix: combos need to be emitted with structs * fix: combos emitting doesn't work with typedef Cpp-like constructs * fix: enable adding other layer keys except KEY_SPACE (bug on checking `input->code == KEY_SPACE` hardcoded) * feat: helper function for building events * chore: rename `event` to `Event`, cleanup cerr output * fix: layer+modifier+input * you can try it out in firefox in input box, try space+caps+h/l to move around words - if ctrl+h for history is emitted, it's a fail * chore: Update README.md - configurability
32 lines
779 B
Makefile
32 lines
779 B
Makefile
CXXFLAGS += -std=c++20 -D_POSIX_C_SOURCE=199309L -O3 -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-type-limits
|
|
TIMEOUT ?= 10
|
|
|
|
INSTALL_FILE := /opt/interception/interception-vimproved
|
|
|
|
# the build target executable:
|
|
TARGET = interception-vimproved
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(TARGET).cpp
|
|
$(CXX) $(CXXFLAGS) -o $(TARGET) $(TARGET).cpp
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(TARGET) $(TARGET).o
|
|
|
|
.PHONY: build
|
|
build:
|
|
g++ -o interception-vimproved interception-vimproved.cpp
|
|
|
|
.PHONY: 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.
|
|
install -D --strip -T $(TARGET) $(INSTALL_FILE)
|
|
|
|
.PHONY: test
|
|
test:
|
|
CXXFLAGS=-DVERBOSE make
|
|
make install
|
|
timeout $(TIMEOUT) udevmon -c /etc/udevmon.yaml
|