cliphist update

This commit is contained in:
sankalp committed 2024-07-16 12:51:31 +05:45
1 parent 0e5620ee0a
commit de89ac1219
2 files changed
+55 -48

No files matched your search

-20
View File
@@ -1,20 +0,0 @@
#!/bin/bash
get() {
clip_list=$(cliphist list)
while IFS= read -r line; do
echo "$line" | iconv -t UTF-8
done <<<"$clip_list"
}
copy_by_id() {
id=$1
cliphist decode $id | wl-copy
}
if [[ "$1" == "--get" ]]; then
get
elif [[ "$1" == "--copy-by-id" ]]; then
{ copy_by_id "$2"; }
fi