Timeline for i3wm : start applications on specific workspaces when i3 starts
Current License: CC BY-SA 3.0
18 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 25, 2020 at 11:03 | comment | added | Akhil | how to open it in tabbed mode? | |
| May 21, 2020 at 13:05 | comment | added | Akhil | how to place multiple windows in horizontal? | |
| Feb 1, 2020 at 9:48 | comment | added | joelostblom | Assigning workspaces work more reliably for me. | |
| Jan 10, 2020 at 12:59 | comment | added | Eric Eskildsen | For Chrome, I thought it wasn't respecting my workspace at first because it was going into a tab on the wrong workspace, where a Chrome instance was already open. (This was after i3 had fully loaded, not in my config.) Using new-window fixed it: i3-msg 'workspace 2; exec google-chrome --new-window https://example.com' | |
| Jan 8, 2020 at 15:06 | comment | added | pdoherty926 | I'm seeing the Chrome behavior described above affect Electron applications. This isn't surprising, but I thought it'd be worth mentioning for others finding their way here. | |
| Mar 22, 2019 at 7:15 | comment | added | Luís de Sousa | You might wish to update this answer. This formulation opens all applications in the same workspace, the one defined in the first i3-msg command in the config file. This might have functioned in older versions of i3, but seems no longer valid. | |
| Jan 20, 2018 at 20:57 | comment | added | Antony Thomas | @Wieland layout saving/restoring is different from auto start; the former only deals with setting up swallow traps for program windows while the latter starts an instance of an application as the OP requested. | |
| Jun 19, 2017 at 22:31 | comment | added | danijar | @dragon788 I ended up opening all other applications first then switching to the workspace where I want chrome to show up. That way I don't introduce any unnecessary delay. | |
| Jun 19, 2017 at 22:23 | comment | added | dragon788 | @danijar I would imagine it is because the amount of time it takes to startup Chrome exceeds the amount of time it takes to switch to workspace 4 and open urxvt. Google is smart and knows that the sooner it can get you a window the better, but they do this by returning "success" to the executing terminal/application (eg exec) ASAP and then loading the browser in a forked process, which is why exec thinks it was done with Chrome and it moved to the next line in your config. Add && sleep 3 and I'd bet Chrome opens in workspace 3. May need to go as high as 5 depending on # of extensions. | |
| Apr 16, 2016 at 19:42 | comment | added | jasonwryan | @Wieland you should just edit that in to the answer... | |
| Apr 16, 2016 at 15:32 | comment | added | Wieland | Note that i3 now provides layout saving/restoring features that make it unnecessary to call i3-msg in most cases. | |
| Jun 23, 2015 at 20:05 | comment | added | danijar | Works for most apps. However google-chrome-stable always opens on the last workspace in my setup. For example, with this configuration, Chrome opens on workspace 4 next to htop. | |
| Oct 30, 2014 at 16:15 | comment | added | cmc | This just opens everything in Workspace 1 for me. | |
| Oct 26, 2013 at 4:43 | vote | accept | Gradient | ||
| Oct 26, 2013 at 4:43 | history | bounty awarded | Gradient | ||
| Oct 24, 2013 at 5:05 | comment | added | Gradient | Yes, a line like exec --no-startup-id i3-msg 'workspace 1; exec firefox; workspace 2; exec urxvt; workspace 1' works. But, I find it a little odd to use exec on i3-msg which is a command meant to execute i3 commands. Why can't I directly write workspace 1; exec firefox; workspace 2; exec urxvt; workspace 1 in my config file? | |
| Oct 22, 2013 at 7:17 | history | edited | jasonwryan | CC BY-SA 3.0 | Seems things have changed... |
| Oct 22, 2013 at 6:14 | history | answered | jasonwryan | CC BY-SA 3.0 |