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…
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.