The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
2

How to disable shortcuts in fullscreen app?

asked 2014-05-07 12:03:24 +0000

aft gravatar image

Hello, how can I disable some or all shotcuts in fullscreen app? i.e.: games

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-05-08 10:43:40 +0000

Adaephon gravatar image

You can use a mode to achieve that:

mode "passthrough" {
    bindsym Mod4+Escape mode "default"
}
bindsym Mod4+Escape mode "passthrough"

Pressing Mod4+Escape will enter the mode "passthrough" in which only Mod4+Escape will be available as binding to return to the "default" mode.

If you want to enter the mode automatically you could then use a short wrapper script, passthrough.sh:

#!/bin/sh
i3-msg 'mode "passthrough"'
"$@"
i3-msg 'mode "default"'

Instead of game -option1 -option2 you then can use passthrough.sh game -option1 -option2 to start the game.

edit flag offensive delete link more

Comments

This is a powerful technique. If you're familiar with Emacs and how it uses Ctrl-z and z, I'm interested in how I can use the mouse with one hand (my left) and unmodified keys with the other (my right). Modes in i3 are cool.

KJ44 gravatar imageKJ44 ( 2014-05-08 17:21:33 +0000 )edit

Question Tools

Stats

Asked: 2014-05-07 12:03:24 +0000

Seen: 283 times

Last updated: May 08 '14