From 7240eefc761c5a40b330f528b218647f74f0eadc Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Mon, 15 Jun 2026 10:10:25 +0200 Subject: [PATCH] fix: submap naming --- config/hypr/hyprland/binds/device.lua | 3 ++- config/hypr/hyprland/binds/main.lua | 2 +- config/hypr/hyprland/binds/workspace.lua | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/hypr/hyprland/binds/device.lua b/config/hypr/hyprland/binds/device.lua index 77130e9..917e81e 100644 --- a/config/hypr/hyprland/binds/device.lua +++ b/config/hypr/hyprland/binds/device.lua @@ -2,7 +2,8 @@ local function exit_submap() hl.dispatch(hl.dsp.submap("reset")) end -hl.bind("code:232", hl.dsp.exec_cmd("")) +-- TODO: Update this for laptop +hl.bind("code:232", hl.dsp.exec_cmd("brightnessctl -S")) -- bind = ,code:232, exec, light -U 5 && notify-send 'Display brightness decreased by 5%' -- bind = ,code:233, exec, light -A 5 && notify-send 'Display brightness increased by 5%' diff --git a/config/hypr/hyprland/binds/main.lua b/config/hypr/hyprland/binds/main.lua index 970332f..cf1d6b0 100644 --- a/config/hypr/hyprland/binds/main.lua +++ b/config/hypr/hyprland/binds/main.lua @@ -8,6 +8,6 @@ hl.bind("SUPER + A", hl.dsp.submap("workspace")) hl.bind("SUPER + Q", hl.dsp.window.close()) 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 + Escape", hl.dsp.exec_cmd("wlogout")) hl.bind("SUPER + I", hl.dsp.exec_cmd("dms ipc call control-center open")) hl.bind("SUPER + CTRL + H", hl.dsp.exec_cmd("dms ipc call keybinds toggle hyprland")) diff --git a/config/hypr/hyprland/binds/workspace.lua b/config/hypr/hyprland/binds/workspace.lua index 94c79f3..da03485 100644 --- a/config/hypr/hyprland/binds/workspace.lua +++ b/config/hypr/hyprland/binds/workspace.lua @@ -15,7 +15,7 @@ hl.bind("SUPER + k", hl.dsp.focus({ direction = "u" })) hl.bind("SUPER + M", hl.dsp.workspace.toggle_special("main")) hl.bind("SUPER + SHIFT + M", hl.dsp.window.move({ workspace = "special:main" })) -hl.define_submap("notifications", function() +hl.define_submap("workspace", function() for i = 1, 10, 1 do hl.bind(tostring(i % 10), hl.dsp.focus({ workspace = tostring(i) })) hl.bind("SHIFT + " .. tostring(i % 10), hl.dsp.window.move({ workspace = tostring(i), follow = 1 }))