Mindless Blathering

How I automated setting the wallpaper on my custom Debian Eee pc install

Setting wallpaper in openbox

subheading: doing it via the cli using minimal resources

apps used: feh, nano

autostart.sh in $HOME/.config/openbox
sh ~/.fehbg &

.fehbg in $HOME
feh –bg-scale ‘/home/becker/Downloads/debian_wallpaper1.png’

Firstly I set the background using “feh –bg-scale /home/becker/Download/debian_wallpaper1.png when you do this feh automatically creates the file .fehbg in your $HOME folder containing the command you’ve just run. At this stage if you reboot your wallpaper will be lost and you’ll have to set it again manually.

If you want it too be set automatically each time you reboot you need to add a line to your autostart.sh file in $HOME/.config/openbox/. If like me the file isn’t already there you can create it by opening a terminal and typing nano autostart.sh then enter the command “sh ~/.fehbg &” save the file and exit. Now when you reboot the wallpaper will be set automatically everytime.

Before anyone asks here is the wallpaper I used

Advertisement

Single Post Navigation

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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.