You are not logged in.
Pages: 1
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
What WM/DE are you using?
Note: compton definitely needs to be backgrounded.
Offline
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?
- 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
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
Offline
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.
Offline
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
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
Pages: 1