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

Two keybindings for starting terminal normally and floating

asked Apr 22 '15

cee gravatar image

updated Apr 22 '15

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?

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

1 answer

Sort by » oldest newest most voted
0

answered Apr 22 '15

cee gravatar image

You could start your terminal with a given name.
e.g.

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.

Question Tools

Stats

Asked: Apr 22 '15

Seen: 138 times

Last updated: Apr 22