// -*- mode: jsonc -*-
{
"layer": "top", // Waybar at top layer
"position": "left", // Waybar position (top|bottom|left|right)
"margin": 5,
// "height": 30, // Waybar height (to be removed for auto height)
// "width": 10, // Waybar width
"spacing": 10, // Gaps between modules (4px)
"reload_style_on_change": true,
// Choose the order of the modules
"modules-left": [
"wlr/taskbar",
],
"modules-center": [
"clock",
],
"modules-right": [
"pulseaudio",
"network",
"bluetooth",
"battery",
"custom/languages",
"tray",
"custom/power"
],
// Modules configuration
// "wlr/workspaces": {
// "disable-scroll": true,
// "all-outputs": true,
// "warp-on-scroll": false,
// "format": "{name}: {icon}",
// "format-icons": {
// "1": "",
// "2": "",
// "3": "",
// "4": "",
// "5": "",
// "urgent": "",
// "focused": "",
// "default": ""
// }
// },
"tray": {
// "icon-size": 21,
"spacing": 15
},
"clock": {
"tooltip-format": "{:%Y %B}\n{calendar}",
"format": "{:%H\n%M}",
"justify": "center"
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
"justify": "center",
"tooltip": false,
"format": "{icon}\n{temperatureC}°C",
"format-icons": ["", "", ""]
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"justify": "center",
"tooltip": false,
"format": "{icon}\n{capacity}%",
"format-full": "\n{capacity}%",
"format-charging": "\n{capacity}%",
"format-plugged": "\n{capacity}%",
// "format-good": "", // An empty format will hide the module
"format-full": "",
"format-icons": ["", "", "", "", ""]
},
"bluetooth": {
"format": "",
"format-connected": "",
"format-disabled": "✘",
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%",
"on-click": "blueman-manager"
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"justify": "center",
"format-wifi": " ",
"format-ethernet": " \n",
"tooltip-format-wifi": "{ipaddr} @ {essid}",
"tooltip-format-ethernet": "{ipaddr} @ {ifname}",
"format-disconnected": "⚠",
"format-disabled": "✘",
"on-click": "alacritty -e nmtui"
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"justify": "center",
"format": " ",
"format-bluetooth": "",
"format-muted": " ",
"format-source": " ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""],
"muted": [""]
},
"on-click": "wpctl set-mute @DEFAULT_SINK@ toggle",
"on-click-right": "pavucontrol"
},
"wlr/taskbar": {
"format": "{icon}",
"icon-size": 24,
"tooltip-format": "{title}",
"on-click": "activate",
"on-click-middle": "close",
},
"custom/power": {
"justify": "center",
"format": " ⏻ ",
"tooltip": false,
"menu": "on-click",
"menu-file": "$HOME/.config/waybar/power_menu.xml",
"menu-actions": {
"shutdown": "systemctl poweroff",
"reboot": "systemctl reboot",
"logout": "loginctl terminate-user $USER",
"hibernate": "systemctl hibernate"
}
}
}