40 lines
1013 B
Lua
40 lines
1013 B
Lua
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("dms ipc call notifications dismissAllPopups"))
|
|
exit_submap()
|
|
end)
|
|
|
|
hl.bind("d", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications clearAll"))
|
|
exit_submap()
|
|
end)
|
|
|
|
hl.bind("m", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications toggleDoNotDisturb"))
|
|
exit_submap()
|
|
end)
|
|
|
|
hl.bind("h", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications close"))
|
|
exit_submap()
|
|
end)
|
|
|
|
hl.bind("s", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications open"))
|
|
exit_submap()
|
|
end)
|
|
|
|
hl.bind("t", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications toggle"))
|
|
exit_submap()
|
|
end)
|
|
|
|
hl.bind("Escape", function()
|
|
exit_submap()
|
|
end)
|
|
end)
|