feat: descriptions for hyprland binds
This commit is contained in:
@@ -10,42 +10,42 @@ hl.define_submap("window", function()
|
||||
hl.bind("x", function()
|
||||
hl.dispatch(hl.dsp.window.close())
|
||||
exit_submap()
|
||||
end)
|
||||
end, { description = "Close active window" })
|
||||
hl.bind("q", function()
|
||||
hl.dispatch(hl.dsp.window.close())
|
||||
exit_submap()
|
||||
end)
|
||||
end, { description = "Close active window" })
|
||||
|
||||
-- Fullscreen
|
||||
hl.bind("f", function()
|
||||
hl.dispatch(hl.dsp.window.fullscreen({ mode = "fullscreen" }))
|
||||
exit_submap()
|
||||
end)
|
||||
end, { description = "Toggle fullscreen" })
|
||||
|
||||
-- Floating
|
||||
hl.bind("v", function()
|
||||
hl.dispatch(hl.dsp.window.float())
|
||||
exit_submap()
|
||||
end)
|
||||
end, { description = "Toggle floating" })
|
||||
|
||||
-- Center
|
||||
hl.bind("c", function()
|
||||
hl.dispatch(hl.dsp.window.center())
|
||||
exit_submap()
|
||||
end)
|
||||
end, { description = "Centre window (when floating)" })
|
||||
|
||||
-- Kill
|
||||
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)
|
||||
end, { description = "Activate insta-kill" })
|
||||
|
||||
-- Resize
|
||||
hl.bind("l", hl.dsp.window.resize({ x = 10, y = 0 }))
|
||||
hl.bind("h", hl.dsp.window.resize({ x = -10, y = 0 }))
|
||||
hl.bind("j", hl.dsp.window.resize({ x = 0, y = 10 }))
|
||||
hl.bind("k", hl.dsp.window.resize({ x = 0, y = -10 }))
|
||||
hl.bind("l", hl.dsp.window.resize({ x = 10, y = 0 }), { description = "Increase size horizontally" })
|
||||
hl.bind("h", hl.dsp.window.resize({ x = -10, y = 0 }), { description = "Decrease size horizontally" })
|
||||
hl.bind("j", hl.dsp.window.resize({ x = 0, y = 10 }), { description = "Increase size vertically" })
|
||||
hl.bind("k", hl.dsp.window.resize({ x = 0, y = -10 }), { description = "Decrease size vertically" })
|
||||
|
||||
hl.bind("Escape", function()
|
||||
exit_submap()
|
||||
|
||||
Reference in New Issue
Block a user