blob: aebf87ef6917d15dca6d8d5bd4fff991da3d2bc2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/env bash
#
while [[ true ]]; do
result=$(
cliphist list | rofi -dmenu \
-kb-custom-1 "Control-Delete" \
-config ~/.config/rofi/config-long.rasi
)
exit_state=$?
if [[ $exit_state -eq 1 ]]; then
exit
fi
case "$exit_state" in
0)
cliphist decode <<<$result | wl-copy
exit
;;
10)
cliphist delete <<<$result
;;
esac
done
|