My path to achieve the greatest Linux desktop ever :)

Changing Wallpaper on Openbox

My desktop’s new look ^^

So, as I was changing wallpapers I realized I never posted anything about it. In Openbox, there isn’t really a manager that does that for us (like in Gnome, KDE or XFCE, …) so I use feh. It’s light, easy and it works fine. Only thing is – it’s via terminal.

But it’s really easy to use. Let’s see…

1) Open the terminal and install feh (you should be able to do this on your own but I’ll still guide you)

sudo pacman -S feh

2) Now, there’s a bunch of things you can do. I’m going to show you how to change the wallpaper so that if scales to your screen size.

Type in the terminal:

feh –bg-scale /path/to/file

(Tip: even if you don’t know the path by heart you can always open Nautilus or whatever file manager you have and drag the image to the terminal and it’ll fill its path automatically – you can also click the Tab key and it’ll finish itself as you write – something like this: you type ~/Down and you click Tab and it’ll turn into ~/Downloads/ and then you write something else and keep clicking Tab so it’ll autocomplete itself)

If you don’t want to scale you have these options as well:
–bg-tile /path/to/file
–bg-center /path/to/file
–bg-max /path/to/file
–bg-fill /path/to/file

3) Now, it’s probably best if you edit the startup file as well so that your selected wallpaper will appear on each startup. To do that in Openbox, open the autostart file and add this line (in case it’s your first time)

(sleep 2 && feh –bg-scale /path/to/file ) &

You’re all set now ^^

Any questions, feel free to ask ;)

P.S. that gorgeous wallpaper I have right now was taken from here

P.P.S. I don’t understand why but WP is turning my double – (- – but without the space) into just one… but it’s two nonetheless, as you can see in the screenshots.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s