LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This 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


Reply
  Search this Thread
Old 02-11-2020, 05:19 AM   #1
JonBardo
LQ Newbie
 
Registered: Dec 2018
Posts: 13

Rep: Reputation: Disabled
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?

Thanks in advance
 
Old 02-11-2020, 03:43 PM   #2
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,006

Rep: Reputation: Disabled
Quote:
Originally Posted by JonBardo View Post
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)
 
1 members found this post helpful.
Old 02-12-2020, 06:15 AM   #3
JonBardo
LQ Newbie
 
Registered: Dec 2018
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Aeterna View Post
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)
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.

Last edited by JonBardo; 02-12-2020 at 06:43 AM.
 
Old 07-09-2020, 12:56 PM   #4
Northwood
LQ Newbie
 
Registered: Jul 2020
Posts: 1

Rep: Reputation: Disabled
Workaround to this issue

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.
 
  


Reply

Tags
arch, virtualbox



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard issue: Where to store dead key / multi key combinations? hw99 Linux - Desktop 7 01-29-2020 10:49 AM
Tcpdump : Capturing TCP packets with particular flag combinations apit Linux - Networking 9 09-20-2008 09:45 PM
gnome remote desktop does not recognize AltGr key combinations andreseso Linux - Newbie 1 11-19-2004 01:37 AM
key combinations to launch apps? will103 Linux - Software 2 09-11-2004 02:55 PM
Capturing video with Cinelerra works, capturing video with Xawtv doesn't! seaelf Slackware 0 06-27-2004 05:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration