aboutsummaryrefslogtreecommitdiffstats
path: root/bin/postit.sh
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2023-02-18 17:37:42 +0000
committerterminaldweller <thabogre@gmail.com>2023-02-18 17:37:42 +0000
commitcb545061e4c4207667ca898c2dc21c35477987ee (patch)
treef163b8c64e4aa4e44d0b3397f3f7120b9b2eb7d5 /bin/postit.sh
parentupdate (diff)
downloadscripts-cb545061e4c4207667ca898c2dc21c35477987ee.tar.gz
scripts-cb545061e4c4207667ca898c2dc21c35477987ee.zip
update
Diffstat (limited to 'bin/postit.sh')
-rwxr-xr-xbin/postit.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/postit.sh b/bin/postit.sh
index d0271e3..46addd0 100755
--- a/bin/postit.sh
+++ b/bin/postit.sh
@@ -1,4 +1,6 @@
#!/usr/bin/env sh
-POSTIT=$(cat ~/scripts/postit | dmenu -l 20 -p "Select Postit:")
-echo -n "${POSTIT:0:${#POSTIT}}" | xsel -ip
+CLIP_HIST_FILE=/tmp/.clip_history
+# POSTIT=$(cat ${CLIP_HIST_FILE} | dmenu -l 20 -p "Select Postit:")
+sqlite3 $(cat /tmp/lclipd_db_name) 'select content from lclipd;' | dmenu -l 20 | xsel -ib
+# echo -n "${POSTIT:0:${#POSTIT}}" | xsel -ip