a plugin which provides focus animations for us borderless folks, originally inspired by flashfocus!
flash
shrink
instructions based on the official wiki
hyprpm add https://github.com/hyprfocus
to start using hyprfocus, add this to your hyprland config:
plugin:hyprfocus {
enabled = yes
focus_animation = flash
bezier = bezIn, 0.5,0.0,1.0,0.5
bezier = bezOut, 0.0,0.5,0.5,1.0
flash {
flash_opacity = 0.7
in_bezier = bezIn
in_speed = 0.5
out_bezier = bezOut
out_speed = 3
}
shrink {
shrink_percentage = 0.8
in_bezier = bezIn
in_speed = 0.5
out_bezier = bezOut
out_speed = 3
}
}
enabled
(yes/no) -> enable or disable the plugin
focus_animation
(flash/shrink/none) -> animation for keyboard-driven focus
animations can be configured within the plugin scope with the following syntax:
plugin:hyprfocus {
<animation> {
}
}
in_bezier
(bezier) -> bezier curve towards the animation apex
out_bezier
(bezier) -> bezier curve towards the default window state
in_speed
(float) -> speed for the 'in' bezier
out_speed
(float) -> speed for the 'out' bezier
flash_opacity
(float) -> opacity to during the flash's apex
shrink_percentage
(float) -> the amount a window has shrunk during the animation's apex
hyprfocus can also flash the currently focused window through the animatefocused
dispatcher:
bind = $mod, space, animatefocused
- flashfocus: An earlier project of similar nature
- Original repo