feat: descriptions for hyprland binds

This commit is contained in:
2026-07-11 09:12:24 +02:00
parent b11a8f82c6
commit c51f60064e
10 changed files with 127 additions and 92 deletions
+14 -14
View File
@@ -3,7 +3,7 @@ local function exit_submap()
end
local function launcher(program)
return function ()
return function()
hl.dispatch(hl.dsp.exec_cmd(program))
exit_submap()
end
@@ -13,38 +13,38 @@ hl.bind("SUPER + Return", launcher("kitty"))
hl.define_submap("launch", function()
-- Librewolf
hl.bind("l", launcher("librewolf"))
hl.bind("l", launcher("librewolf"), { description = "Launch Librewolf" })
-- Steam
hl.bind("s", launcher("steam"))
hl.bind("s", launcher("steam"), { description = "Launch Steam" })
-- Discord
hl.bind("d", launcher("vesktop"))
hl.bind("d", launcher("vesktop"), { description = "Launch Discord" })
-- Kitty
hl.bind("k", launcher("kitty"))
hl.bind("Return", launcher("kitty"))
hl.bind("k", launcher("kitty"), { description = "Launch kitty" })
hl.bind("Return", launcher("kitty"), { description = "Launch kitty" })
-- Filezilla
hl.bind("f", launcher("filezilla"))
hl.bind("f", launcher("filezilla"), { description = "Launch Filezilla" })
-- Thunderbird
hl.bind("t", launcher("thunderbird"))
hl.bind("t", launcher("thunderbird"), { description = "Launch Thunderbird" })
-- Zathura
hl.bind("z", launcher("zathura"))
hl.bind("z", launcher("zathura"), { description = "Launch Zathura (pdf)" })
-- Brave
hl.bind("SHIFT + B", launcher("brave"))
hl.bind("SHIFT + B", launcher("brave"), { description = "Launch Brave" })
-- bsmanager
hl.bind("b", launcher("/opt/BSManager/bs-manager"))
hl.bind("b", launcher("/opt/BSManager/bs-manager"), { description = "Launch BSManager" })
-- ALVR
hl.bind("p", launcher("alvr_dashboard"))
hl.bind("p", launcher("alvr_dashboard"), { description = "Launch ALVR" })
-- Qalculate
hl.bind("c", launcher("qalculate-qt"))
hl.bind("c", launcher("qalculate-qt"), { description = "Launch Qalculate!" })
-- AirPlay
hl.bind("a", function()
@@ -55,7 +55,7 @@ hl.define_submap("launch", function()
)
)
exit_submap()
end)
end, { description = "Launch AirPlay server" })
-- Escape
hl.bind("Escape", function()