// Global { "layer": "top", "position": "top", // If height property would be not present, it'd be calculated dynamically "height": 30, "modules-left": [ "custom/launcher", "sway/workspaces", "sway/mode", "sway/window", ], "modules-center": [ ], "modules-right": [ "network", "idle_inhibitor", "memory", "cpu", "pulseaudio", "custom/keyboard-layout", "battery", "backlight#icon", "backlight#value", "clock", "tray", //"custom/weather", "custom/power", ], // Modules "custom/launcher": { "format":"", "on-click": "exec wofi -c ~/.config/wofi/config -I", "tooltip": false, }, "sway/workspaces": { "disable-scroll": true, "disable-markup" : false, "all-outputs": true, "format": " {icon} ", //"format":"{icon}", "format-icons": { "1": "", "2": "", "3": "", "4": "", } }, "sway/mode": { "format": "{}", "tooltip": false }, "sway/window": { "format": "{}", "max-length": 120 }, "network": { "interval": 5, "format-wifi": " {essid} ({signalStrength}%)", // Icon: wifi "format-ethernet": " {ifname}: {ipaddr}/{cidr}", // Icon: ethernet "format-disconnected": "⚠ Disconnected", "tooltip-format": "{ifname}: {ipaddr}", "on-click": "footclient -T waybar_nmtui -e nmtui", }, "network#vpn": { "interface": "tun0", "format": " {essid} ({signalStrength}%)", "format-disconnected": "⚠ Disconnected", "tooltip-format": "{ifname}: {ipaddr}/{cidr}", }, "idle_inhibitor": { "format": "{icon} ", "format-icons":{ "activated": "", "deactivated": "" } }, "memory": { "interval": 5, "format": " {}%", // Icon: memory "on-click": "footclient -T waybar_htop -e htop", "states": { "warning": 70, "critical": 90 } }, "cpu": { "interval": 5, "format": " {usage}% ({load})", // Icon: microchip "states": { "warning": 70, "critical": 90, }, "on-click": "footclient -T waybar_htop -e htop", }, "pulseaudio": { "scroll-step": 2, "format": "{icon} {volume}%", "format-muted":"󰝟 muted", "format-icons": { "headphones": "", "handsfree": "", "headset": "", "phone": "", "portable": "", "car": "", "default": ["󰕿", "󰖀", "󰕾"] }, "on-click": "pavucontrol" }, "custom/keyboard-layout": { "exec": "i=$(swaymsg -t get_inputs); echo \"\"; echo \"$i\" | grep -m1 'xkb_active_layout_name' | cut -d '\"' -f4", "format": "", // Interval set only as a fallback; use signal to update the module more immediately "interval": 30, // See example config for sending signal to Waybar in ~/.config/sway/config.d/input "signal": 1, "on-click": "~/.config/waybar/scripts/keyhint.sh", }, "battery": { "states": { "warning": 30, "critical": 15 }, "format": "{icon} {capacity}%", "format-icons": ["", "", "", "", ""] }, "backlight#icon": { "format": "{icon}", "format-icons": [""], "on-scroll-down": "brightnessctl -c backlight set 1%-", "on-scroll-up": "brightnessctl -c backlight set +1%" }, "backlight#value" :{ "format": "{percent}%", "on-scroll-down": "brightnessctl -c backlight set 1%-", "on-scroll-up": "brightnessctl -c backlight set +1%" }, "clock": { "interval": 10, "format-alt": " {:%e %b %Y}", // Icon: calendar-alt "format": "{:%H:%M}", "tooltip-format": "{:%e %B %Y}" }, "tray": { "icon-size": 18, "spacing":10, }, // to use the weather module replace with your city or town // note: do not use spaces: new york would be newyork "custom/weather": { "exec": "~/.config/waybar/scripts/weather.sh ", "return-type": "json", "interval": 600, }, "custom/power": { "format":"⏻", "on-click": "exec ~/.config/waybar/scripts/power-menu.sh", "tooltip": false, }, }