feat: hyprland binds, some window rules, other small feats
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
local function exit_submap()
|
||||
hl.dispatch(hl.dsp.submap("reset"))
|
||||
end
|
||||
|
||||
hl.bind("Super + Q", hl.dsp.exit())
|
||||
|
||||
hl.define_submap("window", function()
|
||||
hl.bind("x", function()
|
||||
hl.dispatch(hl.dsp.exit())
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("q", function()
|
||||
hl.dispatch(hl.dsp.exit())
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("f", function()
|
||||
hl.dispatch(hl.dsp.window.fullscreen({ mode = "fullscreen" }))
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("v", function()
|
||||
hl.dispatch(hl.dsp.window.float())
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("c", function()
|
||||
hl.dispatch(hl.dsp.window.center())
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("Shift + K", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("notify-send 'Insta-Kill activated' --app-name='Hyprtclt'"))
|
||||
hl.dispatch(hl.dsp.exec_cmd("hyprctl kill"))
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("Escape", function()
|
||||
exit_submap()
|
||||
end)
|
||||
end)
|
||||
Reference in New Issue
Block a user