{
"position": "top",
"height": 22,
"spacing": 3,
// Choose the order of the modules
"modules-left": ["wlr/workspaces"],
"modules-center": ["clock"],
"modules-right": ["idle_inhibitor", "hyprland/language", "pulseaudio", "backlight", "battery", "custom/powerprofiles", "network"],
"wlr/workspaces": {
"on-click": "activate",
"sort-by-number": true,
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1"
},
"hyprland/language": {
"format": "{} ",
"format-en": "US",
"format-es": "ES",
"keyboard-name": "at-translated-set-2-keyboard",
"on-click": "hyprctl switchxkblayout at-translated-set-2-keyboard next"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "⏽",
"deactivated": ""
}
},
"clock": {
"tooltip-format": "{:%Y %B}\n{calendar}",
"format": " {:%H:%M}",
"format-alt": " {:%Y-%m-%d}"
},
"backlight": {
"format": "{percent}% {icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""]
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-critical": "{capacity}% {icon} ",
"format-warning": "{capacity}% {icon} ",
"format-icons": [" ", " ", " ", " ", " "]
},
"custom/powerprofiles": {
"exec": "bash $HOME/.config/waybar/power-profiles",
"restart-interval": 5,
"format": "{}",
},
"pulseaudio": {
"scroll-step": 1, // %, can be a float
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "wezterm start -- pulsemixer"
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ",
"format-ethernet": "{ipaddr}/{cidr} ",
"format-disconnected": "Disconnected ",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
}