You are not logged in.
I play a game on my endeavourOS that uses the Ctrl+F3 key combination. But when I press the combination while in game, the game gets minimized and the focus goes to the workspace that's bound to the xfce desktop.
How do i disable this key combination automatically when the game is in focus?
Offline
I used to have two configs that I would switch between work and gaming, sort of like a keyboard profile. As a simple solution, you can create two aliases in ~/.bash_aliases for the following commands:
# Unbind the keys:
xfconf-query --channel xfce4-keyboard-shortcuts --property '/xfwm4/default/<Primary>F3' --set ''
# Rebind the keys (assuming the action was indeed 'workspace_3_key':
xfconf-query --channel xfce4-keyboard-shortcuts --property '/xfwm4/default/<Primary>F3' --set 'workspace_3_key'
The way that you would execute these commands is entirely up to you. You can just type in the alias for the first command before your gaming session, you could create a launcher on the panel for toggling it, you could create a new keybinding for switching between the two modes, etc.
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 533.2 KiB (Peak: 544.32 KiB) ]