opensuse12.3 openbox: Is there a scriptable wallpaper tool?

I’ve only recently tried openbox. Once I learned how to configure my own keybindings I started to like it. then I learned how to use a script to automatically switch the wallpaper on desktop area change. And suddenly I like it even better than E17…

On Mageia Linux I did this with feh but I can’t find feh in opensuse12.3…

I’m sure there must be an openbox compatible, background image setting tool here somewhere. But I’ve no idea what it’s name is…

Could somebody give me a clue :?:

http://software.opensuse.org/package/feh

Click show Unstable Packages (it really just means home repos and stuff like that - I think the wording is, to put it nicely, retarded).

I maybe should have mentioned that I tried that:

http://i61.tinypic.com/2a5zuxs.png

:\

http://i62.tinypic.com/2le77r5.png

:frowning:

& BTW, if it matters…:


 ~ 
UnderTree=-> zypper lr
#  | Alias                     | Name                               | Enabled | Refresh
---+---------------------------+------------------------------------+---------+--------
 1 | X11:QtDesktop             | X11:QtDesktop                      | No      | No     
 2 | games                     | games                              | No      | No     
 3 | libdvdcss                 | DVD Repository                     | Yes     | Yes    
 4 | openSUSE:Tools            | openSUSE:Tools                     | Yes     | Yes    
 5 | packman                   | Packman repository (openSUSE_12.3) | Yes     | Yes    
 6 | repo-debug                | openSUSE-12.3-Debug                | No      | No     
 7 | repo-debug-update         | openSUSE-12.3-Update-Debug         | No      | No     
 8 | repo-debug-update-non-oss | openSUSE-12.3-Update-Debug-Non-Oss | No      | No     
 9 | repo-non-oss              | openSUSE-12.3-Non-Oss              | Yes     | Yes    
10 | repo-oss                  | openSUSE-12.3-Oss                  | Yes     | Yes    
11 | repo-source               | openSUSE-12.3-Source               | No      | No     
12 | repo-update               | openSUSE-12.3-Update               | Yes     | Yes    
13 | repo-update-non-oss       | openSUSE-12.3-Update-Non-Oss       | Yes     | Yes    
14 | server:mail               | server:mail                        | No      | No     
15 | server:proxy              | server:proxy                       | No      | No     
 ~ 
UnderTree=-> 


zypper ar -f http://download.opensuse.org/repositories/X11:/Utilities/openSUSE_12.3/X11:Utilities.repo
zypper in feh

You need to add the repository so it’ll find the suitable files it needs to install feh itself.

This is for 12.3 of course, if you use 13.1 you need to adjust the repository (I use 13.1, but I changed it to 12.3 for you)

It would appear that on Mar 14, Miuku did say:

> Code:
> --------------------
> zypper ar -f http://download.opensuse.org/repositories/X11:/Utilities/openSUSE_12.3/X11:Utilities.repo
> zypper in feh
> --------------------
>
>
> You need to add the repository so it’ll find the suitable files it needs
> to install feh itself.

Thanks! I’ll have to check that one out…

But in the meantime I found a substitute for feh, the script is now working
with qiv. {Who knew it did wallpaper??}

Code:


#!/bin/bash
#based on an original script posted to linuxmint forum by garolou
# Workspace desktop image switcher WDIS 1.0
# Script to change the desktop image when switching workspaces.
# Tested on Linux Mint 13 'cinnamon'
#http://forums.linuxmint.com/viewtopic.php?p=672189#p672189
# Modified Script to change the desktop image when switching workspaces in openbox.
# Tested on Mageia release 3 (Official) for x86_64 Kernel 3.10.28-desktop-1.mga3
# Also tested on opensuse 12.3
# desktop_dir="/usr/share/backgrounds/" # full path to images directory;
desktop_dir="$HOME/0bg/" # full path to images directory;
desktop_img[0]="ChillyLickingGood2001.jpg"
desktop_img[1]="z_optic2.png"
desktop_img[2]="metruck.jpg"
desktop_img[3]="greydragon.png"
desktop_img[4]="ShiloWannaPlay0273.jpg"
desktop_img[5]="BlueStone.png"
desktop_img[6]="DragonlySkyscapes-014.jpg"
desktop_img[7]="DragonlySkyscapes-016.jpg"
desktop_img[8]="FantaScene-006.jpg"
desktop_img[9]="DragonlySkyscapes-018.jpg"
desktop_img[10]="DragonlySkyscapes-019.jpg"
desktop_img[11]="jungle.png"
# add more images if using more workspaces

setdesktop() {
# =>    test
#    display "$desktop_dir$1"
# =>       opensuse
#    qiv -z "$desktop_dir$1"
# =>       Mageia
feh  --bg-scale "$desktop_dir$1"
# =>       fatdog
#    wallpaper "$desktop_dir$1"
}
xprop -root -spy _NET_CURRENT_DESKTOP | (
while read -r; do
desk=${REPLY:${#REPLY}-2:2}
case $desk in
[0-9][0-9]) setdesktop ${desktop_img$desk]};;
*)desk=${REPLY:${#REPLY}-1:1};
setdesktop ${desktop_img$desk]};;
esac
done
)


> This is for 12.3 of course, if you use 13.1 you need to adjust the
> repository (I use 13.1, but I changed it to 12.3 for you)

For now… I only just yesterday used zypper to upgrade one of two opensuse 12.2
installations to 12.3… After the 2nd one is stable at 12.3, I’m thinking
of upgrading at least one of them to 13.1 . Hopefully before the end of the month.