Skip to content

Hide niri/language widget if formatted string is empty#4524

Merged
Alexays merged 2 commits into
Alexays:masterfrom
Gskartwii:niri-language-hide
Jul 3, 2026
Merged

Hide niri/language widget if formatted string is empty#4524
Alexays merged 2 commits into
Alexays:masterfrom
Gskartwii:niri-language-hide

Conversation

@Gskartwii

Copy link
Copy Markdown
Contributor

I like to use the following configuration to completely hide the widget when the English keyboard layout is selected:

    "niri/language": {
      "format": "{}",
      "format-en": "",
      "format-us": "",
      "format-fi": "Finnish"
    },

The format_ member references the format configuration key. But if I were to set that to "", then the widget would be unconditionally hidden.

@Alexays
Alexays merged commit 0d19d1e into Alexays:master Jul 3, 2026
9 checks passed
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.

2 participants