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

launch in floating mode

asked 2014-08-21 09:49:07 +0000

Kaligule gravatar image

I would like to do something like

bindsym $mod+k exec keepassX inFloatingMode

This would be handy since I only need this programs (like passwordmanager, calculator ect) for a few seconds and it shouldn't destroy my current windows arrangement. (I don't know whether the scratchpad is a solution, I wasn't able to make this happen.)

Could anyone give me a hint?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-08-21 10:51:39 +0000

cee gravatar image

You could define a rule for your applications (e.g keepassx) like this:

for_window [class="Keepassx"] floating enable

Note the capitol 'K' which is necessary as the rules are case sensitive.
with xprop you can find out the class and instance of any program you would like to define a rule for.

edit flag offensive delete link more

Comments

It works, thank you. It is not exactly what I wanted (since I hoped there was a way to have it only floated when called by my shortcut), but its good enough for me. Might not work for other purposes, though.

Kaligule gravatar imageKaligule ( 2014-08-22 11:43:10 +0000 )edit

I'd like to do exactly this have a schortcut to launch a terminal normaly as a tiled window And have another shortcut to open it as a floating window: Since i'm completly new to i3 a simply solution as: bindsym $mod+shift+enter exec xterm inFloatingMode would be nice

x3nu gravatar imagex3nu ( 2015-04-21 16:12:56 +0000 )edit

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`

cee gravatar imagecee ( 2015-04-22 09:49:21 +0000 )edit

I took the freedom to create a question from your comment (https://faq.i3wm.org/question/5866/two-keybindings-for-starting-terminal-normally-and-floating/?answer=5867#post-id-5867) to preserve the question-answer format of this site.

cee gravatar imagecee ( 2015-04-22 10:13:21 +0000 )edit

Question Tools

Stats

Asked: 2014-08-21 09:49:07 +0000

Seen: 577 times

Last updated: Aug 21 '14