From cf712c045391478c4030e0b8dc0276310d693e83 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Fri, 7 Jul 2023 00:01:14 +0330 Subject: added a new option that allows running a sql file on startup, added a user service example for runit in the README --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index b11370c..d0d2f02 100644 --- a/README.md +++ b/README.md @@ -54,10 +54,24 @@ fzf_lclipd() { fi } zle -N fzf_lclipd -bindkey '' fzf_lclipd +bindkey '^O' fzf_lclipd ``` You can also put the db on a network share and then have different instanecs on different hosts use the same common db, effectively sharing your clipboard between different devices on the same subnet.
+ +You can run lclipd as a user service. The author uses this for runit:
+```sh +#!/bin/sh +exec \ + env \ + XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR}" \ + XAUTHORITY="${XAUTHORITY}" \ + DISPLAY=:0 \ + /usr/bin/lua5.3 \ + /home/devi/devi/lclip.git/in_memory/lclipd.lua \ + > /dev/null 2>&1 +``` + ## Options ``` @@ -66,6 +80,7 @@ Usage: ./lclipd.lua [-h] [-s ] [-e ] [-c ] [--x_clip_cmd ] [--wayland_clip_cmd ] [--tmux_clip_cmd ] [--db_path ] + [--sql_file ] Options: -h, --help Show this help message and exit. @@ -92,6 +107,7 @@ Options: --tmux_clip_cmd the command used to get the tmux paste-buffer content (default: tmux show-buffer) --db_path path to the db location,currently :memory: and ''(empty) is not supported (default: /dev/shm/lclipd) + --sql_file path to the file containing a sql file that will be executed about lclip starting every time (default: ) ``` ## Supported OSes -- cgit v1.2.3