full functionality restored (omg)
This commit is contained in:
@@ -1,17 +1,66 @@
|
||||
-- Size for otter launcher
|
||||
hl.window_rule({
|
||||
name = "otter-launcher",
|
||||
match = {
|
||||
class = "otter",
|
||||
},
|
||||
float = true,
|
||||
animation = "popin 80%",
|
||||
size = { 410, 220 },
|
||||
opaque = true,
|
||||
})
|
||||
|
||||
-- Dont dim youtube windows
|
||||
hl.window_rule({
|
||||
name = "nodim-youtube",
|
||||
match = {
|
||||
class = "^(firefox|Firefox)$",
|
||||
title = "^(.*YouTube.*)$",
|
||||
},
|
||||
no_dim = true,
|
||||
opaque = true,
|
||||
})
|
||||
|
||||
-- Define windows that float
|
||||
local standardFloatingWindows = {
|
||||
{ class = "^(xdg-desktop-portal-gtk)$" },
|
||||
{ class = "^(firefox)$", title = "^(.*Save.*)" },
|
||||
}
|
||||
|
||||
-- For every window that floats make a rule
|
||||
for _, window in ipairs(standardFloatingWindows) do
|
||||
hl.window_rule({
|
||||
name = "float file selector",
|
||||
match = {
|
||||
-- both are optional ig
|
||||
class = window.class or "",
|
||||
title = window.title or "",
|
||||
},
|
||||
float = true,
|
||||
animation = "popin 70%",
|
||||
size = { 800, 500 },
|
||||
})
|
||||
end
|
||||
|
||||
-- Don't dim fullscreen windows
|
||||
hl.window_rule({
|
||||
name = "nodim fullscreen",
|
||||
match = {
|
||||
fullscreen = true,
|
||||
},
|
||||
no_dim = true,
|
||||
opaque = true,
|
||||
})
|
||||
|
||||
hl.window_rule({
|
||||
name = "jelly slide",
|
||||
match = {
|
||||
class = "^(jf-tui)$",
|
||||
},
|
||||
animation = "slide top",
|
||||
})
|
||||
|
||||
-- Define gaps for music workspace
|
||||
hl.workspace_rule({
|
||||
workspace = "special:music",
|
||||
gaps_out = {
|
||||
@@ -19,4 +68,29 @@ hl.workspace_rule({
|
||||
right = 400,
|
||||
bottom = 400,
|
||||
},
|
||||
animation = "slidefadevert",
|
||||
})
|
||||
|
||||
-- Something from the example idk
|
||||
hl.window_rule({
|
||||
name = "move-hyprland-run",
|
||||
match = { class = "hyprland-run" },
|
||||
|
||||
move = "20 monitor_h-120",
|
||||
float = true,
|
||||
})
|
||||
|
||||
-- Fix some dragging issues with XWayland
|
||||
hl.window_rule({
|
||||
name = "fix-xwayland-drags",
|
||||
match = {
|
||||
class = "^$",
|
||||
title = "^$",
|
||||
xwayland = true,
|
||||
float = true,
|
||||
fullscreen = false,
|
||||
pin = false,
|
||||
},
|
||||
|
||||
no_focus = true,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user