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

Toggle i3's Listening Behavior

asked 2013-04-21 23:02:30 +0000

Matt gravatar image

I was wondering if it would be possible to create a keybinding that would toggle on/off all of i3's keybindings (except the same toggle key)?

The reason I am asking is that I think this would be a good way to implement a sort of "video game mode" where you wouldn't need to worry about your i3 keybindings clobbering those of the application.

The most ideal situation would be the ability to add a line in the config file like:

i3_listen_toggle $mod+t

Though I am not opposed to a solution using i3-msg and scripting.

Thank you!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-04-22 09:17:35 +0000

vandannen gravatar image

You could create a binding mode for that with no keybinding defined except for switching back to default mode:

mode "pass-through" {
    bindsym $mod+t mode "default"
}

bindsym $mod+t mode "pass-through"
edit flag offensive delete link more

Comments

This works perfectly! Thanks so much!

Matt gravatar imageMatt ( 2013-04-22 11:05:43 +0000 )edit

I would like this mode to be triggered on specific window instances. For isntance my vim shortcuts would be the same as i3 and each time I focused a vim terminal, I would like to go in passthrough mode. Is that possible ? that is to react on focus events ?

teto gravatar imageteto ( 2013-05-15 11:37:39 +0000 )edit

Currently there is no ipc event to react to when a window is focused, so I do not know a nice solution for this.

vandannen gravatar imagevandannen ( 2013-05-24 12:12:16 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2013-04-21 23:02:30 +0000

Seen: 512 times

Last updated: Apr 22 '13