Re: [kde] Klipper default actions: URLs and Files
Duncan wrote, On 08/27/2013 10:56 AM: > Dotan Cohen posted on Tue, 27 Aug 2013 12:33:53 +0300 as excerpted: > >> On Tue, Aug 27, 2013 at 10:05 AM, Duncan <1i5t5.dun...@cox.net> wrote: >>> Dotan Cohen posted on Sun, 25 Aug 2013 14:49:42 +0300 as excerpted: > FWIW, I don't appear to have a notify-send binary installed here, but I > do see a couple package hits. But what package provides it for you On Debian Wheezy: zia:debian# apt-file search notify-send libnotify-bin: /usr/bin/notify-send > there? (The ones I see appear to be smaller alternative implementations, > in case whatever package that normally provides it isn't installed, > tinynotify-send and sw-notify-send, the latter being a system-wide Debian doesn't have 'sw-notify-send' However, 'kdialog' has built-in dbus notify via: kdialog --passivepopup "Danger, Will Robinson" 0 # "text of message" Timeout-in-seconds It's much more limited in that respect. (icon is hardcoded at "info", timeouts seem limited to 30 seconds max, and can't be made persistent) > Meanwhile, google indicates that dbus-send can provide similar > functionality with an appropriate invocation. I obviously have that > (part of dbus), so I have some choices available and experimentation to > do... =:^) notify-send -u critical -t 0 -a APPNAME -i face-raspberry -c CATEGORY -h string:HINT:clue SUMMARY BODY results in (via running 'dbus-monitor'): method call sender=:1.149 -> dest=:1.14 serial=7 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify string "APPNAME" uint32 0 string "face-raspberry" string "SUMMARY" string "BODY" array [ ] array [ dict entry( string "urgency" variant byte 2 ) dict entry( string "HINT" variant string "clue" ) dict entry( string "category" variant string "CATEGORY" ) ] int32 0 $ qdbus org.freedesktop.Notifications /org/freedesktop/Notifications signal void org.freedesktop.Notifications.ActionInvoked(uint id, QString action_key) method void org.freedesktop.Notifications.CloseNotification(uint id) method QStringList org.freedesktop.Notifications.GetCapabilities() method QString org.freedesktop.Notifications.GetServerInformation(QString& vendor, QString& version, QString& spec_version) signal void org.freedesktop.Notifications.NotificationClosed(uint id, uint reason) method uint org.freedesktop.Notifications.Notify(QString app_name, uint replaces_id, QString app_icon, QString summary, QString body, QStringList actions, QVariantMap hints, int timeout) method QDBusVariant org.freedesktop.DBus.Properties.Get(QString interface_name, QString property_name) method QVariantMap org.freedesktop.DBus.Properties.GetAll(QString interface_name) method void org.freedesktop.DBus.Properties.Set(QString interface_name, QString property_name, QDBusVariant value) method QString org.freedesktop.DBus.Introspectable.Introspect() $ qdbus org.freedesktop.Notifications /org/freedesktop/Notifications GetServerInformation Plasma KDE 1.0 1.1 $ qdbus org.freedesktop.Notifications /org/freedesktop/Notifications GetCapabilities body body-hyperlinks body-markup icon-static actions (body-markup allows bolded, ... Ref: http://www.galago-project.org/specs/notification/ href's (body-hyperlinks) appear to work from notify-send and from kdialog --passivepopup (i.e. not stripped) --stephen -- Stephen Dowdy - Systems Administrator - NCAR/RAL 303.497.2869 - sdo...@ucar.edu- http://www.ral.ucar.edu/~sdowdy/ ___ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.
Re: [kde] Klipper default actions: URLs and Files
Dotan Cohen posted on Tue, 27 Aug 2013 12:33:53 +0300 as excerpted: > On Tue, Aug 27, 2013 at 10:05 AM, Duncan <1i5t5.dun...@cox.net> wrote: >> Dotan Cohen posted on Sun, 25 Aug 2013 14:49:42 +0300 as excerpted: >> >>> I started using the Klipper actions to tell me the human-readable >>> date/time when highlighting Unix timestamps. >> >> What's your "recipe" for that? >> > Here you go: > > Klipper -> Configure Klipper... > Actions -> Add Action Regular Expression: ^[0-9]{9,10}$ > Automatic: Yes > Description: Popup timestamp Add Command: > Command: notify-send "`date +"%Y-%m-%d %H:%I:%S" -d @%s`" > Output Handling: Ignore Description: Popup timestamp > > Enjoy Duncan! Thanks. I figured date's conversion functionality probably figured into it somewhere, but for CLI output generally invoke a konsole instance, and that seemed rather disruptive (too big) for this sort of output, so I wondered what you were using. And asking is easier than spending several hours experimenting. =:^) FWIW, I don't appear to have a notify-send binary installed here, but I do see a couple package hits. But what package provides it for you there? (The ones I see appear to be smaller alternative implementations, in case whatever package that normally provides it isn't installed, tinynotify-send and sw-notify-send, the latter being a system-wide version, presumably cross-user, plus a gentoo-specific eselect module for the functionality, which further implies additional implementations to select from.) Meanwhile, google indicates that dbus-send can provide similar functionality with an appropriate invocation. I obviously have that (part of dbus), so I have some choices available and experimentation to do... =:^) -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman ___ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.
Re: [kde] @ Dotan: As requested (back in March, sorry): Hotkey launcher scripts
Dotan Cohen posted on Tue, 27 Aug 2013 14:57:06 +0300 as excerpted: > Duncan, I just found this email! For some reason some of your emails > addressed to me did not get the "Gmail Star" that I use to identify mail > addressed to me or replies to my mails. I see that there are quite a > few, some dating back years! LOL! Years now, indeed. Let's see, I finally got active on the kde lists when I switched to 4.2 after being a kde user since 2.x, and remember you were active on the list from early in my activity and likely from earlier. Now we're on 4.11, so nine releases, with two a year... over four years (it was 4.2.5, late in the 4.2 cycle, and it's still early in 4.11). I'm not familiar with how gmail works, but I can speculate that the "some reason" you speak of might have something to do with the fact that I read the list and normally reply via gmane.org's list2news service, which presents the various lists I follow as newsgroups. I then use the news client pan to read and reply, via gmane, which uses methods originally designed to forward posts to moderated newsgroups to their moderators, to in this case forward the messages to the appropriate list-serv, on the poster's (my) behalf. Presumably something in that process is fooling gmail's reply detection methods... > I'll go through these treasures in due time. You are extremely thorough > and it will take me some time to go it all. Thank you very much! Thanks for the explanation. I had wondered, about this one in particular, since external feedback should be interesting, but I realized some time ago that like me, sometimes your replies may be delayed by (up to) months, presumably because (like me) you get busy with other things, and because for some detailed replies, one must be in the proper mood, and have sufficient time available, to properly read and reply. Anyway, looking forward to your comments, in time, now that you've discovered that trove. =:^) -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman ___ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.
Re: [kde] @ Dotan: As requested (back in March, sorry): Hotkey launcher scripts
On Sat, Oct 27, 2012 at 1:50 PM, Duncan <1i5t5.dun...@cox.net> wrote: > OK, this is *MUCH* later, but I still had this marked unread in ordered > to deal with later, and I'm finally getting the appropriately rounded > tuit. =:^) > > There are two executable scripts and one kmap file, placed in a "system" > location, and as many user menu files as desired. One menu file is > invoked first, but invocation is nestable, so it's possible for the first > one to invoke the scripts again, thus invoking an additional layer of > menus. > ...snip a ton... Duncan, I just found this email! For some reason some of your emails addressed to me did not get the "Gmail Star" that I use to identify mail addressed to me or replies to my mails. I see that there are quite a few, some dating back years! I'll go through these treasures in due time. You are extremely thorough and it will take me some time to go it all. Thank you very much! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.
Re: [kde] Klipper default actions: URLs and Files
On Tue, Aug 27, 2013 at 10:05 AM, Duncan <1i5t5.dun...@cox.net> wrote: > Dotan Cohen posted on Sun, 25 Aug 2013 14:49:42 +0300 as excerpted: > >> I started using the Klipper actions to tell me the human-readable >> date/time when highlighting Unix timestamps. This feature is great, >> but I cannot figure out how to disable to automatic actions which pop up >> a menu any time one highlights a URL or a File path. > > I don't have an answer to your question (I tend to leave everything > enabled and when I get undesired popups I just hit escape if they're > focused, or click cancel, the popup not staying focused is the biggest > frustration, but I've preferred the hassle to losing the functionality, > so far), but... > > What's your "recipe" for that? Getting human-readable times out of Unix > timestamps sounds like interesting/useful functionality indeed! =:^) > Here you go: Klipper -> Configure Klipper... Actions -> Add Action Regular Expression: ^[0-9]{9,10}$ Automatic: Yes Description: Popup timestamp Add Command: Command: notify-send "`date +"%Y-%m-%d %H:%I:%S" -d @%s`" Output Handling: Ignore Description: Popup timestamp Enjoy Duncan! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.
Re: [kde] Klipper default actions: URLs and Files
Dotan Cohen posted on Sun, 25 Aug 2013 14:49:42 +0300 as excerpted: > I started using the Klipper actions to tell me the human-readable > date/time when highlighting Unix timestamps. This feature is great, > but I cannot figure out how to disable to automatic actions which pop up > a menu any time one highlights a URL or a File path. I don't have an answer to your question (I tend to leave everything enabled and when I get undesired popups I just hit escape if they're focused, or click cancel, the popup not staying focused is the biggest frustration, but I've preferred the hassle to losing the functionality, so far), but... What's your "recipe" for that? Getting human-readable times out of Unix timestamps sounds like interesting/useful functionality indeed! =:^) -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman ___ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.