Re: need help with xinitrc Reply #15 – 05 July 2025, 20:39:59 Quote from: cds – on 05 July 2025, 20:25:01Quote from: darcy – on 05 July 2025, 20:15:21There is no dot before local in scripts paths on your screenshot.Good catchI know i put the dot it still doesnt work, ok i think you cannot use scripts in xinitrc it doesnt work and sorry to take all your time thank you to for trying to help me "cds and also "darcy" Quote Selected
Re: need help with xinitrc Reply #16 – 05 July 2025, 20:42:55 Why not run it from .bashrc, .xprofile, or .profile Quote Selected
Re: need help with xinitrc Reply #17 – 05 July 2025, 23:06:54 Quote from: jackie777 – on 05 July 2025, 19:22:46Quote from: cds – on 05 July 2025, 19:16:44Does 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-.mp3which mpg123 ?what is the PATH variable? Quote Selected
Re: need help with xinitrc Reply #18 – 05 July 2025, 23:14:04 Quote from: jackie777 – on 05 July 2025, 17:18:16Quote 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 &Can you post the file instead of an image of the file so we can test it and manipulate it?If you want help with a config file or shell code, it would be common courtesy to actually post the text.... as text. FWIW - there are several unconventional aspects to that file. The PATH variable is not set. You are ending with an exec statement. From man exec...QuoteEXIT STATUS If command is specified, exec shall not return to the shell; rather, the exit status of the process shall be the exit status of the program im‐ plementing command, which overlaid the shell. If command is not found, the exit status shall be 127. If command is found, but it is not an exe‐ cutable utility, the exit status shall be 126. If a redirection error occurs (see Section 2.8.1, Consequences of Shell Errors), the shell shall exit with a value in the range 1-125. Otherwise, exec shall return a zero exit status.It is perfectly expected if you are loading a window manager. But you should be aware that you lose your shell.FWIW - my tone might be coming across a little annoyed and it is. Others might be less inclined to be aggravated by this, but for an old foggie like myself I find it disrespectful to lazily whip out your cellphone and take a picture of a coding/admin problem and post a picture of your file rather than posting the actually file with cut and paste, and then ask for help. The membership is happy to help and want to encourage your requests to help, information and feedback, but it is not too much to ask for you to come half way so they can effectively be helpful and so their time is not wasted. They are volunteers, you know, and even paid staff don't deserve being treated like that. Quote Selected Last Edit: 05 July 2025, 23:32:49 by mrbrklyn
Re: need help with xinitrc Reply #19 – 05 July 2025, 23:47:00 FWIW - my ./.xinitrc file does not have #!/bin/shIt doesn't run as a script but is imported by startx.The display settings ect are set up by startx.It can be a complete script, as you have it. It is a client script to xinit. Philosophically, I keep it simple and let the window manager do its thing. Quote Selected Last Edit: 05 July 2025, 23:55:27 by mrbrklyn
Re: need help with xinitrc Reply #20 – 06 July 2025, 00:53:44 Quote from: mrbrklyn – on 05 July 2025, 23:47:00FWIW - my ./.xinitrc file does not have #!/bin/shYou are right. It doesn't need the shebang as xinit (startx) sources the contents of the file rather than executing it directly.However OP is doing things in a non-standard way Code: [Select]startx /home/supercore/.config/x11/xinitrcIn this case it's not an .xinitrc file it's a script and the shebang is needed.Doing it that way, passing a script or program directly to startx, like /usr/bin/startplasma-x11 or /home/supercore/.config/x11/xinitrc will result in ~/.xinitrc not being sourced at all. Quote Selected