40 lines
997 B
Lua
40 lines
997 B
Lua
local function exit_submap()
|
|
hl.dispatch(hl.dsp.submap("reset"))
|
|
end
|
|
|
|
hl.define_submap("screenshot", function()
|
|
hl.bind("y", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("grimblast --notify copy area"))
|
|
exit_submap()
|
|
end)
|
|
|
|
hl.bind("c", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("grimblast --notify copysave area"))
|
|
exit_submap()
|
|
end)
|
|
|
|
hl.bind("s", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("grimblast --notify save area"))
|
|
exit_submap()
|
|
end)
|
|
|
|
hl.bind("Shift + y", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("grimblast --notify copy screen"))
|
|
exit_submap()
|
|
end)
|
|
|
|
hl.bind("Shift + c", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("grimblast --notify copysave screen"))
|
|
exit_submap()
|
|
end)
|
|
|
|
hl.bind("Shift + s", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("grimblast --notify save screen"))
|
|
exit_submap()
|
|
end)
|
|
|
|
hl.bind("Escape", function()
|
|
exit_submap()
|
|
end)
|
|
end)
|