Little projects for people who know how to code :)

A home for all kinds of Puppy related projects
Message
Author
User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#16 Post by ttuuxxx »

Hi gposil Barry mentioned in his blog that he altered the current one to fit widescreen monitors, did you read his response? I don't have a widescreen just 2x 19" Square LCD, I like square Lcd's over widescreens :) so its perfect for my desktops but here's the thread where he started changes for widescreen. http://www.puppylinux.com/blog/?viewDetailed=00864
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
gposil
Posts: 1300
Joined: Mon 06 Apr 2009, 10:00
Location: Stanthorpe (The Granite Belt), QLD, Australia
Contact:

#17 Post by gposil »

I'm using a 19" widescreen and it works perfectly...well looks fine to me... :?
[img]http://gposil.netne.net/images/tlp80.gif[/img] [url=http://www.dpup.org][b]Dpup Home[/b][/url]

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#18 Post by trio »

Gposil,

4 points if I may:

1. /usr/local/apps/Walpaper/set_bg :

from

Code: Select all

if [ "$1" = "-clear" ];then
  IMAGE=""
fi

MODE="`cat $HOME/.config/wallpaper/backgroundmode`"
[ "$MODE" = "" ] && MODE="Stretch"
[ "$MODE" = "Centred" ] && MODE="Centre"
[ "$MODE" = "Scaled" ] && MODE="Scale"
to this:

Code: Select all

if [ "$1" = "-clear" ];then
  IMAGE=""
fi

MODE="`cat $HOME/.config/wallpaper/backgroundmode`"
[ "$MODE" = "" ] && MODE="Scale"
[ "$MODE" = "Centred" ] && MODE="Centre"
[ "$MODE" = "Scaled" ] && MODE="Scale"

#w482 BK now have script that truncates an image vertically so that it has the right dimensions
#for a widescreen...
if [ "$MODE" = "Stretch" ];then
 /usr/sbin/background_reshape ${1}
fi
to be compatible with 430

Edit: aah, yours doesn't have the strech option, so the tweak may no be necessary

2. Not to list all the ORIGINAL-xxx.jpg produced by background_reshape
3. can you list the images not with full path?
4. Current wallpaper text

Thanks

User avatar
gposil
Posts: 1300
Joined: Mon 06 Apr 2009, 10:00
Location: Stanthorpe (The Granite Belt), QLD, Australia
Contact:

#19 Post by gposil »

Trio,

1.) I don't get the problem with widescreen or the need to use the background_reshape script, I have 2 widescreens, 19" an 22" and works fine without it...

2.) No reshaping, so no need to worry about files produced.

3.) Yes, I will change wallpaper list to not include path.

4.) Yes, will rewrite code to show current background on startup.

Hope that helps.
[img]http://gposil.netne.net/images/tlp80.gif[/img] [url=http://www.dpup.org][b]Dpup Home[/b][/url]

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#20 Post by ttuuxxx »

Hi gposil I was thinking maybe a "Open Folder" button to open the wall the wallpaper folder up in rox? So like a 3 in the row button
"Apply" "Open Folder" "Cancel".
Its just an idea, makes add/delete wallpapers easier :)
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#21 Post by trio »

gposil,

Did you read Barry's blog?

It's a pity that your hacked Cwallpaper didn't make it into the Beta1. But I think it is easy enough for you to adhere to what the /usr/local/apps/Wallpaper/AppRun does in 430, as follows (if I may):

1. Exclude any ORIGINAL-xxx.jpg in list
2. Pipe $MODE = streched, tiled, centred, scaled (please find the correct terms, I forgot) to /usr/local/apps/Wallpaper/set_bg
3. name it /usr/local/apps/Wallpaper/AppRun to replace the original only

Then it should do exactly what the original should do, but with preview!

Other (not too important) functions in original AppRun:
1. Current background text
2. Selectable directory
3. Slideshow (but who needs it?)
4. Edit button (to go to mtpaint)
5. Maybe like ttuuxx said, go to the current directory (maybe to add or delete wallpapers)

Anything else? I think that's enough

C'mon gposil, you can do it! Let's make puppy more professional. Thanks

ttuuxxx

I hacked pcursorsel (used in 421) so:
1. It will not list ROX and default in the available cursor list
2. refresh x instead of restart X (so we won't loose any opened window) - thanks to xrefresh by Big Bass

Maybe it can be useful to you to replace the cursor selector you proposed.

Thanks all

User avatar
gposil
Posts: 1300
Joined: Mon 06 Apr 2009, 10:00
Location: Stanthorpe (The Granite Belt), QLD, Australia
Contact:

#22 Post by gposil »

trio...

It already does all that and Barry has a copy and the source, so he can fiddle with it, you'll find it here http://www.gposil.com/test/woof-alpha9/ ... kages/src/
[img]http://gposil.netne.net/images/tlp80.gif[/img] [url=http://www.dpup.org][b]Dpup Home[/b][/url]

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#23 Post by trio »

Ok,

Now here's my own version (modified from your source). I include binary & source.


I name it pwallset-1.1 just to differentiate
It is only 1 file, called AppRun, you replace the original /usr/local/apps/Wallpaper/AppRun

It is 1 file only, no need other files, so it will adhere to original AppRun in 430
and it won't list all the ORIGINAL-xxx.jpg

Hope someone can find it useful

Cheers

Edit: The attached contains binary and source, but somewhat the source became BLANK, dunno why ..(I lost it :( )
Attachments
pwallset.jpg
(23.67 KiB) Downloaded 1008 times
pwallpaper-1.1.tar.gz
(7.57 KiB) Downloaded 542 times

User avatar
gposil
Posts: 1300
Joined: Mon 06 Apr 2009, 10:00
Location: Stanthorpe (The Granite Belt), QLD, Australia
Contact:

#24 Post by gposil »

trio can track down the source...it doesn't work in dpup so i'll have to have a look at source.

Cheers
[img]http://gposil.netne.net/images/tlp80.gif[/img] [url=http://www.dpup.org][b]Dpup Home[/b][/url]

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#25 Post by trio »

I have to recreate it first.. :cry: let me see

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#26 Post by trio »

well, I recreated it. here it is. works in 430 or 421
Attachments
pwallpaper-1.1-source.tar.gz
(3.85 KiB) Downloaded 589 times

User avatar
gposil
Posts: 1300
Joined: Mon 06 Apr 2009, 10:00
Location: Stanthorpe (The Granite Belt), QLD, Australia
Contact:

#27 Post by gposil »

thanks trio,

I'll post 1.2 when i've got the additions ttuuxxx wanted, including the upup/dpup change

Cheers
[img]http://gposil.netne.net/images/tlp80.gif[/img] [url=http://www.dpup.org][b]Dpup Home[/b][/url]

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#28 Post by trio »

This one is especially for 421 (compatible with pwidgets), and it will not list /usr/share/backgrounds/Pwidgets_background (produced by sidebar), replace your /usr/local/apps/Wallpaper/AppRun with this one
Attachments
pwallpaper-1.1-421-pwidgets.tar.gz
(7.54 KiB) Downloaded 554 times

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#29 Post by ttuuxxx »

gposil wrote:thanks trio,

I'll post 1.2 when i've got the additions ttuuxxx wanted, including the upup/dpup change

Cheers
also don't forget to include the 2&3 series extra files :) trio left them out, his version open fine just couldn't do anything with it on 2.14X
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#30 Post by trio »

Hi ttuuxxx

Just use /usr/local/apps/Wallaper/set_bg from any other puppy, it should work just fine

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#31 Post by trio »

Here's another one, compiled in 430beta1, the differences are:

1. Will not list ORIGINAL-xxx.jpg and also Pwidgets_background
2. Compatible with pwidgets users (not native in 430)
3. This compiled app seems can't run in 421
4. tar.gz consists of AppRun and source
5. Please replace original /usr/local/apps/Wallpaper/AppRun with this one (you may want to back it up first)
Attachments
pwallpaper-1.1-source-430pwidgets.tar.gz
(10.82 KiB) Downloaded 552 times

User avatar
gposil
Posts: 1300
Joined: Mon 06 Apr 2009, 10:00
Location: Stanthorpe (The Granite Belt), QLD, Australia
Contact:

#32 Post by gposil »

I should have pwallset-1.2 ready tonight...just testing at the moment, works in all versions from 2-5 with or without pwidgets, and a few new features that ttuuxxx wanted included...

Cheers
[img]http://gposil.netne.net/images/tlp80.gif[/img] [url=http://www.dpup.org][b]Dpup Home[/b][/url]

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#33 Post by trio »

gposil wrote:I should have pwallset-1.2 ready tonight...just testing at the moment, works in all versions from 2-5 with or without pwidgets, and a few new features that ttuuxxx wanted included...

Cheers
Great!

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#34 Post by ttuuxxx »

Sounds good Gposil looking forward to it :)
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#35 Post by ttuuxxx »

I found this little home network chat client, I was thinking it would be really great if someone could convert it to a regular irc freenode chat client. The reason why is that its only 100kb in size, if freenode could be added boy that would make a great thin chat client with a gtk gui.
below is a screenshot and a pet I compiled :)
any takers?
ttuuxxx

homepage
http://vqcc-gtk.sourceforge.net/index.php?l=about

source
http://sourceforge.net/projects/vqcc-gt ... z/download
Attachments
vqcc-gtk-0.5-i386.pet
(102.23 KiB) Downloaded 443 times
chat.jpg
(31.24 KiB) Downloaded 982 times
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

Post Reply