Skip to content

Group Module animation behaviour #3391

@ghost

Description

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"
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions