Compare commits

2 Commits
Author SHA1 Message Date
wyj 666ad77a02 update: spring parameter 2026-07-21 20:05:30 -04:00
wyj fade16974b update: spring change in 0.56.0 2026-07-20 21:00:51 -04:00
3 changed files with 2 additions and 40 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ M.curves = {
curve = {
type = "spring",
mass = 1,
stiffness = 50,
dampening = 8,
stiffness = 500,
dampening = 20,
},
},
}
-1
View File
@@ -7,7 +7,6 @@ local pieces = {
"window",
"workspace",
"passthrough",
"screenshot",
}
M.binds = {}
-37
View File
@@ -1,37 +0,0 @@
local bind = require("lua.lib.bind")
local M = {}
local function screenshot_fullscreen()
local home = os.getenv("HOME")
local dir = home .. "/Pictures/screenshots/"
local name = "screenshot_" .. os.date("%Y%d%m_%H%M%S") .. ".png"
local file = dir .. name
local monitor = hl.get_active_monitor()
if monitor == nil then
return
end
hl.exec_cmd(
string.format(
"grim -o %q %q && " .. "wl-copy --type image/png < %q && " .. "notify-send %q %q && " .. "swappy -f %q",
monitor.name,
file,
file,
"Screenshot created and copied to clipboard",
"Mode: Fullscreen",
file
)
)
end
M.binds = {
{
keys = bind.with_leader("SHIFT + Print"),
dispatcher = screenshot_fullscreen,
desc = "Make fullscreen screenshot",
},
}
return M