You are not logged in.
How do you automatically set the Xmonad wallpaper through feh on startup when Xmonad is started via KDM?
I tried .xsessions to no avail.
~/.xsessions
#! /bin/sh
exec ~/.fehbg &
~/.fehbg
feh --image-bg black --bg-center '/home/systemovich/Images/Wallpapers/leaf.png'
Last edited by systemovich (2013-08-15 18:54:13)
Offline
I don't use a DM, but I think you'd need to either create a .desktop file, or edit one that you already have.
This is for dwm but it's still applicable. https://wiki.archlinux.org/index.php/Dw … ay_manager
Last edited by SolarBoyMatt (2013-08-15 15:20:37)
Offline
I don't use a DM, but I think you'd need to either create a .desktop file, or edit one that you already have.
This is for dwm but it's still applicable. https://wiki.archlinux.org/index.php/Dw … ay_manager
Thanks for the link.
I copied /usr/share/xsessions/xmonad.desktop to /usr/share/xsessions/xmonad-personalised.desktop.
/usr/share/xsessions/xmonad-personalised.desktop
[Desktop Entry]
Encoding=UTF-8
Name=XMonad-Personalised
Comment=This session starts XMonad.
Exec=/usr/bin/xmonad-personalised
TryExec=/usr/bin/xmonad-personalised
Type=XSession
Then I made /usr/bin/xmonad-personalised, and made it executable.
/usr/bin/xmonad-personalised
#! /bin/sh
#Set desktop background
exec /home/systemovich/.fehbg#Start Xmonad
exec xmonad
After choosing XMonad-Personalised from the KDM session list, and entering my password, Xmonad does not start, but I get sent back to the KDM login screen.
Last edited by systemovich (2013-08-15 18:20:20)
Offline
I think it's because you're using exec in the "Set desktop background" line. Try using sh instead of exec.
Offline
I think it's because you're using exec in the "Set desktop background" line. Try using sh instead of exec.
That was it. Thanks very much.
Offline