In i3wm how can I open programs on another workspace at startup?

Niux

I've tried multiple ways in my config file to get chromium to open on $ws2 but it just keeps opening on $ws1 on startup.

Alok-P

First you have to find the WM_CLASS(STRING) from xprop. Open xprop and click on the target window you'll see the information about that window. Find WM_CLASS(STRING) second string(for i3wm) then goto the config file of i3 wm .config/i3/config and define the rule like this for_window [class="Chromium"] move to workspace $ws2 for_window [class="TelegramDesktop"] move to workspace $ws3 Here replace the class="String" with the string we found before with xprop. enter image description here

enter image description here

Alternatively, follow the instructions in section 4.17 of the i3 User’s Guide and insert into your config file an assign declaration e.g. assign [class="Chromium"] $ws2. This will open the program directly on the specified workspace. For less well behaved programs like Spotify the for_window ... move to workspace ... method is required to move the program after it has opened, however.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Open a specific application in a *new* workspace with i3wm

i3wm | Open application on startup if not in weekend

How can I get a startup application to run in another workspace other than #1?

Xscreensaver on startup, i3wm

How can I make Shutter open at startup?

How can I make programs start at startup in Windows Vista?

change i3wm workspace / windows status to urgent

i3wm doesn't move Inkscape to workspace assigned

How can I import a workspace as a dependency in another go repository?

How can I write a Swedish letter using i3wm as a window manager on ubuntu?

How can I adjust the screen brightness in i3wm on Ubuntu 16.04?

in i3wm how can I set the default layout for all works spaces

How can I make i3wm bind multitouch gesture to change desktop?

How can I enable AnyDesk Unattended Login on i3WM?

i3wm: how to configure touchpad?

Can I drag a window onto another workspace?

How to display specific workspace to selected screen on i3 startup?

How can I make Onboard, the visual keyboard, open in Ubuntu on startup?

How can I open files with my program on it's startup

How can I make coinprice-indicator open from startup?

On startup, how can I configure Terminal.app to open in fullscreen?

How can I have a plain text file open on startup? (lubuntu)

Open JavaFX sub window in tiling mode (i3wm)

i3wm open 2 applications with one keybinding?

How can I run the programs in my startup folder only on certain days of the week?

How do I know which Workspace I have open in Xcode?

How can I build a specific package in a workspace?

How can I save workspace as... in eclipse?

How can I fix this Workspace glitch?