You are not logged in.
I have an .xinitrc which contains the following line:
eval $(cat ~/.fehbg)The ~/.fehbg file contains:
feh --bg-scale '/home/x/beautiful.jpg'The above sets my background screen in X to a picture.
Now I am setting the background to grey:
xsetroot -grayNow while I am in my X session, I want to re-set my background picture. Thinking I am smart, I do the following:
$ $(grep feh ~/.xinitrc)But no, linux teaches me once again I don't get it:
Error: feh WARNING: '/home/x/beautiful.jpg' - File does not exist
feh ERROR: Couldn't load image in order to set bgWhat am I doing wrong?
Last edited by awayand (2011-06-14 12:13:59)
Offline
man fehJust use feh to reset it:
feh --bg-scale /path/to/imageAlso, in your .xinitrc you don't need to abuse the cat
sh ~/.fehbg &will do...
Offline
i like that url, bookmarked. thanks for the improvement suggestions but I am really trying to understand why this is not working as to me it definitely should. is it a bug in feh or something I dont understand? The file is definitely there...
Offline
The single quote marks are being included as part of the image name and not being stripped off. You'll see that if you do
feh --bg-scale 'imaginary_file'The output is
feh WARNING: imaginary_file - File does not exist
feh ERROR: Couldn't load image in order to set bgNotice the file it says does not exist does NOT include quote marks. Forcing whatever strips the quote marks not to do that (bash, maybe?), you get
feh --bg-scale \'imaginary_file\'
feh WARNING: 'imaginary_file' - File does not exist
feh ERROR: Couldn't load image in order to set bgDoing "eval $(grep feh ~/.xinitrc)" works, but I recommend not doing that ![]()
Last edited by jac (2011-06-14 11:36:16)
Offline
you're a genius, thanks!
I changed my line in .xinitrc to ". ~/.fehbg" as well and the problem has also vanished. But it bothered me what was going on with my first, not so elegant approach. thanks for clearing that up!
Offline