ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RP] getting rid of the builtin clock


From: Jonathan Walther
Subject: [RP] getting rid of the builtin clock
Date: Tue, 24 Apr 2001 10:58:26 -0700 (PDT)

-----BEGIN PGP SIGNED MESSAGE-----

Here is the patch:

Index: doc/ipaq.ratpoisonrc
===================================================================
RCS file: /cvsroot/ratpoison/ratpoison/doc/ipaq.ratpoisonrc,v
retrieving revision 1.3
diff -U3 -r1.3 ipaq.ratpoisonrc
- --- doc/ipaq.ratpoisonrc      2001/04/01 00:52:12     1.3
+++ doc/ipaq.ratpoisonrc        2001/04/24 18:14:50
@@ -20,4 +20,4 @@
 bind XF86Calendar exec xcalc
 bind telephone exec contacts
 bind Menu echo
- -bind XF86Start clock
+bind XF86Start exec ratpoison --command "echo `date` "
Index: doc/ratpoison.1
===================================================================
RCS file: /cvsroot/ratpoison/ratpoison/doc/ratpoison.1,v
retrieving revision 1.2
diff -U3 -r1.2 ratpoison.1
- --- doc/ratpoison.1   2001/03/04 00:30:04     1.2
+++ doc/ratpoison.1     2001/04/24 18:14:50
@@ -110,10 +110,6 @@
 : bind R exec ratpoison --restart
 .PP
 .TP
- -.B clock
- -Show current time. Disappears after 5 seconds, like all other info bars.
- -In the default setup, the \fIC\-t a\fP keystroke is bound to this command.
- -.TP
 .B colon \fIcommand\fP
 Run a ratpoison command.
 .TP
@@ -124,7 +120,7 @@
 .B escape \fIkey\fP
 Set the prefix to \fIkey\fP. For example 
 .IP
- -: escape ^b
+: escape C-b
 
 sets the prefix key to \fIC\-b\fP.
 .TP
Index: doc/ratpoison.texi
===================================================================
RCS file: /cvsroot/ratpoison/ratpoison/doc/ratpoison.texi,v
retrieving revision 1.14
diff -U3 -r1.14 ratpoison.texi
- --- doc/ratpoison.texi        2001/04/01 10:02:38     1.14
+++ doc/ratpoison.texi  2001/04/24 18:14:51
@@ -260,10 +260,6 @@
 : bind R exec ratpoison --restart
 @end example
 
- address@hidden clock
- -Show current time. Disappears after 5 seconds, like all other info bars.
- -In the default setup, the @kbd{C-t a} keystroke is bound to this command.
- -
 @item colon @var{command}
 Run a ratpoison command.
 
Index: doc/sample.ratpoisonrc
===================================================================
RCS file: /cvsroot/ratpoison/ratpoison/doc/sample.ratpoisonrc,v
retrieving revision 1.2
diff -U3 -r1.2 sample.ratpoisonrc
- --- doc/sample.ratpoisonrc    2001/03/12 01:10:48     1.2
+++ doc/sample.ratpoisonrc      2001/04/24 18:14:51
@@ -20,3 +20,6 @@
 
 # bind b (`b' for browse) to interactively ask for an URL to open
 bind b colon exec mozilla http://www.
+
+# bind a to display the date and time as in screen
+bind a exec ratpoison --command "echo `date`  "
Index: src/actions.c
===================================================================
RCS file: /cvsroot/ratpoison/ratpoison/src/actions.c,v
retrieving revision 1.58
diff -U3 -r1.58 actions.c
- --- src/actions.c     2001/04/19 06:47:43     1.58
+++ src/actions.c       2001/04/24 18:14:51
@@ -102,8 +102,6 @@
   add_keybinding (XK_K, ControlMask, "kill");
   add_keybinding (XK_Return, 0, "next");
   add_keybinding (XK_Return, ControlMask,      "next");
- -  add_keybinding (XK_a, 0, "clock");
- -  add_keybinding (XK_a, ControlMask, "clock");
   add_keybinding (XK_b, 0, "banish");
   add_keybinding (XK_b, ControlMask, "banish");
   add_keybinding (XK_c, 0, "exec " TERM_PROG);
@@ -149,7 +147,6 @@
     {"other",          cmd_other,      arg_VOID},
     {"windows",        cmd_windows,    arg_VOID},
     {"title",          cmd_rename,     arg_STRING},
- -    {"clock",                cmd_clock,      arg_VOID},
     {"maximize",       cmd_maximize,   arg_VOID},
     {"newwm",          cmd_newwm,      arg_STRING},
     {"generate",       cmd_generate,   arg_STRING},    /* rename to stuff */
@@ -746,25 +743,6 @@
   PRINT_DEBUG ("Exiting\n");
   clean_up ();
   exit (EXIT_SUCCESS);
- -}
- -
- -/* Show the current time on the bar. Thanks to Martin Samuelsson
- -   <address@hidden> for the patch. Thanks to Jonathan Walther
- -   <address@hidden> for making it pretty. */
- -void
- -cmd_clock (void *data)
- -{
- -  char *msg, *tmp;
- -  time_t timep;
- -
- -  timep = time(NULL);
- -  tmp = ctime(&timep);
- -  msg = xmalloc (strlen (tmp));
- -  strncpy(msg, tmp, strlen (tmp) - 1);       /* Remove the newline */
- -  msg[strlen(tmp) - 1] = 0;
- -
- -  message (msg);
- -  free (msg);
 }
 
 /* Assign a new number to a window ala screen's number command. Thanks

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBOuW+yMK9HT/YfGeBAQGsYAP9Fs2G7PYRH/oe9V8bUYDmzt91eNNulNvR
7IXN+nstqwAp6cZzjjB0anZR75EWHFBAN64R9RoIlLb005WxloGmG8s0E6gXtsa+
2k7WdzAzY952+GDHNpzTUQrwoYCil5qleqLoW5vgKpjM1mysAPibDyquy8yA043E
BVunxK73SqQ=
=7kNx
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]