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
+19 -48
View File
@@ -2,76 +2,47 @@ local function exit_submap()
hl.dispatch(hl.dsp.submap("reset"))
end
local function launcher(program)
return function ()
hl.dispatch(hl.dsp.exec_cmd(program))
exit_submap()
end
end
hl.define_submap("launch", function()
-- Librewolf
hl.bind("l", function()
hl.dispatch(hl.dsp.exec_cmd("librewolf"))
exit_submap()
end)
hl.bind("l", launcher("librewolf"))
-- Steam
hl.bind("s", function()
hl.dispatch(hl.dsp.exec_cmd("steam"))
exit_submap()
end)
hl.bind("s", launcher("steam"))
-- Discord
hl.bind("d", function()
hl.dispatch(hl.dsp.exec_cmd("vesktop"))
exit_submap()
end)
hl.bind("d", launcher("vesktop"))
-- Kitty
hl.bind("k", function()
hl.dispatch(hl.dsp.exec_cmd("kitty"))
exit_submap()
end)
hl.bind("Return", function()
hl.dispatch(hl.dsp.exec_cmd("kitty"))
exit_submap()
end)
hl.bind("k", launcher("kitty"))
hl.bind("Return", launcher("kitty"))
-- Filezilla
hl.bind("f", function()
hl.dispatch(hl.dsp.exec_cmd("filezilla"))
exit_submap()
end)
hl.bind("f", launcher("filezilla"))
-- Thunderbird
hl.bind("t", function()
hl.dispatch(hl.dsp.exec_cmd("thunderbird"))
exit_submap()
end)
hl.bind("t", launcher("thunderbird"))
-- Zathura
hl.bind("z", function()
hl.dispatch(hl.dsp.exec_cmd("zathura"))
exit_submap()
end)
hl.bind("z", launcher("zathura"))
-- Brave
hl.bind("Shift + B", function()
hl.dispatch(hl.dsp.exec_cmd("brave"))
exit_submap()
end)
hl.bind("Shift + B", launcher("brave"))
-- bsmanager
hl.bind("b", function()
hl.dispatch(hl.dsp.exec_cmd("/opt/bs-manager/bs-manager"))
exit_submap()
end)
hl.bind("b", launcher("/opt/bs-manager/bs-manager"))
-- ALVR
hl.bind("p", function()
hl.dispatch(hl.dsp.exec_cmd("alvr_dashboard"))
exit_submap()
end)
hl.bind("p", launcher("alvr_dashboard"))
-- Qalculate
hl.bind("c", function()
hl.dispatch(hl.dsp.exec_cmd("qalculate-qt"))
exit_submap()
end)
hl.bind("c", launcher("qalculate-qt"))
-- AirPlay
hl.bind("a", function()