The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

Two keybindings for starting terminal normally and floating

asked 2015-04-22 10:02:43 +0000

cee gravatar image

updated 2015-04-22 10:05:25 +0000

I would like to have two different keybindings for starting a terminal once normally in tiling mode, and once as floating window.

How could I achieve this?

This question was extracted from a comment from @x3nu on this thread.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-04-22 10:11:22 +0000

cee gravatar image

You could start your terminal with a given name.

urxvt -name floating

and then add a rule to your i3config.

for_window [class="URxvt" instance"floating"] floating enable

In your i3 config file it would look something like this:

bindsym $sup+3 exec urxvt
bindsym $sup+4 exec urxvt -name floating
for_window [class="URxvt" instance="floating"] floating enable border pixel 3

This works with xterm, urxvt and might also work for other programs where you can set a name or the window title.

edit flag offensive delete link more

Question Tools


Asked: 2015-04-22 10:02:43 +0000

Seen: 138 times

Last updated: Apr 22