We are working on a kiosk mode in Linux Ubuntu. We would like to define a shortcut by command line (bash script). Is this possible? We would like to setup our kiosk mode automatically by a bash script. So creating a new shortcut via Compiz isn't possible.
Any ideas?
The shortcuts usually depend on the window manager you're using. If you're using Ubuntu you should have Gnome as default windomanager so you could use the
Gnome Control Centerto set the shortcuts you want.Another way, is use a tool like
Xbindkeyswhich is indipendent from the window manager and reads the key configuration from a simple text file usually~/.xbindkeysrc.So you could install
Xbindkeysin your system with:Then in the
bashscript you could add a new entry in the~/xbindkeysrcconfig file to add your shortcut.