{
"layer": "top",
"position": "top",
"height": 28,
"modules-left": ["sway/workspaces", "sway/mode", "custom/playerctl"],
"modules-center": ["sway/window"],
"modules-right": ["tray", "pulseaudio", "network", "network#wireguard", "temperature", "custom/storage", "memory", "cpu", "backlight", "keyboard-state", "sway/language", "battery", "clock#date", "clock#time"],
"sway/workspaces": {
"all-outputs": false,
"format": "{name}",
"disable-scroll": true,
"disable-markup" : false
},
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"sway/mode": {
"format": "{}", // Icon: expand-arrows-alt
"tooltip": false
},
"custom/playerctl": {
"format": "{}",
"return-type": "json",
"max-length": 40,
"exec": "$HOME/.local/bin/playerctl.sh 2> /dev/null",
"on-click": "playerctl play-pause",
"on-right-click": "sys-notif media",
"on-scroll-up": "playerctl position 3+",
"on-scroll-down": "playerctl position 3-"
},
"sway/window": {
"max-length": 120,
"tooltip": false
},
"clock#time": {
"interval": 1,
"format": "{:%H:%M:%S %z} ",
"tooltip": false
},
"clock#date": {
"interval": 10,
"format": " {:%a %d %b} ",
"tooltip": true,
"tooltip-format": "{:%Y %B}\n{calendar}"
},
"sway/language": {
"format": "{short}",
"tooltip": false
},
"memory": {
"interval": 5,
"format": "{}%",
"states": {
"warning": 70,
"critical": 90
},
"on-click": "exec alacritty -e btop"
},
"cpu": {
"interval": 5,
"format": "{usage:2}%",
"states": {
"warning": 70,
"critical": 90
}
},
"custom/storage": {
"format": "{percentage}%",
"format-alt": "{}",
"format-alt-click": "click",
"return-type": "json",
"interval": 60,
"exec": "~/.config/waybar/modules/storage.sh"
},
"temperature": {
"thermal-zone": 1,
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
"critical-threshold": 80,
"format-critical": "{icon}{temperatureC}°C",
"format": "{icon}{temperatureC}°C",
"format-icons": ["", ""]
},
"backlight": {
"interval": 10,
"device": "acpi_video1",
"format": "{percent}%{icon}",
"format-icons": ["☁️", "🌥️", "⛅", "☀️"]
},
"battery": {
"format": "{capacity}%{icon}",
"format-alt": "{time}{icon}",
"format-icons": ["", "", "", "", ""],
"format-charging": "~{capacity}%",
"format-plugged": "🔌{capacity}%",
"interval": 30,
"states": {
"good": 85,
"warning": 30,
"critical": 15
},
"tooltip": true
},
"network": {
"format-wifi": "{icon}{essid}({signalStrength}%)",
"format-ethernet": "{icon}{ifname}:{ipaddr}/{cidr}",
"format-linked": "{ifname} (No IP)",
"format-icons": {
"wifi": [""],
"ethernet": [""],
"disconnected": ["disconnected"]
},
"on-click": "nm-connection-editor",
"on-click-right": "exec kitty nmtui",
"rotate": true,
"tooltip": false
},
"network#wireguard": {
"interface": "*wg*",
"format": "",
"format-wifi": "🐉",
"format-ethernet": "🐉",
"format-linked": "{ifname}: (No IP)🐉",
"format-disconnected": "",
"format-alt": "{ifname}:{ipaddr}/{cidr}🐉",
"tooltip": false
},
"pulseaudio": {
"format": "{icon}{volume}% {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
// "format-muted": "✖ {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}%",
"format-source-muted": "",
"format-icons": {
"speaker": "💻",
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"scroll-step": 1,
"on-click": "kitty ncpamixer",
"on-click-right": "blueman-manager",
"tooltip": false
},
"tray": {
"icon-size": 18
},
// vim: ft=json.waybar ff=unix noexpandtab
}