| Hash | Commit message | Author | Date | Files | + | - |
1 | commit 0316b72c916e5a8dda2c864165c1944ff01e1b9d |
2 | Author: Connor Etherington <[email protected]> |
3 | Date: Sun Jun 26 20:07:23 2022 +0200 |
4 | |
5 | Auto-Commit Update - 20220626 |
6 | --- |
7 | usr/bin/qcopy | 5 +++-- |
8 | 1 file changed, 3 insertions(+), 2 deletions(-) |
9 | |
10 | diff --git a/usr/bin/qcopy b/usr/bin/qcopy |
11 | index 772505c..352c628 100755 |
12 | --- a/usr/bin/qcopy |
13 | +++ b/usr/bin/qcopy |
14 | @@ -91,8 +91,9 @@ function MAIN { |
15 | |
16 | [[ ${VALUE} == '* NEW ENTRY' ]] && NEW && return 0 |
17 | |
18 | - cat $ENTRIESFILE| grep "${VALUE}"| awk -F\= '{print $3}' | |
19 | - sed 's/\s*//g' | xargs echo -n | xsel -b && |
20 | + cat $ENTRIESFILE| grep "^${VALUE}="|[41m |
21 | + sed -r "s/^${VALUE}=//;s/YESPREVIEW=//;s/NOPREVIEW//" | |
22 | + sed 's/^\s*//g' | xargs echo -n | xsel -b &&[41m |
23 | notify-send "✅ Copied to Clipboard" || true |
24 | |
25 | } |