feh icon indicating copy to clipboard operation
feh copied to clipboard

Option --no-fehbg not working

Open olhybrius opened this issue 4 years ago • 1 comments
trafficstars

feh version : 3.7.2

Hi !

I'm using feh as a way to set my wallpaper for i3wm. I have the following file in my i3wm config file : exec --no-startup-id feh --bg-scale --no-fehbg ~/wallpaper.jpg

However, if I logout and then log back in, feh still creates a .fehbg file containing the following :

#!/bin/sh   
feh --no-fehbg --bg-scale '/home/_user_/wallpaper.jpg'

Even if I remove the .fehbg file, comment the line setting the wallpaper in my i3wm config file and restart the computer, both the wallpaper and the .fehbg file (with the same content as before) are back when I log in. No other config files (like .xinitrc) contains reference to feh.

So it seems that the --no-fehbg option is not working as expected.

olhybrius avatar Oct 08 '21 19:10 olhybrius

If there are no references to feh I am not sure how it could be doing anything? There seems to also be several problems people have had with feh and i3. I'm not an i3 user so I wouldn't know how best to advise you here. I do have some ideas for what could be going wrong. My guess is something on i3's end seems to intercept the extra options and not actually pass them as arguments to feh, see if you can get it to log anything that indicates feh tries to use the options as an image location or resolve everything after feh as an image path. You could also try putting your feh command in a shell script or something you can call from the i3 config file which shouldn't have issues with i3 breaking feh's arguments.

avlec avatar May 07 '22 20:05 avlec