17 lines
319 B
Bash
Executable file
17 lines
319 B
Bash
Executable file
#!/bin/bash
|
|
|
|
#cb_count=$(copyq count)
|
|
cb_count=2
|
|
|
|
wofilist=""
|
|
|
|
for i in $(seq $cb_count);do
|
|
o="$((${i}-1))"
|
|
cb_item="$( copyq read ${o} )"
|
|
echo "${cb_item}"
|
|
cb_line="$( echo ${cb_item} | tr '\n' ' ' )"
|
|
echo "${cb_line}"
|
|
wofilist="${wofilist}\n${i}. ${cb_line}"
|
|
done
|
|
|
|
echo -e "${wofilist}" | wofi -i --dmenu
|