feat: prepare for DMS removal
This commit is contained in:
@@ -33,31 +33,12 @@ hl.define_submap("device", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("notify-send 'Enabled Trackpad' --app-name='Hyprctl'"))
|
||||
end, { description = "Enable trackpad" })
|
||||
|
||||
-- ── DMS controls ─────────────────────────────────────────────────
|
||||
-- clipboard history
|
||||
hl.bind("h", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("dms ipc call clipboard toggle"))
|
||||
exit_submap()
|
||||
end, { description = "Toggle clipboard history panel" })
|
||||
|
||||
-- Dash
|
||||
hl.bind("d", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("dms ipc call dash toggle"))
|
||||
exit_submap()
|
||||
end, { description = "Toggle DMS dash (top left)" })
|
||||
|
||||
-- Wallpaper
|
||||
hl.bind("w", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("dms ipc call dankdash wallpaper"))
|
||||
exit_submap()
|
||||
end, { description = "Open DMS wallpaper picker" })
|
||||
|
||||
-- Settings
|
||||
hl.bind("s", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("dms ipc call settings toggle"))
|
||||
exit_submap()
|
||||
end, { description = "Toggle DMS settings" })
|
||||
|
||||
hl.bind("Escape", function()
|
||||
exit_submap()
|
||||
end)
|
||||
|
||||
@@ -8,8 +8,5 @@ hl.bind("SUPER + A", hl.dsp.submap("workspace"), { description = "Workspace cont
|
||||
hl.bind("SUPER + P", hl.dsp.submap("groupedlaunch"), { description = "Launch groups of programs" })
|
||||
hl.bind("SUPER + Q", hl.dsp.window.close(), { description = "Close active window" })
|
||||
|
||||
hl.bind("SUPER + Space", hl.dsp.exec_cmd("dms ipc call spotlight toggle"), { description = "Toggle app launcher" })
|
||||
hl.bind("SUPER + SHIFT + Space", hl.dsp.exec_cmd("dms ipc call spotlight-bar toggle"), { description = "Toggle app launcher as small bar" })
|
||||
hl.bind("SUPER + Space", hl.dsp.exec_cmd("hyprlauncher"), { description = "Toggle app launcher" })
|
||||
hl.bind("SUPER + Escape", hl.dsp.exec_cmd("wlogout"), { description = "Toggle logout screen" })
|
||||
hl.bind("SUPER + I", hl.dsp.exec_cmd("dms ipc call control-center open"), { description = "Toggle control centre" })
|
||||
hl.bind("SUPER + CTRL + H", hl.dsp.exec_cmd("dms ipc call keybinds toggle hyprland"), { description = "Toggle keybinds panel" })
|
||||
|
||||
@@ -4,32 +4,32 @@ end
|
||||
|
||||
hl.define_submap("notifications", function()
|
||||
hl.bind("c", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications dismissAllPopups"))
|
||||
hl.dispatch(hl.dsp.exec_cmd("swaync-client --hide-all"))
|
||||
exit_submap()
|
||||
end, { description = "Hide notifications" })
|
||||
|
||||
hl.bind("d", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications clearAll"))
|
||||
hl.dispatch(hl.dsp.exec_cmd("swaync-client --close-all"))
|
||||
exit_submap()
|
||||
end, { description = "Delete all notifications" })
|
||||
|
||||
hl.bind("m", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications toggleDoNotDisturb"))
|
||||
hl.dispatch(hl.dsp.exec_cmd("swaync-client -d"))
|
||||
exit_submap()
|
||||
end, { description = "Toggle Do Not Disturb" })
|
||||
|
||||
hl.bind("h", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications close"))
|
||||
hl.dispatch(hl.dsp.exec_cmd("swaync-client -cp"))
|
||||
exit_submap()
|
||||
end, { description = "Close notification panel" })
|
||||
|
||||
hl.bind("s", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications open"))
|
||||
hl.dispatch(hl.dsp.exec_cmd("swaync-client -op"))
|
||||
exit_submap()
|
||||
end, { description = "Open notification panel" })
|
||||
|
||||
hl.bind("t", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications toggle"))
|
||||
hl.dispatch(hl.dsp.exec_cmd("swaync-client -t"))
|
||||
exit_submap()
|
||||
end, { description = "Toggle notification panel" })
|
||||
|
||||
|
||||
@@ -15,8 +15,11 @@ return function(is_laptop)
|
||||
|
||||
-- Start bar and utilities
|
||||
hl.exec_cmd("hypridle")
|
||||
hl.exec_cmd("waybar")
|
||||
hl.exec_cmd("hyprpaper")
|
||||
hl.exec_cmd("swaync")
|
||||
hl.exec_cmd("hyprlauncher -d")
|
||||
hl.exec_cmd("nextcloud --background")
|
||||
hl.exec_cmd("dms run")
|
||||
hl.exec_cmd("wl-paste --watch cliphist store")
|
||||
|
||||
if is_laptop then
|
||||
|
||||
Reference in New Issue
Block a user