[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde
Subject:    Re: [kde] Klipper default actions: URLs and Files
From:       Dotan Cohen <dotancohen () gmail ! com>
Date:       2013-08-27 9:33:53
Message-ID: CAKDXFkOYuRc1SAVeV+6=BuKxFW2DYmqB0t5y+1Bq3GNADNpf7g () mail ! gmail ! com
[Download RAW message or body]

On Tue, Aug 27, 2013 at 10:05 AM, Duncan <1i5t5.duncan@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.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic