aboutsummaryrefslogblamecommitdiffstats
path: root/bin/postit.sh
blob: 496ddd8739c682871e419c3df00ada80c4bef53f (plain) (tree)
1
2
3
4
5

                 


                                                                                                                                                                                             
#!/usr/bin/env sh

SQL_DB="$(cat /tmp/lclipd/lclipd_db_name)"
content=$(sqlite3 "${SQL_DB}" "select replace(content,char(10),' '),id from lclipd;" | dmenu -fn "DejaVuSansMono Nerd Font Mono-11.3;antialias=true;autohint=true" -D "|" -l 20 -p "lclipd:")
sqlite3 "${SQL_DB}" "select content from lclipd where id = ${content}" | xsel -ib