.\" Generated by scdoc 1.11.5 .\" Complete documentation for this program is not available as a GNU info page .ie \n(.g .ds Aq \(aq .el .ds Aq ' .nh .ad l .\" Begin generated content: .TH "waybar\-niri\-language" "5" "2026\-08\-31" .PP .SH NAME .PP waybar \- niri language module .PP .SH DESCRIPTION .PP The \fBlanguage\fR module displays the currently selected language in niri.\& .PP .SH CONFIGURATION .PP Addressed by \fBniri/language\fR .PP \fBformat\fR: .br typeof: string .br default: {} .br The format, how information should be displayed.\& .PP \fBformat\-\fR .br typeof: string .br Provide an alternative name to display per language where is the language of your choosing.\& Can be passed multiple times with multiple languages as shown by the example below.\& .PP \fBmenu\fR: .br typeof: string .br Action that popups the menu.\& .PP \fBmenu\-file\fR: .br typeof: string .br Location of the menu descriptor file.\& There need to be an element of type GtkMenu with id \fBmenu\fR .PP \fBmenu\-actions\fR: .br typeof: array .br The actions corresponding to the buttons of the menu.\& .PP \fBexpand\fR: .br typeof: bool .br default: false .br Enables this module to consume all left over space dynamically.\& .PP .SH FORMAT REPLACEMENTS .PP \fB{short}\fR: Short name of layout (e.\&g.\& "us").\& Equals to {}.\& .PP \fB{shortDescription}\fR: Short description of layout (e.\&g.\& "en").\& .PP \fB{long}\fR: Long name of layout (e.\&g.\& "English (Dvorak)").\& .PP \fB{variant}\fR: Variant of layout (e.\&g.\& "dvorak").\& .PP .SH EXAMPLES .PP .nf .RS 4 "niri/language": { "format": "Lang: {long}", "format\-en": "AMERICA, HELL YEAH!", "format\-tr": "As bayrakları" } .fi .RE .PP .SH STYLE .PP .PD 0 .IP \(bu 4 \fB#language\fR .PD .PP Additionally, a CSS class matching the current layout'\&s short name is added to the widget.\& This allows per\-language styling, for example: .PP .nf .RS 4 #language\&.us { color: #00ff00; } #language\&.de { color: #ff0000; } #language\&.fr { color: #0000ff; } .fi .RE