fix: screenshots
This commit is contained in:
@@ -11,14 +11,14 @@ hl.define_submap("screenshot", function()
|
|||||||
hl.bind("c", function()
|
hl.bind("c", function()
|
||||||
hl.dispatch(
|
hl.dispatch(
|
||||||
hl.dsp.exec_cmd(
|
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()
|
exit_submap()
|
||||||
end, { description = "Take screenshot of area, yank and save" })
|
end, { description = "Take screenshot of area, yank and save" })
|
||||||
|
|
||||||
hl.bind("s", function()
|
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()
|
exit_submap()
|
||||||
end, { description = "Take screenshot of area and Save" })
|
end, { description = "Take screenshot of area and Save" })
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user