fix hyprland folder

This commit is contained in:
2026-07-17 15:38:13 +02:00
parent 3a10f9f898
commit 1e56b05236
35 changed files with 5 additions and 18 deletions

View File

@@ -0,0 +1,34 @@
hl.layer_rule({
name = "notifications",
match = { namespace = "notifications" },
animation = "slide"
})
hl.layer_rule({
name = "no-anim-for-selection",
match = { namespace = "selection" },
no_anim = true
})
hl.layer_rule({
name = "blur-waybar",
match = { namespace = "waybar" },
blur = true,
})
hl.layer_rule({
name = "blur-tofi",
match = { namespace = "tofi" },
blur = true,
})
hl.layer_rule({
name = "blur-swayosd",
match = { namespace = "swayosd" },
blur = true,
})

View File

@@ -0,0 +1,118 @@
local colors = require("hyprland.variables.colors")
-- See https://wiki.hypr.land/Configuring/Basics/Window-Rules/
-- and https://wiki.hypr.land/Configuring/Basics/Workspace-Rules/
-- Example window rules that are useful
hl.window_rule({
-- Ignore maximize requests from all apps. You'll probably like this.
name = "suppress-maximize-events",
match = { class = ".*" },
suppress_event = "maximize",
})
hl.window_rule({
-- Fix some dragging issues with XWayland
name = "fix-xwayland-drags",
match = {
class = "^$",
title = "^$",
xwayland = true,
float = true,
fullscreen = false,
pin = false,
},
no_focus = true,
})
hl.window_rule({
name = "nofloat-xfreerdp",
match = { class = "^(xfreerdp)$" },
tile = true
})
hl.window_rule({
name = "float-audio-settings",
match = { class = "org.pulseaudio.pavucontrol" },
float = true,
size = { 500, 1000 },
move = { 2841, 61 },
pin = true
})
hl.window_rule({
name = "float-bluetooth-settings",
match = { title = "overskride" },
float = true,
size = { 765, 765 },
move = { 2653, 44 },
pin = true
})
hl.window_rule({
name = "pinned-bordercolor",
match = { pin = true },
border_color = { colors = { colors.secondary.from, colors.secondary.to }, angle = 45 },
})
hl.window_rule({
name = "float-waydroid",
match = { initial_class = "Waydroid" },
float = true,
size = { 576, 1024 }
})
hl.window_rule({
name = "float-waydroid-apps",
match = { initial_class = "waydroid\\..*" },
float = true,
size = { 576, 1024 }
})
hl.window_rule({
name = "vicinae",
match = { initial_class = "vicinae" },
float = true,
pin = true,
stay_focused = true,
dim_around = true,
no_anim = true
})
hl.window_rule({
name = "center-clickup-command-bar",
match = { title = "ClickUp Command Bar" },
center = true,
float = true,
stay_focused = true,
})
hl.window_rule({
name = "libreoffice-import-modal",
match = { initial_class = "soffice", initial_title = "Text Import.*" },
float = true,
size = { 800, 400 },
stay_focused = true,
dim_around = true,
move = { 1320, 520 }
})
hl.window_rule({
name = "focus-bitwarden",
match = { class = "firefox", title = "Extension: \\(Bitwarden Password Manager\\).*" },
stay_focused = true,
dim_around = true,
})

View File

@@ -0,0 +1,31 @@
local workspaces = require("hyprland.variables.workspaces")
local monitors = require("hyprland.variables.monitors")
-- Assign workspaces to monitors
for _, workspace in ipairs(workspaces.primary) do
hl.workspace_rule({ workspace = workspace, monitor = monitors.primary })
end
-- Secondary monitor workspaces should have a gap at the top if only one window
-- is present, to make it more readable (vertical setup).
for _, workspace in ipairs(workspaces.secondary) do
hl.workspace_rule({ workspace = workspace, monitor = monitors.secondary, layout = "lua:vertical" })
end
-- Set gaps for special workspaces
for _, workspace in pairs(workspaces.special) do
hl.workspace_rule({ workspace = workspace, gaps_out = 64 })
end
-- Configure layouts
hl.workspace_rule({ workspace = workspaces.primary[1], layout = "master"})
hl.workspace_rule({ workspace = workspaces.special.term, layout = "master"})
-- Set defaults
hl.workspace_rule({ workspace = workspaces.primary[1], default = true })
hl.workspace_rule({ workspace = workspaces.secondary[1], default = true })
-- Special monitor for recording in 16:9 aspect ration on the widescreen monitor
hl.workspace_rule({ workspace = workspaces.recording, layout = "dwindle", gaps_out = {left = 758, bottom = 164, right = 758, top = 164}, monitor = monitors.primary})