feat: hyprland binds, some window rules, other small feats

This commit is contained in:
2026-06-13 18:08:00 +02:00
parent a253ce56b7
commit 6e35326906
18 changed files with 414 additions and 57 deletions
+39
View File
@@ -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)