feat: hyprland binds, some window rules, other small feats
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user