[{
"output": "DP-1",
"layer": "top", // Waybar at top layer
"position": "left", // Waybar position (top|bottom|left|right)
"width": 44, // Waybar width
// Choose the order of the modules
"modules-left": ["clock", "pulseaudio"],
"modules-center": ["sway/workspaces"],
"modules-right": ["tray", "battery", "custom/power"],
"sway/workspaces": {
"persistent-workspaces": {
"1": ["DP-1"],
"2": ["DP-1"],
"3": ["DP-1"],
"4": ["DP-1"],
},
"disable-scroll": true,
"sort-by-name": true,
"format": "{icon}",
"format-icons": {
"default": "ā",
"focused": "ā",
},
},
"tray": {
"icon-size": 21,
"spacing": 10
},
"clock": {
"timezone": "America/Montreal",
"tooltip-format": "{:%Y %B}\n{calendar}",
"format": "š\n{:%H\n%M\n\nš
\n%d\n%m\n%y} "
},
"backlight": {
"device": "intel_backlight",
"format": "{icon}",
"format-icons": ["ī", "ī", "ī", "ī", "ī", "ī", "ī", "ī", "ī"]
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "š\n{capacity}",
"format-charging": "ā”\n{capacity}",
"format-plugged": "š\n{capacity}",
"format-alt": "{icon}",
"format-icons": ["ļ", "ļ¹", "ļŗ", "ļ»", "ļ¼", "ļ½", "ļ½", "ļ¾", "ļæ", "ļ", "ļ", "ļø"]
},
"custom/power": {
"format" : "ā»",
"tooltip": false,
"menu": "on-click",
"menu-file": "~/.config/waybar/power_menu.xml",
"menu-actions": {
"logout": "loginctl terminate-user \"\"",
"shutdown": "systemctl poweroff",
"reboot": "systemctl reboot"
}
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{icon}\n{volume}",
"format-muted": "ļ¦",
"format-icons": {
"default": ["ļ¦", "ļ§", "ļØ "]
},
"on-click": "pwvucontrol"
},
},
{
"output": "DP-2",
"layer": "top",
"position": "top",
"height": 44,
"modules-right": ["clock"],
"modules-center": ["sway/workspaces"],
"sway/workspaces": {
"persistent-workspaces": {
"5": ["DP-2"],
"6": ["DP-2"],
"7": ["DP-2"],
"8": ["DP-2"],
},
"disable-scroll": true,
"sort-by-name": true,
"format": "{icon}",
"format-icons": {
"default": "ā",
"focused": "ā",
},
},
"clock": {
"timezone": "America/Montreal",
"tooltip-format": "{:%Y %B}\n{calendar}",
"format": "š {:%H:%M š
%d/%m/%y}"
}
}]