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

Add tooltip functionality on hyprland/language module #3698

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

vpcano
Copy link

@vpcano vpcano commented Oct 18, 2024

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 vpcano changed the title tooltip functionality on hyprland/language module Add tooltip functionality on hyprland/language module Oct 18, 2024
@vpcano vpcano marked this pull request as ready for review October 19, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant