rbreaves / kinto

Mac-style shortcut keys for Linux & Windows.
http://kinto.sh
GNU General Public License v2.0
4.48k stars 214 forks source link

In Kali Linux, I used to shift between windows via option+tab now I have to option+shift+tab ; how do I revert? #870

Open DeepakTivari opened 3 months ago

DeepakTivari commented 3 months ago

In Kali Linux, On my Mac I used to switch between windows via option+tab now I have to option+shift+tab ; what do I change in ~/.config/kinto/kinto.py to switch windows via option+tab on my Mac

thank you

RedBearAK commented 3 months ago

@DeepakTivari

I may be off-base here, but have you tried Cmd+Tab? Option+Tab should be getting blocked by the Kinto config, because task switching on macOS is done with Cmd+Tab (or physical Alt+Tab on a PC keyboard).

On the other hand, Shift+Option+Tab isn't actively blocked in the config, so that still works. But the point of the config is to make things work as if you were using macOS. Cmd+Tab, and Shift+Cmd+Tab should do the normal task switching. In the config these are shown here as "RC-Tab" and "RC-Shift-Tab", which are remapped onto "Alt-Tab" and "Alt-Shift-Tab".

https://github.com/rbreaves/kinto/blob/4a3bfe79e2578dd85cb6ff2ebc5505f758c64ab6/linux/kinto.py#L554-L556

Where it says pass_through_key here is actually a way to block the Alt+Tab (Option+Tab if you're on an Apple keyboard) shortcut. You could just comment out that line and restart Kinto, if you really want to use Option+Tab again. But normally it's much less awkward to use Cmd+Tab.

DeepakTivari commented 3 months ago

But normally it's much less awkward to use Cmd+Tab

Cmd+Tab is used for me to switch between applications running on my Mac, even when I am working inside the Kali Linux VM, hence I use the Option+Tab key to switch windows inside the Kali Linux VM

Commenting out the "pass_through_key" line works for me, thank you very much!

RedBearAK commented 3 months ago

@DeepakTivari

Cmd+Tab is used for me to switch between applications running on my Mac, even when I am working inside the Kali Linux VM, hence I use the Option+Tab key to switch windows inside the Kali Linux VM

Ah, that's a situation where it can actually make sense to stick to the Option+Tab for switching inside the VM. On my Linux laptops I am fortunately able to use trackpad gestures to just swipe away from the VM in a different workspace, that way the Cmd+Tab equivalent shortcut is usable in both the host and the guest.

I'm sure you know this but you can usually get the VM to release the keyboard with a shortcut combo like Ctrl+Alt. This can also allow the same task switching combo to be used in the guest and the host. But it can be a bit awkward. You usually have to click inside the VM window to get it to grab the keyboard again.

You should close this if your issue is resolved.