diff options
author | terminaldweller <devi@terminaldweller.com> | 2023-03-20 08:07:22 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2023-03-20 08:07:22 +0000 |
commit | a2d759eb557119e74d6e3e60a0aedc7076f6134d (patch) | |
tree | eec2cebe17b8c4b9d04d64eeecd09a7642958382 /README.md | |
parent | changed the help text for the hist-size option, remove the json vendored depe... (diff) | |
download | lclip-a2d759eb557119e74d6e3e60a0aedc7076f6134d.tar.gz lclip-a2d759eb557119e74d6e3e60a0aedc7076f6134d.zip |
updated the frontend example
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |