[opensuse] How to type CurrentDate & CurrentTime with KDE's InputActions?
Hi, 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. I can't seem to figure out how to exec the date/time funcs and print their results out via InputActions. 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 :-( Anyone know how to do this? BenDJ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Ben DJ <bendj095124367913213465@gmail.com> [01-03-10 17:46]:
Hi,
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.
date +%D echo $(date +%D) man date will provide the parameters -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, Jan 3, 2010 at 5:34 PM, Patrick Shanahan <paka@opensuse.org> wrote:
date +%D
echo $(date +%D)
man date will provide the parameters
Yes, of course. That's obvious -- and not the question. How are those invoked/accessed/used in a Input Actions -> Global Shortcut -> 'Send Keyboard Input' macro? BenDJ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 03 January 2010 08:21:54 pm Ben DJ wrote:
On Sun, Jan 3, 2010 at 5:34 PM, Patrick Shanahan <paka@opensuse.org> wrote:
date +%D
echo $(date +%D)
man date will provide the parameters
Yes, of course. That's obvious -- and not the question.
How are those invoked/accessed/used in a Input Actions -> Global Shortcut -> 'Send Keyboard Input' macro?
BenDJ
What desktop are you using, kde, gnome, or? I have kde 4.3.1 and it doesn't have a "global" option under input actions. -- Thanks, Tom Taylor linxt@comcast.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, Jan 3, 2010 at 8:45 PM, Thomas Taylor <linxt@comcast.net> wrote:
What desktop are you using, kde, gnome, or? I have kde 4.3.1 and it doesn't have a "global" option under input actions.
I'm running KDE 4.3.85... kdebase4-4.3.85-139.6.x86_64 kdebase4-runtime-4.3.85-173.12.x86_64 kdebase4-workspace-4.3.85-381.13.x86_64 ... the option you can see here: http://img22.imageshack.us/img22/6712/inputactions.png BenDJ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Ben DJ <bendj095124367913213465@gmail.com> [01-03-10 23:23]:
On Sun, Jan 3, 2010 at 5:34 PM, Patrick Shanahan <paka@opensuse.org> wrote:
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! -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Patrick Shanahan <paka@opensuse.org> [01-04-10 07:56]:
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!
Furthermore: I read this list which is how I came to answer your question. There is *absolutely* no need or reason to send me a duplicate email when replying to the thread or any list unless *specifically* requested. -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Jan 4, 2010 at 4:54 AM, Patrick Shanahan <paka@opensuse.org> wrote:
Next time you ask for help, be sure that you sufficiently explain your needs or aims
Subject: How to type CurrentDate & CurrentTime with KDE's InputActions? Body: "... and print their results out via InputActions ..." How much clearer do you need?
rather than jump someone attempting to help.
"Yes, of course. That's obvious -- and not the question." That's "jumping"? Have you read your OWN email?
Apology is necessary and expected!
Feel free to hold your breath -- henceforth in the trash bin. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 03 of January 2010 23:45:44 Ben DJ wrote:
Hi,
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@gmail.com> [01-03-10 23:23]:
On Sun, Jan 3, 2010 at 5:34 PM, Patrick Shanahan <paka@opensuse.org> wrote:
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@suse.cz , l.lunak@kde.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi, On Mon, Jan 4, 2010 at 9:24 AM, Lubos Lunak <l.lunak@suse.cz> wrote:
I'd like to assign a single, global keystroke/shortcut to print the current date & time.
You can't do that there,
Well, shucks! :-( I find the "date/time-stamp with a keystroke" something I miss a lot (easy @ OSX's QuicKeys ...).
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.
Both options, I suppose. Thanks for the idea -- I'll play around a bit. I _am_ willing to experiment; we'll just see how successfully.
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.
Heh, not the first time, eh? ;-) If I ever figure out how to do this, I'll try to post something to the wiki!
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.
Hm. I'd tried that before, and got nowhere. Must have screwed it up ... With your (re)suggestion, I'll try again. Thanks for the reply, BenDJ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 04 Jan 2010 17:36:46 Ben DJ wrote:
Well, shucks! :-( I find the "date/time-stamp with a keystroke" something I miss a lot (easy @ OSX's QuicKeys ...).
Well shucks i am mighty glad this aint OSX and aint meant to be a lookalike either Pete . -- Powered by openSUSE 11.2 Milestone 2 (x86_64) Kernel: 2.6.30-rc6-git3-4- default KDE: 4.2.86 (KDE 4.2.86 (KDE 4.3 >= 20090514)) "release 1" 08:00 up 4 days 19:26, 3 users, load average: 0.01, 0.06, 0.02
On Tue, Jan 5, 2010 at 12:02 AM, Peter Nikolic <p.nikolic1@btinternet.com> wrote:
Well shucks i am mighty glad this aint OSX and aint meant to be a lookalike either
You found it necessary/helpful to make this comment why? Heaven forbid that a user might actually suggest something not-invented-here is useful. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 05 Jan 2010 18:55:50 Ben DJ wrote:
On Tue, Jan 5, 2010 at 12:02 AM, Peter Nikolic
<p.nikolic1@btinternet.com> wrote:
Well shucks i am mighty glad this aint OSX and aint meant to be a lookalike either
You found it necessary/helpful to make this comment why? Heaven forbid that a user might actually suggest something not-invented-here is useful. Get a life will ya .
Pete -- Powered by openSUSE 11.2 Milestone 2 (x86_64) Kernel: 2.6.30-rc6-git3-4- default KDE: 4.2.86 (KDE 4.2.86 (KDE 4.3 >= 20090514)) "release 1" 22:24 up 5 days 9:50, 3 users, load average: 0.74, 0.68, 0.59
On Tue, Jan 5, 2010 at 2:24 PM, Peter Nikolic <p.nikolic1@btinternet.com> wrote:
Get a life will ya .
Were you born an arrogant ass, or have you been working at it awhile? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 05 Jan 2010 23:28:33 Ben DJ wrote:
On Tue, Jan 5, 2010 at 2:24 PM, Peter Nikolic <p.nikolic1@btinternet.com> wrote:
Get a life will ya .
Were you born an arrogant ass, or have you been working at it awhile?
Pot calling kettle black or what . Pete . -- Powered by openSUSE 11.2 Milestone 2 (x86_64) Kernel: 2.6.30-rc6-git3-4- default KDE: 4.2.86 (KDE 4.2.86 (KDE 4.3 >= 20090514)) "release 1" 07:12 up 5 days 18:38, 3 users, load average: 0.00, 0.07, 0.03
On Wednesday 06 of January 2010 08:13:03 Peter Nikolic wrote:
On Tuesday 05 Jan 2010 23:28:33 Ben DJ wrote:
On Tue, Jan 5, 2010 at 2:24 PM, Peter Nikolic <p.nikolic1@btinternet.com>
wrote:
Get a life will ya .
Were you born an arrogant ass, or have you been working at it awhile?
Pot calling kettle black or what . Pete .
http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- Lubos Lunak openSUSE Boosters team, KDE developer l.lunak@suse.cz , l.lunak@kde.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 04 of January 2010 18:36:46 Ben DJ wrote:
You can't do that there,
Well, shucks! :-( I find the "date/time-stamp with a keystroke" something I miss a lot (easy @ OSX's QuicKeys ...).
As I said, it's just a matter of playing with C++ and Xlib :). The code is in kdebase/workspace/khotkeys, the function creating the input is KeyboardInputAction::execute(), you need something that converts a given string to a series of QKeySequence (probably something from KKeyServer class might help).
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.
Heh, not the first time, eh? ;-) If I ever figure out how to do this, I'll try to post something to the wiki!
Not the wiki. Who's going to read it there? I meant the normal application documentation (http://www.kde.org/documentation/). PS: http://en.opensuse.org/OpenSUSE_mailing_list_netiquette#Personal_and_mail_li... -- Lubos Lunak openSUSE Boosters team, KDE developer l.lunak@suse.cz , l.lunak@kde.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, Jan 5, 2010 at 5:20 AM, Lubos Lunak <l.lunak@suse.cz> wrote:
As I said, it's just a matter of playing with C++ and Xlib :)
Yep, got that the first time around, thanks! My point, as a user, is simply that nice-interface-to-make-things-easy is helpful. Since it was my comment, about my system, I was simply suggesting my point of view. Kind of the point in a discussion, no? "playing with C++ and Xlib", you'd have to admit, is a far cry from a nice/simple GUI to complete a task. since there's no example in KDE/Opensuse/Linux to compare to, I simply reference an example -- very nicely done, btw -- that exists elsewhere. and, yes, i understand that your suggestion provides an answer, which I will happily follow up on ... BenDJ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Ben DJ
-
Lubos Lunak
-
Patrick Shanahan
-
Peter Nikolic
-
Thomas Taylor