Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there some way to set up a hot key that will type today's date into the current window as if I had typed it?

share|improve this question
up vote 5 down vote accepted

Yes, using a text-expander program such as AutoKey.

  • Install autokey-gtk from the software center, or from the terminal via sudo apt-get install autokey-gtk.
  • Open AutoKey from the dash, expand the "Sample Scripts" on the left, select "Insert Date", set a hotkey for it and save. That's it!

    enter image description here

share|improve this answer
Thank you! I changed "date" to "date '+%A %B %d %Y'" which results in Wednesday September 26 2012. But there is one strange thing - when I use it with TreePad (a Windows program running in Wine) I get wednesday september 26 2012 (note lower case). Any idea why that is happening? – Dominic Sep 27 '12 at 1:51
Yes, it happens with notepad.exe, which makes me suspect wine. I also used it as input directly into wine (as the name of my "organization") and got lower-case letters there too. – Dominic Sep 27 '12 at 3:43
Let me install Wine and look into it... – izx Sep 27 '12 at 4:08
I didn't solve the date problem that I get when using AutoKey with Wine, but I worked around it by switching to TreePad beta for Linux. – Dominic Oct 1 '12 at 5:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.