Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

Add tooltip functionality on hyprland/language module

Open vpcano opened this issue 1 year ago • 0 comments

I added the possibility to show tooltips on hyprland/language module, as shown on the image below.

screenshot

Tooltip is enabled by default and can be disabled using "tooltip": false option in the config. Format can be specified in the same way as the module by preceding tooltip- on the same configuration keys. Format replacements such as {short}, {long}, etc. are also valid. For example:

    "hyprland/language": {
        "format": "  {}",
        "format-en": "US",
        "format-es": "ES",
        "tooltip": true,
        "tooltip-format": "{long}",
    },
    "hyprland/language": {
        "format": "  {}",
        "format-en": "US",
        "format-es": "ES",
        "tooltip": true,
        "tooltip-format": "{}",
        "tooltip-format-es": "{Español}",
        "tooltip-format-en": "{English (american)}",
    },

vpcano avatar Oct 18 '24 18:10 vpcano