You are not logged in.

#1 2012-09-13 13:56:19

dragonauta
Member
Registered: 2012-05-15
Posts: 313
Website

Weather Wallpaper

Hi all.
I have archbang fully updated.
I installed weather-wallpaper from AUR but I made some code modifications to adapt it for openbox.

I saved a copy of original weather-wallpaper python script.
This is the diff of my changes

$ diff -d /usr/bin/weather-wallpaper.old /usr/bin/weather-wallpaper
1c1
< #!/usr/bin/env python
---
> #!/usr/bin/env python2
20a21,23
> # MOD Author: dragonauta (dragonauta.x@gmail.com)
> # Comments on added lines using [dragonauta] tag
> # 
267c270,271
<                 self.stop_event.wait(60)
---
>                 # [dragonauta] changed from 60 minutes to 30
>                 self.stop_event.wait(30)
432a437,448
>             # [dragonauta]
>             # added output_bkg for creating a gradient background
>             # using 'background' and 'foreground' variables
>             output_bkg = os.path.expanduser("~") + "/.weather-wallpaper/.fondo.png"
>             cmd = "convert -size 1440x900 gradient:'%s-%s' %s" % (background, foreground, output_bkg)
>             os.popen(cmd)
> 
>             # [dragonauta]
>             # Using composite to center output_img with output_bkg
>             cmd = "composite -gravity center %s %s %s" % (output_img, output_bkg, output_img)
>             os.popen(cmd)
> 
449a466,471
>             # [dragonauta]
>             # added this section for openbox desktop.
>             # this will reload nitrogen
>             elif os.popen( "ps --user " + os.environ.get( "USER" ) + "| grep openbox" ).readline():
> 		cmd = "nitrogen --restore"
> 		os.popen(cmd)

As this scripts only works with gnome and kde, I added a section if user have openbox.
it reloads nitrogen every time weather-wallpaper checks the weather.

And this is a screenshot: openbox + bmpanel2 + conky
th_2012-09-13--1347565427_1440x900_scrot.png

Last edited by dragonauta (2013-01-17 05:47:26)


me
"Politicians and diapers need to be changed often ... and for the same reasons."

Offline

#2 2012-09-13 16:40:18

scjet
Member
From: Canada
Registered: 2010-12-01
Posts: 1,468

Re: Weather Wallpaper

hey thanks, very nice: "openbox + bmpanel2 + conky" is good enough, and maybe we could try adapt bmpanel2 -> tint2 panel, just to keep it archbang'ish ?
smile
Thanks again.

Last edited by scjet (2012-09-13 16:40:39)

Offline

#3 2012-09-14 08:56:58

dragonauta
Member
Registered: 2012-05-15
Posts: 313
Website

Re: Weather Wallpaper

oh. bmpanel2 is just a few days try... smile
I was using tint2 since I installed archbang.

For main topic (weather-wallpaper) doesn't matter if is bmpanel or tint2... I made it work for openbox WM.
Thanks for your comment


me
"Politicians and diapers need to be changed often ... and for the same reasons."

Offline

#4 2012-09-14 09:28:30

scjet
Member
From: Canada
Registered: 2010-12-01
Posts: 1,468

Re: Weather Wallpaper

@dragonauta, great work, and I agree, it don't matter, and don't get me wrong, 'cause that desktop is better that I could ever make, artistically speaking ! As long as it works with OpenBox country, then I'm always impressed.
wink
- bump, thanks for the nice contrib.

Last edited by scjet (2012-09-14 10:39:11)

Offline

Board footer

Powered by FluxBB