Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group Module animation behaviour #3391

Closed
299792458ms opened this issue Jun 28, 2024 · 4 comments · Fixed by #3500
Closed

Group Module animation behaviour #3391

299792458ms opened this issue Jun 28, 2024 · 4 comments · Fixed by #3500
Labels
bug Something isn't working custom inhibitor

Comments

@299792458ms
Copy link

299792458ms commented Jun 28, 2024

I do not know if I am styling this incorrectly or it has something to do with xcursor on gtk windows or with Hyprland or else, but adding vertical margins to a group module style makes animations behave erratically. By the looks of it the animation toggles when the cursor reaches(from underneath) the border of the bar and then again when it reaches the border of the module.

It is not really that serious of a problem but I thought is was good to report it anyway. Would appreciate to know if I'm doing something wrong too.

group-module

Info:
Hyprland v0.41.2
Waybar v0.10.3-94-g9ba58250 (branch 'master')

/* style.css */
#powah {
    color: @red;
    background-color: @dimfg;
    border-radius: 8px;
    margin: 4px 0 6px 0;
}

#powah.childs {
    color: @fg;
}
// config.jsonc
    "group/powah": {
        "orientation": "inherit",
        "drawer": {
            "transition-duration": 500,
            "children-class": "childs",
            "transition-left-to-right": false
        },
        "modules": [
            "custom/power",
            "custom/lock",
            "custom/quit",
            "custom/suspend",
            "custom/reboot"
        ]
    },
    "custom/lock": {
        "format": "󰌾",
        "tooltip": false,
        "on-click": "loginctl lock-session"
    },
    "custom/quit": {
        "format": "󰁒",
        "tooltip": false,
        "on-click": "hyprctl dispatch exit"
    },
    "custom/suspend": {
        "format": "󰍶",
        "tooltip": false,
        "on-click": "systemctl suspend"
    },
    "custom/reboot": {
        "format": "󱍷",
        "tooltip": false,
        "on-click": "reboot"
    },
    "custom/power": {
        "format": "󰠠",
        "tooltip": false,
        "on-click": "shutdown now"
    },
@github-actions github-actions bot added bug Something isn't working custom inhibitor labels Jun 28, 2024
@khaneliman
Copy link
Contributor

You're not alone. I have this issue, as well. I was going to try playing around and troubleshooting it but I rarely use the modules that use the slide animation so I haven't made time for it, yet.

@bashfulrobot
Copy link

just adding another. I too am having this issue. It "seems" that it might have to do with whatever the active area is to trigger the animation, I "think" it is the icon.

@IvanInventor
Copy link

Looks like i have this or similar problem
waybar2
Bisected it and found commit that introduces this problem for me - e7779b545855bac1e24db65deefc830fd0fbd66b
For now i use last working version - 0.10.2

@khaneliman
Copy link
Contributor

Have a PR with a fix if anyone wants to test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working custom inhibitor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants