{
"spacing": 4,
"margin": 5,
"modules-left": [
"custom/logo",
"hyprland/workspaces",
"hyprland/window"
],
"modules-center": [
"clock",
"custom/media"
],
"modules-right": [
"tray",
"pulseaudio",
"custom/notifications"
],
"hyprland/workspaces": {
"disable-scroll": false,
"all-outputs": true,
"warp-on-scroll": true,
"format": "{icon}",
"format-icons": {
"urgent": "",
"focused": "",
"active": "",
"default": ""
},
"persistent-workspaces": {
"1": [],
"2": []
}
},
"bluetooth": {
"format": " {status}",
"format-connected": " {device_alias}",
"format-connected-battery": " {device_alias} {device_battery_percentage}%",
// "format-device-preference": [ "device1", "device2" ], // preference list deciding the displayed device
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%"
},
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": " ",
"unlocked": " "
}
},
"hyprland/window": {
"format": "{class}: {title}",
"show-empty": false,
"rewrite": {
": ": "",
"firefox(.*)": "Firefox",
"(.*)kitty(.*)": "Kitty",
"Spotify(.*)": "Spotify",
"discord(.*) - Discord": "Discord$1",
"org.gnome.(.*)": "$1"
},
"escape": true
},
"custom/logo": {
"format": "", // Change to desired logo
"tooltip": false,
"escape": true,
"on-click": "wofi -s drun" // Change to desired action
},
"custom/notifications": {
"tooltip": false,
"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": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true
},
"mpd": {
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
"format-disconnected": "Disconnected ",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
"unknown-tag": "N/A",
"interval": 5,
"consume-icons": {
"on": ""
},
"random-icons": {
"off": " ",
"on": ""
},
"repeat-icons": {
"on": ""
},
"single-icons": {
"on": "1"
},
"state-icons": {
"paused": "",
"playing": ""
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)",
"exec": "mpd"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
"icon-size": 16,
"spacing": 12
},
"clock": {
"timezone": "",
"tooltip-format": "{:%Y %B}\n{calendar}",
"format": "{:L%a. %d, %H:%M}",
"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "{usage}% ",
"tooltip": true,
"escape": true
},
"memory": {
"format": "{}% "
},
"temperature": {
// "thermal-zone": 2,
// "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": "{capacity}% {icon}",
"format-full": "",
"format-icons": ["", "", "", "", ""]
},
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "",
"performance": "",
"balanced": "",
"power-saver": ""
}
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"pulseaudio": {
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon}",
"format-muted": " {format_source}",
"format-source": "{icon} {volume}%",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"default": ["", "", ""]
},
"exec-if": "which pavucontrol",
"on-click": "pavucontrol"
},
"custom/media": {
"format": "{icon} {}",
"return-type": "json",
"max-length": 50,
"escape": true,
"format-icons": {
"firefox": "",
"discord": "",
"spotify": "",
"spotube": " ",
"default": ""
},
"on-scroll-down": "playerctl previous",
"on-scroll-up": "playerctl next",
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null", // Script in resources folder
"on-click": "playerctl play-pause" // Change "spotify to your preferred player"
}
}