{ "layer": "top", "position": "top", "mod": "dock", "height": 49, "margin-top": 0, "margin-bottom": 0, "margin-left": 0, "margin-right": 0, "gtk-layer-shell": true, "exclusive": true, "passthrough": false, "modules-left": [ "custom/launcher", "hyprland/workspaces", "custom/playerctl", "custom/playerlabel" ], "modules-center": [ "hyprland/window", "idle_inhibitor" ], "modules-right": [ "cpu", "temperature", "custom/memory", "pulseaudio", "pulseaudio#microphone", "clock", "network", "battery", "backlight", "tray" ], "hyprland/window": { "format": "{}" }, // Modules configuration "custom/launcher": { "format": " ", "on-click": "~/.config/waybar/scripts", "tooltip": false }, "hyprland/workspaces": { "active-only": false, "all-outputs": true, "disable-scroll": false, "on-scroll-up": "hyprctl dispatch workspace -1", "on-scroll-down": "hyprctl dispatch workspace +1", "format": "{icon}", "on-click": "activate", "format-icons": { "1": "一", "2": "二", "3": "三", "4": "四", "5": "五", "6": "六", "7": "七", "8": "八", "9": "九", "10": "十", "urgent": "", "default": "󰧞", "sort-by-number": true } }, "idle_inhibitor": { "format": "{icon}", "format-icons": { "activated": "", "deactivated": "" } }, "custom/playerctl": { "format": "{icon}", "return-type": "json", "max-length": 64, "exec": "playerctl -p spotify metadata --format '{\"text\": \"{{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F", "on-click-middle": "playerctl -p spotify play-pause", "on-click": "playerctl -p spotify previous", "on-click-right": "playerctl -p spotify next", "format-icons": { "Playing": "󰒮 󰏥 󰒭", "Paused": "󰒮 󰐌 󰒭" } }, "custom/playerlabel": { "format": "{}", "return-type": "json", "max-length": 48, "exec": "playerctl -p spotify metadata --format '{\"text\": \"{{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F", "on-click-middle": "playerctl -p spotify play-pause", "on-click": "playerctl -p spotify previous", "on-click-right": "playerctl -p spotify next", "format-icons": { "Playing": "󰒮 󰐌 󰒭", "Paused": "󰒮 󰏥 󰒭" } }, "cpu": { "interval": 1, "format": "󰍛 {usage}% ", "tooltip": false, "on-click": "foot --term -e htop" }, "temperature": { "thermal-zone": 1, "critical-threshold": 80, "format": "{icon}{temperatureC}°C", "format-alt": "{temperatureF}°F {icon}", "format-critical": "{temperatureC}°C ", "format-icons": [ "", "", "󰈸" ], "tooltip": false, "on-click": "foot --term xterm -e gotop" }, "custom/memory": { "interval": 5, "exec": "~/.scripts/memory", "format": " {}", "tooltip": false, "on-click": "foot --term xterm -e gotop" }, "pulseaudio": { "format": "{icon} {volume}%", //"format-muted": " {format_source}", "format-muted": "x", "tooltip": false, "on-click": "pamixer -t", "on-scroll-up": "pamixer -i 1", "on-scroll-down": "pamixer -d 1", "scroll-step": 5, "format-icons": { "headphone": "", "hands-free": "", "headset": "", "default": [ "", "", "" ] } }, "pulseaudio#microphone": { "format": "{format_source}", "format-source": "󰍬 {volume}%", //"format-source-muted": " Muted", "format-source-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 }, "clock": { "format": "{: %I:%M %p  %a,%b %e}", "format-alt": "{:%b %e}", "tooltip-format": "{:%Y %B}\n{calendar}" }, "network": { // "interface": "wlp2*", // (Optional) To force the use of this interface "format-wifi": " {signalStrength}%", "format-ethernet": "{ipaddr}/{cidr} ", "tooltip-format": "DOWN :{bandwidthDownBytes} UP :{bandwidthUpBytes}", "format-linked": "{ifname} (No IP) ", "format-disconnected": "Disconnected ⚠", "format-alt": "{ifname}:{essid} {ipaddr}/{cidr}" }, "battery": { "states": { "good": 95, "warning": 30, "critical": 20 }, "format": "{icon} {capacity}%", "format-charging": " {capacity}%", "format-plugged": " {capacity}%", "format-alt": "{time} {icon}", "format-icons": [ "󰂃", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹" ] }, "backlight": { "device": "intel_backlight", "format": "{icon} {percent}%", "format-icons": [ "󰃞 ", "󰃟 ", "󰃠 " ], "on-scroll-up": "brightnessctl set 1%+", "on-scroll-down": "brightnessctl set 1%-", "min-length": 6 }, "tray": { "icon-size": 18, "spacing": 10 } }