aboutsummaryrefslogtreecommitdiffstats
path: root/lclipd.lua
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2023-02-15 10:21:27 +0000
committerterminaldweller <thabogre@gmail.com>2023-02-15 10:21:27 +0000
commit0045471552786e887ece64f6004649d2bd312abf (patch)
tree8e87520105edbfb8cde450336e404784ca3a4fff /lclipd.lua
parentwip (diff)
downloadlclip-0045471552786e887ece64f6004649d2bd312abf.tar.gz
lclip-0045471552786e887ece64f6004649d2bd312abf.zip
README update
Diffstat (limited to 'lclipd.lua')
-rwxr-xr-xlclipd.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lclipd.lua b/lclipd.lua
index 1e339ae..031ff78 100755
--- a/lclipd.lua
+++ b/lclipd.lua
@@ -3,7 +3,8 @@
-- needs xsel, clipnotify
-- luarocks-5.3 install --local luaposix
-- luarocks-5.3 install --local argparse
--- cat .clip_history | dmenu -l 10 | xsel -ib
+-- luarocks-5.3 install --local lsqlite3
+-- sqlite3 $(cat /tmp/lclipd_db_name) 'select content from lclipd;' | dmenu -l 10 | xsel -ib
local string = require("string")
local signal = require("posix.signal")
local argparse = require("argparse")
@@ -110,6 +111,7 @@ local function get_clipboard_content()
local handle_x = io.popen("xsel -ob")
local last_clip_entry_x = handle_x:read("*a")
+ -- FIXME- fix for wayland
-- local wait_for_event_w = io.popen("clipnotify")
-- local handle_w = io.popen("wl-paste")
-- local last_clip_entry_w = handle_w:read("*a")