Re: [kde] Klipper default actions: URLs and Files
On Fri, Aug 30, 2013 at 6:55 PM, Stephen Dowdy sdo...@ucar.edu wrote: I use CTRLALTR to manually invoke my user actions on clipboard content. This works independently of Enable Clipboard Actions. It offers ALL your user actions, not just those that regex match the selection buffer, as the context popup does. Thanks. I've mapped that to something easier to type. The result is that I can get the timestamp info when I need it, without the annoying side effect of every highlighted URL causing a popup. I still haven't figured out why klipper will hang for 10 seconds on selection (esp a URL) and not respond to paste or the klipper systray popup sometimes. This happened in Debian Squeeze (KDE 4.4.5) and Wheezy (4.8.4) I don't think i have any funky regex in my actions causing this :-( (i wonder if the Sync clip/sel option is doing this, and there's some lock in play that has an alarm/timeout...) I cannot reproduce that, even after trying to replicate your setup. -- 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
dE wrote, On 08/29/2013 09:54 PM: On 08/26/13 18:00, Dotan Cohen wrote: On Sun, Aug 25, 2013 at 5:28 PM, dE de.tec...@gmail.com wrote: In Klipper settings, check 'Ignore selection'. Thank you, however this prevents my user-configured actions from working, even though Enable Clipboard Actions is checked. dE, I use CTRLALTR to manually invoke my user actions on clipboard content. This works independently of Enable Clipboard Actions. It offers ALL your user actions, not just those that regex match the selection buffer, as the context popup does. I have Text selection only and Synchronize contents of the clipboard and the selection, which disables Ignore selection (ghosting that choice) If i disable Enable Mime-Based Actions, then i do not get a popup for when i select, say an HTTP URL, even if Enable Clipboard Actions is selected. However, if i then select a 6-digit number, then i get the user-action popup asking if i want to search for a Debian Bug Report. I still haven't figured out why klipper will hang for 10 seconds on selection (esp a URL) and not respond to paste or the klipper systray popup sometimes. This happened in Debian Squeeze (KDE 4.4.5) and Wheezy (4.8.4) I don't think i have any funky regex in my actions causing this :-( (i wonder if the Sync clip/sel option is doing this, and there's some lock in play that has an alarm/timeout...) --stephen ___ 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 Tuesday, 2013-08-27, Duncan wrote: 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... =:^) There is also qdbus which is sometimes easier to use than dbus-send and kdialog --passivepopup Cheers, Kevin -- Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring signature.asc Description: This is a digitally signed message part. ___ 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 08/26/13 18:00, Dotan Cohen wrote: On Sun, Aug 25, 2013 at 5:28 PM, dE de.tec...@gmail.com wrote: In Klipper settings, check 'Ignore selection'. Thank you, however this prevents my user-configured actions from working, even though Enable Clipboard Actions is checked. Another KDE bug uncovered... ___ 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.
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] 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 bbolded/b, i.../i 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
On 08/25/13 17:19, Dotan Cohen wrote: 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. In addition to the Klippe GUI configuration, where I could not find anything relevant, I looked in the following files (Kubuntu Linux): /home/dotancohen/.kde/share/config/klipperrc /usr/share/kubuntu-default-settings/kde4-profile/default/share/config/klipperrc The feature is not configured there, either. In Klipper settings, check 'Ignore selection'. ___ 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.