{
// "layer": "top", // Waybar at top layer
"position": "bottom", // Waybar position (top|bottom|left|right)
// "output": "DP-1",
"height": 30, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
"spacing": 4, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": ["sway/mode", "sway/window"],
"modules-center": ["sway/workspaces"],
"modules-right": ["pulseaudio", "network", "bluetooth", "idle_inhibitor", "cpu", "backlight", "battery", "clock", "tray"],
// Modules configuration
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"format": "{name}: {icon}",
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"urgent": "",
"focused": "",
"default": ""
}
},
// "keyboard-state": {
// "numlock": true,
// "capslock": true,
// "format": " {icon} {name}",
// "format-icons": {
// "locked": "",
// "unlocked": ""
// }
// },
"sway/mode": {
"format": "{}"
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"clock": {
"timezone": "Asia/Bangkok",
"tooltip-format": "{:%Y %B}\n{calendar}",
"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "",
},
"memory": {
"format": ""
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{icon}",
"format-icons": ["", "", ""]
},
"backlight": {
"format": "{icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""],
"on-scroll-up": "brightnessctl -c backlight set +1%",
"on-scroll-down": "brightnessctl -c backlight set 1%-"
},
"battery": {
"states": {
"good": 95,
"warning": 15,
"critical": 7
},
"format": "{icon} {capacity}%",
// "format-charging": " {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": "",
"format-alt": "{icon} {time}",
// "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": "",
"format-ethernet": "",
"tooltip-format": "{ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{icon}",
"format-bluetooth": "{icon} {volume}% {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "",
"format-source-muted": "",
// "format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
"custom/fcitx5": {
"format": "{}",
"return-type": "json",
"exec": "~/dotfiles/waybar/fcitx5-status.sh",
"interval": 1
},
"bluetooth": {
"format": "{icon}",
"format-icons": {
"enabled": "",
"disabled": ""
},
"tooltip-format": "{}",
"on-click": "blueman-manager"
}
}