userguide: point out explicitly how to use startup-notifications

next
Michael Stapelberg 2012-09-05 21:10:26 +02:00
parent 32d4dbf70f
commit a598544b5a
1 changed files with 16 additions and 0 deletions

View File

@ -604,6 +604,22 @@ logfile first (see http://i3wm.org/docs/debugging.html). It includes more
details about the matching process and the windows actual class, instance and details about the matching process and the windows actual class, instance and
title when starting up. title when starting up.
Note that if you want to start an application just once on a specific
workspace, but you dont want to assign all instances of it permanently, you
can make use of i3s startup-notification support (see <<exec>>) in your config
file in the following way:
*Start iceweasel on workspace 3 (once)*:
-------------------------------------------------------------------------------
# Start iceweasel on workspace 3, then switch back to workspace 1
# (Being a command-line utility, i3-msg does not support startup notifications,
# hence the exec --no-startup-id.)
# (Starting iceweasel with i3s exec command is important in order to make i3
# create a startup notification context, without which the iceweasel window(s)
# cannot be matched onto the workspace on which the command was started.)
exec --no-startup-id i3-msg 'workspace 3; exec iceweasel; workspace 1'
-------------------------------------------------------------------------------
=== Automatically starting applications on i3 startup === Automatically starting applications on i3 startup
By using the +exec+ keyword outside a keybinding, you can configure By using the +exec+ keyword outside a keybinding, you can configure