summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Paisley <paisley@rpaisley.com>2013-12-04 09:45:52 -0500
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2013-12-05 00:28:49 +0100
commit9dbe0289e4c3cbec95334a88d5c0fc04cda076fd (patch)
treea3a263e13877d70d9d1e2d8912ceedfed9dffd2a
parent40415dff20c0e4456c3791a75e118fe537e1d44a (diff)
downloadratpoison-9dbe0289e4c3cbec95334a88d5c0fc04cda076fd.zip
Added contrib/ratdate.sh and updated Makefile.am
-rw-r--r--contrib/Makefile.am4
-rwxr-xr-xcontrib/ratdate.sh14
2 files changed, 16 insertions, 2 deletions
diff --git a/contrib/Makefile.am b/contrib/Makefile.am
index 5ae7445..7695af4 100644
--- a/contrib/Makefile.am
+++ b/contrib/Makefile.am
@@ -19,6 +19,6 @@
bin_SCRIPTS = rpws
-pkgdata_DATA = ratpoison.el split.sh genrpbindings rpws allwindows.sh clickframe.pl rpshowall.sh unrat.c sloppy.c
-EXTRA_DIST = ratpoison.el split.sh genrpbindings rpws allwindows.sh clickframe.pl rpshowall.sh unrat.c sloppy.c
+pkgdata_DATA = allwindows.sh clickframe.pl genrpbindings ratdate.sh ratpoison.el rpshowall.sh rpws sloppy.c split.sh unrat.c
+EXTRA_DIST = allwindows.sh clickframe.pl genrpbindings ratdate.sh ratpoison.el rpshowall.sh rpws sloppy.c split.sh unrat.c
MAINTAINERCLEANFILES = Makefile.in
diff --git a/contrib/ratdate.sh b/contrib/ratdate.sh
new file mode 100755
index 0000000..ab23513
--- /dev/null
+++ b/contrib/ratdate.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Copyright (C) 2013 Rob Paisley
+#
+# Copying and distribution of this file, with or without modification,
+# are permitted in any medium without royalty provided the copyright
+# notice and this notice are preserved.
+#
+# Description: This script displays the date with a calendar indicating today
+# via ratpoison's echo command.
+# Suggest rebinding :time as follows: bind a exec exec ratdate.sh
+t=`date +%e`
+cal=`cal | sed -e '1s/.*//' -e 's/[^ [:alnum:]]//g' -e "s/\ $t\ /\<$t\>/"`
+exec ratpoison -c "echo `date +'%r - %A%n %D - %B'` $cal"