VortexCoyote / hyprfocus

a focus animation plugin for Hyprland inspired by Flashfocus
BSD 3-Clause "New" or "Revised" License
168 stars 15 forks source link

Keyboard focus animation is always used #7

Open OverFitted opened 1 year ago

OverFitted commented 1 year ago

I changed mouse_focus_animation to nothing and keyboard_focus_animation to flash. When I focus using mouse (touchpad actually) it still plays flash animation. If I change keyboard focus animation to shrink, it plays shrink over mouse too.

Config:

plugin = /home/user/Documents/hyprland_plugins/hyprfocus.so

plugin:hyprfocus {
    enabled = yes

    keyboard_focus_animation = flash
    mouse_focus_animation = nothing

    bezier = bezIn, 0.7,0.3,1.0,0.7
    bezier = bezOut, 0.0,0.5,0.5,1.0

    flash {
        flash_opacity = 0.8

        in_bezier = bezIn
        in_speed = 0.5

        out_bezier = bezOut
        out_speed = 2
    }

    shrink {
        shrink_percentage = 0.9

        in_bezier = bezIn
        in_speed = 0.5

        out_bezier = bezOut
        out_speed = 3
    }
}

Hyprland version: 0.28.0 Hyprfocus version: 69f3f23e90f1b9a6525a860c19ad2b17762f45f3

Lord-Valen commented 1 year ago

This works properly as long as input:follow_mouse = 0 but then you have to click to focus.

ThatOneCalculator commented 11 months ago

Can repro on latest version of both the plugin and Hyprland

ThatOneCalculator commented 11 months ago

I wonder if keyboardFocus should be used