[SOLVED] How to disable all default keybinding?
I am building web kiosk with chrome in kiosk mode and decide for i3 from my own post on superuser.com (google how-to-force-xscreensaver-to-stay-on-top)
My problem is the key binding - I need the kiosk to be foolproof. In previous wm (matchbox) xmodmap was great, but with i3 it seems it is completely ignored (for example disabling F11 in xmodmap was unachievable - loaded from .xinitrc). But disabling with bindcode and bindsym could work.
Can I use exhausting bindcode/bindsym configuration where I effectively disable all i3 stuff? Is there a list or command to list all active keybindings? Can I just do something like:
bindsym $mod exec /bin/true
or something similar and be done with it?
I need to make F1-12 keys and their combinations to do nothing and also some other shortcuts (ctrl+n, and combination with mod key). Plus I want to eliminate all i3 special keybinding. With another wm (matchbox) I used xmodmap to render F11 useless (toggle fullscreen) and other F-keys too.
EDIT:
So, xmodmap I didn't make to work with i3, so at least I understood a little bit how i3 config file works (I think), but one last problem remains. I need to disable WinKey+F1-12 and when I try bindsym Mod4+F1 exec --no-startup-id /bin/true
it does not work, for disabling F11 key this does work bindsym F11 exec --no-startup-id /bin/true
so I guess syntax is ok.
EDIT 2:
After a while I returned to this Kiosk problem and finally solved it!
I managed to disable all F-keys, combinations with Win-key (Super_L) and also succeed in disabling Menu key and Right-Click button!
I cannot post files so just snippets - I needed to have this in my i3 config:
bindcode 67 --no-startup-id /bin/true
.
.
.
but it didn't work alone (and not without it also...), but I added this MAGIC:
exec_always --no-startup-id /usr/bin/xmodmap /home/live/.Xmodmap
and in .Xmodmap is:
keycode 67 = NoSymbol
.
.
.
keycode 133= NoSymbol
<<< THIS IS WIN-KEY
and added also this for menu key and right-click:
keycode 135= NoSymbol
<<< I have czech layout (xev is your friend)
pointer = 1 2 32 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 3
thanks to this guy (google up: xmodmap disable right click) - first link
P.S. sorry for formatting, but not my fault - no pre tag...
i3 only uses keybindings that you define in the config file; so if you do not define any, there won't be any. eliminating default keybindings is therefore achieved by just leaving them out. you should be able to use xmodmap to "disable" keys in general, e.g. for f1 `keycode 67 = NoSymbol`.
I made ~/.Xmodmap file with these lines `keycode 67 = NoSymbol` from keycode 67-76 and 95-96 and I am loading it in .xinitrc: `xmodmap ~/.Xmodmap` but still not working - when I hit F11 browser switches between fullscreen and normal mode.
The only thing what works is disabling opening of new window with this in i3 config file: `bindsym ctrl+n exec --no-startup-id /bin/true` but also I need badly to disable those F1-12 keys
Kinda surprised no one bothered to mention that if you're running only one X application, you don't even need a window manager. 'xinit /path/to/application $* -- :1' will start the specified application in X, and nothing else. Only the application's keybindings will take effect.
to ANOKNUSA: yeah, I know about that option, funny I didn't think of it, but maybe there would be another problems like how to force the window to be "maximized" etc. - anyway, with how the setup is now, I am kinda happy.