4
submitted 5 months ago* (last edited 5 months ago) by Hammerheart@programming.dev to c/linux4noobs@programming.dev

I have been using sway (basically i3 for Wayland) instead of a traditional desktop environment because it really makes a difference in my laptops performance.

But apparently sway ignores .desktop files which was how i was autostarting things on KDE.

Is the best way to handle this by going through the sway config? If not, how would you do it.

Bonus points if you can tell me how to get the autostart programs to also open in specific workspaces.

top 3 comments
sorted by: hot top controversial new old
[-] Balinares@pawb.social 4 points 5 months ago

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.

[-] Dotcom@lemmy.ml 2 points 5 months ago

What are you trying to run? Could you add it to bashrc?

[-] Hammerheart@programming.dev 1 points 5 months ago

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.

this post was submitted on 15 May 2024
4 points (75.0% liked)

linux4noobs

1336 readers
1 users here now

linux4noobs


Noob Friendly, Expert Enabling

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.


Seeking Support?

Community Rules

founded 1 year ago
MODERATORS