feat: finish migrate

This commit is contained in:
2026-06-14 18:20:19 +02:00
parent 04a5d8919c
commit dce3c77a29
24 changed files with 92 additions and 200 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ require("hyprland.core.misc")
require("hyprland.core.style")
-- Binds
require("hyprland.binds.device")(laptop_config)
require("hyprland.binds.device")
require("hyprland.binds.groups")
require("hyprland.binds.launch")
require("hyprland.binds.main")
+48 -49
View File
@@ -1,50 +1,49 @@
return function(is_laptop)
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)
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("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)
hl.bind("Escape", function()
exit_submap()
end)
end)
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)
+5 -2
View File
@@ -5,5 +5,8 @@ hl.bind("Super + G", hl.dsp.submap("groups"))
hl.bind("Super + S", hl.dsp.submap("screenshot"))
hl.bind("Super + W", hl.dsp.submap("window"))
hl.bind("Super + A", hl.dsp.submap("workspace"))
hl.bind("Super + Space", hl.dsp.exec_cmd("hyprlauncher"))
hl.bind("Super + Escape", hl.dsp.exec_cmd("wlogout"))
hl.bind("Super + Space", hl.dsp.exec_cmd("dms ipc call spotlight toggle"))
hl.bind("Super + Escape", hl.dsp.exec_cmd("dms ipc call powermenu open"))
hl.bind("Super + I", hl.dsp.exec_cmd("dms ipc call control-center open"))
hl.bind("Super + ?", hl.dsp.exec_cmd("dms ipc call keybinds toggle hyprland"))
+10 -5
View File
@@ -4,27 +4,32 @@ end
hl.define_submap("notifications", function()
hl.bind("c", function()
hl.dispatch(hl.dsp.exec_cmd("swaync-client --hide-all"))
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications dismissAllPopups"))
exit_submap()
end)
hl.bind("d", function()
hl.dispatch(hl.dsp.exec_cmd("swaync-client --clear-all"))
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("swaync-client -cp"))
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications close"))
exit_submap()
end)
hl.bind("s", function()
hl.dispatch(hl.dsp.exec_cmd("swaync-client -op"))
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications open"))
exit_submap()
end)
hl.bind("t", function()
hl.dispatch(hl.dsp.exec_cmd("swaync-client -t"))
hl.dispatch(hl.dsp.exec_cmd("dms ipc call notifications toggle"))
exit_submap()
end)
+6 -6
View File
@@ -4,32 +4,32 @@ end
hl.define_submap("screenshot", function()
hl.bind("y", function()
hl.dispatch(hl.dsp.exec_cmd("grimblast --notify copy area"))
hl.dispatch(hl.dsp.exec_cmd("dms screenshot --no-file"))
exit_submap()
end)
hl.bind("c", function()
hl.dispatch(hl.dsp.exec_cmd("grimblast --notify copysave area"))
hl.dispatch(hl.dsp.exec_cmd("dms screenshot"))
exit_submap()
end)
hl.bind("s", function()
hl.dispatch(hl.dsp.exec_cmd("grimblast --notify save area"))
hl.dispatch(hl.dsp.exec_cmd("dms screenshot --no-copy"))
exit_submap()
end)
hl.bind("Shift + y", function()
hl.dispatch(hl.dsp.exec_cmd("grimblast --notify copy screen"))
hl.dispatch(hl.dsp.exec_cmd("dms screenshot full --no-file"))
exit_submap()
end)
hl.bind("Shift + c", function()
hl.dispatch(hl.dsp.exec_cmd("grimblast --notify copysave screen"))
hl.dispatch(hl.dsp.exec_cmd("dms screenshot full"))
exit_submap()
end)
hl.bind("Shift + s", function()
hl.dispatch(hl.dsp.exec_cmd("grimblast --notify save screen"))
hl.dispatch(hl.dsp.exec_cmd("dms screenshot full --no-copy"))
exit_submap()
end)
@@ -23,12 +23,6 @@ hl.window_rule({
},
fullscreen = true,
})
hl.window_rule({
match = {
class = "wlogout",
},
fullscreen = true,
})
-- Termfilechooser
hl.window_rule({