⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 0124-0126.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:


<HTML>

<HEAD>

<TITLE>Sams Teach Yourself Linux in 24 Hours:Using the X Window System:EarthWeb Inc.-</TITLE>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!-- ISBN=0672311623 //-->

<!-- TITLE=Sams Teach Yourself Linux in 24 Hours//-->

<!-- AUTHOR=Bill Ball//-->

<!-- PUBLISHER=Macmillan Computer Publishing//-->

<!-- IMPRINT=Sams//-->

<!-- CHAPTER=07 //-->

<!-- PAGES=0108-0126 //-->

<!-- UNASSIGNED1 //-->

<!-- UNASSIGNED2 //-->





<P><CENTER>

<a href="0121-0123.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="../ch08/0127-0130.html">Next</A>

</CENTER></P>



<A NAME="PAGENUM-124"><P>Page 124</P></A>



<H3>

Making a Sticky Note Calendar with the xmessage Client

</H3>



<P>

The xmessage client. by Chris Peterson and Stephen Gildea, is a handy way to create quick notes as reminders while you work. This deceptively simple client is easy to use.

For example, if you want to make a quick note of a phone number, you can use

</P>



<PRE># xmessage "George called at 10:15; call him back at 555-1212" &

</PRE>

<P>This command line will display the xmessage client window with the text of your message. Although this is a simple example, you can also

use the xmessage client to display the output of program searches, or use it in your personal schedules to automatically send

reminders while you work (see Hour 18, &quot;Personal Productivity Tools,&quot; or Hour 24,

&quot;Scheduling,&quot; for details).

</P>



<P>You can also use xmessage as a handy calendar display program if you need to keep a

copy of the current calendar on the screen, or if you want a calendar on your desktop when

you start your X session. You won't find a simple X11 version of the

cal calendar program, but here's one you can use:

</P>



<!-- CODE SNIP //-->

<PRE>

# cal | xmessage -file &quot;-&quot; &amp;

</PRE>

<!-- END CODE SNIP //-->



<P>This displays the output of the cal calendar program in a square

xmessage client window.

</P>



<TABLE BGCOLOR=#FFFF99>

<TR><TD>JUST A MINUTE</TD></TR>

<TR><TD>

<BLOCKQUOTE>

You will find the ical X11 client under the

/usr/X11R6/bin directory, but this is a personal scheduling utility with a larger calendar display. See Hour 18

for details.

</BLOCKQUOTE>

</TD></TR>

</TABLE>





<H4><A NAME="ch07_ 23">

Keeping Time with X11 Clocks

</A></H4>



<P>If you're a habitual clock watcher, you're in luck using X11, as you'll find several

clocks. You're sure to find one you like.

</P>



<P>

The rclock client is more than just a clock; it's an appointment calendar and mail notification program. You can run this client with a few simple options, for example:

</P>



<PRE>

# rclock -bg red -fg yellow -update 1 -geometry 80x80+718+0 &

</PRE>





<P>

This command line puts a square red clock with yellow hands (a second hand is created with the -update 1 option) in the upper right corner of an 800x600 desktop. If you created file

called rclock in your home  directory, you can create automatic reminders, as the rclock client will not only pop up a reminder message at the appinted time, but can laso be used to run programs

at certain times (it checks the file every 10 minutes; when you have mail arrive, rclock reverses its display). Read the rclock manual page for more details on how to use its appointment and mail notifcation functions.

</P>



<P>

The xclock client displays time,by default, in a standard clock face, but you can make xclock look like a digital clock with the -digital option. You can also control

the color of the standard clock hands or add a chime for the hour and half hour,for example:

</P>	



<PRE>

# xclock -chime -hd red -hl red update 2 -geometry 80x80 -bg yellow

</PRE>



<P>

This command displays an 80x80 pixel chiming xclock with a yellow face, red hands, and a sweeping second hand.If you want a digital version, you can use

</P>



<PRE>

# xclock -chime -update 1 -digital -bg yellow

</PRE>



<P>

This command displays chiming clock with a yellow background .If you like digital clocks, you might also like the xdaliclock client, which uses animation for its 

digits, and has many options to control the digits, coloring , shape or fonts used in the display, for example:

</P>



<PRE>

# xdaliclock-24 -cycle -shape -font 9x15 -geometry +697+3

</PRE>

<P>

This command display a floating, transparent digital clock with melting digits, which constantly change color. If you click the digital displays, the current day , month and year are

displayed momentarily.

</P>

<A NAME="PAGENUM-125"><P>Page 125</P></A>

<A NAME="PAGENUM-126"><P>Page 126</P></A>

<P><CENTER>

<a href="0121-0123.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="../ch08/0127-0130.html">Next</A>

</CENTER></P>









</td>
</tr>
</table>

<!-- begin footer information -->



</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -