{ "layer": "top", "modules-left": [ "river/tags" ], "modules-center": ["river/window"], "modules-right": [ "custom/network", "custom/cpuTemp", "battery", "custom/powerUsage", "pulseaudio", "tray", "custom/date" ], "pulseaudio": { "tooltip": false, "scroll-step": 5, "format": "vol: {volume}%", "format-muted": "vol 0%" }, "river/tags": { "tag-labels":[ "1", "2", "3", "4", "5", "6", "7", "8", "9", "0" ], "disable-click": false, "num-tags": 10 }, "river/window": { "format": "{}", "max-length": 90 }, "battery": { "states": { "good": 100, "warning": 30, "critical": 20 }, "format": "bat: {capacity}% discharging", "format-charging": "bat: {capacity}% charging", "format-plugged": "bat: {capacity}% AC" }, "tray":{ "icon-size":18, "show-passive-items":true, "spacing": 10, "reverse-direction": true }, "custom/network": { "class": "network", "format": "{}", "interval": 5, "exec": "$HOME/.config/waybar/custom/network" }, "custom/cpuTemp": { "class": "cpuTemp", "format": " CPU: {}c", "exec": "sensors | sed -n '/^k10/,/^$/p' | awk '/^Tctl/{print $2}' | sed -e's/+//g' -e's/\\.[0-9][^0-9]*$//g'", "interval": 5 }, "custom/powerUsage": { "class": "powerUsage", "format": " {}", "interval": 5, "exec": "awk '{p=$1*10^-6; if (p>0) {print p \" W\"}}' /sys/class/power_supply/BAT0/power_now " }, "custom/date": { "class": "date", "format": " {}", "interval": 60, "exec": "date +%m.%d.%Y\\ %H:%M" } }