Mailinglist Archive: opensuse (1194 mails)

< Previous Next >
Re: [opensuse] How to type CurrentDate & CurrentTime with KDE's InputActions?
  • From: Lubos Lunak <l.lunak@xxxxxxx>
  • Date: Mon, 4 Jan 2010 18:24:41 +0100
  • Message-id: <201001041824.41557.l.lunak@xxxxxxx>
On Sunday 03 of January 2010 23:45:44 Ben DJ wrote:

I use KDE's InputActions to assign keystrokes to type phrases. E.g.,
press "Ctrl-Meta-T", types "testing". Just an example.

I'd like to assign a single, global keystroke/shortcut to print the
current date & time.

You can't do that there, unless you're any good with C++ and would be willing
to experiment with decomposing any given text to the matching keypresses.
Baring that, you could try binding a shortcut to a command that would use
'xclip' to set clipboard to the desired text and then paste that manually.

I don't know if it can't be done, or if I've got syntax wrong. If the
"how to" is in the docs, I'm missing/misunderstanding them :-(

I'm afraid those are waiting for somebody who'd find the time to write them.

On Monday 04 of January 2010 13:54:58 Patrick Shanahan wrote:
* Ben DJ <bendj095124367913213465@xxxxxxxxx> [01-03-10 23:23]:
On Sun, Jan 3, 2010 at 5:34 PM, Patrick Shanahan <paka@xxxxxxxxxxxx>
date +%D

echo $(date +%D)

man date
will provide the parameters

Yes, of course. That's obvious -- and not the question.

Not in your mind perhaps, but the way you phrased it was.

How are those invoked/accessed/used in a Input Actions -> Global
Shortcut -> 'Send Keyboard Input' macro?

I would put it into a shell script and add the script to the menu, then
assign it a hot-key combination.

Next time you ask for help, be sure that you sufficiently explain your
needs or aims rather than jump someone attempting to help. Apology is
necessary and expected!

Demanding an apology for you not understanding a question? Relax.

Lubos Lunak
openSUSE Boosters team, KDE developer
l.lunak@xxxxxxx , l.lunak@xxxxxxx
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups