this post was submitted on 03 Jul 2023
3 points (100.0% liked)
Linux Gaming
15818 readers
76 users here now
Gaming on the GNU/Linux operating system.
Recommended news sources:
Related chat:
Related Communities:
Please be nice to other members. Anyone not being nice will be banned. Keep it fun, respectful and just be awesome to each other.
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I use highly customizable tiling manager, so I more or less automated these things where I switch bindings depending on what window is focussed. I think though that if you know how to rebind the mouse click manually you can just automate it through bash script.
Basically First line, rebind everything Second line launch the game Third line, rebind things back.
I am using steam (yeah, I'm sorry)
I guess I could pgrep the games process and if it isn't present then kill the xbindkeys.
EDIT: i found a mod that allows you to bind to mouse buttons 4 and 5 in game.
Maybe you can do something like that in the launch options:
xbindkeys <stuff> && %command% && pskill xbindkeys
I don't remember the game run command but it should be similar to
%command%
or something...It is exactly
%command%
I useprime-run %command%
I dunno, i have tried %command% and it just doesn't work for me. Maybe I did something wrong. Whatever, I don't need this anymore. Thanks for trying to help