You are not logged in.

#1 2016-12-13 20:22:55

Dregel
Member
Registered: 2007-01-28
Posts: 32

Can't get programs to run on Xmonad startup.

I'm trying to get some programs, such as feh for wallpaper setting, to run automatically when i start Xmonad, but nothing i have tried seems to work.
I have tried all the ways i could think of, that should get this to work, but i still have nothing.
Neither ~/.xinitrc or ~/.xsession does anything, and i think this may be because i start Xmonad from GDM, could this be the case and is there another good way to get programs to run automatically that I am not aware of?

Offline

#2 2016-12-13 20:27:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Can't get programs to run on Xmonad startup.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-12-13 20:33:01

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Can't get programs to run on Xmonad startup.

https://wiki.archlinux.org/index.php/Autostarting gives https://wiki.archlinux.org/index.php/Xprofile and https://wiki.archlinux.org/index.php/De … #Autostart

Specifically for xmonad, you can also use one of the many functions whose names start with spawn or run. There's a basic one in XMonad.Core and many other in the libraries provided by xmonad-contrib.

Offline

#4 2016-12-13 20:33:42

Dregel
Member
Registered: 2007-01-28
Posts: 32

Re: Can't get programs to run on Xmonad startup.

Well, since I'm not a newbie, i thought it inappropriate to post in NC...

Offline

#5 2016-12-13 20:39:18

Dregel
Member
Registered: 2007-01-28
Posts: 32

Re: Can't get programs to run on Xmonad startup.

Thanks raynman, but i have already tried using *.desktop files, with no luck, and i was hoping to avoid doing it through my Xmonad config to not have to deal with spawning a lot of applications whenever i recompile Xmonad.

Last edited by Dregel (2016-12-13 20:39:38)

Offline

#6 2016-12-13 20:39:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Can't get programs to run on Xmonad startup.

Since it is documented in the wiki, it belongs here.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2016-12-13 20:50:29

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Can't get programs to run on Xmonad startup.

Dregel wrote:

i was hoping to avoid doing it through my Xmonad config to not have to deal with spawning a lot of applications whenever i recompile Xmonad.

That is not how XMonad works. You need to reread the documentation.
Ops, sorry. Turns out I am the one who needed to reread the documentation. They do advise to use .xsession or .xinitrc which are very well documented on the ArchWiki as stated above.

Last edited by fsckd (2016-12-14 04:45:36)


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB