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
+33 -8
View File
@@ -1,10 +1,35 @@
local function exit_submap()
hl.dispatch(hl.dsp.submap("reset"))
end
return function(is_laptop)
local function exit_submap()
hl.dispatch(hl.dsp.submap("reset"))
end
hl.define_submap("launch", function()
hl.bind("l", function()
hl.dispatch(hl.dsp.exec_cmd("librewolf"))
exit_submap()
hl.define_submap("device", function()
hl.bind("m", function()
hl.dispatch(hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"))
exit_submap()
end)
if is_laptop then
hl.bind("d", function()
hl.dispatch(hl.dsp.exec_cmd("notify-send 'Set to mirror internal display' --app-name'Hyprctl'"))
hl.monitor({
output = "HDMI-A-1",
mirror = "eDP-1",
})
exit_submap()
end)
hl.bind("e", function()
hl.dispatch(hl.dsp.exec_cmd("notify-send 'Set to expand internal display' --app-name'Hyprctl'"))
hl.monitor({
output = "HDMI-A-1",
mirror = "",
})
exit_submap()
end)
end
hl.bind("Escape", function()
exit_submap()
end)
end)
end)
end