From d6b0cceda936ea18603b670158eb38b23840b2d7 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sat, 18 Mar 2017 14:51:46 +1300 Subject: [PATCH 1/1] provide keysyms to insert date-/timestamps --- .Xresources | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.Xresources b/.Xresources index 79b412c..3bd0b68 100644 --- a/.Xresources +++ b/.Xresources @@ -70,3 +70,6 @@ URxvt.matcher.rend.1: Uline URxvt.transparent: false URxvt.termName: rxvt-unicode + +URxvt.keysym.C-t: eval:{ use POSIX qw(strftime); $self->{term}->tt_write_user_input($self->{term}->locale_encode(POSIX::strftime("%F", localtime))) } +URxvt.keysym.C-T: eval:{ use POSIX qw(strftime); $self->{term}->tt_write_user_input($self->{term}->locale_encode(POSIX::strftime("%F %H:%M:%S", localtime))) } -- 2.39.5