aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2023-07-06 20:31:14 +0000
committerterminaldweller <devi@terminaldweller.com>2023-07-06 20:31:14 +0000
commitcf712c045391478c4030e0b8dc0276310d693e83 (patch)
tree6a3f78664c3a2b0210fe983db7bdb84757c892b6 /README.md
parentfixed the heredoc erroneous error code handling, now properly escaping the he... (diff)
downloadlclip-cf712c045391478c4030e0b8dc0276310d693e83.tar.gz
lclip-cf712c045391478c4030e0b8dc0276310d693e83.zip
added a new option that allows running a sql file on startup, added a user service example for runit in the READMEin_memory
Diffstat (limited to '')
-rw-r--r--README.md18
1 files changed, 17 insertions, 1 deletions
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.</br>
+
+You can run lclipd as a user service. The author uses this for runit:</br>
+```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 <hist_size>] [-e <detect_secrets_exe>]
[-c <custom_clip_command>] [--x_clip_cmd <x_clip_cmd>]
[--wayland_clip_cmd <wayland_clip_cmd>]
[--tmux_clip_cmd <tmux_clip_cmd>] [--db_path <db_path>]
+ [--sql_file <sql_file>]
Options:
-h, --help Show this help message and exit.
@@ -92,6 +107,7 @@ Options:
--tmux_clip_cmd <tmux_clip_cmd>
the command used to get the tmux paste-buffer content (default: tmux show-buffer)
--db_path <db_path> path to the db location,currently :memory: and ''(empty) is not supported (default: /dev/shm/lclipd)
+ --sql_file <sql_file> path to the file containing a sql file that will be executed about lclip starting every time (default: )
```
## Supported OSes