Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying startup apps? #29

Open
vaskark opened this issue Nov 25, 2019 · 9 comments
Open

Specifying startup apps? #29

vaskark opened this issue Nov 25, 2019 · 9 comments
Labels

Comments

@vaskark
Copy link

@vaskark vaskark commented Nov 25, 2019

Probably a dumb question, but is there any way to specify a list of startup apps? I'm using a login manager, atm.

Thanks.

@dylanaraps dylanaraps added the question label Nov 26, 2019
@vaskark

This comment has been minimized.

Copy link
Author

@vaskark vaskark commented Nov 26, 2019

@koutsie Thanks so much for your help. It seems to be working fine. I'll report back if I hit a snag or two. I know I might get roasted for this, but including a line in config.h for a startup script would be a nice addition.
Anyway, thanks again.

@koutsie

This comment has been minimized.

Copy link

@koutsie koutsie commented Nov 26, 2019

There's kind of no need for that but, ask dyln.
Also the way I do this is a big mess.

@Leon-Plickat

This comment has been minimized.

Copy link
Contributor

@Leon-Plickat Leon-Plickat commented Nov 27, 2019

I know I might get roasted for this, but including a line in config.h for a startup script would be a nice addition.

That would be trivial. Take a look at this patch for dwm.

@aktsbot

This comment has been minimized.

Copy link

@aktsbot aktsbot commented Dec 5, 2019

@vaskark In addition to the excellent links @koutsie pointed out. Here's a write-up for setting up an sowm session.

@Leon-Plickat Thats a neat patch, but invoking the sowm and startup apps from a .xsessionrc or .xinitrc feels a bit more unixy 😅

@Leon-Plickat

This comment has been minimized.

Copy link
Contributor

@Leon-Plickat Leon-Plickat commented Dec 5, 2019

Thats a neat patch, but invoking the sowm and startup apps from a .xsessionrc or .xinitrc feels a bit more unixy

True, that's why I did not create a .patch for that. However in the case of OP, who starts sowm via a Display Manager and not manually via startx, the .xinitrc wont help much.

A Display Manager, such as lightdm for example, simply keeps its own X session alive and runs the users software in that. So xinit is never executed by your user account, therefore the contents your .xinitrc won't do anything. Instead, the DM executes a binary or script specified in a .desktop file. In this case, letting the WM execute a startup script makes sense.

And let's not pretend that anything regarding X is "unixy" in the first place.

@aktsbot

This comment has been minimized.

Copy link

@aktsbot aktsbot commented Dec 5, 2019

@Leon-Plickat Thanks for the info regarding Display Managers. I've learned something new today. The links that @koutsie pointed out, is the way to go.

@vaskark

This comment has been minimized.

Copy link
Author

@vaskark vaskark commented Dec 6, 2019

Thanks for all your replies. I decided to follow @koutsie's advice posted above and so far it works just fine. No problems that I can see.
Many thanks.

@Zarhult

This comment has been minimized.

Copy link

@Zarhult Zarhult commented Dec 10, 2019

For my setup it works very nicely to just put my startups in .xprofile. I'm guessing not all display managers read .xprofile, but mine allows me to startup everything I need much the same as you would with .xinitrc (lines like compton &) even though I use a display manager. The Arch Wiki tells me that GDM, LightDM, LXDM, and SDDM all natively source .xprofile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.