You are not logged in.

#1 2013-11-10 16:52:22

Winged4Ever
Member
Registered: 2013-11-09
Posts: 35

Can't manage to autostart properly...

Hi,
Seriously, no matter how hard I try and how much time I spend on google and arch wiki searching any info about autostarting things on my Arch I just can't make it work. I know all those stuff that .bash_profile is for launching non-graphical stuff, .bashrc for aliases and other 'definitional' stuff and .xinitrc for starting all other things like apps, setting wallpapers and generally cutomizing enviroment after starting X session, but still ie when I want to start mpd or compton and I put those things into xinitrc, next time when I start new session it just freezes, or it shows some errors and argh...
So please, could you kindly point me where should I put those commands, listed below, in order to make them autostart? And explain me why there?

- autocutsel -fork &
- autocutsel -selection PRIMARY -fork &
- mpd
- compton
- setxkbmap -option terminate:ctrl_alt_bksp
- more complex scripts (more than one line of code)

Thanks,
Winged

Last edited by Winged4Ever (2013-11-10 16:55:28)


|| Kernel: 4.0.4-2-ARCH || Architecture: i686 || WM: ratpoison || DE: none ||

“A man goes to knowledge as he goes to war: wide-awake, with fear, with respect, and with absolute assurance. Going to knowledge or going to war in any other manner is a mistake, and whoever makes it might never live to regret it”
---Don Juan

Offline

#2 2013-11-10 16:55:44

COPE
Member
Registered: 2013-11-03
Posts: 31

Re: Can't manage to autostart properly...

What WM/DE are you using?

Note: compton definitely needs to be backgrounded.

Offline

#3 2013-11-10 16:55:59

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Can't manage to autostart properly...

What errors? Where's the X log?
Can you use compton on its own? If not, you need to have a WM.
Is this the whole .xinitrc?

Winged4Ever wrote:

- more complex scripts (more than one line of code)

No no no no.
Please post the whole thing, exactly as you're using it.

Last edited by karol (2013-11-10 16:57:16)

Offline

#4 2013-11-10 17:17:17

Winged4Ever
Member
Registered: 2013-11-09
Posts: 35

Re: Can't manage to autostart properly...

Hah, sorry for such a messy start of the topic ^^
First of all I'm using ratpoison WM.
And yes, I can use compton in it's own and it works properly.
And about those more complex scripts, right now I really don't remember what I had on my mind cause I've been surfing through all possibilities of managing the problem that I just know that I had an idea but didn't know how to do it, so I'm just asking to use it later.
And about logs, there is nothing in X log what I've seen after logging-in in arch but it was something about bad usage of setxkbmap and autocutsel in .xinitrc. I've undo everything I've done till the moment where there were no errors so I don't know even how to regenerate them.

Last edited by Winged4Ever (2013-11-10 17:19:28)


|| Kernel: 4.0.4-2-ARCH || Architecture: i686 || WM: ratpoison || DE: none ||

“A man goes to knowledge as he goes to war: wide-awake, with fear, with respect, and with absolute assurance. Going to knowledge or going to war in any other manner is a mistake, and whoever makes it might never live to regret it”
---Don Juan

Offline

#5 2013-11-10 17:18:38

COPE
Member
Registered: 2013-11-03
Posts: 31

Re: Can't manage to autostart properly...

Offline

#6 2013-11-10 17:23:12

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

Re: Can't manage to autostart properly...

The applications you want to start with X should go in .xinitrc (autocutsel and the like). Daemons like mpd you can either start in ratpoison's autostart file or, if you want them to be X and WM independent, use a service file.

For the "more complex scripts" (whatever that means) either a service file or autostart.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2013-11-10 17:23:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Can't manage to autostart properly...

Winged4Ever wrote:

I've undo everything I've done till the moment where there were no errors so I don't know even how to regenerate them.

Then add back what you want to add back.  If it doesn't result in any errors, then count is as a success.  If it does result in errors, tell us what the error messages are (exactly).

Vague reference to some sort of error that you can't describe nor replicate cannot be troubleshot.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2013-11-10 17:39:01

Winged4Ever
Member
Registered: 2013-11-09
Posts: 35

Re: Can't manage to autostart properly...

Ok, so I've put mpd and compton into .ratpoisonrc and the rest of commands into .xinitrc and... it just works like there never were any virulent errors... I'm so confused cause I could swear that I've tried this way before. Argh x2.
Anyway thanks for your help guys and sorry for making such a mess in here (next time I'll meticulously jot every error I'll encounter).


|| Kernel: 4.0.4-2-ARCH || Architecture: i686 || WM: ratpoison || DE: none ||

“A man goes to knowledge as he goes to war: wide-awake, with fear, with respect, and with absolute assurance. Going to knowledge or going to war in any other manner is a mistake, and whoever makes it might never live to regret it”
---Don Juan

Offline

Board footer

Powered by FluxBB