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 Thu 17 Apr 2014, 22:58
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
DuDE-0.4.1
Post new topic   Reply to topic View previous topic :: View next topic
Page 11 of 14 [205 Posts]   Goto page: Previous 1, 2, 3, ..., 9, 10, 11, 12, 13, 14 Next
Author Message
Jim1911

Joined: 19 May 2008
Posts: 2445
Location: Texas, USA

PostPosted: Fri 25 Jun 2010, 18:13    Post subject:  

Installed DuDE-0.4 over DuDE-0.3 running with luci-004. So far I've noted no problems or differences except for the corners, MicksClock shows up as a small black rectangle, see attached.
desktop.png
Description 
png

 Download 
Filename  desktop.png 
Filesize  169.84 KB 
Downloaded  398 Time(s) 
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7547
Location: qld

PostPosted: Fri 25 Jun 2010, 18:32    Post subject:  

Jim1911 wrote:
Installed DuDE-0.4 over DuDE-0.3 running with luci-004. So far I've noted no problems or differences except for the corners, MicksClock shows up as a small black rectangle, see attached.


Hi Jim

That's because Barry has ditched yaf-splash in woof in favour of gtkdialog-splash. A bit disappointing in my opinion, it also breaks my PCountdown timer as yaf-splash has a timer function as well as the clock.

Yaf-splash is still there, but it might need the call directly to it's location in /usr/X11R7/bin/yaf-splash

Cheers

Some time later....

Jim, here's a pet for micksclock, it calls yaf-splash just like I said earlier.

Sigmund, this is probably the best solution because yaf-splash, AFAIK is in /usr/X11R7/bin in all Puppies.
micksclock-1.pet
Description 
pet

 Download 
Filename  micksclock-1.pet 
Filesize  635 Bytes 
Downloaded  362 Time(s) 

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Jim1911

Joined: 19 May 2008
Posts: 2445
Location: Texas, USA

PostPosted: Fri 25 Jun 2010, 21:53    Post subject:  

01micko wrote:

Jim, here's a pet for micksclock, it calls yaf-splash just like I said earlier.
Can't believe how quick you are. Works good in luci-2.0.5. One problem though, the font is small, how is that changed?

Thanks,
Jim
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7547
Location: qld

PostPosted: Sat 26 Jun 2010, 00:19    Post subject:  

Hi Jim

Do you mean tiny as in only a few pixels high? (The font that is). I have seen this before and am trying to debug it.

Can you do me a favour and run "MicksClock" in a terminal, then just click it as normal to kill it and post the terminal error if any. I suspect you will get "can't load font" or some such error.

I have MicksClock running perfectly in 205 but am yet to install DuDE.

Cheers

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Sometime later... again.....

Jim, I've got to the bottom of it, a bug in Luci. mkfontscale and mkfontdir are missing! So, when Pwidgets are installed the fonts.dir and fonts.scale files go awol. Not good. Yaf-splash must read these to scale the font.

Solution.

Install attached pet, in a term run
Code:
# mkfontscale /usr/share/fonts/default/TTF
# mkfontdir /usr/share/fonts/default/TTF


Restart X.

All fixed. Smile
font-utils-1.pet
Description 
pet

 Download 
Filename  font-utils-1.pet 
Filesize  13.64 KB 
Downloaded  348 Time(s) 

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7547
Location: qld

PostPosted: Sat 26 Jun 2010, 02:07    Post subject:  

Ah, I have fonts on the brain.. that's a good thing Sigmund Wink

Have some fun with this... Very Happy
Code:
#!/bin/sh
#syntax: MicksClock bgcolor fgcolor abbr-font-name (dejavu, ionic, monofonto)
BG=$1; [ ! "$BG" ] && BG=black
FG=$2; [ ! "$FG" ] && FG=gray15

HEIGHT=`xwininfo -root | grep -m 1 '\geometry' | cut -f4 -d ' ' | cut -f2 -d 'x' | cut -f1 -d '+'`
WIDTH=`xwininfo -root | grep -m 1 '\geometry' | cut -f4 -d ' ' | cut -f1 -d 'x'`
SIZE=$((HEIGHT/5))
#PLACEMENT_X=$((RANDOM % 200))
#PLACEMENT_Y=$((RANDOM % 200))
#added different fonts #Mick
FONT=$3; [ ! "$FONT" ] && FONT="-misc-dejavu sans-bold-r-normal--$SIZE-0-0-0-p-0-iso10646-1"
if [[ $3 == "dejavu" ]]; then FONT="$FONT"
   elif [[ $3 == "ionic" ]]; then FONT="-misc-ionic charge-medium-r-normal--$SIZE-0-0-0-p-0-iso10646-1"
   elif [[ $3 == "monofonto" ]]; then FONT="-larabiefonts-monofonto-medium-r-normal--$SIZE-0-0-0-m-0-iso10646-1"
fi
/usr/X11R7/bin/yaf-splash -font "$FONT" -bg $BG -fg $FG -outline 0 -clock -geometry $((WIDTH+PLACEMENT_X))x$((HEIGHT+PLACEMENT_Y))+0+0


Very Happy Cheers

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5562
Location: Valåmoen, Norway

PostPosted: Sat 26 Jun 2010, 03:01    Post subject:  

Mick
I have updated MicksClock with your code that fixes both
- path to yaf-splash
- font improvement.

What do you think we should do with the loss of mkfontscale and mkfontdir. Are they meant to be in Lupu, or should we include them into Pwidgets?


Makes me happy that you feel 'fonty' these days Wink
Sigmund

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7547
Location: qld

PostPosted: Sat 26 Jun 2010, 03:05    Post subject:  

Hi Sigmund

It's a Luci bug in the beta versions, mkfontscale and mkfontdir will be in the next version I'm sure Wink . I have reported it in the Luci-205 thread. They exist in Puppy 5.

Also there is a small bug in my code just above your post, here's the updated script:
Code:
#!/bin/sh
#syntax: MicksClock bgcolor fgcolor abbr-font-name (dejavu, ionic, monofonto)
BG=$1; [ ! "$BG" ] && BG=black
FG=$2; [ ! "$FG" ] && FG=gray15

HEIGHT=`xwininfo -root | grep -m 1 '\geometry' | cut -f4 -d ' ' | cut -f2 -d 'x' | cut -f1 -d '+'`
WIDTH=`xwininfo -root | grep -m 1 '\geometry' | cut -f4 -d ' ' | cut -f1 -d 'x'`
SIZE=$((HEIGHT/5))
#PLACEMENT_X=$((RANDOM % 200))
#PLACEMENT_Y=$((RANDOM % 200))
#added different fonts #Mick
FONT=$3; [ ! "$FONT" ] && FONT="-misc-dejavu sans-bold-r-normal--$SIZE-0-0-0-p-0-iso10646-1"
if [[ $3 == "dejavu" ]]; then FONT="-misc-dejavu sans-bold-r-normal--$SIZE-0-0-0-p-0-iso10646-1"
   elif [[ $3 == "ionic" ]]; then FONT="-misc-ionic charge-medium-r-normal--$SIZE-0-0-0-p-0-iso10646-1"
   elif [[ $3 == "monofonto" ]]; then FONT="-larabiefonts-monofonto-medium-r-normal--$SIZE-0-0-0-m-0-iso10646-1"
fi
/usr/X11R7/bin/yaf-splash -font "$FONT" -bg $BG -fg $FG -outline 0 -clock -geometry $((WIDTH+PLACEMENT_X))x$((HEIGHT+PLACEMENT_Y))+0+0


Oh, forgot to mention those font calls depend on Pwidgets.

Cheers

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5562
Location: Valåmoen, Norway

PostPosted: Sat 26 Jun 2010, 09:55    Post subject:  

Quote:
Also there is a small bug in my code just above your post
got it
_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
Jim1911

Joined: 19 May 2008
Posts: 2445
Location: Texas, USA

PostPosted: Sat 26 Jun 2010, 11:04    Post subject:  

01micko wrote:
Hi Jim
Jim, I've got to the bottom of it, a bug in Luci. mkfontscale and mkfontdir are missing! So, when Pwidgets are installed the fonts.dir and fonts.scale files go awol. Not good. Yaf-splash must read these to scale the font.

All fixed. Smile
Yes, a few pixels high, and yes your pet corrected the problem. Very Happy

@zigbert,
One for DuDE, under PCC Install menu, Quick install and Defaults both open the Defaults script.

Cheers,
Jim
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5562
Location: Valåmoen, Norway

PostPosted: Sat 26 Jun 2010, 13:34    Post subject:  

- fixed link to quickpet in pcc - thank Jim
- updated MicksClock - thank Mick

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7547
Location: qld

PostPosted: Sat 26 Jun 2010, 17:39    Post subject:  

Sigmund, a request.

In Lupu we have a program called "browser-default" which changes whatever browser to the default as long as it is installed of course! It is executed by a JWM main tray button in between the "menu" button and the "desktop" buttons.

It scans the .desktop files for browsers, filters out the junk and caches the info in /tmp and adjusts "/usr/local/bin/defaulbrowser" accordingly. It also launches the browser with a splash if you change it, or no splash if you don't change it. It also displays the browser in the "tree" bar. It is designed to cater for the user that want's many browsers and no technical knowledge and also to be very unobtrusive.



As you can see I have made a DuDE compliant version, but it would be nice if it's presence is detected and DuDE makes the necessary adjustments to the Jwm main tray file.

At the moment I am storing the JWM adjustments in a temp folder and when the pinstall.sh runs it detects if DuDE is installed and takes the appropriate action.

Can you make DuDE compatible with "browser-default"? Will it clash at all with your "defaults chooser" in PCC? (I'm thinking it won't).

Of course no rush, current .pet attached.

Cheers

Mick
browser-default-0.9.pet
Description 
pet

 Download 
Filename  browser-default-0.9.pet 
Filesize  2.33 KB 
Downloaded  343 Time(s) 

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Sat 26 Jun 2010, 20:09    Post subject:  

Not to be a nay-sayer, but the defaultbrowserchooser should probably be an optional component of ptray or integrated into pcc. Most users will expect a tray button in that location to actually start the defaultbrowser.
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7547
Location: qld

PostPosted: Sat 26 Jun 2010, 20:14    Post subject:  

technosaurus wrote:
Not to be a nay-sayer, but the defaultbrowserchooser should probably be an optional component of ptray or integrated into pcc. Most users will expect a tray button in that location to actually start the defaultbrowser.


It does start the browser. The idea of it was a simple way in Puppy 5 to choose the default. It came about because if you uninstalled a browser there was no simple way to reset the default. Perhaps I should change the tooltip to "Change and launch browser" or something.

Possibly in DuDE your idea might be a good one.

Cheers

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5562
Location: Valåmoen, Norway

PostPosted: Sun 27 Jun 2010, 15:50    Post subject:  

defaultbrowserchooser

Hmm....some load thinking....
I don't use Puppy 5 on my daily desktop, so I have no experience with the actual use of defaultbrowserchooser. Thus, my opinions are lightweight.

As I see it, DuDE offers the same choice as defaultbrowserchooser with the defaultchooser. The user has to go through pcc, but I don't personally see the choice of browser more important than other default-apps. It sounds logical that if user installs a new browser, it will be the default. If not wanted, user have 2 obvious choices to override it. - Either reinstall the wanted browser, or change it in defaultchooser. In my eyes (from my current viewpoint) defaultbrowserchooser is pure overkill.

I feel a bit negative right now Smile


Sigmund

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
Jim1911

Joined: 19 May 2008
Posts: 2445
Location: Texas, USA

PostPosted: Sun 27 Jun 2010, 16:29    Post subject:  

zigbert wrote:
defaultbrowserchooser
In my eyes (from my current viewpoint) defaultbrowserchooser is pure overkill.
Sigmund
I agree, for us DuDE users, however it's a great feature for the user of Lucid that is primarily concerned with the default browser and not other applications. That's one of the fine features of Lucid, to be able to easily download browser(s) of choice and make your choice default.

Although, as Mick said, "it would be nice if it's presence is detected and DuDE makes the necessary adjustments to the Jwm main tray file." Of course, it may be better for the "defaultbrowserchooser" to detect that DuDE is installed. Just assure that they don't conflict in DuDE.

It's super that DuDE works with every pup that I've tried, which is no easy task. You've succeeded in providing us the best feature of Stardust without having to stay with a 4.3.1 derivative.

Thanks,
Jim
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 11 of 14 [205 Posts]   Goto page: Previous 1, 2, 3, ..., 9, 10, 11, 12, 13, 14 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:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


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