fix: more keybind cleanup, remove hyprlock
This commit is contained in:
@@ -2,38 +2,51 @@ local function exit_submap()
|
||||
hl.dispatch(hl.dsp.submap("reset"))
|
||||
end
|
||||
|
||||
hl.bind("SUPER + mouse:272", hl.dsp.window.move())
|
||||
hl.bind("SUPER + mouse:273", hl.dsp.window.resize())
|
||||
|
||||
hl.define_submap("window", function()
|
||||
-- Close window
|
||||
hl.bind("x", function()
|
||||
hl.dispatch(hl.dsp.exit())
|
||||
hl.dispatch(hl.dsp.window.close())
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("q", function()
|
||||
hl.dispatch(hl.dsp.exit())
|
||||
hl.dispatch(hl.dsp.window.close())
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
-- Fullscreen
|
||||
hl.bind("f", function()
|
||||
hl.dispatch(hl.dsp.window.fullscreen({ mode = "fullscreen" }))
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
-- Floating
|
||||
hl.bind("v", function()
|
||||
hl.dispatch(hl.dsp.window.float())
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
-- Center
|
||||
hl.bind("c", function()
|
||||
hl.dispatch(hl.dsp.window.center())
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
-- 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)
|
||||
|
||||
-- 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("Escape", function()
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user