From 198ecb119d2e08479e9af58e63f9c8a706574fbd Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Thu, 28 May 2026 03:34:22 -0400 Subject: [PATCH] update: add cliphist module --- lua/lib/settings.lua | 1 + lua/modules/cliphist.lua | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 lua/modules/cliphist.lua diff --git a/lua/lib/settings.lua b/lua/lib/settings.lua index 41557a5..957552c 100644 --- a/lua/lib/settings.lua +++ b/lua/lib/settings.lua @@ -18,6 +18,7 @@ settings["modules"] = { waybar = true, swaync = true, swayosd = true, + cliphist = true, } return require("lua.lib.utils").extend_config(settings, "lua.user.settings") diff --git a/lua/modules/cliphist.lua b/lua/modules/cliphist.lua new file mode 100644 index 0000000..17411f3 --- /dev/null +++ b/lua/modules/cliphist.lua @@ -0,0 +1,11 @@ +local M = {} + +local function start_wl_clipboard() + hl.exec_cmd("wl-paste --watch cliphist store") +end + +M.autostart = { + start_wl_clipboard, +} + +return M