| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- # Animations for NORMAL windows.
- {
- match = "window_type = 'normal'";
- animations = (
- {
- triggers = ["close", "hide"];
- opacity = {
- curve = "linear";
- duration = 0.1;
- start = "window-raw-opacity-before";
- end = 0;
- };
- blur-opacity = "opacity";
- shadow-opacity = "opacity";
- },
- {
- triggers = ["open", "show"];
- opacity = {
- curve = "cubic-bezier(0,1,1,1)";
- duration = 0.5;
- start = 0;
- end = "window-raw-opacity";
- };
- blur-opacity = "opacity";
- shadow-opacity = "opacity";
- offset-x = "(1 - scale-x) / 2 * window-width";
- offset-y = "(1 - scale-y) / 2 * window-height";
- scale-x = {
- curve = "cubic-bezier(0,1.3,1,1)";
- duration = 0.5;
- start = 0.6;
- end = 1;
- };
- scale-y = "scale-x";
- shadow-scale-x = "scale-x";
- shadow-scale-y = "scale-y";
- shadow-offset-x = "offset-x";
- shadow-offset-y = "offset-y";
- },
- {
- triggers = ["geometry"]
- scale-x = {
- curve = "cubic-bezier(0,0,0,1.28)";
- duration = 0.5;
- start = "window-width-before / window-width";
- end = 1;
- }
- scale-y = {
- curve = "cubic-bezier(0,0,0,1.28)";
- duration = 0.5;
- start = "window-height-before / window-height";
- end = 1;
- }
- offset-x = {
- curve = "cubic-bezier(0,0,0,1.28)";
- duration = 0.5;
- start = "window-x-before - window-x";
- end = 0;
- }
- offset-y = {
- curve = "cubic-bezier(0,0,0,1.28)";
- duration = 0.5;
- start = "window-y-before - window-y";
- end = 0;
- }
- shadow-scale-x = "scale-x";
- shadow-scale-y = "scale-y";
- shadow-offset-x = "offset-x";
- shadow-offset-y = "offset-y";
- }
- )
- },
- # Animations for Rofi launchers.
- {
- match = "class_g = 'Rofi'";
- animations = (
- {
- triggers = ["close", "hide"];
- preset = "disappear";
- duration = 0.05;
- scale = 0.5;
- },
- {
- triggers = ["open", "show"];
- preset = "appear";
- duration = 0.2;
- scale = 0.5;
- }
- )
- },
- # Animations for Dunst notifications.
- {
- match = "class_g = 'Dunst'";
- animations = (
- {
- triggers = ["close", "hide"];
- preset = "fly-out"; #-dunst-close-preset
- direction = "up"; #-dunst-close-direction
- duration = 0.2;
- },
- {
- triggers = ["open", "show"];
- preset = "fly-in"; #-dunst-open-preset
- direction = "up"; #-dunst-open-direction
- duration = 0.2;
- }
- )
- },
- # Animations for Jgmenu.
- {
- match = "class_g = 'jgmenu'";
- animations = (
- {
- triggers = ["close", "hide"];
- preset = "disappear";
- duration = 0.08;
- scale = 0.5;
- },
- {
- triggers = ["open", "show"];
- preset = "appear";
- duration = 0.15;
- scale = 0.5;
- }
- )
- },
- # Animations for Scratchpad.
- {
- match = "class_g = 'Scratch'";
- animations = (
- {
- triggers = ["close", "hide"];
- preset = "fly-out";
- direction = "up";
- duration = 0.2;
- },
- {
- triggers = ["open", "show"];
- preset = "fly-in";
- direction = "up";
- duration = 0.2;
- }
- )
- },
- # Animations for Eww Profile card.
- {
- match = "name = 'Eww - launchermenu'";
- animations = (
- {
- triggers = ["close", "hide"];
- preset = "slide-out";
- direction = "right";
- duration = 0.2;
- },
- {
- triggers = ["open", "show"];
- preset = "slide-in";
- direction = "right";
- duration = 0.2;
- }
- )
- },
- # Animations for Eww Music player.
- {
- match = "name = 'Eww - music'";
- animations = (
- {
- triggers = ["close", "hide"];
- preset = "slide-out";
- direction = "up";
- duration = 0.2;
- },
- {
- triggers = ["open", "show"];
- preset = "slide-in";
- direction = "up";
- duration = 0.2;
- }
- )
- },
- # Animations for Eww calendar.
- {
- match = "name = 'Eww - date'";
- animations = (
- {
- triggers = ["close", "hide"];
- preset = "fly-out";
- direction = "up";
- duration = 0.2;
- },
- {
- triggers = ["open", "show"];
- preset = "fly-in";
- direction = "up";
- duration = 0.2;
- }
- )
- },
- # Animations for Eww Cheatsheet.
- {
- match = "name = 'Eww - csheet'";
- animations = (
- {
- triggers = ["close", "hide"];
- preset = "disappear";
- duration = 0.08;
- scale = 0.5;
- },
- {
- triggers = ["open", "show"];
- preset = "appear";
- duration = 0.15;
- scale = 0.5;
- }
- )
- }
|