.\" Generated by scdoc 1.11.2 .\" 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-upower" "5" "2023-02-28" .P .SH NAME .P waybar - upower module .P .SH DESCRIPTION .P The \fBupower\fR module displays the main battery capacity with all other upower compatible devices in the tooltip.\& .P .SH CONFIGURATION .P \fBicon-size\fR: .br typeof: integer .br default: 20 .br Defines the size of the icons.\& .P \fBformat\fR: .br typeof: string .br default: {percentage} .br The text format.\& .P \fBformat-alt\fR: .br typeof: string .br default: {percentage} {time} .br The text format when toggled.\& .P \fBhide-if-empty\fR: .br typeof: bool .br default: true .br Defines visibility of the module if no devices can be found.\& .P \fBtooltip\fR: .br typeof: bool .br default: true .br Option to disable tooltip on hover.\& .P \fBtooltip-spacing\fR: .br typeof: integer .br default: 4 .br Defines the spacing between the tooltip device name and device battery .br status.\& .P \fBtooltip-padding\fR: .br typeof: integer .br default: 4 .br Defines the spacing between the tooltip window edge and the tooltip content.\& .P \fBon-click\fR: .br typeof: string .br Command to execute when clicked on the module.\& .P .SH FORMAT REPLACEMENTS .P \fB{percentage}\fR: The battery capacity in percentage .P \fB{time}\fR: An estimated time either until empty or until fully charged .br depending on the charging state.\& .P .SH EXAMPLES .P .nf .RS 4 "upower": { "icon-size": 20, "hide-if-empty": true, "tooltip": true, "tooltip-spacing": 20 } .fi .RE .P .SH STYLE .P .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .IP \(bu 4 .\} \fB#upower\fR .RE .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .IP \(bu 4 .\} \fB#upower.\&charging\fR .RE .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .IP \(bu 4 .\} \fB#upower.\&discharging\fR .RE .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .IP \(bu 4 .\} \fB#upower.\&full\fR .RE .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .IP \(bu 4 .\} \fB#upower.\&empty\fR .RE .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .IP \(bu 4 .\} \fB#upower.\&unknown-status\fR .RE