You are not logged in.

#1 2021-10-15 11:57:12

John Path
Member
Registered: 2021-10-15
Posts: 57

[SOLVED].xinitrc file not starting on automatically

Hello guys,

I am using arch since a week now. And i am using KDE Plasma and i am just trying to used DWM. SDDM help switch between them.

I set background image with feh on DWM and added ~/.fehbg & to ~/.xinitrc file but after reboot, i have no background image.
I found that the .xinitrc file was not executed during logging in with SDDM as executing the .xinitrc file manually set the background image again.

So, what have i done wrong that my xinitrc file is not starting automatically.

Thanks to everyone in advance for hearing me out.

Last edited by John Path (2021-10-20 02:29:49)

Offline

#2 2021-10-16 19:32:44

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: [SOLVED].xinitrc file not starting on automatically

startx will use ~/.xinitrc display managers will not.

Offline

#3 2021-10-16 19:46:51

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,325

Re: [SOLVED].xinitrc file not starting on automatically

FWWI, XDM uses your xinitrc and you can use https://wiki.archlinux.org/title/Displa … _a_session if you actually want to use your xinitrc as session script.
Since https://aur.archlinux.org/cgit/aur.git/ … ktop?h=dwm just starts "dwm" you could shadow /usr/bin/dwm w/ a script /usr/local/bin/dwm that sets your wallpaper and stuff and ultimately "exec /usr/bin/dwm" (make sure to use the absolute path to avoid recursions)

Offline

#4 2021-10-20 02:28:04

John Path
Member
Registered: 2021-10-15
Posts: 57

Re: [SOLVED].xinitrc file not starting on automatically

seth wrote:

FWWI, XDM uses your xinitrc and you can use https://wiki.archlinux.org/title/Displa … _a_session if you actually want to use your xinitrc as session script.
Since https://aur.archlinux.org/cgit/aur.git/ … ktop?h=dwm just starts "dwm" you could shadow /usr/bin/dwm w/ a script /usr/local/bin/dwm that sets your wallpaper and stuff and ultimately "exec /usr/bin/dwm" (make sure to use the absolute path to avoid recursions)


Thanks, now it's working fine.

Offline

Board footer

Powered by FluxBB