my waybar config:
[
{ “layer”: “top”,
“position”: “top”,
“height”: 32,
"modules-left": ["custom/menu"],
"modules-center": ["clock"],
"modules-right": ["tray", "network", "pulseaudio", "custom/exit"],
"custom/menu": {
"format": " Apps ",
"on-click": "swaymsg exec \\$menu",
"tooltip": false
},
"custom/exit": {
"tooltip": false,
"format": " ⏻ ",
"on-click": "swaynag -f 'Sans 12' -m 'Do you really want to exit?' -b ' Logout ' 'swaymsg exit' -b ' Reboot ' 'systemctl reboot' -b ' Shutdown ' 'systemctl poweroff' -s ' Cancel ' -e top"
},
"clock": {
"format": "{:%a %d %b %l:%M %p}",
"tooltip": true,
"tooltip-format": "<small>{:%B %Y}</small>\n<tt><big>{calendar}</big></tt>",
"on-click": "swaymsg exec 'yad --calendar'"
},
"network": {
"interval": 5,
"format-wifi": "", // Icon: wifi
"format-ethernet": " {ifname}", // Icon: ethernet
"format-disconnected": "⚠ Disconnected",
"tooltip-format": "{ifname}: {ipaddr} {essid} ({signalStrength}%)",
"on-click": "swaymsg exec \\$term_float_portrait nmtui"
},
"pulseaudio": {
//"scroll-step": 1,
"format": "{icon} {volume}%",
"format-bluetooth": "{icon} {volume}%",
"format-muted": "",
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", ""]
},
"on-click": "swaymsg exec \\$pulseaudio"
},
"tray": {
"icon-size": 24,
"spacing": 5
},
},
{ “layer”: “top”,
“position”: “bottom”,
“height”: 32,
"modules-left": ["sway/workspaces", "custom/terminal", "custom/files", "custom/firefox", "sway/window", "sway/modes"],
"modules-center": [],
"modules-right": ["cpu", "memory", "temperature"],
"sway/window": {
"format": " {}",
"on-click": "swaymsg kill"
},
"cpu": {
"interval": 5,
"format": " {usage}%", // Icon: microchip
"states": {
"warning": 70,
"critical": 90
},
"on-click": "swaymsg exec \"\\$term_float_landscape '\\$cpu_mon'\""
},
"memory": {
"interval": 5,
"format": " {}%", // Icon: memory
"states": {
"warning": 70,
"critical": 90
},
"on-click": "swaymsg exec \"\\$term_float_landscape '\\$mem_mon'\""
},
"temperature": {
"critical-threshold": 70,
"interval": 5,
"format": "{icon} {temperatureC}°C",
"format-icons": [
"", // Icon: temperature-empty
"", // Icon: temperature-quarter
"", // Icon: temperature-half
"", // Icon: temperature-three-quarters
"" // Icon: temperature-full
],
"tooltip": false
},
"bluetooth": {
"format": "{icon}",
"interval": 30,
"format-icons": {
"enabled": "",
"disabled": ""
},
"on-click": "blueman-manager",
"tooltip-format": "{}"
},
"custom/firefox": {
"tooltip": false,
"format": " ",
"on-click": "swaymsg exec 'firefox'"
},
"custom/files": {
"tooltip": false,
"format": " ",
"on-click": "swaymsg exec 'nautilus -w'"
},
"custom/terminal": {
"tooltip": false,
"format": " ",
"on-click": "swaymsg exec \\$term"
},
}
]