You are not logged in.

#1 2010-06-18 14:55:18

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

[Openbox] Disable Hotkeys when playing

Hi,

I've got loads of hotkeys in my Openbox system. I just installed a game in wine and noticed that the Hotkeys still work ingame which is a behaviour i do not want.

Is there an easy/automated way to disable all hotkeys when entering a game and enable them when exiting? Or, maybe easier to realize, a switch within Openbox to do that that i can bind to a key?

For now, I guess I'll write a little bash script that moves rc.xml and updates the openbox config, but if there already is a way, please let me know.

Thanks,
demian

//

#!/bin/bash
#
file=$HOME/.config/openbox/rc.xml
tempfile=$HOME/.config/openbox/rc.xml.tmp
if [ -f $file ];then
  mv $file $tempfile
elif [ -f $tempfile ];then
  mv $tempfile $file
fi
openbox --reconfigure

Last edited by demian (2010-06-18 16:09:11)


no place like /home
github

Offline

Board footer

Powered by FluxBB