sezanzeb / input-remapper

🎮 ⌨ An easy to use tool to change the behaviour of your input devices.
GNU General Public License v3.0
3.76k stars 155 forks source link

Macro for App Switcher while holding ALT-TAB ? #870

Open matt22207 opened 6 months ago

matt22207 commented 6 months ago

Hi, I have a macro keypad setup for shortcut keys, and I can't figure out how to get a proper ALT-TAB combo for app switching. My basic attempt is KEY_LEFTALT + KEY_TAB which works properly on a single press of the key to switch between apps. However when using my normal keyboard, I can continue holding the ALT key (after releasing TAB) and then subsequent presses of TAB or arrow keys will cycle through the open apps. I've tried a few combinations using hold_keys(), etc, but I don't understand and can't figure this out myself.

So, I'm trying to reproduce:

Would someone mind helping me figure out the proper macro to use for this?

Thanks!

GitSparTV commented 4 months ago

Came across this too. I set app switching to Control + Tab (in Ubuntu settings) and it creates unwanted behaviour of triggering Control + Tab shortcut in other applications (VsCode/Chrome switches between tabs). So I have to bind app switching to Alt + Tab and rebind Control + Tab in Input Remapper to Alt + Tab. It switches once as matt described. If you hold Control + Tab it will start scrolling through. App roulette!