// -*- mode: jsonc -*- [ { "output": "!DP-2", "height": 30, // Waybar height (to be removed for auto height) "spacing": 4, // Gaps between modules (4px) "modules-left": [ "hyprland/workspaces", "custom/sep", "custom/media" ], "modules-center": [ "hyprland/window" ], "modules-right": [ "pulseaudio", "custom/audio_device", "custom/sep", "network", "custom/sep", "cpu", "custom/sep", "memory", "custom/sep", "clock", "custom/sep", "custom/power" ], "custom/sep": { "format": " | ", "interval": 0, "tooltip": false }, "hyprland/workspaces": { "disable-scroll": true, "all-outputs": false, "warp-on-scroll": false, "format": "{name}" }, "hyprland/window": { "max-length": 40, "separate-outputs": true }, "clock": { "format": " {0:%H:%M:%S} {0:%a %d %b}", //"format": " {time} {date}", "tooltip-format": "{:%Y %B}\n{calendar}", "format-alt": "{:%Y-%m-%d}" }, "cpu": { "format": "{usage}%  ", "tooltip": false }, "memory": { "format": "{}% ({used}GiB)  " }, "network": { "format-wifi": "{essid} ({signalStrength}%)  ", "format-ethernet": "{ipaddr}/{cidr} 󱊪 ", "tooltip-format": "{ifname} via {gwaddr}  ", "format-disconnected": "Disconnected  " }, "pulseaudio": { "scroll-step": 5, // %, can be a float "format": "{volume}% {icon}", "format-muted": "{volume}%  ", "format-icons": { "headphone": " ", "default": [ " ", " ", " " ] }, "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle" }, "custom/audio_device": { "format": "{text}", "tooltip": true, "tooltip-format": "{alt}", "return-type": "json", "max-length": 40, "escape": true, "exec": "$HOME/.config/waybar/audio_output_status.sh 2>/dev/null", "on-click": "$HOME/.config/waybar/audio_output_switch.sh 2>/dev/null" }, "custom/media": { "format": "{icon} {text}", "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/power": { "format": "⏻ ", "tooltip": false, "menu": "on-click", "menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder "menu-actions": { "lock": "hyprlock", "shutdown": "shutdown", "reboot": "reboot", "suspend": "systemctl suspend", "hibernate": "systemctl hibernate" } } }, { "output": "DP-2", "height": 30, // Waybar height (to be removed for auto height) "spacing": 4, // Gaps between modules (4px) "modules-left": [ "hyprland/workspaces", "custom/sep", "custom/media" ], "modules-center": [ "hyprland/window" ], "modules-right": [ "pulseaudio", "custom/sep", "clock", "custom/sep", "custom/power" ], "custom/sep": { "format": " | ", "interval": 0, "tooltip": false }, "hyprland/workspaces": { "disable-scroll": true, "all-outputs": false, "warp-on-scroll": false, "format": "{name}" }, "hyprland/window": { "max-length": 40, "separate-outputs": true }, "clock": { "format": " {0:%H:%M:%S} {0:%a %d %b}", //"format": " {time} {date}", "tooltip-format": "{:%Y %B}\n{calendar}", "format-alt": "{:%Y-%m-%d}" }, "cpu": { "format": "{usage}%  ", "tooltip": false }, "memory": { "format": "{}% ({used}GiB)  " }, "network": { "format-wifi": "{essid} ({signalStrength}%)  ", "format-ethernet": "{ipaddr}/{cidr} 󱊪 ", "tooltip-format": "{ifname} via {gwaddr}  ", "format-disconnected": "Disconnected  " }, "pulseaudio": { "scroll-step": 5, // %, can be a float "format": "{volume}% {icon}", "format-icons": { "headphone": " ", "default": [ " ", " ", " " ] }, "on-click": "pwvucontrol" }, "custom/media": { "format": "{icon} {text}", "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/power": { "format": "⏻ ", "tooltip": false, "menu": "on-click", "menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder "menu-actions": { "lock": "hyprlock", "shutdown": "shutdown", "reboot": "reboot", "suspend": "systemctl suspend", "hibernate": "systemctl hibernate" } } } ]