-
Notifications
You must be signed in to change notification settings - Fork 0
Modules
//TODO: on_click //TODO: on_scroll_up //TODO: on_scroll_down
The battery module displays the current capacity and state (eg. charging) of your battery.
Addressed by battery
-
bat- Typeof:
string - Optional:
true - Description: The battery to monitor, as in
/sys/class/power_supply/. - Example:
"bat": "BAT2"
- Typeof:
-
interval- Typeof:
integer - Optional:
true - Default:
60 - Description: The interval in which the information gets polled.
- Example:
"interval": 60
- Typeof:
-
states- Typeof:
array - Optional:
true - Description: Every entry (state) consits of a
<name>(typeof:string) and a<value>(typeof:integer).- The state can be adressed as a CSS class in the
style.css. The name of the CSS class is the<name>of the state. Each class gets activated when the current capacity is equal or below the configured<value>. - Also each state can have its own
format. Those con be configured viaformat-<name>. Or if you want to differntiate a bit more even asformat-<status>-<state>. For more information see custom formats.
- The state can be adressed as a CSS class in the
- Example:
"state": { "warning": 30, "critical": 15 }
- Typeof:
-
format- Typeof:
string - Optional:
true - Default:
{capacity}% - Description: The format, how information should be displayed.
On
{capacity}the capacity gets inserted. On{icon}the icon, as defined informat-iconsgets inserted. An empty format will hide the module. - Example:
"format": "{capacity}% {icon}"
- Typeof:
-
Custom Formats
The
batterymodule allows to define custom formats based on up to two factors. The best fitting format will be selected.-
format-<state>With states, a custom format can be set depending on the capacity of your battery. -
format-<status>With the status, a custom format can be set depending on the status in/sys/class/power_supply/<bat>/status(in lowercase). -
format-<status>-<state>You can also set a custom format depending on both vaules.
-
-
format-icons- Typeof:
array - Optional:
true - Description: A comma seperated list, enclosed by square brackets. The list gets divided in percentages, and each entry represents one part. Based on the current capacity, the corresponding icon gets selected. The order is low to high.
- Example:
"format-icons": ["", "", "", "", ""]
- Typeof:
-
max-length- Typeof:
integer - Optional:
true - Description: The maximum length in character the module should display.
- Example:
"max-length": 50
- Typeof:
#battery-
#battery.<status>-
<statusis the value of/sys/class/power_supply/<bat>/statusin lowercase.
-
-
#battery.<state>-
<state>can be defined in theconfig. For more information seestates
-
-
#battery.<status>.<state>- Combination of both
<status>and<state>.
- Combination of both
The clock module displays the current date and time.
Addressed by clock
-
interval- Typeof:
integer - Optional:
true - Default:
60 - Description: The interval in which the information gets polled.
- Example:
"interval": 60
- Typeof:
-
format- Typeof:
string - Optional:
true - Default:
{:%H:%M} - Description: The format, how the time should be displayed. For valid format options have a look here.
- Example:
"format": "{:%H:%M}"
- Typeof:
-
max-length- Typeof:
integer - Optional:
true - Description: The maximum length in character the module should display.
- Example:
"max-length": 50
- Typeof:
#clock
The cpu module displays the current cpu utilization.
Addressed by cpu
-
interval- Typeof:
integer - Optional:
true - Default:
10 - Description: The interval in which the information gets polled.
- Example:
"interval": 10
- Typeof:
-
format- Typeof:
string - Optional:
true - Default:
{}% - Description: The format, how information should be displayed. On
{}data gets inserted. - Example:
"format": "{}% "
- Typeof:
-
max-length- Typeof:
integer - Optional:
true - Description: The maximum length in character the module should display.
- Example:
"max-length": 50
- Typeof:
#cpu
The custom module displays the output of a script.
Addressed by custom/<name>
-
exec- Typeof:
string - Optional:
false - Description: The path to the script, which should be executed.
- Example:
"exec": "$HOME/.config/waybar/mediaplayer.sh 2> /dev/null"
- Typeof:
-
exec-if- Typeof:
string - Optional:
true - Description: The path to an script, which determines if the script in
execshould be executed.execwill be executed if the exit code ofexec-ifequals 0. - Example:
"exec-if": "pgrep spotify"
- Typeof:
-
return-type- Typeof:
string - Optional:
true - Valid options:
json - Description:
- When
return-typeis set tojson, Waybar expects theexec-script to output its data in JSON format. This should look like this:{"text": "$text", "tooltip": "$tooltip", "class": "$class"} - If nothing or an invalid option is specified Waybar expects i3blocks style output, where values are
newlineseparated. This should look like this:$text\n$tooltip\n$class -
classis an CSS-class, to apply different styles instyle.css
- When
- Example:
"return-type": "json"
- Typeof:
-
interval- Typeof:
integer - Optional:
true - Description: The interval in which the information gets polled.
If no
intervalis defined, it is assumed that the out script loops it self. - Example:
"interval": 30
- Typeof:
-
format- Typeof:
string - Optional:
true - Default:
{} - Description: The format, how information should be displayed. On
{}data gets inserted. - Example:
"format": "{} "
- Typeof:
-
max-length- Typeof:
integer - Optional:
true - Description: The maximum length in character the module should display.
- Example:
"max-length": 50
- Typeof:
#custom-<name>-
#custom-<name>.<class>-
<class>can be set by the script. For more information seereturn-type
-
The memory module displays the current memory utilization.
Addressed by memory
-
interval- Typeof:
integer - Optional:
true - Default:
30 - Description: The interval in which the information gets polled.
- Example:
"interval": 30
- Typeof:
-
format- Typeof:
string - Optional:
true - Default:
{}% - Description: The format, how information should be displayed. On
{}data gets inserted. - Example:
"format": "{}% "
- Typeof:
-
max-length- Typeof:
integer - Optional:
true - Description: The maximum length in character the module should display.
- Example:
"max-length": 50
- Typeof:
#memory
The network module displays information about the current network connections.
Addressed by network
-
interface- Typeof:
string - Optional:
true - Description: Use the defined interface instead of auto detection.
- Example:
"interface": "wlp2s0"
- Typeof:
-
format- Typeof:
string - Optional:
true - Default:
{ifname} - Description: The format, how information should be displayed.
On
{ifname}the name of the network interface gets displayed. Depending on the connectionnetworkcan use different formats. See below. An empty format will hide the module. Example:"format": "{ifname}"
- Typeof:
-
format-ethernet- Typeof:
string - Optional:
true - Description: This format is used when a ethernet interface is displayed.
- Example:
"format-ethernet": "{ifname} "
- Typeof:
-
format-wifi- Typeof:
string - Optional:
true - Description: This format is used when a wireless interface is displayed.
On
{essid}the SSID of the wireless network gets displayed. On{signalStrength}the signal strenth of the wireless network gets displayed. - Example:
"format-wifi": "{essid} ({signalStrength}%) "
- Typeof:
-
format-disconnected- Typeof:
string - Optional:
true - Description: This format is used when the displayed interface is disconnected.
- Example:
"format-disconnected": "Disconnected ⚠"
- Typeof:
-
max-length- Typeof:
integer - Optional:
true - Description: The maximum length in character the module should display.
- Example:
"max-length": 50
- Typeof:
#network#network.disconnected
The pulseaudio module displays the current volume reported by PulseAudio.
Additionally you can control the volume by scrolling up or down ehile the cursor ist over the module.
//TODO: Config
#pulseaudio#pulseaudio.bluetooth#pulseaudio.muted
The mode module displays the current binding mode of sway.
Addressed by sway/mode
-
format- Typeof:
string - Optional:
true - Default:
{} - Description: The format, how information should be displayed. On
{}data gets inserted. - Example:
"format": " {}"
- Typeof:
-
max-length- Typeof:
integer - Optional:
true - Description: The maximum length in character the module should display.
- Example:
"max-length": 50
- Typeof:
#mode
The window module displays the title of the currently focused window in sway.
Addressed by sway/window
-
format- Typeof:
string - Optional:
true - Default:
{} - Description: The format, how information should be displayed. On
{}data gets inserted. - Example:
"format": "{}"
- Typeof:
-
max-length- Typeof:
integer - Optional:
true - Description: The maximum length in character the module should display.
- Example:
"max-length": 50
- Typeof:
#window
//TODO
tray is still in beta. There may me bugs. Breaking changed may occur
//TODO