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 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?

Disclaimer:
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
0

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

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.

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 138 times

Last updated: Apr 22