Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 04:03
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Easy to use random wallpaper changer
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 4 of 6 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Wed 17 Oct 2012, 20:24    Post_subject:  

Hi mcellig.

The background is Wallrefresh Online Wallpaper ---> Stockholm.

On the bottom is wbar, that's right. But it's an old version, Actually a modified version of 1.3.3 with setup.

The Icons on the right are the usual drive icons. I did set them to the right side in /etc/eventmanager.
Code:
#left, right, bottom, or top of screen...
ICON_PLACE_ORIENTATION='right'

The icon theme is my personal edition of the faenza icon set.

---

I have put a script into LazY Puppy that makes symbolic links from /usr/share/pixmaps, from /usr/local/lib/X11/pixmaps and some other paths to the wbar icon directory in /usr/share/wbar/wbar.icons - so, i can use all those icons in wbar. If I do switch the icon theme the wbar icons do change also this way. Smile

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send_private_message 
rmcellig

Joined: 19 Nov 2011
Posts: 922
Location: Ottawa Ontario Canada

PostPosted: Wed 17 Oct 2012, 21:50    Post_subject:  

Thanks! Appreciate it.
Back to top
View user's profile Send_private_message Visit_website 
SFR


Joined: 26 Oct 2011
Posts: 1078

PostPosted: Thu 18 Oct 2012, 08:10    Post_subject:  

stifiling wrote:
Hey thanks for that SFC. just one last thing i want to say and that is.....it would appear as though the googleimages would be the best of the scripts. but based on my history with using them, the interfacelift.com script is really the best. it doesn't freeze sometimes like the google one does...it seems to randomize better...(for one reason or another the google one tends to duplicate more often), and also.....the wallpapers are plentiful and tend to be more beautiful and more like 'real' wallpapers.

i wish i had said these things before u rewrote the app. but i do think...u'd like the ifl one better.

Good job though...the new RWC looks really nice.

Hey Stifiling

The problem with InterfaceLift is it seems that categories as well as resolutions are 'hard-coded', that's why I've chosen googleimages, which gives more...err...freedom..?
For instance, one can choose "cat+sweet+fluffy" or "thermonuclear+explosion+mayhem" in any resolution and he/she'll get, more or less of course, what was expected.

But it's not a big problem really, I've resolved that this way:
If user enters * into 'Search query' and/or 'Resolution' field - then InterfaceLift will be in use; otherwise - GoogleImages.

Fair enough, I think?

I've attached v1.6.1 to my previous post.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send_private_message 
SFR


Joined: 26 Oct 2011
Posts: 1078

PostPosted: Fri 26 Oct 2012, 09:30    Post_subject:  

Update, version 1.6.2:

Bugfix: possible corruption of pinboard wallpaper when RWC/computer is turned off during downloading.
Added: 'Safe Search' checkbox; until now 'safe search' was "on" by default.

Greetings!
RWC-1.6.2.png
 Description   Screenshot
 Filesize   29.3 KB
 Viewed   826 Time(s)

RWC-1.6.2.png

RWC-1.6.2.pet
Description  Random Wallpaper Changer v1.6.2
pet

 Download 
Filename  RWC-1.6.2.pet 
Filesize  5.17 KB 
Downloaded  416 Time(s) 

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send_private_message 
rmcellig

Joined: 19 Nov 2011
Posts: 922
Location: Ottawa Ontario Canada

PostPosted: Fri 26 Oct 2012, 10:18    Post_subject:  

Looks good!! You are doing amazingly well with this app.

For the look inside sub folders option. How many folders deep does it go?
Back to top
View user's profile Send_private_message Visit_website 
SFR


Joined: 26 Oct 2011
Posts: 1078

PostPosted: Fri 26 Oct 2012, 11:00    Post_subject:  

rmcellig wrote:
For the look inside sub folders option. How many folders deep does it go?

Hard to say. Laughing
I just created 100 nested subfolders and RWC still finds pictures saved in the deepest one...
You can try by yourself:
Code:
for i in {1..100}; do mkdir "test-$i"; cd "test-$i"; done; cp /usr/share/backgrounds/* .

(note that there's dot at the end)

It depends more on Linux/Kernel limitations than RWC, I think.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send_private_message 
rmcellig

Joined: 19 Nov 2011
Posts: 922
Location: Ottawa Ontario Canada

PostPosted: Fri 26 Oct 2012, 11:05    Post_subject:  

Great! Thanks. I'm going to try RWC in the new Puppy Linux that was announced this week. So far I really like it.
Back to top
View user's profile Send_private_message Visit_website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Fri 26 Oct 2012, 13:34    Post_subject:  

Hi SFR,

rmcellig wrote:
Looks good!! You are doing amazingly well with this app.

Agreed, in my brief tests (so far) it works nicely...

I am testing on Akita, which doesn't use the ROX pinboard by default,
so ROX pops up an error msg when the pinboard is first enabled by RWC,
and a default pinboard instance is started, with only the default Home icon visible...
But of course this doesn't happen if the ROX pinboard is already running...

Anyway, the above problem is not really anything to do with your app,
just what happens when ROX is not already running, but it brings me to the question...

Would it be possible (if you're even interested) to make this app use feh to set the wallpaper?

Akita uses feh when the ROX pinboard is not active.. It builds and runs another script. Example of the generated script below:

Code:
#!/bin/ash
[ -x /usr/bin/feh ] && /usr/bin/feh --no-menus --bg-fill "/usr/share/backgrounds/akita.jpg"
exit


I would be more than happy to get feh working with RWC myself,
but wondered if you had any known caveats, thoughts or suggestions, etc...
If not, then don't worry... Cheers.

EDIT: I added the following to /usr/local/RWC/rwc-main:
EDIT2: changed Center to Centre below...

(not tested much at all...)

Code:
#261012 added support for feh, use it if present (it's prob not)
case $ROX_STYLE in
   Centre) FEH_STYLE='--bg-center' ;;
   Stretch) FEH_STYLE='--bg-fill' ;;
   Max) FEH_STYLE='--bg-max' ;;
   Scale) FEH_STYLE='--bg-scale' ;;
   Tile) FEH_STYLE='--bg-tile' ;;
   *) FEH_STYLE='--bg-scale' ;;
esac
[ "`which feh`" != "" ] && feh --no-menus ${FEH_STYLE} "$WALLPAPER" || {
rox --RPC << EOF
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope">
 <env:Body xmlns="http://rox.sourceforge.net/SOAP/ROX-Filer">
  <SetBackdrop>
   <Filename>$WALLPAPER</Filename>
   <Style>$ROX_STYLE</Style>
  </SetBackdrop>
</env:Body> </env:Envelope>
 
EOF
}

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search

Edited_times_total
Back to top
View user's profile Send_private_message 
SFR


Joined: 26 Oct 2011
Posts: 1078

PostPosted: Fri 26 Oct 2012, 13:59    Post_subject:  

Hey Scottman

Quote:
Would it be possible (if you're even interested) to make this app use feh to set the wallpaper?

I think it would . It's just a matter of modifying rwc-main script - it checks if XFCE is the default WM (cat /etc/windowmanager | grep xfce), if not - ROX is set as default.
It will be enough to modify main 'if..else..fi' condition in the mentioned script.

I'll download Akita and see how to best adapt RWC to it, but if you'll be the first, just let me know, so I'll include it.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send_private_message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Fri 26 Oct 2012, 14:02    Post_subject:  

SFR wrote:
Hey Scottman

Hi SFR... I just saw your reply after I edited my post, sorry....

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
SFR


Joined: 26 Oct 2011
Posts: 1078

PostPosted: Fri 26 Oct 2012, 14:11    Post_subject:  

No problem, thanks for feh style definitions!
I'll test it a bit and upload new version in a few days.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send_private_message 
SFR


Joined: 26 Oct 2011
Posts: 1078

PostPosted: Fri 26 Oct 2012, 17:56    Post_subject:  

SFR wrote:
I'll test it a bit and upload new version in a few days.

Ok, I'm natural born pessimist - I meant "hours" of course. Wink

@ Sc0ttman:
I've done it in a bit different way:
Code:
if [ `which feh` ] && [ ! "`xwininfo -root -tree | grep 'ROX-Pinboard'`" ]; then
...

because if there's Rox pinboard in use AND feh is also installed (in other Puppies, for instance, as a part of Battleshooter's Conky+Lua), RWC would use feh then.
(phew, it took me a while to find out "how to determine if pinboard is in use or not", btw)

So, RWC now works with Akita's default configuration (feh), but if user decides to use pinboard, it works aswell.

Also, Akita has different output of xrandr, so I've added small modification and current resolution should be recognized correctly now.

PS. I didn't test it "exhaustively", but everything seems to work fine so far; couldn't find any flaw...but future will tell. Wink

Greetings!
RWC-1.6.3.pet
Description  RWC-1.6.3; now compatible with Akita
pet

 Download 
Filename  RWC-1.6.3.pet 
Filesize  5.33 KB 
Downloaded  398 Time(s) 

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send_private_message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Fri 26 Oct 2012, 18:48    Post_subject:  

Thanks, thats great.. Just a quick question, what am I supposed to do when I get the 'only 1 instance' popup msg, to get the GUI to load again? (Aside from killing it manually - I'm thinking of noobs and novices...)
_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
SFR


Joined: 26 Oct 2011
Posts: 1078

PostPosted: Fri 26 Oct 2012, 19:48    Post_subject:  

Yes, I just noticed that it happens from time to time in Akita (although never happend in Slacko).
Surprisingly the addition of sleep 0.3 right before this line:
Code:
[ `pidof rwc-config | wc -w` -gt "2" ] && xmessage -bg red -center -title "RWC Error" "Only one instace of RWC allowed!" && exit 1

at the beginning of rwc-config script seems to "resolve" the problem.
But I'm not sure, because it happens very, very rare for me...

Please check out if it's ok for you too, so I'll upload corrected version tomorrow.
Also, perhaps a lower value of 'sleep' will work aswell..?

Thanks for noticing this, btw.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send_private_message 
SFR


Joined: 26 Oct 2011
Posts: 1078

PostPosted: Sat 27 Oct 2012, 07:02    Post_subject:  

@Sc0ttman:
I _think_ I found the actual bug, it was /usr/bin/rwc-config:
Code:
exec /usr/local/RWC/rwc-config &

I've no idea why did I put & there, but for 90% it was the cause; most likely /usr/bin/rwc-config process was dying too slow. Interesting that it wasn't happend in Slacko..?
But thanks again, it was definitely RWC bug.
I hope it'll be ok now.
__________________________

I've also added experimental support for LXDE (tested only on LXPup).

__________________________

Since all versions are scattered in different places in this thread, quick summary of supported DEs:
- XFCE
- ROX
- ROX (without pinboard, but with 'feh' as wallpaper setter)
- LXDE (experimental)

EDIT: tiny bugfix in detecting current resolution; if it works for you, ignore it. Reuploaded after 5 downloads.

Greetings!
RWC-1.6.4.pet
Description  Random Wallpaper Changer
pet

 Download 
Filename  RWC-1.6.4.pet 
Filesize  5.59 KB 
Downloaded  415 Time(s) 

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.

Edited_time_total
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 4 of 6 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0952s ][ Queries: 13 (0.0055s) ][ GZIP on ]