aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2023-05-04 19:24:48 +0000
committerterminaldweller <devi@terminaldweller.com>2023-05-04 19:24:48 +0000
commit4b0ef68be03ebbe9da56520d62ce372f66a2a12f (patch)
treefc794093f386283021776ebde9ebea982ccdc617 /bin
parentupdates (diff)
downloadscripts-4b0ef68be03ebbe9da56520d62ce372f66a2a12f.tar.gz
scripts-4b0ef68be03ebbe9da56520d62ce372f66a2a12f.zip
update
Diffstat (limited to 'bin')
-rwxr-xr-xbin/glyph_list.sh3
-rwxr-xr-xbin/postit.sh2
2 files changed, 4 insertions, 1 deletions
diff --git a/bin/glyph_list.sh b/bin/glyph_list.sh
new file mode 100755
index 0000000..51a7369
--- /dev/null
+++ b/bin/glyph_list.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env sh
+
+cat ~/scripts/glyphs/glyph_list | dmenu -fn "DejaVuSansMono Nerd Font Mono-11.3;antialias=true;autohint=true" -l 20 -D ":" -p "glyphs:" | tr -d "\n" | xsel -ib
diff --git a/bin/postit.sh b/bin/postit.sh
index 496ddd8..7447540 100755
--- a/bin/postit.sh
+++ b/bin/postit.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
-SQL_DB="$(cat /tmp/lclipd/lclipd_db_name)"
+SQL_DB="/dev/shm/lclipd"
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