aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2023-03-20 08:07:22 +0000
committerterminaldweller <devi@terminaldweller.com>2023-03-20 08:07:22 +0000
commita2d759eb557119e74d6e3e60a0aedc7076f6134d (patch)
treeeec2cebe17b8c4b9d04d64eeecd09a7642958382 /README.md
parentchanged the help text for the hist-size option, remove the json vendored depe... (diff)
downloadlclip-a2d759eb557119e74d6e3e60a0aedc7076f6134d.tar.gz
lclip-a2d759eb557119e74d6e3e60a0aedc7076f6134d.zip
updated the frontend example
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index cc07d76..fddc369 100644
--- a/README.md
+++ b/README.md
@@ -34,7 +34,11 @@ pip install detect-secrets
lclipd is technically just the "back-end". One way to have a frontend is to use dmenu:</br>
```sh
-sqlite3 $(cat /tmp/lclipd/lclipd_db_name) 'select content from lclipd;' | dmenu -l 10 | xsel -ib
+#!/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
```
## Options