{
"layer": "top",
"position": "top",
"mod": "dock",
"exclusive": true,
"passthrough": false,
"gtk-layer-shell": true,
"height": 45,
"modules-left": ["clock","custom/weather","custom/wallpaper","hyprland/window"],
"modules-center": ["hyprland/workspaces"],
"modules-right": ["network", "bluetooth", "temperature","custom/power_profile","custom/battery","backlight","pulseaudio","pulseaudio#microphone","tray","idle_inhibitor"],
"hyprland/window": {
"format": "{}",
"max-length": 60,
"tooltip": true
},
"hyprland/workspaces": {
"format": "{name} : {icon}",
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"active": "",
"default": ""
},
"persistent-workspaces": {
"Virtual-1": [1, 2, 3, 4, 5]
}
},
"custom/wallpaper": {
"format": "Wallpaper",
"interval": 1,
"tooltip": true,
// "exec": "~/scripts/pywal/wallpapermenu.sh",
"on-click": "~/scripts/pywal/wallpapermenu.sh",
"return-type" : "json"
},
"custom/power_profile": {
"exec": "powerprofilesctl get || echo 'Unknown'",
"interval": 5,
"format": " {}",
"on-click": "pp=$(powerprofilesctl get 2>/dev/null || echo 'balanced'); case \"$pp\" in performance) n=balanced;; balanced) n=powersave;; *) n=performance;; esac; powerprofilesctl set \"$n\" 2>/dev/null || echo 'powerprofilesctl not available'; pkill -SIGRTMIN+8 waybar",
"signal": 8,
"return-type": "string"
},
"custom/weather" : {
//shows the current weather and forecast
"tooltip" : true,
"format" : "{}",
"interval" : 30,
"exec" : "~/.config/waybar/scripts/waybar-wttr.py",
"return-type" : "json",
"on-click": "xdg-open https://wttr.in"
},
"custom/battery": {
"exec": "/home/Nicholai/.config/waybar/scripts/battery.sh",
"interval": 10,
"return-type": "json",
"format": "{}",
"tooltip": true
},
"tray": {
"icon-size": 18,
"spacing": 10
},
// "clock": {
// "format": "{: %I:%M %p %a, %b %e}",
// "tooltip-format": "{:%Y %B}\n{calendar}"
// },
"clock": {
"format": "{:%I:%M %p}",
"tooltip-format": "{:%Y %B}\n{calendar}"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
},
"tooltip": true
},
"backlight": {
"format": "{icon} {percent}%",
"format-icons": ["", "", ""],
"on-scroll-up": "brightnessctl set 5%+",
"on-scroll-down": "brightnessctl set 5%-",
"min-length": 6
},
"battery": {
"bat": "BAT1",
"adapter": "ACAD",
"interval": 10,
"states": {
"good": 95,
"warning": 30,
"critical": 20
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", "", "", "", "", "", "", ""],
"tooltip": true,
"tooltip-format": "{status} • {capacity}%\n{timeTo}\nHealth: {health}",
"max-length": 15
},
"pulseaudio": {
"format": "{icon} {volume}%",
"tooltip": false,
"format-muted": " Muted",
"on-click": "pamixer -t",
"on-scroll-up": "pamixer -i 5",
"on-scroll-down": "pamixer -d 5",
"scroll-step": 5,
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
}
},
"pulseaudio#microphone": {
"format": "{format_source}",
"format-source": " {volume}%",
"format-source-muted": " Muted",
"on-click": "pamixer --default-source -t",
"on-scroll-up": "pamixer --default-source -i 5",
"on-scroll-down": "pamixer --default-source -d 5",
"scroll-step": 5
},
"temperature": {
"thermal-zone": 1,
"format": "{temperatureF}°F ",
"critical-threshold": 80,
"format-critical": "{temperatureF}°F ",
"tooltip": true
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": " {signalStrength}%",
"format-ethernet": "{ipaddr}/{cidr}",
"tooltip-format": "{essid} - {ifname} via {gwaddr}",
"format-linked": "{ifname} (No IP)",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}:{essid} {ipaddr}/{cidr}"
},
"bluetooth": {
"format": " {status}",
"format-connected": " {num_connections}",
"tooltip-format": "{controller_alias}",
"tooltip-format-connected": "{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias}",
"on-click": "blueman-manager" // launch the GUI when you left‑click
}
}