4

so I'm using exec_always feh --bg-scale *wallpaper* and it sets it correctly. I'm also using i3-gaps which can be found here. When I start setting my windows up, my wallpaper starts freaking out. I'm not quite sure if this is feh or i3-gaps. Basically where ever I create a new window, more of my wallpaper turns black. Can be seen here:enter image description here

ErraticFox
  • 273
  • 2
  • 3
  • 10

3 Answers3

7

When a wallpaper is set with feh using any command

feh --bg-*

a file is created in your $HOME-dir, named .fehbg, which basically stores the latest feh command that you ran. Thus, the file content would be similar to

#!/bin/sh
feh --bg-scale '/home/username/Pictures/mywallpaper.jpg'

This script can then be run from your i3config file, by adding the line

exec --no-startup-id exec bash $HOME/.fehbg

If you run i3 with gaps, I would recommend including these two lines in your config as well:

for_window [class=".*"] border pixel 0
hide_edge_borders both

This disables all borders, which is mentioned to prevent issues with gaps in i3-gaps.

3

I'm using

exec_always --no-startup-id feh --no-fehbg --bg-scale ~/.wallpapers/black.jpg &

to set my wallpaper on i3 although I'm not using i3-gaps. If the above command doesn't fix your issue on i3-gaps, try installing i3 and use the same command to verify whether that fixes your issue. If yes, then it's probably a bug in i3-gaps and you should open an issue here. If it doesn't, I suspect that it's an issue with your graphics drivers. Which graphic card are you using? Which drivers have you installed? Which GNU/Linux distribution are you using? What is the output of uname -r? Did you disable the titlebars on i3-gaps as suggested here and like Wieland mentioned in the comments?

Libre Arch
  • 178
  • 7
0

I3 gaps with wallpaper

You mean like this?

Just install compton and run it in the config file: exec compton

This way, you wont have to disable your window's border. (personally I don't want to that neither)