diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-27 16:26:05 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-27 16:26:05 +0100 |
commit | 325f2e5c6973b92e31b999e3738e736679898346 (patch) | |
tree | 5cdb008950eaa85119c384ad72aaf258ed2ab3f6 /.config | |
parent | 5c527ad00b23fdcc0b47fb6e98ddb4a0610b297b (diff) |
picom animations + fix corner radius
Diffstat (limited to '.config')
-rw-r--r-- | .config/dunst/base | 2 | ||||
-rw-r--r-- | .config/picom.conf##template | 46 |
2 files changed, 39 insertions, 9 deletions
diff --git a/.config/dunst/base b/.config/dunst/base index a1f26d8..3900cbb 100644 --- a/.config/dunst/base +++ b/.config/dunst/base @@ -38,7 +38,7 @@ browser = /usr/bin/firefox -new-tab always_run_script = true title = dunst class = dunst -corner_radius = 14 +corner_radius = 10 ignore_dbusclose = false force_xinerama = false mouse_left_click = do_action diff --git a/.config/picom.conf##template b/.config/picom.conf##template index bde96ab..0ff757f 100644 --- a/.config/picom.conf##template +++ b/.config/picom.conf##template @@ -13,7 +13,7 @@ shadow-offset-y = -24; shadow-offset-x = -24; {% else %} shadow-radius = 48; -shadow-opacity = 0.6; +shadow-opacity = 0.4; shadow-offset-y = -48; shadow-offset-x = -48; {% endif %} @@ -61,14 +61,44 @@ rules = ( shadow = false; corner-radius = 0; }, + { + match = "window_type *= 'popup_menu'"; + shadow = true; + corner-radius = 10; + }, ) -# animations = true; -# animation-stiffness-tag-change = 350.0; -# animation-stiffness-in-tag = 350.0; -# animation-window-mass = 0.8; -# animation-dampening = 25.0; -# animation-for-open-window = "none"; -# animation-clamping = false; +animations = ( + { + triggers = [ "geometry" ]; + offset-x = { + curve = "cubic-bezier(0.05, 0, 0, 1)"; + duration = 0.250; + start = "window-x-before - window-x"; + end = 0; + }; + offset-y = { + curve = "cubic-bezier(0.05, 0, 0, 1)"; + duration = 0.250; + start = "window-y-before - window-y"; + end = 0; + }; + shadow-offset-x = "offset-x"; + shadow-offset-y = "offset-y"; + saved-image-blend = 0; + }, + { + triggers = [ "open" ]; + preset = "appear"; + scale = 0.95; + duration = 0.075; + }, + { + triggers = [ "close" ]; + preset = "disappear"; + scale = 0.95; + duration = 0.075; + }, +); # vim: ft=conf |