You are not logged in.

#1 2014-01-08 12:57:03

simplesquare
Member
From: Florida
Registered: 2014-01-02
Posts: 22

Feh not saving background after second restart

I use feh to manage my background and image viewing. I set my background with the following code.

sudo feh --bg-fill ~/path/to/image.png

And I add my sh script to ~/.config/openbox/autostart (full autostart posted)

(sleep 3 && /usr/bin/nm-applet --sm-disable) &
tint2 &
volumeicon &
hsetroot -fill /usr/share/wallpapers/sandbox-background-scenic-dark-images-ocean-158600.jpg &
#clipit &
conky &
sh ~/.fehbg &
numlockx &

# Enable as required
#compton -cCGb &
#xbacklight -set 100 &
#/usr/bin/synclient TouchpadOff=1 &
#xxkb &
#spacefm -d &
#setxkbmap gb &

But after every second restart, my background goes back to the default. First restart, it stays the same. Next restart, it shows the default.

If anyone could provide some help, I would greatly appreciate it.


8GB RAM | AMD Phenom II X4 965 Black Edition (3.4 GHz) | EVGA GTX 770 SC ACX

Offline

#2 2014-01-08 13:01:06

Roshless
Member
Registered: 2013-02-28
Posts: 7
Website

Re: Feh not saving background after second restart

It may be caused by hsetroot line in autostart, you are setting wallpapers 2 times.

Offline

#3 2014-01-08 13:05:39

simplesquare
Member
From: Florida
Registered: 2014-01-02
Posts: 22

Re: Feh not saving background after second restart

@Roshless

I didn't even see that. Would it be best to remove the feh line completely and just change hsetroot or remove the hsetroot line? Or would it not matter and just be preferential?


8GB RAM | AMD Phenom II X4 965 Black Edition (3.4 GHz) | EVGA GTX 770 SC ACX

Offline

#4 2014-01-08 14:59:09

Alber
Member
From: Spain - España
Registered: 2011-11-11
Posts: 227

Re: Feh not saving background after second restart

I think you don't need to use sudo, it's user background.

You can add a line with feh in your autostart file and comment hsetroot.

(sleep 3 && /usr/bin/nm-applet --sm-disable) &
tint2 &
volumeicon &
#hsetroot -fill /usr/share/wallpapers/sandbox-background-scenic-dark-images-ocean-158600.jpg &
#clipit &
conky &
#sh ~/.fehbg &
feh --bg-fill ~/path/to/image.png
numlockx &

# Enable as required
#compton -cCGb &
#xbacklight -set 100 &
#/usr/bin/synclient TouchpadOff=1 &
#xxkb &
#spacefm -d &
#setxkbmap gb &

I don't know if it'll work but I'll try it.

Last edited by Alber (2014-01-08 15:00:50)


Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.

Offline

Board footer

Powered by FluxBB