Created
June 5, 2020 19:12
-
-
Save wwalker/f475f3789c1b92171276082b391f3c08 to your computer and use it in GitHub Desktop.
xfce4-clipman-actions.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2020-06-05 14:09:09 - wwalker@polonium:~ ✓ $ cat /usr/bin/epoch_to_rfc_3339 | |
#!/bin/bash | |
echo $1 > /tmp/wtf | |
xmessage $(date -d @$1 +%FT%T) | |
2020-06-05 14:09:19 - wwalker@polonium:~ ✓ $ rm /tmp/wtf | |
rm: remove regular file '/tmp/wtf'? y | |
2020-06-05 14:09:28 - wwalker@polonium:~ ✓ $ date +%s | |
1591384173 | |
# here I select the number | |
2020-06-05 14:09:40 - wwalker@polonium:~ ✓ $ ls -ld /tmp/wtf | |
ls: cannot access '/tmp/wtf': No such file or directory | |
2020-06-05 14:10:20 - wwalker@polonium:~ ✓ $ /usr/bin/epoch_to_rfc_3339 1591384173 | |
2020-06-05 14:10:27 - wwalker@polonium:~ ✓ $ ls -l /tmp/wtf | |
-rw-r--r-- 1 wwalker wwalker 11 2020-06-05T14:10:23.629001725 /tmp/wtf | |
2020-06-05 14:10:44 - wwalker@polonium:~ ✓ $ cat /tmp/wtf | |
1591384173 | |
2020-06-05 14:10:50 - wwalker@polonium:~ ✓ $ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<action> | |
<name>epoch</name> | |
<regex>([0-9]{10})</regex> | |
<group>0</group> | |
<commands> | |
<command> | |
<name>epoch</name> | |
<exec>/usr/bin/epoch_to_rfc_3339 \1</exec> | |
</command> | |
</commands> | |
</action> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment