Disable host from capturing super key combinations [VirtualBox]
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Disable host from capturing super key combinations [VirtualBox]
Hello,
I've been playing with arch linux for a few days in Virtualbox. I'm trying to set up my own DE using bspwm, tuning my config files and all of that to maybe take the step and finally dualbooting or maybe even installing Arch linux as my main OS.
The problem is I'm using the super key as the root to all my hotkeys in sxhkd, so for example when I press super + l to move my focus inside the vm, the host also captures it and locks the screen.
Is there a way to disable windows from capturing this hotkeys when I'm inside virtualbox?
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,006
Rep:
Quote:
Originally Posted by JonBardo
Hello,
I've been playing with arch linux for a few days in Virtualbox. I'm trying to set up my own DE using bspwm, tuning my config files and all of that to maybe take the step and finally dualbooting or maybe even installing Arch linux as my main OS.
The problem is I'm using the super key as the root to all my hotkeys in sxhkd, so for example when I press super + l to move my focus inside the vm, the host also captures it and locks the screen.
Is there a way to disable windows from capturing this hotkeys when I'm inside virtualbox?
Thanks in advance
maybe try to use keys simultaneously?
when I press winkey only it invokes menu in the host and client.
when I press winkey + l it locks client only in KDE (slackware), it invokes menu in MX Linux.
But it is NOT locking host
While you can separate mouse actions from host and client, you can't separate keyboard (as far as I know, maybe wrong though)
So you have three options:
1) press keys really simultaneously
2) re-map hot keys
3) uninstall VBoxAdditionsLinux from your guest (not needed for full screen client but you will loose copy/paste options and will have to replace vboxsf with samba or nfs setup)
when I press winkey only it invokes menu in the host and client.
when I press winkey + l it locks client only in KDE (slackware), it invokes menu in MX Linux.
But it is NOT locking host
While you can separate mouse actions from host and client, you can't separate keyboard (as far as I know, maybe wrong though)
So you have three options:
1) press keys really simultaneously
2) re-map hot keys
3) uninstall VBoxAdditionsLinux from your guest (not needed for full screen client but you will loose copy/paste options and will have to replace vboxsf with samba or nfs setup)
Hi, when I press both simultanously windows doesn't capture it, however, the guest machine doesn't either.
I didn't even install Guest Additions in this machine, so I don't think that's gonna help.
I think all that's left is to remap my hotkeys, I think the function key is pretty much free so it may be a nice replacement for the super key.
Edit: I just found out that the fn key isn't captured like a normal key, so I'm gonna have to stick to the super key, because any other key feels too awkward.
In the Virtualbox window, above the vm, click Input, Keyboard settings and make sure Auto capture keyboard is checked.
To use super (windows) key, for example to open a terminal in bspwm, press left control key (L-Ctrl), press super key and while keeping it pressed, release L-Ctrl, now press Enter.
To change to another workspace: press L-Ctrl, then press the key for that workspace, and while keeping it pressed, release L-Ctrl and press super.
Hope this help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.