Open dufferzafar opened 4 years ago
Same here
Traceback (most recent call last): File "/usr/local/bin/xkeysnail", line 6, in <module> cli_main() File "/usr/local/lib/python3.8/dist-packages/xkeysnail/__init__.py", line 61, in cli_main eval_file(args.config) File "/usr/local/lib/python3.8/dist-packages/xkeysnail/__init__.py", line 5, in eval_file with open(path, "rb") as file: FileNotFoundError: [Errno 2] No such file or directory: '' Exception ignored in: <function InputDevice.__del__ at 0x7feeca570700> Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/evdev/device.py", line 159, in __del__ File "/usr/local/lib/python3.8/dist-packages/evdev/device.py", line 304, in close File "/usr/local/lib/python3.8/dist-packages/evdev/eventio_async.py", line 54, in close File "/usr/lib/python3.8/asyncio/events.py", line 722, in get_event_loop_policy File "/usr/lib/python3.8/asyncio/events.py", line 715, in _init_event_loop_policy ImportError: sys.meta_path is None, Python is likely shutting down
K("C+Btn_RIGHT")
As I understand, to avoid the error, it should be not +
there but -
.
However, I'm still failing to use a map like this:
K("LSuper-BTN_LEFT"): K("BTN_MIDDLE"),
It throws no errors but just doesn't work (clicking the Left button with the left Super key presses acts just like the regular Left button).
I can't seem to figure out to bind mouse buttons.
Are you using --device
to make sure it binds to your mouse? By default we only work with keyboards and purposely exclude mice...
@joshgoebel
Are you using
--device
to make sure it binds to your mouse?
Could you please suggest what should I pass here for a touchpad?
You'd have to look at your device list when you run xkeysnail and figure out which device it is and then specify that with --device
... evtest
might help you test to make sure you find the right device.
@joshgoebel , thanks, it works :)
For the reference, --devices /dev/input/event3 /dev/input/event4
did it, where event3
is "AT Translated Set 2 keyboard", and event4
is "PS/2 Generic Mouse" (and not /dev/input/event5
, which is "SynPS/2 Synaptics TouchPad").
Touchpads can't work with xkeysnail because it doesn't allow the cursor movement thru, so your touchpad would only click and not move....
I can't seem to figure out to bind mouse buttons. Here is what I've tried (and it doesn't work):
In this case nothing happens:
While in this case, error happens: