{ "layer": "top", // Waybar at top layer // "output": "DP-1", "position": "top", // Waybar position (top|bottom|left|right) "height": 30, // Waybar height (to be removed for auto height) // "spacing": 4, // Gaps between modules (4px) "margin-top": 10, "margin-left": 10, "margin-right": 10, "modules-left": ["custom/menu", "hyprland/workspaces"], "modules-center": ["custom/playerctl", "custom/playerlabel"], "modules-right": ["group/widgets", "pulseaudio", "clock", "battery", "backlight", "tray", "custom/power"], // Modules "group/widgets": { "orientation": "inherit", "drawer": { "transition-duration": 500, "children-class": "not-power", "transition-left-to-right": false, }, "modules": ["custom/swaync", "custom/chatgpt", "custom/updates", "network" ] }, "tray": { // "icon-size": 21, "spacing": 10 }, "clock": { "format": "{:%H:%M}", "tooltip-format": "{:%Y %B}\n{calendar}" }, "cpu": { "format": "{usage}% ", "tooltip": false }, "memory": { "format": "{}% " }, "temperature": { "thermal-zone": 1, "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", "critical-threshold": 80, "format-critical": "{temperatureC}°C {icon}", "format": "{temperatureC}°C {icon}", "format-icons": ["", "", ""] }, "backlight": { // "device": "acpi_video1", "format": "{percent}% {icon}", "format-icons": ["", "", "", "", "", "", "", "", ""] }, "battery": { "states": { // "good": 95, "warning": 30, "critical": 15 }, "format": "{capacity}% {icon}", "format-charging": "{capacity}% ", "format-plugged": "{capacity}% ", "format-alt": "{time} {icon}", // "format-good": "", // An empty format will hide the module // "format-full": "", "format-icons": ["", "", "", "", ""] }, "battery#bat2": { "bat": "BAT2" }, "network": { // "interface": "wlp2*", // (Optional) To force the use of this interface "format-wifi": "󰤨 {essid}", "format-ethernet": "󱘖 hardwired", "tooltip-format": "󱘖 {ipaddr}  {bandwidthUpBytes}  {bandwidthDownBytes}", "format-linked": "󱘖 {ifname} (No IP)", "format-disconnected": " Disconnected", "format-alt": "󰤨 {signalStrength}%", "interval": 5 }, "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": "pavucontrol" }, "custom/media": { "format": "{icon} {}", "return-type": "json", "max-length": 40, "format-icons": { "spotify": "", "default": "🎜" }, "escape": true, "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null", // Script in resources folder "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null", // Filter player based on name }, "custom/menu": { "format": "󰣇", "tooltip": false, "on-click": "rofi -show drun", }, "hyprland/workspaces": { "active-only": false, "format": "{icon}", "format-icons": { "urgent": "", "active": "", "default": "󰧞", "sort-by-number": true, }, }, "custom/div": { "format": "/", "tooltip": false, }, "custom/playerctl": { "format": "{icon}", "return-type": "json", "max-length": 64, "exec": "playerctl -a metadata --format '{\"text\": \"{{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F", "on-click-middle": "playerctl play-pause", "on-click": "playerctl previous", "on-click-right": "playerctl next", "format-icons": { "Playing": "󰒮 󰐌 󰒭", "Paused": "󰒮 󰏥 󰒭" }, }, "custom/playerlabel": { "format": "{}", "return-type": "json", "max-length": 40, "exec": "playerctl -a metadata --format '{\"text\": \"{{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F", "on-click-middle": "playerctl play-pause", "on-click": "playerctl previous", "on-click-right": "playerctl next", "format-icons": { "Playing": "󰒮 󰐌 󰒭", "Paused": "󰒮 󰏥 󰒭" }, }, "custom/name": { "format": "ダンテコンピュータ", "tooltip":false, }, "custom/power": { "format": " ⏻ ", "tooltip": false, "on-click": "wlogout --protocol layer-shell" }, "custom/updates": { "exec": "~/.config/hypr/scripts/systemupdate.sh", "return-type": "json", "format": "󰮯 {}", "on-click": "~/.config/hypr/scripts/systemupdate.sh up", "interval": 86400, // once every day "tooltip": true, }, "wlr/taskbar": { "format": "{icon}", "icon-size": 15, //"icon-theme": "Numix-Circle", "tooltip-format": "{title}", "on-click": "activate", "on-click-middle": "close" }, "custom/swaync": { "tooltip": true, "format": "{icon} {}", "format-icons": { "notification": "", "none": "", "dnd-notification": "", "dnd-none": "", "inhibited-notification": "", "inhibited-none": "", "dnd-inhibited-notification": "", "dnd-inhibited-none": "" }, "return-type": "json", "exec-if": "which swaync-client", "exec": "swaync-client -swb", "on-click": "sleep 0.1 && swaync-client -t -sw", "on-click-right": "swaync-client -d -sw", "escape": true }, "custom/chatgpt": { "format": "󰢚", "on-click": "firefox https://chatgpt.com", "tooltip-format": "ChatGPT" }, },