Add custom clipboard scripts

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-08-15 14:14:28 +02:00
parent 3749c22df5
commit 63cd833778
6 changed files with 57 additions and 9 deletions

View File

@@ -0,0 +1,13 @@
list() {
echo -en "\0keep-selection\x1ftrue\n"
cliphist list
}
handle() {
cliphist decode <<< "$1" | wl-copy
}
case $ROFI_RETV in
0) list ;;
1) handle "$@" ;;
esac

View File

@@ -0,0 +1,13 @@
list() {
echo -en "\0keep-selection\x1ftrue\n"
cliphist list
}
handle() {
cliphist delete <<< "$1"
}
case $ROFI_RETV in
0) list ;;
1) handle "$@" && list ;;
esac