update ags

This commit is contained in:
sankalp committed 2024-06-26 00:10:21 +05:45
1 parent 88822cb8e8
commit a9c19bd2e1
134 files changed
+4732 -5813

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#!/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