need help with xinitrc 05 July 2025, 16:10:37 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. Quote Selected
Re: need help with xinitrc Reply #1 – 05 July 2025, 16:52:50 Quote from: jackie777 – on 05 July 2025, 16:10:37Is there a way to autostart with scripts in xinitrc like /paths/to/scripts because i try to do that but it doesn't work.https://wiki.archlinux.org/title/Xinit#xinitrc Quote Selected
Re: need help with xinitrc Reply #2 – 05 July 2025, 16:54:04 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. Quote Selected
Re: need help with xinitrc Reply #3 – 05 July 2025, 17:18:16 Quote from: lotuskip – on 05 July 2025, 16:54:04Maybe 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 & Quote Selected
Re: need help with xinitrc Reply #4 – 05 July 2025, 17:44:17 Shouldnt that file be .xinitrc (note the period)And, I have to ask, is the script being called, set with +x ? Quote Selected
Re: need help with xinitrc Reply #5 – 05 July 2025, 17:48:14 Quote from: cds – on 05 July 2025, 17:44:17Shouldnt that file be .xinitrc (note the period)My xinitrc is in ~/.config/x11/xinitrc and yes my scripts set +x Quote Selected
Re: need help with xinitrc Reply #7 – 05 July 2025, 18:29:09 Quote from: jackie777 – on 05 July 2025, 17:48:14Quote from: cds – on 05 July 2025, 17:44:17Shouldnt that file be .xinitrc (note the period)My xinitrc is in ~/.config/x11/xinitrc and yes my scripts set +xHow are you starting X? Quote Selected
Re: need help with xinitrc Reply #8 – 05 July 2025, 18:40:11 Quote from: cds – on 05 July 2025, 18:29:09Quote from: jackie777 – on 05 July 2025, 17:48:14My xinitrc is in ~/.config/x11/xinitrc and yes my scripts set +xHow are you starting X?The way i start startx is alias sx='startx /home/supercore/.config/x11/xinitrc' Quote Selected
Re: need help with xinitrc Reply #9 – 05 July 2025, 18:54:17 Quote from: jackie777 – on 05 July 2025, 18:40:11Quote from: cds – on 05 July 2025, 18:29:09How are you starting X?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 ~ Quote Selected
Re: need help with xinitrc Reply #10 – 05 July 2025, 19:15:10 Quote from: cds – on 05 July 2025, 18:54:17Quote from: jackie777 – on 05 July 2025, 18:40:11The 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. Quote Selected
Re: need help with xinitrc Reply #11 – 05 July 2025, 19:16:44 Quote from: jackie777 – on 05 July 2025, 19:15:10Quote from: cds – on 05 July 2025, 18:54:17For 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.Does your script require sudo access? Quote Selected
Re: need help with xinitrc Reply #12 – 05 July 2025, 19:22:46 Quote from: cds – on 05 July 2025, 19:16:44Quote from: jackie777 – on 05 July 2025, 19:15:10 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/shmpg123 /home/supercore/.local/share/sounds/computer_magic-.mp3 Quote Selected Last Edit: 05 July 2025, 19:30:02 by jackie777
Re: need help with xinitrc Reply #13 – 05 July 2025, 20:15:21 There is no dot before local in scripts paths on your screenshot. Quote Selected
Re: need help with xinitrc Reply #14 – 05 July 2025, 20:25:01 Quote from: darcy – on 05 July 2025, 20:15:21There is no dot before local in scripts paths on your screenshot.Good catch Quote Selected