use hyprspace for layouts

This commit is contained in:
2026-08-17 00:03:23 -07:00
parent 816eb22b2f
commit bdec7e77bf
6 changed files with 23 additions and 6 deletions
+1 -1
View File
@@ -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
+4 -4
View File
@@ -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" }
)
+9
View File
@@ -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,
}
},
})
+1
View File
@@ -39,6 +39,7 @@ return {
name = "bilibili",
selector = "name:bilibili",
key = "F1",
layout = "stage"
},
{
name = "im",
+7
View File
@@ -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.
+1 -1
View File
@@ -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",
},