fix: screenshots

This commit is contained in:
2026-09-25 09:55:11 +02:00
parent 79ed66c8af
commit 53325eb74b
+2 -2
View File
@@ -11,14 +11,14 @@ hl.define_submap("screenshot", function()
hl.bind("c", function()
hl.dispatch(
hl.dsp.exec_cmd(
'grim -g "$(slurp -d)" - | satty -f - --copy-command wl-copy -o "~/Pictures/Screenshots/%Y-%m-%dT%H:%M:%SZ%z.png"'
'grim -g "$(slurp -d)" - | satty -f - --copy-command wl-copy -o "$(xdg-user-dir PICTURES)/Screenshots/%Y-%m-%dT%H:%M:%SZ%z.png"'
)
)
exit_submap()
end, { description = "Take screenshot of area, yank and save" })
hl.bind("s", function()
hl.dispatch(hl.dsp.exec_cmd("grim -g '$(slurp -d)' $(xdg-user-dir PICTURES)/Screenshots/$(date +'%Y-%m-%dT%H:%M:%SZ%z.png')"))
hl.dispatch(hl.dsp.exec_cmd("grim -g '$(slurp -d)' -o $(xdg-user-dir PICTURES)/Screenshots/$(date +'%Y-%m-%dT%H:%M:%SZ%z.png')"))
exit_submap()
end, { description = "Take screenshot of area and Save" })