diff options
| author | Anton Bobov <abobov@gmail.com> | 2017-10-21 10:39:34 +0200 |
|---|---|---|
| committer | Anton Bobov <abobov@gmail.com> | 2017-10-21 10:39:34 +0200 |
| commit | 1f44d74c080c168ccdb315f18a99f270f09c548d (patch) | |
| tree | 94be07cc74b594b315fa8cb064a3f9f667070c16 /clipboard-stream | |
| parent | 95e920f6fe2de0b26cd8af072b29438c9a8e83cc (diff) | |
Update bin.
+ clipboard-stream: prints clipboard changes to stdout
* ledger price db refactoring, added new xe
Diffstat (limited to 'clipboard-stream')
| -rwxr-xr-x | clipboard-stream | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clipboard-stream b/clipboard-stream new file mode 100755 index 0000000..b4c1120 --- /dev/null +++ b/clipboard-stream @@ -0,0 +1,13 @@ +#!/bin/bash + +set -e + +recent_value=$(xclip -o -selection clipboard) +while true ; do + value=$(xclip -o -selection clipboard) + if [ "$recent_value" != "$value" ] ; then + recent_value=$value + echo $recent_value + fi + sleep 0.1 +done |
