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 Wed 26 Nov 2014, 03:45
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
pWidgets 2.5.6
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 13 of 207 Posts_count   Goto page: Previous 1, 2, 3, ..., 11, 12, 13, 14, 15, ..., 205, 206, 207 Next
Author Message
Evil20071


Joined: 07 Jun 2008
Posts: 425
Location: Piedmont, SC,.United States

PostPosted: Tue 06 Jan 2009, 15:43    Post_subject:  

Ok. Like I said, I wasn't too sure what the extents of Conky's capabilities are, so I just thought I'd ask and find out. Thanks. Very Happy
_________________
Click for Detailed PC info

Back to top
View user's profile Send_private_message Visit_website AIM YIM MSNM 
ICQ 
tasmod


Joined: 04 Dec 2008
Posts: 1462
Location: North Lincolnshire. UK

PostPosted: Tue 06 Jan 2009, 17:04    Post_subject:  

Regarding my original problem with the fonts.

It may be worth mentioning this as I'm sure there are others who are not aware. The fonts as loaded names, i.e the file name. is not the name of the font required in the syntax for styles.

I downloaded some other 'digital' fonts. They were files called, say digitalb.ttf etc.

Now, when I needed to specify them I needed the correct "name" . Finally i realised that in the usr/share/fonts/default/TTF folder was a text list of the fonts as fonts.dir.

In the line of description was the correct "name" to use, this was just after the location. It takes a moment or two but it can be discerned.

I printed the list and now I can look them up to use in styles.
Back to top
View user's profile Send_private_message Visit_website 
ttuuxxx


Joined: 05 May 2007
Posts: 10843
Location: Ontario Canada,Sydney Australia

PostPosted: Tue 06 Jan 2009, 17:13    Post_subject:  

tasmod wrote:
Regarding my original problem with the fonts.

It may be worth mentioning this as I'm sure there are others who are not aware. The fonts as loaded names, i.e the file name. is not the name of the font required in the syntax for styles.

I downloaded some other 'digital' fonts. They were files called, say digitalb.ttf etc.

Now, when I needed to specify them I needed the correct "name" . Finally i realised that in the usr/share/fonts/default/TTF folder was a text list of the fonts as fonts.dir.

In the line of description was the correct "name" to use, this was just after the location. It takes a moment or two but it can be discerned.

I printed the list and now I can look them up to use in styles.


I did mention that a few pages back about the weather fonts. Smile
ttuuxxx

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send_private_message Visit_website 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Wed 07 Jan 2009, 04:22    Post_subject:  

From time to time zigbert lets a small (tiny, as in maybe a word or character) piece of code slip. I think he is testing us. He is the 'teacher' {Wink ( Laughing )} after all!
_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
trio


Joined: 21 Dec 2008
Posts: 1884
Location: अनुमोदना

PostPosted: Sun 11 Jan 2009, 08:14    Post_subject: Xonclock-appear problem  

Micko & Zigbert!!!!!

Eureka!

I got the answer for xonclock-appear problem! This is in icewm, for jwm I think there should be a similar answer:

1. in xonclockrc:
no-winredirect = true

2. put in icewm/winoption:

#xonclock
xonclock.layer: normal
xonclock.allWorkspaces: 1
xonclock.dBorder: 0
xonclock.dTitleBar: 0
xonclock.ignoreTaskBar: 1
xonclock.dMaximize: 0
xonclock.dMinimize: 0
xonclock.dRollup: 0
xonclock.dResize: 0
xonclock.dClose: 0
xonclock.geometry: =140x140+869+5

Very Happy
Back to top
View user's profile Send_private_message 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Sun 11 Jan 2009, 09:21    Post_subject:  

trio

There is a problem with geometry. It is no good in the 'winoptions', it must be in the 'func' executable. I'll do some work and see if I can get it to work.


Sigmund, could this be something similar to the slideshow position? methinks so!

Mick

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
trio


Joined: 21 Dec 2008
Posts: 1884
Location: अनुमोदना

PostPosted: Sun 11 Jan 2009, 10:39    Post_subject:  

Micko:

No, geometry works, when you change the value, you must restart icewm to get it to work.....

But, somebody have to polish my solution, that is to put automatic geometry value that is related directly to pwidget.......I don't know how....

I know what you mean, pwidgets can create geometry value in the pwidget-exec file, I don't know if it can change the value in icewm winoptions....I already tried to put geometry command in pwidget-exec file, but when you put no-winredirect = true, then the xonclock window is not controlled whatsoever by itself, but by the window manager only...I tried....

but the clock shows up properly doesn't it?
Back to top
View user's profile Send_private_message 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Mon 12 Jan 2009, 02:35    Post_subject:  

Trio
The clock does show up, no clicking, no banging, no xevent! However, we need to find a solution to different screensizes and resolutions, not easy, especially if designing for different WMs. We solved the slideshow problem and I'm sure we can solve this.
For the moment, zigbert has asked us to hone the xevent workaround (NOT a solution, but at least it works in all WMs).
Your work is great, do not give up. The ultimate goal is to dump xevent. Believe me, I've tried many ways, even other clocks, but xonclock is the best looking and most configurable, especially for it's size, however it is unsupported. I think you could be on the right track.
Good luck!

Cheers,

Mick

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
trio


Joined: 21 Dec 2008
Posts: 1884
Location: अनुमोदना

PostPosted: Fri 16 Jan 2009, 01:38    Post_subject: xevent workaround  

@01micko:

As you know I have zero knowledge of scripting, so please modify as you like to make it work. The logic is to click on the minddle of the xonclock surface (which I assume is the safest place to click that will not open anything).


#!/bin/bash
#xevent_pwidgets
#Trio Tjandradjaja


X_PIXELS=`xrandr -q | grep '*' | egrep "[0-9]+[ ]*x[ ]*[0-9]+" -o | cut -d "x" -f 1`

CLOCK_H_OFFSET=`cat ~/.pwidgets/pwidgets-exec | grep "--offset-h=" | cut -d "=" -f 3`
CLOCK_Y_OFFSET=`cat ~/.pwidgets/pwidgets-exec | grep "--offset-v=" | cut -d "=" -f 3`


#read config
. $HOME/.pwidgets/pwidgetsrc
if [ "$WIDGETS_POSITION" = "left" ]; then
CLOCK_X_CENTER="`[$CLOCK_H_OFFSET+70]`"
else
CLOCK_X_CENTER="`[$X_PIXELS+$CLOCK_H_OFFSET-70]`"
fi

CLOCK_Y_CENTER="`[$CLOCK_Y_OFFSET+70]`"

#the actual xevent
xevent -a "$CLOCK_X_CENTER" "$CLOCK_Y_CENTER"
sleep 0.2 ; xevent -b 1 2 #simulated left mouse click
sleep 0.1 ; xevent -a 500 385
Back to top
View user's profile Send_private_message 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Fri 16 Jan 2009, 01:46    Post_subject:  

I think this is the correct action trio. Clicking on the clock is certainly the safest way with different configurations. I'm sure zigbert will agree. However I couldn't get it to work, I will try some more. Did you get it to work?
_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
trio


Joined: 21 Dec 2008
Posts: 1884
Location: अनुमोदना

PostPosted: Fri 16 Jan 2009, 02:54    Post_subject:  

unfortunately somebody has to modify this script to work. I cannot make it work, just try to make it with zero knowledge of coding....only the logic applies...... Sad
Back to top
View user's profile Send_private_message 
trio


Joined: 21 Dec 2008
Posts: 1884
Location: अनुमोदना

PostPosted: Fri 16 Jan 2009, 04:48    Post_subject:  

more logical, but still cannot make it to work

#!/bin/bash
#xevent_pwidgets
#Trio Tjandradjaja


X_PIXELS=`xrandr -q | grep '*' | egrep "[0-9]+[ ]*x[ ]*[0-9]+" -o | cut -d "x" -f 1`

CLOCK_H_OFFSET=`cat ~/.pwidgets/pwidgets-exec | grep "*" | egrep "--offset-h*=[ ]*" -o | cut -d "=" -f 1`
CLOCK_Y_OFFSET=`cat ~/.pwidgets/pwidgets-exec | grep "*" | egrep "--offset-v*=[ ]*" -o | cut -d "=" -f 1`


#read config
WIDGETS_POSITION=`cat ~/.pwidgets/pwidgetsrc | grep "*" | egrep "WIDGETS_POSITION*=[ ]*" -o | cut -d "=" -f 1`

if [ "$WIDGETS_POSITION"= "left" ]; then
CLOCK_X_CENTER="`[$CLOCK_H_OFFSET+70]`"
else
CLOCK_X_CENTER="`[$X_PIXELS+$CLOCK_H_OFFSET-70]`"
fi

CLOCK_Y_CENTER=`[$CLOCK_Y_OFFSET+70]`

#the actual xevent
xevent -a "$CLOCK_X_CENTER" "$CLOCK_Y_CENTER"
sleep 0.2 ; xevent -b 1 2 #simulated left mouse click
sleep 0.1 ; xevent -a 500 385
killall xevent

Somebody help, please
Back to top
View user's profile Send_private_message 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Fri 16 Jan 2009, 04:55    Post_subject:  

trio
I am in the same boat! I have no clue! I've said it before...... SOS! Laughing (it's the only code I know!)

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
trio


Joined: 21 Dec 2008
Posts: 1884
Location: अनुमोदना

PostPosted: Fri 16 Jan 2009, 23:13    Post_subject:  

I almost got it:

#!/bin/bash
#xevent_pwidgets
#Trio Tjandradjaja

X_PIXELS=`xrandr -q | grep '*' | egrep "[0-9]+[ ]*x[ ]*[0-9]+" -o | cut -d "x" -f 1`

CLOCK_H_OFFSET=`grep offset-h= ~/.pwidgets/pwidgets-exec | sed 's/^.*offset-h= //' | awk '{print $4}' | cut -d "=" -f 2 `

CLOCK_Y_OFFSET=`grep offset-v= ~/.pwidgets/pwidgets-exec | sed 's/^.*offset-v= //' | awk '{print $3}' | cut -d "=" -f 2 `

WIDGETS_POSITION=`grep position= ~/.pwidgets/pwidgets-exec | sed 's/^.*position= //' | awk '{print $2}' | cut -d "=" -f 2`

if [ "$WIDGETS_POSITION"= "TOP-LEFT" ]; then
CLOCK_X_CENTER="`[$CLOCK_H_OFFSET+70]`"
else
CLOCK_X_CENTER=[$X_PIXELS+$CLOCK_H_OFFSET-70]
fi

CLOCK_Y_CENTER=[$CLOCK_Y_OFFSET+70]

#the actual xevent
xevent -a $CLOCK_X_CENTER $CLOCK_Y_CENTER
sleep 0.2 ; xevent -b 1 2 #simulated left mouse click
sleep 0.1 ; xevent -a 500 385

All (before the "if") prints right, but don't know how to put it in the xevent
Back to top
View user's profile Send_private_message 
zigbert


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

PostPosted: Sat 17 Jan 2009, 00:48    Post_subject:  

Thank you for fixing this issue. I will take a look when I come back after my 2 weeks off.

Enjoy coding! Very Happy
Sigmund

_________________
Stardust resources
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 13 of 207 Posts_count   Goto page: Previous 1, 2, 3, ..., 11, 12, 13, 14, 15, ..., 205, 206, 207 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.1152s ][ Queries: 12 (0.0286s) ][ GZIP on ]