{ "layer": "top", // Using margin-bottom with a negative value in order to reduce the space between Hyprland window and waybar "margin-bottom": -10, "margin-top": 10, "modules-left": ["custom/launcher", "cpu","memory","custom/spotify", "bluetooth", "tray"], "modules-center": ["hyprland/workspaces"], "modules-right": ["custom/clipboard", "pulseaudio","clock", "temperature", "custom/power"], "pulseaudio": { "tooltip": false, "scroll-step": 5, "format": "{icon} {volume}%", "format-muted": "{icon} {volume}%", "on-click":"pactl set-sink-mute @DEFAULT_SINK@ toggle", "format-icons": { "default": ["", "", ""] } }, "network": { // "interface": "wlp2*", // (Optional) To force the use of this interface "format-wifi": "", "format-ethernet": "", "tooltip-format": "{essid} ({signalStrength}%)", "format-linked": "{ifname} (No IP) ", "format-disconnected": "⚠", "format-alt": "{ifname}: {ipaddr}/{cidr}" }, "tray":{ "icon-size":18, "spacing": 10 }, "clock": { "format": " {:%H:%M:%S}", // 24h full scientific "format-alt": " {:%Y-%m-%d}" }, "cpu": { "interval": 15, "format": " {}%", "max-length": 10 }, "memory": { "interval": 5, "format": " {}%", "max-length": 10 }, "custom/spotify": { "interval": 1, "return-type": "json", "exec": "sh ~/.config/waybar/scripts/spotify.sh", "exec-if": "pgrep spotify", "escape": true }, "custom/launcher":{ "format": " ", "on-click": "wofi --style ~/.config/wofi/style/style.css -d --show drun", "on-click-right": "killall wofi" }, "custom/power":{ "format": " ", "on-click": "sh ~/.config/wofi/scripts/power.sh", }, "bluetooth": { "format": " {status}", "format-disabled": "", // an empty format will hide the module "format-connected": " Devices: #{num_connections}", "tooltip-format": "{device_alias}", "tooltip-format-connected": " {device_enumerate}", "tooltip-format-enumerate-connected": "{device_alias}", "on-click": "~/.config/waybar/scripts/bluetooth.sh" }, // The code following below is given in the great documentation for Waybar status bar under Useful Utilities in Hyprland wiki "hyrpland/workspaces": { "format": "{icon}", "on-click": "activate", "on-scroll-up": "hyprctl dispatch workspace e-1", "on-scroll-down": "hyprctl dispatch workspace e+1" }, "temperature": { "format": " {temperatureC}°C", "format-critical": " {temperatureC}°C", "interval": 1, "critical-threshold": 80 }, "custom/clipboard":{ "format":"", "on-click": "cliphist list | wofi --style ~/.config/wofi/style/style.css --show dmenu | cliphist decode | wl-copy", "interval": 86400 }, }