feat: hyprland binds, some window rules, other small feats
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
local function exit_submap()
|
||||
hl.dispatch(hl.dsp.submap("reset"))
|
||||
end
|
||||
|
||||
hl.define_submap("notifications", function()
|
||||
hl.bind("c", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("swaync-client --hide-all"))
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("d", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("swaync-client --clear-all"))
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("h", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("swaync-client -cp"))
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("s", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("swaync-client -op"))
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("t", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("swaync-client -t"))
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
hl.bind("Escape", function()
|
||||
exit_submap()
|
||||
end)
|
||||
end)
|
||||
Reference in New Issue
Block a user