From bdec7e77bf90ade10b67ac14d08d74ae30e8d878 Mon Sep 17 00:00:00 2001 From: Felis Date: Mon, 17 Aug 2026 00:03:23 -0700 Subject: [PATCH] use hyprspace for layouts --- config/autostart.lua | 2 +- config/keybinds.lua | 8 ++++---- config/layouts.lua | 9 +++++++++ config/settings.lua | 1 + config/window_rules.lua | 7 +++++++ config/workspaces.lua | 2 +- 6 files changed, 23 insertions(+), 6 deletions(-) diff --git a/config/autostart.lua b/config/autostart.lua index e7cc13d..ac4cd90 100644 --- a/config/autostart.lua +++ b/config/autostart.lua @@ -13,11 +13,11 @@ local startup_commands = { -- Graphical/session applications launched inside UWSM scopes. commands.uwsm(settings.programs.terminal), - commands.uwsm("hyprpaper"), commands.uwsm("firefox"), commands.uwsm("wl-paste --type text --watch cliphist store"), commands.uwsm("wl-paste --type image --watch cliphist store"), commands.uwsm("noctalia"), + commands.uwsm("linux-wallpaper-engine") } -- This event only fires when Hyprland starts; reloading the config will not diff --git a/config/keybinds.lua b/config/keybinds.lua index 9b2519b..a2b6b6c 100644 --- a/config/keybinds.lua +++ b/config/keybinds.lua @@ -130,10 +130,10 @@ hl.bind( -- One direction table drives arrow-key focus, Hyper+WASD focus/movement, and -- moving the active workspace between adjacent monitors. local directions = { - { arrow = "left", key = "A", direction = "l", monitor = "left" }, + { arrow = "left", key = "A", direction = "l", monitor = "left" }, { arrow = "right", key = "D", direction = "r", monitor = "right" }, - { arrow = "up", key = "W", direction = "u", monitor = "above", stage_message = "cycleprev" }, - { arrow = "down", key = "S", direction = "d", monitor = "below", stage_message = "cyclenext" }, + { arrow = "up", key = "W", direction = "u", monitor = "above", stage_message = "cycleprev" }, + { arrow = "down", key = "S", direction = "d", monitor = "below", stage_message = "cyclenext" }, } for _, direction in ipairs(directions) do @@ -290,7 +290,7 @@ hl.bind( hl.bind( chord(hyper, "SPACE"), function() - hl.plugin.hyprtasking.toggle("all") + hl.plugin.overview.toggle("all") end, { description = "Toggle all-workspace window overview" } ) diff --git a/config/layouts.lua b/config/layouts.lua index 3151bba..476f4ae 100644 --- a/config/layouts.lua +++ b/config/layouts.lua @@ -30,5 +30,14 @@ hl.config({ hyprstage = { sidebar_side = "right", }, + overview = { + panelColor = "#1d4580", + panelBorderColor = "#05494d", + workspaceActiveBackground = "rgba(49, 50, 68, 0.8)", + workspaceActiveBorder = "rgb(203, 166, 247)", + onBottom = false, + autoDrag = true, + showSpecialWorkspace = true, + } }, }) diff --git a/config/settings.lua b/config/settings.lua index d496904..9ef6500 100644 --- a/config/settings.lua +++ b/config/settings.lua @@ -39,6 +39,7 @@ return { name = "bilibili", selector = "name:bilibili", key = "F1", + layout = "stage" }, { name = "im", diff --git a/config/window_rules.lua b/config/window_rules.lua index 25969ad..0b4d4a4 100644 --- a/config/window_rules.lua +++ b/config/window_rules.lua @@ -43,6 +43,13 @@ local rules = { move = "20 monitor_h-120", float = true, }, + { + name = "confine-dota2-cursor", + match = { + class = "dota2", + }, + confine_pointer = true, + }, } -- Register every declarative rule with Hyprland. diff --git a/config/workspaces.lua b/config/workspaces.lua index 51e2824..49b086e 100644 --- a/config/workspaces.lua +++ b/config/workspaces.lua @@ -4,7 +4,7 @@ local settings = require("config.settings") for _, workspace in ipairs(settings.named_workspaces) do hl.workspace_rule({ workspace = workspace.selector, - layout = "master", + layout = workspace.layout or "master", layout_opts = { orientation = "left", },