local function exit_submap() hl.dispatch(hl.dsp.submap("reset")) end 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) -- Touchpad hl.bind("SHIFT + T", function() hl.device({ name = "pnp0c50:00-093a:0255-touchpad", enabled = false, }) hl.dispatch(hl.dsp.exec_cmd("notify-send 'Disabled Trackpad' --app-name='Hyprctl'")) end) hl.bind("T", function() hl.device({ name = "pnp0c50:00-093a:0255-touchpad", enabled = true, }) hl.dispatch(hl.dsp.exec_cmd("notify-send 'Enabled Trackpad' --app-name='Hyprctl'")) end) -- ── DMS controls ───────────────────────────────────────────────── -- clipboard history hl.bind("h", function() hl.dispatch(hl.dsp.exec_cmd("dms ipc call clipboard toggle")) exit_submap() end) -- Dash hl.bind("d", function() hl.dispatch(hl.dsp.exec_cmd("dms ipc call dash toggle")) exit_submap() end) -- Settings hl.bind("s", function() hl.dispatch(hl.dsp.exec_cmd("dms ipc call settings toggle")) exit_submap() end) hl.bind("Escape", function() exit_submap() end) end)