From: martin f. krafft Date: Sat, 18 Mar 2017 01:51:46 +0000 (+1300) Subject: provide keysyms to insert date-/timestamps X-Git-Url: https://git.madduck.net/etc/xsession.git/commitdiff_plain/d6b0cceda936ea18603b670158eb38b23840b2d7?ds=inline provide keysyms to insert date-/timestamps --- 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))) }