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

Marking applications on i3 startup

asked 2012-09-11 11:38:26 +0000

spordha gravatar image

Is there a way to mark an application that is fired on i3 startup?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2012-09-11 11:41:22 +0000

Michael gravatar image

updated 2012-09-11 22:38:20 +0000

Depends on the application. You can always use for_window and match the window’s class/title/…

If it’s a terminal emulator you are starting, urxvt (for example) supports urxvt -name foo and you can match on that.

Since you commented that it’s chrome you care about, here is how to match that:

# Make chrome set its class to something distinguishable, also use a separate profile:
exec google-chrome --user-data-dir=/tmp/chrome-test --class=chrometest http://i3wm.org/

# As an example, make that floating:
for_window [class="^chrometest$"] floating enable

All GTK applications support this kind of thing, see http://developer.gnome.org/gtk/stable...

edit flag offensive delete link more

Comments

Maybe I should have elaborated my requirement a bit more. I would like i3 to open a bunch of google-chrome instances each opening a different website. Now I would like to tag each of the instance with a separate tag so that later I can directly jump to that window regardless of where the window lies

spordha gravatar imagespordha ( 2012-09-11 11:44:25 +0000 )edit

Question Tools

Stats

Asked: 2012-09-11 11:38:26 +0000

Seen: 747 times

Last updated: Sep 11 '12