rclock.1.in 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. .\" @(#)rclock.1 -*- nroff -*-
  2. .TH RCLOCK 1 @RXVT_DATE@ "X Version 11" "X Tools"
  3. .UC
  4. .SH NAME
  5. rclock (ouR CLOCK)
  6. \(em clock and appointment reminder for X11
  7. .SH SYNOPSIS
  8. .B rclock
  9. .RI [ options ]
  10. .SH DESCRIPTION
  11. .B rclock
  12. \(em version
  13. .B @RXVT_VERSION@
  14. \(em is an analog clock for X intended as an
  15. .IR xclock (1)
  16. replacement that conserves memory and has extra features:
  17. .B rclock
  18. enters reverse video if there is mail waiting; an appointment reminder
  19. is also builtin.
  20. .SH OPTIONS
  21. The options supported by
  22. .BR rclock :
  23. .TP
  24. .BI -display " displayname"
  25. Attempt to open a window on the named X display.
  26. In the absence of this option, the display specified by the DISPLAY
  27. environment variable is used.
  28. .TP
  29. .BI -geometry " geom"
  30. Create the window with the specified X window geometry [default 80x80].
  31. .TP
  32. .BI -bg " color"
  33. Window background color [default white].
  34. .TP
  35. .BI -fg " color"
  36. Window foreground color [default black].
  37. .TP
  38. .BI -fn " fontname"
  39. Select font used for reminders [default 7x14].
  40. .TP
  41. .BI -nodate
  42. Do not display today's date on the face of the clock.
  43. .TP
  44. .B -iconic
  45. Start iconified, if supported by the window manager.
  46. .TP
  47. .BI -adjust " ddhhmm"
  48. Adjust the clock by +/\-
  49. .I ddhhmm
  50. .RI ( dd
  51. = days,
  52. .I hh
  53. = hours,
  54. .I mm =
  55. minutes) to fix an incorrect clock without being root or for working in
  56. another time-zone.
  57. .TP
  58. .BI -update " n"
  59. Update clock face every
  60. .I n
  61. seconds [default 30].
  62. If
  63. .IR n "=1,"
  64. a seconds hand is displayed.
  65. .TP
  66. .BI -mail " n"
  67. Check for new mail every
  68. .I n
  69. seconds [default 60].
  70. The actual interval is a multiple of the clock update interval.
  71. .TP
  72. .BI -mailfile " mailfile"
  73. Override environmental variable MAIL with
  74. .I mailfile
  75. as location for mail.
  76. .TP
  77. .BI -mailspawn " cmd"
  78. Execute
  79. .I cmd
  80. when the face of the clock is clicked by the mouse button.
  81. .TP
  82. .BI "#" geom
  83. Specify the preferred icon window size [default 65x65].
  84. .PP
  85. Some of these options may not be available based on how rclock was compiled.
  86. Run
  87. .B rclock -help
  88. to determine which features are available.
  89. .SH "X RESOURCES"
  90. No X resources are used \(em only command-line options.
  91. .SH "TITLES AND ICONS"
  92. The window and icon titles are set to the day of the week and the date.
  93. The date is also displayed on the lower half of the clock unless the
  94. .B -nodate
  95. option is specified.
  96. The icon window is "active" and will show the time, if supported by
  97. the window manager.
  98. .SH "REMINDERS"
  99. The
  100. .B "~/.rclock"
  101. file lists the messages to display and/or the programs to run at
  102. specified times and dates.
  103. At the specified time,
  104. .B rclock
  105. will pop-up a window in the center of the screen to display the
  106. message or will simply run the scheduled program.
  107. .B
  108. rclock will reads the
  109. .B "~/.rclock"
  110. file at startup, and every 10 minutes (to look for changes) and after
  111. a message window has been dismissed (to find the next appointment).
  112. An entry in
  113. .B "~/.rclock"
  114. may be one of two formats (blank and comment lines will be ignored):
  115. .sp
  116. .nf
  117. .B hh:mm [dd] MM/DD/YY message[; program]
  118. or
  119. .B [hh:mm [dd] MM/DD/YY [message]]; program
  120. .sp
  121. .BR hh " \- hour (0-23; * = current)"
  122. .BR mm " \- minute (0-59; * = 0)"
  123. .BR dd " \- days-of-week (some/all/none of umtwrfs; * = all)"
  124. .BR MM " \- month (1-12; * = current)"
  125. .BR DD " \- day of month (1-31; * = current)"
  126. .BR YY " \- year (0-99 or 1900-????; * = current)"
  127. .BR message " \- message to display"
  128. .BR program " \- program to execute"
  129. .fi
  130. .sp
  131. The days-of-the-week use the following abbreviations:
  132. .BR u =Sunday,
  133. .BR m =Monday,
  134. .BR t =Tuesday,
  135. .BR w =Wednesday,
  136. .BR r =Thursday,
  137. .BR f =Friday,
  138. .BR s =Saturday,
  139. .BR * =all.
  140. .sp
  141. If
  142. .B message
  143. is empty and
  144. .B program
  145. has been specified, it is executed without a dialog box.
  146. If time/date are also not specified,
  147. .B program
  148. is executed on start-up.
  149. Note
  150. .B message
  151. may contain escape values (\\n: newline, \\;: semicolon).
  152. Here's a silly example file that shows some of the permissible
  153. constructs:
  154. .nf
  155. .sp
  156. # ~/.rclock - My appointment file
  157. # startup functions
  158. ; xsetroot -solid Black &
  159. # cron functions
  160. 10:00; xsetroot -solid Grey25 &
  161. 14:00; xsetroot -solid Grey75 &
  162. # daily/weekly reminders
  163. 08:15 mtwrf * Good Morning!\\nRead News?; rxvt -e News
  164. 12:00 mtwrf * Lunch Time!
  165. 17:00 mtwrf * Go Home
  166. 23:00 mtwrf * Still Here? Go to bed
  167. 08:10 twrf * Did you do your time card yesterday?
  168. 15:00 f * Friday, do your time card early!
  169. 16:00 mtwr * Do your time card
  170. 16:30 mtwrf * Did you do your time card?
  171. *:00 us * It's the weekend, why are you here?
  172. 8:15 f */13/* Friday the 13th! Careful!
  173. 8:15 * 4/1/* fkrkrmfismsmkd...dkdfk
  174. 8:16 * 4/1/* April Fools!
  175. # birthdays/anniversaries
  176. 16:00 05/21/* Pam's Birthday (next week)
  177. 16:00 05/24/* Pam's Birthday (in a few days)
  178. # once-of appointments
  179. 08:30 03/15/94 Dentist appointment
  180. 08:30 03/15/1999 Dentist appointment
  181. 08:30 03/15/2004 Dentist appointment
  182. .sp
  183. .fi
  184. .SH ENVIRONMENT
  185. .B rclock
  186. uses the environment variable
  187. .B MAIL
  188. to determine the location of the user's mail spool file unless
  189. the
  190. .B -mailfile
  191. option is specified.
  192. .SH BUGS
  193. .B rclock
  194. is not very smart about dealing with errors encountered while reading the
  195. .B "~/.rclock"
  196. file.
  197. Each reminder must be a single line not exceeding 255 characters.
  198. Reminder windows are sometimes not redrawn (left blank) when raised or
  199. uncovered.
  200. .SH AUTHOR
  201. Rob Nation <nation@rocket.sanders.lockheed.com>
  202. .LP
  203. Modifications by mj olesen <olesen@me.QueensU.CA>
  204. .SH "CURRENT MAINTAINER"
  205. Same as the current rxvt maintainer.