The time now is Sat 18 May 2013, 02:51
All times are UTC - 4 |
|
Page 13 of 205 [3066 Posts] |
Goto page: Previous 1, 2, 3, ..., 11, 12, 13, 14, 15, ..., 203, 204, 205 Next |
| Author |
Message |
Evil20071

Joined: 07 Jun 2008 Posts: 425 Location: Piedmont, SC,.United States
|
Posted: 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.
_________________
Click for Detailed PC info

|
|
Back to top
|
|
 |
tasmod

Joined: 04 Dec 2008 Posts: 1459 Location: North Lincolnshire. UK
|
Posted: 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
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 10720 Location: Ontario Canada,Sydney Australia
|
Posted: 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.
ttuuxxx
_________________ http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games

|
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7015 Location: qld
|
Posted: 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' { ( )} after all!
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 1786 Location: अनुमोदना
|
Posted: 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
|
|
Back to top
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7015 Location: qld
|
Posted: 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
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 1786 Location: अनुमोदना
|
Posted: 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
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7015 Location: qld
|
Posted: 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
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 1786 Location: अनुमोदना
|
Posted: 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
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7015 Location: qld
|
Posted: 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?
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 1786 Location: अनुमोदना
|
Posted: 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......
|
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 1786 Location: अनुमोदना
|
Posted: 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
|
|
 |
01micko

Joined: 11 Oct 2008 Posts: 7015 Location: qld
|
Posted: 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! (it's the only code I know!)
_________________ keep the faith .. 
|
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 1786 Location: अनुमोदना
|
Posted: 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
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 5240 Location: Valåmoen, Norway
|
Posted: 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!
Sigmund
_________________ Stardust resources
|
|
Back to top
|
|
 |
|
|
Page 13 of 205 [3066 Posts] |
Goto page: Previous 1, 2, 3, ..., 11, 12, 13, 14, 15, ..., 203, 204, 205 Next |
|
|
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
|