summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/sample.ratpoisonrc19
1 files changed, 18 insertions, 1 deletions
diff --git a/doc/sample.ratpoisonrc b/doc/sample.ratpoisonrc
index 93a0c72..952022c 100644
--- a/doc/sample.ratpoisonrc
+++ b/doc/sample.ratpoisonrc
@@ -1,6 +1,6 @@
# This is a sample .ratpoisonrc file
#
-# $Id: sample.ratpoisonrc,v 1.5 2003/04/06 10:28:10 sabetts Exp $
+# $Id: sample.ratpoisonrc,v 1.6 2003/09/10 22:25:32 sabetts Exp $
# Set the prefix key to that of screen's default
escape C-a
@@ -37,3 +37,20 @@ bind M-2 exec ratpoison -c "frestore `ratpoison -c 'getenv fs2'`"
# Give ourselves another slot on M-# and M-3, respectively.
bind M-numbersign exec ratpoison -c "setenv fs3 `ratpoison -c 'fdump'`"
bind M-3 exec ratpoison -c "frestore `ratpoison -c 'getenv fs3'`"
+
+# Here's a hack from John Meacham:
+
+bind a exec ratpoison -d :0.0 -c "echo `date +'%r - %A %n %D - %B'` `cal | tail +2 | sed -e 's/^Su/\n\n Su/' -e 's/.*/ & /' -e \"s/\ $(date +%e)\ /\<$(date +%e)\>/\"`"
+
+# it produces output like the following in the message window, very handy:
+# +-----------------------+
+# |05:05:24 PM - Tuesday |
+# | 09/09/03 - September|
+# | |
+# |Su Mo Tu We Th Fr Sa |
+# | 1 2 3 4 5 6 |
+# | 7 8< 9>10 11 12 13 |
+# |14 15 16 17 18 19 20 |
+# |21 22 23 24 25 26 27 |
+# |28 29 30 |
+# +-----------------------+