mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 22:28:03 +03:00
1 parent
7506d23d4c
commit
64e5608748
5 files changed
+14
-132
No files matched your search
@@ -82,19 +82,19 @@
|
||||
];
|
||||
|
||||
animation = [
|
||||
"windowsIn, 1, 5, omniOvershoot, popin 82%"
|
||||
"windowsOut, 1, 4, omniAccel, popin 90%"
|
||||
"windowsMove, 1, 5, omniDecel, slide"
|
||||
"fadeIn, 1, 4, omniDecel"
|
||||
"fadeOut, 1, 3, omniAccel"
|
||||
"border, 1, 8, omniSmooth"
|
||||
"layersIn, 1, 4, omniDecel, popin 90%"
|
||||
"layersOut, 1, 3, omniAccel, popin 93%"
|
||||
"fadeLayersIn, 1, 2, omniDecel"
|
||||
"fadeLayersOut, 1, 2, omniAccel"
|
||||
"workspaces, 1, 7, omniDecel, slide"
|
||||
"specialWorkspaceIn, 1, 4, omniDecel, slidevert"
|
||||
"specialWorkspaceOut, 1, 3, omniAccel, slidevert"
|
||||
"windowsIn, 1, 6, omniOvershoot, popin 86%"
|
||||
"windowsOut, 1, 5, omniAccel, popin 92%"
|
||||
"windowsMove, 1, 6, omniDecel, slide"
|
||||
"fadeIn, 1, 5, omniDecel"
|
||||
"fadeOut, 1, 4, omniAccel"
|
||||
"border, 1, 10, omniSmooth"
|
||||
"layersIn, 1, 5, omniDecel, popin 92%"
|
||||
"layersOut, 1, 4, omniAccel, popin 94%"
|
||||
"fadeLayersIn, 1, 3, omniDecel"
|
||||
"fadeLayersOut, 1, 3, omniAccel"
|
||||
"workspaces, 1, 8, omniDecel, slide"
|
||||
"specialWorkspaceIn, 1, 5, omniDecel, slidevert"
|
||||
"specialWorkspaceOut, 1, 4, omniAccel, slidevert"
|
||||
];
|
||||
|
||||
device = [
|
||||
|
||||
@@ -1,76 +0,0 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
|
||||
let
|
||||
hyprspace = inputs.hyprspace.packages.${pkgs.system}.Hyprspace.overrideAttrs (old: {
|
||||
postPatch = (old.postPatch or "") + ''
|
||||
sed -i '/#include <hyprland\/src\/config\/ConfigManager.hpp>/a #include <hyprland/src/config/legacy/ConfigManager.hpp>' src/Globals.hpp
|
||||
sed -i '/#include <hyprland\/src\/config\/legacy\/ConfigManager.hpp>/a #include <hyprland/src/config/shared/animation/AnimationTree.hpp>' src/Globals.hpp
|
||||
sed -i '/#include <hyprland\/src\/config\/shared\/animation\/AnimationTree.hpp>/a #include <hyprland/src/config/ConfigValue.hpp>' src/Globals.hpp
|
||||
|
||||
substituteInPlace src/Globals.hpp \
|
||||
--replace-fail 'eRenderPassMode' 'Render::eRenderPassMode'
|
||||
|
||||
substituteInPlace src/Layout.cpp \
|
||||
--replace-fail 'CCssGapData' 'Config::CCssGapData' \
|
||||
--replace-fail 'g_pConfigManager->handleWorkspaceRules' 'Config::Legacy::mgr()->handleWorkspaceRules'
|
||||
|
||||
substituteInPlace src/Overview.cpp \
|
||||
--replace-fail 'g_pConfigManager->getAnimationPropertyConfig' 'Config::animationTree()->getAnimationPropertyConfig'
|
||||
|
||||
substituteInPlace src/Render.cpp \
|
||||
--replace-fail 'SRenderModifData' 'Render::SRenderModifData' \
|
||||
--replace-fail 'g_pHyprOpenGL->m_renderData' 'g_pHyprRenderer->m_renderData' \
|
||||
--replace-fail 'RENDER_PASS_ALL' 'Render::RENDER_PASS_ALL' \
|
||||
--replace-fail 'g_pHyprRenderer->m_renderData.pCurrentMonData->blurFBShouldRender = true;' '// blur API changed in Hyprland 0.54'
|
||||
|
||||
substituteInPlace src/main.cpp \
|
||||
--replace-fail 'g_pHyprOpenGL->m_renderData' 'g_pHyprRenderer->m_renderData' \
|
||||
--replace-fail 'RENDER_PASS_MAIN' 'Render::RENDER_PASS_MAIN'
|
||||
|
||||
sed -i '/^void renderBorder(CBox box, CGradientValueData gradient, int size) {/,/^}/c\
|
||||
void renderBorder(CBox box, CHyprColor color, int size) {\
|
||||
if (size <= 0 || color.a <= 0.F)\
|
||||
return;\
|
||||
\
|
||||
renderRect({box.x, box.y, box.w, size}, color);\
|
||||
renderRect({box.x, box.y + box.h - size, box.w, size}, color);\
|
||||
renderRect({box.x, box.y, size, box.h}, color);\
|
||||
renderRect({box.x + box.w - size, box.y, size, box.h}, color);\
|
||||
}' src/Render.cpp
|
||||
|
||||
substituteInPlace src/Render.cpp \
|
||||
--replace-fail 'renderBorder(curWorkspaceBox, CGradientValueData(Config::workspaceActiveBorder), Config::workspaceBorderSize);' 'renderBorder(curWorkspaceBox, Config::workspaceActiveBorder, Config::workspaceBorderSize);' \
|
||||
--replace-fail 'renderBorder(curWorkspaceBox, CGradientValueData(Config::workspaceInactiveBorder), Config::workspaceBorderSize);' 'renderBorder(curWorkspaceBox, Config::workspaceInactiveBorder, Config::workspaceBorderSize);'
|
||||
'';
|
||||
});
|
||||
in
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
plugins = [ hyprspace ];
|
||||
|
||||
settings = {
|
||||
bind = [
|
||||
"$mainMod, TAB, exec, hyprctl dispatch overview:toggle"
|
||||
];
|
||||
|
||||
plugin = {
|
||||
overview = {
|
||||
workspaceActiveBorder = "rgba(ffffffff)";
|
||||
workspaceInactiveBorder = "rgba(ffffff66)";
|
||||
workspaceBorderSize = 2;
|
||||
workspaceActiveBackground = "rgba(ffffff18)";
|
||||
workspaceInactiveBackground = "rgba(00000066)";
|
||||
panelBorderColor = "rgba(ffffffff)";
|
||||
panelBorderWidth = 2;
|
||||
panelHeight = 240;
|
||||
workspaceMargin = 14;
|
||||
overrideAnimSpeed = 0.9;
|
||||
autoDrag = true;
|
||||
autoScroll = true;
|
||||
centerAligned = true;
|
||||
exitOnClick = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user