mirror of
https://github.com/elkowar/dots-of-war.git
synced 2025-02-20 04:12:14 +00:00
Cleanup niri
This commit is contained in:
parent
f1d41e1130
commit
6e0e5dcba2
1 changed files with 18 additions and 30 deletions
|
@ -127,8 +127,6 @@ screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
|
|||
|
||||
animations {
|
||||
window-movement {
|
||||
// duration-ms 200
|
||||
// curve "ease-out-quad"
|
||||
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
|
||||
}
|
||||
horizontal-view-movement {
|
||||
|
@ -136,34 +134,30 @@ animations {
|
|||
}
|
||||
window-open {
|
||||
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
|
||||
// duration-ms 200
|
||||
// curve "ease-out-quad"
|
||||
custom-shader r"
|
||||
float map(float value, float min1, float max1, float min2, float max2) {
|
||||
return min2 + (value - min1) * (max2 - min2) / (max1 - min1);
|
||||
}
|
||||
vec4 open_color(vec3 coords_geo, vec3 size_geo) {
|
||||
float cur = niri_clamped_progress;
|
||||
if (coords_geo.x > cur) { return vec4(0.0); }
|
||||
vec3 coord = vec3(map(coords_geo.x,0.0, cur, 0.0, 1.0 ), coords_geo.y, coords_geo.z);
|
||||
return texture2D(niri_tex, (niri_geo_to_tex * coord).st);
|
||||
}
|
||||
float map(float value, float min1, float max1, float min2, float max2) {
|
||||
return min2 + (value - min1) * (max2 - min2) / (max1 - min1);
|
||||
}
|
||||
vec4 open_color(vec3 coords_geo, vec3 size_geo) {
|
||||
float cur = niri_clamped_progress;
|
||||
if (coords_geo.x > cur) { return vec4(0.0); }
|
||||
vec3 coord = vec3(map(coords_geo.x,0.0, cur, 0.0, 1.0 ), coords_geo.y, coords_geo.z);
|
||||
return texture2d(niri_tex, (niri_geo_to_tex * coord).st);
|
||||
}
|
||||
"
|
||||
}
|
||||
window-close {
|
||||
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
|
||||
// duration-ms 200
|
||||
// curve "ease-out-quad"
|
||||
custom-shader r"
|
||||
float map(float value, float min1, float max1, float min2, float max2) {
|
||||
return min2 + (value - min1) * (max2 - min2) / (max1 - min1);
|
||||
}
|
||||
vec4 close_color(vec3 coords_geo, vec3 size_geo) {
|
||||
float cur = 1.0-niri_clamped_progress;
|
||||
if (coords_geo.x > cur) { return vec4(0.0); }
|
||||
vec3 coord = vec3(map(coords_geo.x,0.0, cur, 0.0, 1.0), coords_geo.y, coords_geo.z);
|
||||
return texture2D(niri_tex, (niri_geo_to_tex * coord).st);
|
||||
}
|
||||
float map(float value, float min1, float max1, float min2, float max2) {
|
||||
return min2 + (value - min1) * (max2 - min2) / (max1 - min1);
|
||||
}
|
||||
vec4 close_color(vec3 coords_geo, vec3 size_geo) {
|
||||
float cur = 1.0-niri_clamped_progress;
|
||||
if (coords_geo.x > cur) { return vec4(0.0); }
|
||||
vec3 coord = vec3(map(coords_geo.x,0.0, cur, 0.0, 1.0), coords_geo.y, coords_geo.z);
|
||||
return texture2D(niri_tex, (niri_geo_to_tex * coord).st);
|
||||
}
|
||||
"
|
||||
}
|
||||
}
|
||||
|
@ -208,12 +202,6 @@ window-rule {
|
|||
open-floating true
|
||||
}
|
||||
|
||||
// window-rule {
|
||||
// match is-active-in-column=false;
|
||||
// max-height 100;
|
||||
// min-height 100;
|
||||
// }
|
||||
|
||||
|
||||
window-rule {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue