From a2d759eb557119e74d6e3e60a0aedc7076f6134d Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Mon, 20 Mar 2023 11:37:22 +0330 Subject: updated the frontend example --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'README.md') 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:
```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 -- cgit v1.2.3