can't seem to make wallpaper permanent in feh
by burning from LinuxQuestions.org on (#56JMG)
I'm running dwm as my window manager.
I've appended ~/.fehbg & to my ~/.xinitrc file and the contents of my ~/.fehbg file reads:
Code:#!/bin/sh
feh --no-fehbg --bg-scale '/pathtoimage'And this is the contents of my ~/.xinitrc:
Code:#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
# Start the window manager:
exec /usr/bin/dwm
# Start the desktop wallpaper application:
~/.fehbg &
but the image won't load automatically on the startup of my xsession. I have to enter feh --bg-scale /pathtoimage every time.
The image in question doesn't have any capital letters or spaces in its name so I don't think I entered the incorrect image name.
Any idea why it's not loading automatically on startup of the Xsession?


I've appended ~/.fehbg & to my ~/.xinitrc file and the contents of my ~/.fehbg file reads:
Code:#!/bin/sh
feh --no-fehbg --bg-scale '/pathtoimage'And this is the contents of my ~/.xinitrc:
Code:#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
# Start the window manager:
exec /usr/bin/dwm
# Start the desktop wallpaper application:
~/.fehbg &
but the image won't load automatically on the startup of my xsession. I have to enter feh --bg-scale /pathtoimage every time.
The image in question doesn't have any capital letters or spaces in its name so I don't think I entered the incorrect image name.
Any idea why it's not loading automatically on startup of the Xsession?