Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: need help with xinitrc (Read 2745 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

need help with xinitrc

Is there a way to autostart with scripts in xinitrc like /paths/to/scripts because i try to do that but it doesn't work.


Re: need help with xinitrc

Reply #2
Maybe post your whole xinitrc and explain more clearly what you're trying to do and how it isn't working.

There are many common mistakes, usually stemming from not understanding how xinitrc works (see "man startx"), but there can also be something more tricky going on. Can't tell with the information provided.

Re: need help with xinitrc

Reply #3
Maybe post your whole xinitrc and explain more clearly what you're trying to do and how it isn't working.

There are many common mistakes, usually stemming from not understanding how xinitrc works (see "man startx"), but there can also be something more tricky going on. Can't tell with the information provided.

heres the xinitrc config i want to set ~/.local/bin/systemalert &   

 it doesnt work i try so many ways like sh ~/.local/bin/systemalert &  or bash ~/.local/bin/systemalert &

Re: need help with xinitrc

Reply #4
Shouldnt that file be  .xinitrc (note the period)
And, I have to ask, is the script being called, set with +x ?
Supercalifragilisticexpialidocious

Re: need help with xinitrc

Reply #5
Shouldnt that file be  .xinitrc (note the period)

My xinitrc is in ~/.config/x11/xinitrc
 and  yes my scripts set +x

Re: need help with xinitrc

Reply #6
~/.xinitrc




Re: need help with xinitrc

Reply #10


The way i start  startx is alias sx='startx /home/supercore/.config/x11/xinitrc'

For shits and giggles, to run your script, use the complete path and not the ~

 I put the full paths in xintitrc you can see the pictures it doesnt work.

 

Re: need help with xinitrc

Reply #12


 I put the full paths in xintitrc you can see the pictures it doesnt work.

Does your script require sudo access?

No my scripts dont have sudo or doas.

I will show 1 scripts /home/supercore/.local/bin/systemalert

#!/bin/sh


mpg123 /home/supercore/.local/share/sounds/computer_magic-.mp3

Re: need help with xinitrc

Reply #13
There is no dot before local in scripts paths on your screenshot.

Re: need help with xinitrc

Reply #14
There is no dot before local in scripts paths on your screenshot.

Good catch
Supercalifragilisticexpialidocious