{ // ☢ //GLOBAL "layer": "top", "position": "left", "width": 15, "modules-left": [ "cpu", "memory", //"battery", // broken for some reason... "custom/battery", "temperature", "disk", "backlight", "pulseaudio", ], "modules-center": [ ], "modules-right": [ //"custom/terminal", "custom/keyshow", "custom/keyhide" ], //MODULES "custom/battery": { "exec": "waybar_battery", "interval": "2", "return-type": "json", "format": "⚛ {}" }, "custom/kill": { "on-click": "swaymsg kill", "format": "☠" }, "custom/keyshow": { "on-click": "swayphone_keyboard_show", "format": "K↥" }, "custom/keyhide": { "on-click": "swayphone_keyboard_hide", "format": "K↧" }, "custom/terminal": { "on-click": "termite", "format": ">_" }, "cpu": { "interval": 5, "tooltip": false, "format": " {usage}%", //Icon: microchip "states": { "warning": 70, "critical": 90 }, "on-click": "termite -e \"htop --sort-key=PERCENT_CPU\"" }, "memory": { "interval": 5, "format": " {}%", // Icon: memory "states": { "warning": 70, "critical": 90 }, "on-click": "termite -e \"htop --sort-key=PERCENT_MEM\"" }, "temperature": { // "thermal-zone": 2, // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", "critical-threshold": 60, "format-critical": " {temperatureC}°C", "format": " {temperatureC}°C" }, "network": { "interval": 5, "format-wifi": "  {essid}", // Icon: wifi "format-ethernet": " {ifname}", // Icon: ethernet "format-disconnected": "Disconnected", "tooltip-format": "{ifname}: {ipaddr}", "on-click": "swaymsg exec \"termite -e 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": "pavucontrol" }, "disk": { "interval": 5, "format": "✇ {percentage_used:2}%", // alt:  "path": "/" }, "backlight": { // "device": "acpi_video1", "format": "{icon} {percent}% ", "states": [0,50], "format-icons": ["", ""], "on-click": "termite -e swayphone_backlightselect" }, }