Open a specific workspace on i3 when launching a specific app

by Grybouilli   Last Updated August 14, 2019 19:02 PM

This week, I finally deciced to write in my i3 config file. Since I use firefox a lot I defined a shortcut for it (bindsym $mod+Shift+f exec firefox) and assigned firefox to a workspace (assign [class="Firefox"]$ws2).

My question is: what can I add to the line bindsym $mod+Shift+f exec firefox so that when I open firefox, the focus changes to the corresponding workspace (here, $ws2)?

Tags : i3-wm

Related Questions