From 4e66b474aa16b6e69314a42b4f796e4b82fb491e Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Thu, 28 May 2026 03:55:30 -0400 Subject: [PATCH] update: init pypr module --- lua/lib/settings.lua | 1 + lua/modules/pypr.lua | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 lua/modules/pypr.lua diff --git a/lua/lib/settings.lua b/lua/lib/settings.lua index 957552c..117bb91 100644 --- a/lua/lib/settings.lua +++ b/lua/lib/settings.lua @@ -19,6 +19,7 @@ settings["modules"] = { swaync = true, swayosd = true, cliphist = true, + pypr = true, } return require("lua.lib.utils").extend_config(settings, "lua.user.settings") diff --git a/lua/modules/pypr.lua b/lua/modules/pypr.lua new file mode 100644 index 0000000..dd8c8bc --- /dev/null +++ b/lua/modules/pypr.lua @@ -0,0 +1,18 @@ +local bind = require("lua.lib.bind") +local M = {} + +local function start_pypr() + hl.exec_cmd("pypr") +end + +M.autostart = { + start_pypr, +} + +M.binds = { + function() + bind.leader_key("SHIFT + Return", hl.dsp.exec_cmd("pypr toggle term"), "Pyprland: toggle drop terminal", {}) + end, +} + +return M