You are not logged in.
Pages: 1
Hi.
I recently start using dwm but I can set a background for it only manually
For some reason my .bash_login don't execute any background setter
exec startx $(which dwm)
exec xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
exec xrandr --addmode Virtual1 1920x1080_60.00
exec xrandr --output Virtual1 --mode 1920x1080_60.00
nitrogen --restore & Last edited by kbunny (2021-04-05 11:40:14)
Offline
Offline
None of this should be in a bash_login file, but in xinitrc as indicated above. Further, the `exec` command replaces the current shell with it's arguments. So `exec startx ...` replaces the current shell running bash_login with startx, and nothing else after that line in .bash_login will ever run.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
.xinitrc doesn't execute neither
Offline
Nothing will magically execute without you using the proper commands.
https://bbs.archlinux.org/viewtopic.php?id=57855
Last edited by Trilby (2021-04-04 18:39:28)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
None of this should be in a bash_login file, but in xinitrc as indicated above. Further, the `exec` command replaces the current shell with it's arguments. So `exec startx ...` replaces the current shell running bash_login with startx, and nothing else after that line in .bash_login will ever run.
~/.bash_login
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
startx
fi~/.xinitrc
#!/bin/sh
# /etc/X11/xinit/xinitrc
#
# global xinitrc file, used by all X sessions started by xinit (startx)
# invoke global X session script
. /etc/X11/Xsession
nitrogen --restore &
exec dwmand at startup it starts a xfce4-terminal..
Offline
How did you install Arch?
Offline
And what is /etc/X11/Xsession? What's in it? Where did it come from?
As far as I can tell, that is not provided by any archlinux package. However, a quick google search indicates that it may be used in Manjaro.
Last edited by Trilby (2021-04-04 21:22:54)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
How did you install Arch?
Does it matter?
Offline
jasonwryan wrote:How did you install Arch?
Does it matter?
Yes. Nothing about your approach, or your system, suggests that you have installed following the wiki. Therefore how, exactly, did you install your system?
Offline
And what is /etc/X11/Xsession? What's in it? Where did it come from?
As far as I can tell, that is not provided by any archlinux package. However, a quick google search indicates that it may be used in Manjaro.
It's actually a Debian original, inherited by Ubuntu.
No idea about manjaro and I also could not find a good source that they use it.
@kbunny: if this is about the init process on a Ubuntu system you could just as much ask on an adroid forum.
Nothing we tell you is going to work since there're slight differences and also
at startup it starts a xfce4-terminal
So what? Did you configure dwm to launch an xfce-terminal?
Do you actually know how your dwm was configured?
Iow:
How did you install Arch?
This is not to harass you, but to spare everyone a futile exercise in frustration.
So yes, it matters.
Offline
And what is /etc/X11/Xsession? What's in it? Where did it come from?
As far as I can tell, that is not provided by any archlinux package. However, a quick google search indicates that it may be used in Manjaro.
Fixed. It called for /etc/X11/Xsession. I just removed that line
Thanks for help
Sorry for making everyone frustrated
Offline
Pages: 1