You can manually start the apps configured as .desktop entries in your autostart directory using dex. For instance:
dex --autostart --environment sway
Invoke the above from your Sway config and you're good to go.
Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.
You can manually start the apps configured as .desktop entries in your autostart directory using dex. For instance:
dex --autostart --environment sway
Invoke the above from your Sway config and you're good to go.
What are you trying to run? Could you add it to bashrc?
I want my terminal to start on workspace one. Since this is default behavior of adding 'exec ' to my sway config, this requirement is satisfied. I also want Firefox to start up on workspace 2. And I would like another terminal to open on workspace 10, but to automatically run cmus, a terminal music player.
In case this thread turns up a google search, or anyone is keeping score, I think I more or less managed to achieve what I wanted by putting this is in my config:
assign [class="Firefox-esr"] "2"
exec wezterm -e cmus
exec swaymsg [app_id="org.wezfurlong.wezterm"] focus
exec swaymsg move container to workspace "10"
exec firefox
the only thing i don't love is that if quit cmus, it closes the window instead of bringing me back to the shell. maybe i have so chain commands or something, i don't know. i'm happy to have made it this far. Another thing is I don't know if it's possible to distinguish between the specific instance of wezterm that's running cmus, and the other one i want running on workspace 1.