189 lines
4.8 KiB
JSON
189 lines
4.8 KiB
JSON
{
|
|
"layer": "top", // Waybar at top layer
|
|
"height": 32, // Waybar height (to be removed for auto height)
|
|
"margin-top": 4,
|
|
"margin-left": 4,
|
|
"margin-right": 4,
|
|
"spacing": 0, // Gaps between modules (4px)
|
|
"modules-left": [
|
|
"niri/window"
|
|
],
|
|
"modules-center": [
|
|
"clock"
|
|
],
|
|
"modules-right": [
|
|
"cpu",
|
|
"memory",
|
|
"temperature",
|
|
"network",
|
|
"keyboard-state",
|
|
"battery",
|
|
"group/sound",
|
|
"group/backlight",
|
|
"tray",
|
|
"custom/logout"
|
|
],
|
|
// Modules configuration
|
|
"group/sound": {
|
|
"click-to-reveal": true,
|
|
"orientation": "horizontal",
|
|
"drawer": {
|
|
"transition-duration": 500,
|
|
"transition-left-to-right": true
|
|
},
|
|
"modules": [
|
|
"pulseaudio",
|
|
"pulseaudio/slider"
|
|
]
|
|
},
|
|
"group/backlight": {
|
|
"click-to-reveal": true,
|
|
"orientation": "horizontal",
|
|
"drawer": {
|
|
"transition-duration": 500,
|
|
"transition-left-to-right": true
|
|
},
|
|
"modules": [
|
|
"backlight",
|
|
"backlight/slider"
|
|
]
|
|
},
|
|
"pulseaudio/slider": {
|
|
"min": 0,
|
|
"max": 100,
|
|
"orientation": "horizontal"
|
|
},
|
|
"custom/logout": {
|
|
"format": "⏻",
|
|
"tooltip": true,
|
|
"on-click": "niri msg action quit"
|
|
},
|
|
"keyboard-state": {
|
|
"numlock": true,
|
|
"capslock": true,
|
|
"format": "{name} {icon}",
|
|
"format-icons": {
|
|
"locked": "",
|
|
"unlocked": ""
|
|
}
|
|
},
|
|
"niri/window": {
|
|
"icon": true,
|
|
"format": "{app_id}/{title}"
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
}
|
|
},
|
|
"tray": {
|
|
// "icon-size": 21,
|
|
"spacing": 10
|
|
},
|
|
"clock": {
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
"format": "{:%e %B %H:%M}"
|
|
},
|
|
"cpu": {
|
|
"format": "{usage}% ",
|
|
"tooltip": false
|
|
},
|
|
"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-icons": [
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
""
|
|
]
|
|
},
|
|
"battery#bat2": {
|
|
"bat": "BAT2"
|
|
},
|
|
"network": {
|
|
"format": "{ifname} {essid}",
|
|
"tooltip-format": "{ifname} {ipaddr}/{cidr} {essid} {icon} {frequency} {signaldBm}",
|
|
// "format-wifi": "",
|
|
// "format-ethernet": "",
|
|
// "tooltip-format": "{ifname} via {gwaddr} ",
|
|
// "format-linked": "",
|
|
// "format-disconnected": "⚠",
|
|
// "format-alt": "{ifname}: {ipaddr}/{cidr}",
|
|
"on-click": "nmcli device wifi rescan && ghostty -e nmtui"
|
|
},
|
|
"pulseaudio": {
|
|
"format": "{volume}% {icon}",
|
|
"format-bluetooth": "{volume}% {icon}",
|
|
"format-bluetooth-muted": " {icon}",
|
|
"format-muted": "",
|
|
"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
|
|
}
|
|
} |