Discussion:
[Fluxbox-users] Setting wallpaper
Tim Johnson
2015-03-07 23:43:48 UTC
Permalink
The only thing that has eluded me on fluxbox is setting a wallpaper.
I have the following in my init file

session.screen0.rootCommand: fbsetbg -f ~/.fluxbox/backgrounds/Fluxbox_Wallpaper_04_by_vermaden.png

(see http://fluxbox.sourceforge.net/docbook/en/html/chap-bg.html)

But no wallpaper appears. I see no errors in .xsession-errors or the
fluxbox log file.

Alternatively I have place the following in .xinitrc
fbsetbg /home/tim/.fluxbox/backgrounds/Fluxbox_Wallpaper_04_by_vermaden.png

1)Do I need to do something else?
2)Is there some other configuration that might interfere?
overlay has no executable code.
--
Tim
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com
Tim Johnson
2015-03-08 00:01:46 UTC
Permalink
* Tim Johnson <***@akwebsoft.com> [150307 14:49]:
> 2)Is there some other configuration that might interfere?
> overlay has no executable code.
P.S. : tried placing the following
fbsetbg /home/tim/.fluxbox/backgrounds/Fluxbox_Wallpaper_04_by_vermaden.png
in startup.
When fluxbox loads, I see the wallpaper for a second.
Now I see:

$full$full|/home/tim/.fluxbox/backgrounds/Fluxbox_Wallpaper_04_by_vermaden.png||:0
fbsetroot|-foreground white -solid white|style|:0.0

In last wallpaper, so my best guess is some other configuration
clobbers the wallpaper...
--
Tim
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com
Antonio Paiva
2015-03-08 03:16:54 UTC
Permalink
If you are loading the gnome-session in your fluxbox startup file, then
gnome sets its own background, which overwrites whatever fluxbox set. I
remember that there is a flag you need to set to stop it from doing that
but I'm afraid I do not remember where you can find it.
-Antonio

On Sat, Mar 7, 2015 at 6:01 PM, Tim Johnson <***@akwebsoft.com> wrote:

> * Tim Johnson <***@akwebsoft.com> [150307 14:49]:
> > 2)Is there some other configuration that might interfere?
> > overlay has no executable code.
> P.S. : tried placing the following
> fbsetbg
> /home/tim/.fluxbox/backgrounds/Fluxbox_Wallpaper_04_by_vermaden.png
> in startup.
> When fluxbox loads, I see the wallpaper for a second.
> Now I see:
>
>
> $full$full|/home/tim/.fluxbox/backgrounds/Fluxbox_Wallpaper_04_by_vermaden.png||:0
> fbsetroot|-foreground white -solid white|style|:0.0
>
> In last wallpaper, so my best guess is some other configuration
> clobbers the wallpaper...
> --
> Tim
> tim at tee jay forty nine dot com or akwebsoft dot com
> http://www.akwebsoft.com, http://www.tj49.com
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Fluxbox-users mailing list
> Fluxbox-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fluxbox-users
>
Tim Johnson
2015-03-08 15:55:00 UTC
Permalink
* Antonio Paiva <***@cnel.ufl.edu> [150307 17:27]:
> If you are loading the gnome-session in your fluxbox startup file, then
> gnome sets its own background, which overwrites whatever fluxbox set. I
> remember that there is a flag you need to set to stop it from doing that
> but I'm afraid I do not remember where you can find it.
I'm on lubuntu, so no gnome-session (I think). fbsetbg works fine
once fluxbox starts, I've already written a shell script to change
wallpapers and hooked it to the menu, so a hotkey should work to
manually start it. It's no big deal, not a matter of function.

thanks Antonio

--
Tim
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com
Bob Hepple
2015-03-08 06:27:24 UTC
Permalink
I just bonk this in my .fluxbox/startup file after dropping all my
fave wallpapers in .fluxbox/backgrounds - I get a new background every
10m


( while true; do fbsetbg -r ~/.fluxbox/backgrounds; sleep 600; done) &


Or there are programs for this - I once used nitrogen

Cheers


Bob

On 8 March 2015 at 09:43, Tim Johnson <***@akwebsoft.com> wrote:
> The only thing that has eluded me on fluxbox is setting a wallpaper.
> I have the following in my init file
>
> session.screen0.rootCommand: fbsetbg -f ~/.fluxbox/backgrounds/Fluxbox_Wallpaper_04_by_vermaden.png
>
> (see http://fluxbox.sourceforge.net/docbook/en/html/chap-bg.html)
>
> But no wallpaper appears. I see no errors in .xsession-errors or the
> fluxbox log file.
>
> Alternatively I have place the following in .xinitrc
> fbsetbg /home/tim/.fluxbox/backgrounds/Fluxbox_Wallpaper_04_by_vermaden.png
>
> 1)Do I need to do something else?
> 2)Is there some other configuration that might interfere?
> overlay has no executable code.
> --
> Tim
> tim at tee jay forty nine dot com or akwebsoft dot com
> http://www.akwebsoft.com, http://www.tj49.com
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Fluxbox-users mailing list
> Fluxbox-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fluxbox-users
Tim Johnson
2015-03-08 15:56:21 UTC
Permalink
* Bob Hepple <***@gmail.com> [150308 07:11]:
> I just bonk this in my .fluxbox/startup file after dropping all my
> fave wallpapers in .fluxbox/backgrounds - I get a new background every
> 10m
>
>
> ( while true; do fbsetbg -r ~/.fluxbox/backgrounds; sleep 600; done) &
I'm going to try that (and see my reply to Antonio) I've got about
6 wallpapers to sample, can you recommend any more?
thanks
--
Tim
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com
Bob Hepple
2015-03-08 20:45:52 UTC
Permalink
On 9 March 2015 at 01:56, Tim Johnson <***@akwebsoft.com> wrote:
> * Bob Hepple <***@gmail.com> [150308 07:11]:
>> I just bonk this in my .fluxbox/startup file after dropping all my
>> fave wallpapers in .fluxbox/backgrounds - I get a new background every
>> 10m
>>
>>
>> ( while true; do fbsetbg -r ~/.fluxbox/backgrounds; sleep 600; done) &
> I'm going to try that (and see my reply to Antonio) I've got about> 6 wallpapers to sample, can you recommend any more?

Not really - my collection is just a bunch I snarfed over the years -
I tend to prefer landscapes. Maybe try googling 'softshapeart' 'La
Sorbonne in Evening' 'Old Night in China' 'The Old Mountain Crystal
Portal' and you'll find a lot.


Cheers


Bob
Tim Johnson
2015-03-08 21:18:08 UTC
Permalink
* Bob Hepple <***@gmail.com> [150308 12:51]:
> On 9 March 2015 at 01:56, Tim Johnson <***@akwebsoft.com> wrote:
> > * Bob Hepple <***@gmail.com> [150308 07:11]:
> >> I just bonk this in my .fluxbox/startup file after dropping all my
> >> fave wallpapers in .fluxbox/backgrounds - I get a new background every
> >> 10m
> >>
> >>
> >> ( while true; do fbsetbg -r ~/.fluxbox/backgrounds; sleep 600; done) &
> > I'm going to try that (and see my reply to Antonio) I've got about> 6 wallpapers to sample, can you recommend any more?
>
> Not really - my collection is just a bunch I snarfed over the years -
> I tend to prefer landscapes. Maybe try googling 'softshapeart' 'La
> Sorbonne in Evening' 'Old Night in China' 'The Old Mountain Crystal
> Portal' and you'll find a lot.
thanks Bob!
--
Tim
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com
Tim Johnson
2015-03-09 21:47:45 UTC
Permalink
* Tim Johnson <***@akwebsoft.com> [150307 13:49]:
> The only thing that has eluded me on fluxbox is setting a wallpaper.
> I have the following in my init file
>
> session.screen0.rootCommand: fbsetbg -f ~/.fluxbox/backgrounds/Fluxbox_Wallpaper_04_by_vermaden.png
>
> (see http://fluxbox.sourceforge.net/docbook/en/html/chap-bg.html)
>
> But no wallpaper appears. I see no errors in .xsession-errors or the
> fluxbox log file.
I presume to have a solution. For anyone's edification (or critique)
I included some code blocks.
I /usr/local/bin/set_wallpaper the following code:
###################################################################
#!/bin/bash
MYPATH=/home/tim/.fluxbox/backgrounds
MYBIN=fbsetbg
case $1 in
"1")
$MYBIN $MYPATH/Fluxbox_Wallpaper_04_by_vermaden.png
;;
"2")
$MYBIN $MYPATH/Fluxbox_wallpaper_2_by_endel.jpg
;;
"3")
$MYBIN $MYPATH/prairie.jpg
;;
"4")
$MYBIN $MYPATH/fluxbox_wood_wallpaper_by_ipodpunker-d7x2qgd.png
;;
"5")
$MYBIN $MYPATH/fluxbox_wallpaper_by_deviantvicky-d33ory3.jpg
;;
"6")
$MYBIN $MYPATH/fluxbox_on_mepis_11_0_glass_color_slide_by_eldervlacoste-d4xipc3.png
;;
*)
echo "Unknown option!"
exit 1
esac
edit to one's needs ..
In ~/.fluxbox/menu the following
###################################################################
[begin] (fluxbox)
## Added submenu
[submenu] (Frequently Used) {}
[exec] (XFE) {/usr/bin/xfe} <>
#### second level additonal submenu
[submenu] (Wallpaper)
[exec] (Vermaden) {/usr/local/bin/set_wallpaper 1} <>
[exec] (Endel) {/usr/local/bin/set_wallpaper 2} <>
[exec] (Prairie) {/usr/local/bin/set_wallpaper 3} <>
[exec] (Wood) {/usr/local/bin/set_wallpaper 4} <>
[exec] (Deviant Vicky) {/usr/local/bin/set_wallpaper 5} <>
[exec] (Mepis) {/usr/local/bin/set_wallpaper 6} <>
[end]
[end]
## Default menu. Don't hack..
[include] (/etc/X11/fluxbox/fluxbox-menu)
[end]
###################################################################
and in ~/.fluxbox/init - this line
session.screen0.rootCommand: fbsetbg -l

See http://www.linuxquestions.org/questions/linux-software-2/how-to-set-wallpaper-in-fluxbox-at-startup-369155/
for the first posting by oxagast. If you search for the second
occurance of 'oxagast', you will see a secondary issue, which is
prevented by the following code in ~/.fluxbox/overlay

! The following line will prevent styles from setting the background.
background: none

Thanks for the input
--
Tim
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com
Genghis Khan
2015-03-10 06:13:37 UTC
Permalink
You do no need to bother this much.

Add the following in ~/.fluxbox/menu

[submenu] (Choose a wallpaper...) {} <>
[wallpapers] (~/.fluxbox/backgrounds) {} <>
[wallpapers] (/usr/share/fluxbox/backgrounds) {} <>
[end]

> Sent: Monday, March 09, 2015 at 11:47 PM
> From: "Tim Johnson" <***@akwebsoft.com>
> To: "Fluxbox Support" <fluxbox-***@lists.sourceforge.net>
> Subject: Re: [Fluxbox-users] Setting wallpaper (solved)
>
> * Tim Johnson <***@akwebsoft.com> [150307 13:49]:
> > The only thing that has eluded me on fluxbox is setting a wallpaper.
> > I have the following in my init file
> >
> > session.screen0.rootCommand: fbsetbg -f ~/.fluxbox/backgrounds/Fluxbox_Wallpaper_04_by_vermaden.png
> >
> > (see http://fluxbox.sourceforge.net/docbook/en/html/chap-bg.html)
> >
> > But no wallpaper appears. I see no errors in .xsession-errors or the
> > fluxbox log file.
> I presume to have a solution. For anyone's edification (or critique)
> I included some code blocks.
> I /usr/local/bin/set_wallpaper the following code:
> ###################################################################
> #!/bin/bash
> MYPATH=/home/tim/.fluxbox/backgrounds
> MYBIN=fbsetbg
> case $1 in
> "1")
> $MYBIN $MYPATH/Fluxbox_Wallpaper_04_by_vermaden.png
> ;;
> "2")
> $MYBIN $MYPATH/Fluxbox_wallpaper_2_by_endel.jpg
> ;;
> "3")
> $MYBIN $MYPATH/prairie.jpg
> ;;
> "4")
> $MYBIN $MYPATH/fluxbox_wood_wallpaper_by_ipodpunker-d7x2qgd.png
> ;;
> "5")
> $MYBIN $MYPATH/fluxbox_wallpaper_by_deviantvicky-d33ory3.jpg
> ;;
> "6")
> $MYBIN $MYPATH/fluxbox_on_mepis_11_0_glass_color_slide_by_eldervlacoste-d4xipc3.png
> ;;
> *)
> echo "Unknown option!"
> exit 1
> esac
> edit to one's needs ..
> In ~/.fluxbox/menu the following
> ###################################################################
> [begin] (fluxbox)
> ## Added submenu
> [submenu] (Frequently Used) {}
> [exec] (XFE) {/usr/bin/xfe} <>
> #### second level additonal submenu
> [submenu] (Wallpaper)
> [exec] (Vermaden) {/usr/local/bin/set_wallpaper 1} <>
> [exec] (Endel) {/usr/local/bin/set_wallpaper 2} <>
> [exec] (Prairie) {/usr/local/bin/set_wallpaper 3} <>
> [exec] (Wood) {/usr/local/bin/set_wallpaper 4} <>
> [exec] (Deviant Vicky) {/usr/local/bin/set_wallpaper 5} <>
> [exec] (Mepis) {/usr/local/bin/set_wallpaper 6} <>
> [end]
> [end]
> ## Default menu. Don't hack..
> [include] (/etc/X11/fluxbox/fluxbox-menu)
> [end]
> ###################################################################
> and in ~/.fluxbox/init - this line
> session.screen0.rootCommand: fbsetbg -l
>
> See http://www.linuxquestions.org/questions/linux-software-2/how-to-set-wallpaper-in-fluxbox-at-startup-369155/
> for the first posting by oxagast. If you search for the second
> occurance of 'oxagast', you will see a secondary issue, which is
> prevented by the following code in ~/.fluxbox/overlay
>
> ! The following line will prevent styles from setting the background.
> background: none
>
> Thanks for the input
> --
> Tim
> tim at tee jay forty nine dot com or akwebsoft dot com
> http://www.akwebsoft.com, http://www.tj49.com
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Fluxbox-users mailing list
> Fluxbox-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fluxbox-users
>
Loading...