Add hyprimate: 8 animation menu items, guard + rebuild scripts, hyprland.lua hook
This commit is contained in:
1 parent
8365865c5f
commit
5003dd72e4
12 files changed
+333
No files matched your search
@@ -124,3 +124,11 @@ hl.window_rule({
|
||||
match = { class = "^(chrome-chat.obahan.xyz__-Default)$" },
|
||||
opacity = "0.9 override 0.9 override 1.0 override",
|
||||
})
|
||||
|
||||
-- // Hyprimate guard
|
||||
-- The hyprimate-* animation items in ~/.config/hypr/lua/animations/ enable the
|
||||
-- plugin themselves, but HyDE's native animation items know nothing about it.
|
||||
-- This runs a small script on every config load that switches hyprimate back
|
||||
-- off when a native animation is current. It must stay a separate process:
|
||||
-- calling hyprctl from inside Lua config evaluation deadlocks the compositor.
|
||||
hl.exec_cmd("/home/lucas/.config/hyde/scripts/hyprimate-guard.sh")
|
||||
@@ -0,0 +1,31 @@
|
||||
-- Hyprimate · Bubble — plugin-driven window animation.
|
||||
-- User-layer animation item: picked from the HyDE burger-menu / SUPER+SHIFT+Y.
|
||||
-- Requires the hyprimate plugin (hyprpm). The file is inert for the menu scan
|
||||
-- (no `hl`); it only applies settings when HyDE loads it as the current
|
||||
-- animation. The hyprimate guard in ~/.config/hypr/hyprland.lua switches the
|
||||
-- plugin off again when a native animation is selected.
|
||||
|
||||
local animation = {
|
||||
name = "Hyprimate · Bubble",
|
||||
icon = "",
|
||||
description = "Hyprimate: windows inflate a soap film, slosh and burst."
|
||||
}
|
||||
|
||||
if not hl then
|
||||
return animation
|
||||
end
|
||||
|
||||
hl.config({
|
||||
decoration = { wobble = { enabled = false } },
|
||||
plugin = {
|
||||
["hyprimate"] = {
|
||||
window = {
|
||||
enabled = true,
|
||||
style = "bubble",
|
||||
open = { enabled = true },
|
||||
close = { enabled = true },
|
||||
movement = { enabled = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -0,0 +1,31 @@
|
||||
-- Hyprimate · Burn — plugin-driven window animation.
|
||||
-- User-layer animation item: picked from the HyDE burger-menu / SUPER+SHIFT+Y.
|
||||
-- Requires the hyprimate plugin (hyprpm). The file is inert for the menu scan
|
||||
-- (no `hl`); it only applies settings when HyDE loads it as the current
|
||||
-- animation. The hyprimate guard in ~/.config/hypr/hyprland.lua switches the
|
||||
-- plugin off again when a native animation is selected.
|
||||
|
||||
local animation = {
|
||||
name = "Hyprimate · Burn",
|
||||
icon = "",
|
||||
description = "Hyprimate: windows burn in with embers and scorch out."
|
||||
}
|
||||
|
||||
if not hl then
|
||||
return animation
|
||||
end
|
||||
|
||||
hl.config({
|
||||
decoration = { wobble = { enabled = false } },
|
||||
plugin = {
|
||||
["hyprimate"] = {
|
||||
window = {
|
||||
enabled = true,
|
||||
style = "burn",
|
||||
open = { enabled = true },
|
||||
close = { enabled = true },
|
||||
movement = { enabled = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -0,0 +1,31 @@
|
||||
-- Hyprimate · Cloth — plugin-driven window animation.
|
||||
-- User-layer animation item: picked from the HyDE burger-menu / SUPER+SHIFT+Y.
|
||||
-- Requires the hyprimate plugin (hyprpm). The file is inert for the menu scan
|
||||
-- (no `hl`); it only applies settings when HyDE loads it as the current
|
||||
-- animation. The hyprimate guard in ~/.config/hypr/hyprland.lua switches the
|
||||
-- plugin off again when a native animation is selected.
|
||||
|
||||
local animation = {
|
||||
name = "Hyprimate · Cloth",
|
||||
icon = "",
|
||||
description = "Hyprimate: windows drape and fold like a curtain."
|
||||
}
|
||||
|
||||
if not hl then
|
||||
return animation
|
||||
end
|
||||
|
||||
hl.config({
|
||||
decoration = { wobble = { enabled = false } },
|
||||
plugin = {
|
||||
["hyprimate"] = {
|
||||
window = {
|
||||
enabled = true,
|
||||
style = "cloth",
|
||||
open = { enabled = true },
|
||||
close = { enabled = true },
|
||||
movement = { enabled = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -0,0 +1,31 @@
|
||||
-- Hyprimate · Construction — plugin-driven window animation.
|
||||
-- User-layer animation item: picked from the HyDE burger-menu / SUPER+SHIFT+Y.
|
||||
-- Requires the hyprimate plugin (hyprpm). The file is inert for the menu scan
|
||||
-- (no `hl`); it only applies settings when HyDE loads it as the current
|
||||
-- animation. The hyprimate guard in ~/.config/hypr/hyprland.lua switches the
|
||||
-- plugin off again when a native animation is selected.
|
||||
|
||||
local animation = {
|
||||
name = "Hyprimate · Construction",
|
||||
icon = "",
|
||||
description = "Hyprimate: miniature workers build and implode the window."
|
||||
}
|
||||
|
||||
if not hl then
|
||||
return animation
|
||||
end
|
||||
|
||||
hl.config({
|
||||
decoration = { wobble = { enabled = false } },
|
||||
plugin = {
|
||||
["hyprimate"] = {
|
||||
window = {
|
||||
enabled = true,
|
||||
style = "construction",
|
||||
open = { enabled = true },
|
||||
close = { enabled = true },
|
||||
movement = { enabled = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -0,0 +1,31 @@
|
||||
-- Hyprimate · Liquid — plugin-driven window animation.
|
||||
-- User-layer animation item: picked from the HyDE burger-menu / SUPER+SHIFT+Y.
|
||||
-- Requires the hyprimate plugin (hyprpm). The file is inert for the menu scan
|
||||
-- (no `hl`); it only applies settings when HyDE loads it as the current
|
||||
-- animation. The hyprimate guard in ~/.config/hypr/hyprland.lua switches the
|
||||
-- plugin off again when a native animation is selected.
|
||||
|
||||
local animation = {
|
||||
name = "Hyprimate · Liquid",
|
||||
icon = "",
|
||||
description = "Hyprimate: windows flow and stretch like liquid."
|
||||
}
|
||||
|
||||
if not hl then
|
||||
return animation
|
||||
end
|
||||
|
||||
hl.config({
|
||||
decoration = { wobble = { enabled = false } },
|
||||
plugin = {
|
||||
["hyprimate"] = {
|
||||
window = {
|
||||
enabled = true,
|
||||
style = "liquid",
|
||||
open = { enabled = true },
|
||||
close = { enabled = true },
|
||||
movement = { enabled = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -0,0 +1,31 @@
|
||||
-- Hyprimate · Paper — plugin-driven window animation.
|
||||
-- User-layer animation item: picked from the HyDE burger-menu / SUPER+SHIFT+Y.
|
||||
-- Requires the hyprimate plugin (hyprpm). The file is inert for the menu scan
|
||||
-- (no `hl`); it only applies settings when HyDE loads it as the current
|
||||
-- animation. The hyprimate guard in ~/.config/hypr/hyprland.lua switches the
|
||||
-- plugin off again when a native animation is selected.
|
||||
|
||||
local animation = {
|
||||
name = "Hyprimate · Paper",
|
||||
icon = "",
|
||||
description = "Hyprimate: windows crumple and unfold like paper."
|
||||
}
|
||||
|
||||
if not hl then
|
||||
return animation
|
||||
end
|
||||
|
||||
hl.config({
|
||||
decoration = { wobble = { enabled = false } },
|
||||
plugin = {
|
||||
["hyprimate"] = {
|
||||
window = {
|
||||
enabled = true,
|
||||
style = "paper",
|
||||
open = { enabled = true },
|
||||
close = { enabled = true },
|
||||
movement = { enabled = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -0,0 +1,31 @@
|
||||
-- Hyprimate · Smoke — plugin-driven window animation.
|
||||
-- User-layer animation item: picked from the HyDE burger-menu / SUPER+SHIFT+Y.
|
||||
-- Requires the hyprimate plugin (hyprpm). The file is inert for the menu scan
|
||||
-- (no `hl`); it only applies settings when HyDE loads it as the current
|
||||
-- animation. The hyprimate guard in ~/.config/hypr/hyprland.lua switches the
|
||||
-- plugin off again when a native animation is selected.
|
||||
|
||||
local animation = {
|
||||
name = "Hyprimate · Smoke",
|
||||
icon = "",
|
||||
description = "Hyprimate: windows unravel into smoke and reform."
|
||||
}
|
||||
|
||||
if not hl then
|
||||
return animation
|
||||
end
|
||||
|
||||
hl.config({
|
||||
decoration = { wobble = { enabled = false } },
|
||||
plugin = {
|
||||
["hyprimate"] = {
|
||||
window = {
|
||||
enabled = true,
|
||||
style = "smoke",
|
||||
open = { enabled = true },
|
||||
close = { enabled = true },
|
||||
movement = { enabled = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -0,0 +1,31 @@
|
||||
-- Hyprimate · Swarm — plugin-driven window animation.
|
||||
-- User-layer animation item: picked from the HyDE burger-menu / SUPER+SHIFT+Y.
|
||||
-- Requires the hyprimate plugin (hyprpm). The file is inert for the menu scan
|
||||
-- (no `hl`); it only applies settings when HyDE loads it as the current
|
||||
-- animation. The hyprimate guard in ~/.config/hypr/hyprland.lua switches the
|
||||
-- plugin off again when a native animation is selected.
|
||||
|
||||
local animation = {
|
||||
name = "Hyprimate · Swarm",
|
||||
icon = "",
|
||||
description = "Hyprimate: windows scatter into creatures and regroup."
|
||||
}
|
||||
|
||||
if not hl then
|
||||
return animation
|
||||
end
|
||||
|
||||
hl.config({
|
||||
decoration = { wobble = { enabled = false } },
|
||||
plugin = {
|
||||
["hyprimate"] = {
|
||||
window = {
|
||||
enabled = true,
|
||||
style = "swarm",
|
||||
open = { enabled = true },
|
||||
close = { enabled = true },
|
||||
movement = { enabled = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user