{ // "layer": "top", // Waybar at top layer // "position": "bottom", // Waybar position (top|bottom|left|right) "height": 22, // Waybar height (to be removed for auto height) // "width": 1280, // Waybar width // Choose the order of the modules "modules-left": ["sway/workspaces", "sway/mode", "sway/window"], "modules-center": ["custom/media"], "modules-right": ["custom/task", "custom/work", "custom/pacman", "pulseaudio", "network", "cpu", "memory", "temperature", "battery", "clock"], "sway/mode": { "format": "{}" }, "tray": { // "icon-size": 21, "spacing": 10 }, "clock": { "today-format": "{}", "tooltip-format": "{:%Y %B}\n{calendar}", "format-alt": "{:%Y-%m-%d}" }, "cpu": { "format": "{usage:00d}% ", }, "memory": { "format": "{used:0.1f}G " }, "temperature": { // "thermal-zone": 2, "hwmon-path": "/sys/class/hwmon/hwmon3/temp1_input", "critical-threshold": 80, // "format-critical": "{temperatureC}°C {icon}", "format": "{temperatureC}°C", }, "battery": { "states": { // "good": 95, "warning": 30, "critical": 15 }, "format": "{capacity}% {icon}", "format-charging": "{capacity}% ", "format-plugged": "{capacity}% ", "format-alt": "{time} {icon}", // "format-good": "", // An empty format will hide the module "format-full": "", "format-icons": ["", "", "", "", ""] }, "network": { // "interface": "wlp2*", // (Optional) To force the use of this interface "format-wifi": "{essid} ({signalStrength}%) ", "format-ethernet": "{ifname}: {ipaddr}/{cidr} ", "format-linked": "{ifname} (No IP) ", "format-disconnected": "Disconnected ⚠", "format-alt": "{ifname}: {ipaddr}/{cidr}" }, "pulseaudio": { // "scroll-step": 1, // %, can be a float "format": "{volume}% {icon} {format_source}", "format-bluetooth": "{volume}% {icon} {format_source}", "format-bluetooth-muted": " {icon} {format_source}", "format-muted": " {format_source}", "format-source": "{volume}% ", "format-source-muted": "", "format-icons": { "headphone": "", "hands-free": "", "headset": "", "phone": "", "portable": "", "car": "", "default": ["", "", ""] }, "on-click": "pavucontrol" }, "custom/media": { "format": "{icon}{}", "return-type": "json", "format-icons": { "Playing": " ", "Paused": " ", }, "max-length":70, "exec": "playerctl metadata --format '{\"text\": \"{{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F", "on-click": "playerctl play-pause", }, "custom/pacman": { "format": " {} ", "interval": "600", "exec": "pacman -Sup | wc -l", }, //"custom/weather": { // "format": " {} ", // "exec": "curl -sf https://wttr.in/Leipzig?format=1", // "on-click": "xdg-open https://wttr.in/Leipzig?format=v2", // "interval": 3600, //}, "custom/work": { "format": " {} ", "exec": "working-time", "interval": 60, }, "custom/task": { "format": "{} ", "exec": "tail -n1 -f ~/.tasks.txt", "on-click": "~/.bin/tasks clear", }, }