PuppyBasic-Screensaver 02

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

PuppyBasic-Screensaver 02

#1 Post by MU »

Screenshot:
see attachment


The "real" xscreensaver consists of thousands of lines of code.
You can get it here:
http://www.murga-linux.com/puppy/viewtopic.php?p=248308

And here is another one:
http://www.murga-linux.com/puppy/viewtopic.php?t=23909

PuppyBasic-Screensaver consists just of some lines, less than 100.

Why?
X is a complex system.
You have multiple Desktops, Remote-access functionality, Support for 2 and more Monitors and more.

If you want to keep account of all of that, a screensaver gets quite huge.


So PuppyBasic-Screensaver is NOT a replacement for xscreensaver.

It simply starts one of these modules:

Blank Screen
Parallax-Scroller
XDesktopwaves
Mplayer (Fullscreen)
slideshow

No Password-protection, no support for anything further special.


Usage:
Install, select "setup-PB-screensaver" in your Dotpup-menue.

Concerning Password-protection: not available yet, but I'm on it...

The slideshow uses the folder /usr/share/backgrounds
To use another one, edit:
/usr/local/PuppyBasicScreensaver02/resource/mod_slideshow.pbas

Download (62 kb):
http://dotpups.de/dotpups/Desktop-Tools ... aver02.pup

UPDATE: bugfixed version 03 as Pet:
http://www.murga-linux.com/puppy/viewto ... 4&start=45

*************************
Note for the slideshow:
if the slideshow module does not work, use this workaround:
Install with Petget the package "gqview".
Then edit:
/usr/local/PuppyBasicScreensaver02/resource/mod_slideshow.pbas
like this:

Code: Select all

#!/usr/bin/puppybasic
include "/usr/lib/wxbasicscript/basefunctions.inc"


shell("gqview -s -f /usr/share/backgrounds/")
UPDATE:
a PET with new slideshow module is announced further down!

Mark
Attachments
PuppyBasicScreensaver02.jpg
(50.32 KiB) Downloaded 987 times
Last edited by MU on Sat 15 May 2010, 10:16, edited 11 times in total.

User avatar
Alucard_the_dex
Posts: 317
Joined: Wed 05 Oct 2005, 01:53

#2 Post by Alucard_the_dex »

I like a no thrills screen saver if im not at my comp why need it be so bloated I like the one i have on puppy now by defualt that just blanks my screen Kinda like a program i had for Windows that blacked my screen when i double clicked it i wish puppy had that ><
~Puppy Linux~ Where mans best friend becomes PCs best friend

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post by MU »

Jep, think so too.

Thats to say, xscreensaver is not really bloated (if you look at the resources of modern machines), but just too big for Puppy.

Had just a rough look today, Download is 4 MB.
you certainly can delete some parts, but have to add others because of dependencies.

So I think a small PuppyBasic-solution will be a nice thing for Puppy 8)

User avatar
gliezl
Posts: 322
Joined: Sat 06 Aug 2005, 22:30
Location: Manila

password protect!

#4 Post by gliezl »

would you consider putting a password to lock your puppy workstation? :)

I mean for future versions :wink:
[color=blue][i]"If you have knowledge, let others light their candles in it."
~Margaret Fuller[/i][/color]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#5 Post by MU »

I uploaded version 02 with grafical interface.
It checks the keyboard now, too (uses a patched rsaver: http://www.linuxpages.org/rsaver_en.php )

Alucard_the_dex wrote:I like a no thrills screen saver if im not at my comp why need it be so bloated I like the one i have on puppy now by defualt that just blanks my screen Kinda like a program i had for Windows that blacked my screen when i double clicked it i wish puppy had that ><
You can drag /usr/local/PuppyBasicScreensaver02/resource/sc.sh to your desktop.
It will start the current module immedeatly :)

Gliezl, I found a very small Code for xlock, but it is from 1991 and does not compile on modern systems.
I will try to adapt it.
There are more modern versions with OpenGL and more, but they are quite huge.

Mark

User avatar
headfound
Posts: 371
Joined: Sun 25 Jun 2006, 00:58
Location: England
Contact:

#6 Post by headfound »

Ok I fully admit to being a complete beginner when it comes to linux, but i'm very willing to learn with puppy, so, is it possible to run the screensaver as your background as in the xscreenaver hack eg

./flurry -root

will apparently run that saver as an animated desktop background. I tried installing xscreensaver but couldn't get it going so would the same command work with puppybasicsaver? eg will

./xdesktopwaves -root

run as an animated background?
thanks

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#7 Post by MU »

while xscreensaver is a "system", this one here is a "programcollection".
This means, it depends on the program, if you can run it in background.

Xdesktopwaves work, install the standalone-version for that:
http://www.murga.org/~puppy/viewtopic.php?t=2123

Mplayer can be used as Background, too, I think the option is -onroot

Or use mozilla:
http://www.murga.org/~puppy/viewtopic.php?t=8080

You also can run the xscreensaver-modules from another Linux-system, they are standalone-executables.

Mark

User avatar
headfound
Posts: 371
Joined: Sun 25 Jun 2006, 00:58
Location: England
Contact:

#8 Post by headfound »

Wow thats great :D
Thanks, i will give it a go!
martyn

User avatar
Eyes-Only
Posts: 1043
Joined: Thu 10 Aug 2006, 06:32
Location: La Confederation Abenaquaise

#9 Post by Eyes-Only »

Nice Mark! Excellent! As is all of your things of course. :) Thank you so much. I've always found it so hard as "root" on other systems (yeah, yeah... "You're not supposed to run as root..." blah, blah---MY computer, eh?) as xscreensaver will never run so screen goes blank, monitor goes off. I dislike that very much.

My favourite? xdesktopwaves. Very calming effect! :)

Thanks so much again for all your useful .pups!

Amicalement / mfg

Eyes-Only
"L'Peau-Rouge"

(P/s: You have very good French you! hehe! ;) )

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#10 Post by MU »

I added a slideshow-module.

Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#11 Post by MU »

There is a PET here:
http://www.murga-linux.com/puppy/viewto ... 847#295847

The slideshow module was replaced by one based on SDL, so you need to install libSDL with petget, if SDL is not in your Puppy.
Newyearspup already includes SDL, so that pet should work without other packages.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#12 Post by MU »

here is a special version.

It includes 8 modules from Xscreensaver (details see next message).

They are not displayed fullscreen, because then you could not exit them (as they are not managed by Xscreensaver).
Instead, they use "pseudo-fullscreen".
To exit them, you must click on them, then hit the "Esc" key!

In JWM, this looks like a maximized window, in Icewm, XFWM and Openbox it looks like fullscreen, but panels might cover it.
It depends on the setup of those windowmanagers.


A funny gimmick you can get like this:
if you edit:
/usr/local/PuppyBasicScreensaver02/resource/xscreensaver/xsaver
Line 43

Code: Select all

xwin_setlayer("0x" & mywin,"1")
to

Code: Select all

xwin_setlayer("0x" & mywin,"-1")
Then the xscreensaver module runs as animated background.
But it will cover desktopicons.

I attach a screenshot running it like this in icewm.
Mark
Attachments
xsaver-bg.jpg
(19.62 KiB) Downloaded 1986 times
Last edited by MU on Fri 17 Apr 2009, 08:46, edited 4 times in total.
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#13 Post by MU »

added some more screensavers, I think these are the most beautifull ones.

atlantis
fiberlamp
fireworkx
flurry
glmatrix
lament
starwars
xmatrix

Most require OpenGL.

You can see screenshots here:
http://www.jwz.org/xscreensaver/screenshots/

To display a different text in "StarWars", edit:
/usr/local/PuppyBasicScreensaver02/resource/xscreensaver/xscreensaver-text
There you can change the file, that will be listed.
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

MUguest
Posts: 73
Joined: Sat 09 Dec 2006, 16:40

#14 Post by MUguest »

There was a bug with the new xscreensaver modules.
They were started again after the desired intervall, so you finally had lots of them running at the same time.

I corrected this now.
Mark

MUguest
Posts: 73
Joined: Sat 09 Dec 2006, 16:40

#15 Post by MUguest »

I updated the pet.
Changes for the slideshow:
- runs with your current screensize
- loops once all pictures were shown (by using a recursive symlink, and the option to descend into subdirectories)
- uses "fade" as effect to blend the pictures.

Mark

Post Reply