The Predator key sends keyboard usage 0xC9, which lies outside the logical range the keyboard declares, so the kernel never emits an input event for it. It is also reported on vendor report 4 of USB interface 2 (04 81 ff on press). predatord now listens there and opens the app in the active graphical session via the user's systemd manager. The action is configurable on the System page: open the app, switch to the next performance mode, or do nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
453 B
Python
13 lines
453 B
Python
"""Predator Control – a PredatorSense replacement for the Acer Predator Helios 16 (PH16-71) on Linux."""
|
||
|
||
import os
|
||
|
||
__version__ = "1.3.0"
|
||
|
||
APP_NAME = "Predator Control"
|
||
RUN_DIR = os.environ.get("PREDATOR_CONTROL_RUN_DIR", "/run/predator-control")
|
||
SOCKET_PATH = RUN_DIR + "/control.sock"
|
||
STATE_PATH = RUN_DIR + "/state.json"
|
||
CONFIG_DIR = os.environ.get("PREDATOR_CONTROL_CONFIG_DIR", "/etc/predator-control")
|
||
CONFIG_PATH = CONFIG_DIR + "/config.json"
|