feat: hyprland binds, some window rules, other small feats
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user