Posts: 7
marty5000
Joined: 05 Apr 2013
#1
I'm attempting to have different wallpapers on each of my different workspaces. I've added

Code: Select all

ChangeWorkspace :ExecCommand fbsetbg ~/.fluxbox/bg$(xprop -root _NET_CURRENT_DESKTOP | awk '{print $3}').png
to my keys file as directed by anticapitalista and the fluxbox-keys(5) man page. The good news is that it worked! The bad news is that my ROX pinboard covers up my new wallpapers and refuses to budge...

Is there a way to keep my pinboard icons and make the backdrop disappear? Or am I stuck with one or the other?

I've found a couple leads that seem to hint that what I'm trying to do is not impossible:

First, when I began toying with the fbsetbg option, I noticed that the backdrop style in the first line of my pb_antiX-fb file had automatically changed from

Code: Select all

<backdrop style="Stretched">/usr/share/wallpaper/peaceful_pond.png</backdrop>
to (something like)

Code: Select all

<backdrop style="Program">/usr/share/wallpaper/peaceful_pond.png</backdrop>
Can I somehow change this line to make the ROX pinboard realize that I don't need it's backdrop and already have a different one in place?
(Note: I previously said 'something like' because I can't seem to get the behavior to repeat now. I promise I'm not lying! Or crazy! ...well maybe crazy i guess...)

Second, while digging through the ROX man page, I came across a section about using an application to change wallpapers (
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://rox.sourceforge.net/Manual/Manual/Manual.html#id2504566"
linktext was:"http://rox.sourceforge.net/Manual/Manua ... #id2504566"
====================================
). Is this relevant to my problem? If so, how would I go about applying this information to fbsetbg?

Thanks for bearing with me; I feel like I bumbled my way through this question. I can be a real derp. __{{emoticon}}__
Posts: 1,062
Dave
Joined: 20 Jan 2010
#2
I am guessing at the moment, as I have not gotten toward looking at a method of setting different wallpapers per workspace.
Seeing how
ChangeWorkspace :ExecCommand fbsetbg ~/.fluxbox/bg$(xprop -root _NET_CURRENT_DESKTOP | awk '{print $3}').png
worked.

I would say you could write a script similar to

Code: Select all

#!/bin/bash
workspace=$(xprop -root _NET_CURRENT_DESKTOP| cut -d"=" -f2 |cut -d"" -f2);
wallpaper="/home/YOUR USERNAME/Wallpaper/$workspace.jpg";
Rox-Wallpaper"$wallpaper" &
feh  --bg-scale"$wallpaper" &

Naming it wallpaper.sh and saving it to ~/Wallpaper and adding execute premissions
Then change the line in your keys file to

Code: Select all

ChangeWorkspace :ExecCommand /home/YOUR USERNAME/Wallpaper/my-script.sh
Posts: 7
marty5000
Joined: 05 Apr 2013
#3
Dave, you're brilliant! Thank you so much __{{emoticon}}__ Now I'm off to find some backgrounds that suit my tastes...
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#4
I think this is a GREAT feature.