LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-26-2007, 01:57 PM   #1
autophil
Member
 
Registered: Jun 2006
Location: Macclesfield Canal, East Cheshire
Distribution: Salix-14.1
Posts: 129
Blog Entries: 1

Rep: Reputation: 15
xclock font


Is there a way of changing the font used in xclock digital display? I have a feeling that there must be. Any help will be appreciated!!
Phil
 
Old 05-26-2007, 03:00 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

xclock can use the -font option to set a font, sometimes the -norender option must also be used to get it working:

xclock -norender -font -*-lucinda-bold-i-normal-16-*-*-*-*-*-*-* -digital
or, a simpler form:
xclock -norender -font 6x9 -digital

The font notation is probably different then expected. You can use the xfontsel program to select (the notation) for the font wanted.

Hope this helps.
 
Old 05-27-2007, 05:48 AM   #3
autophil
Member
 
Registered: Jun 2006
Location: Macclesfield Canal, East Cheshire
Distribution: Salix-14.1
Posts: 129

Original Poster
Blog Entries: 1

Rep: Reputation: 15
xclock font

OK What I ended up with is this chich works great.

(export TZ=America/Los_Angeles ; xclock -norender -font 6x9 -d -strftime %a-%H:%M-Los_Angeles -geometry 160x25 -bg blue -fg white) & (export TZ=America/New_York ; xclock -norender -font 6x9 -d -strftime %a-%H:%M-New_York -geometry 150x25 -bg blue -fg white) & (export TZ=Europe/London ; xclock -norender -font 6x9 -d -strftime %a-%H:%M-London -geometry 150x25 -bg blue -fg white) &

What Im wondering is what -render and -norender mean??

Phil
 
Old 05-27-2007, 07:24 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Nice to read that it works!

The render/norender info can be found in the xclock manpage:
Quote:
-render
This option tells xclock to use the Xrender extension to draw an anti-aliased face. This is the default if xclock has been compiled with Xrender support. Note that the color selection options and resources used when Xrender is in effect differ from the standard options.
-norender
This option turns off the use of Xrender to draw the clock.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xclock hands color cch2cch Linux - Newbie 2 05-04-2011 07:35 AM
xclock autophil Slackware 14 05-26-2007 12:50 AM
xclock not running mumtaz52 Linux - Enterprise 3 01-02-2006 12:11 AM
my xclock hate windoze's!!! sirpelidor Linux - Newbie 2 02-08-2004 08:54 AM
xclock colors csDraco_ Slackware 1 08-24-2003 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration