nixos/jaci/dotfiles/waybar/config
2024-01-27 12:34:48 -07:00

83 lines
2.0 KiB
Plaintext

{
"modules-left": [
"wlr/taskbar"
],
"modules-center": [
"clock",
],
"modules-right": [
"idle_inhibitor",
"pulseaudio",
"custom/spotify",
"network",
"memory",
"cpu",
"custom/power",
],
// Modules
"wlr/taskbar": {
"format": "{icon} {name}",
"on-click": "minimize-raise",
},
"idle_inhibitor": {
"format": "{icon} ",
"format-icons":{
"activated": "",
"deactivated": ""
}
},
"clock": {
"interval": 10,
"format-alt": " {:%e %b %Y}", // Icon: calendar-alt
"format": "󰥔 {:%I:%M %p}",
},
"cpu": {
"interval": 5,
"format": " {usage}%",
"states": {
"warning": 70,
"critical": 90,
},
"on-click": "foot -e 'htop'",
},
"memory": {
"interval": 5,
"format": " {}%", // Icon: memory
"on-click": "foot -e 'htop'",
"states": {
"warning": 70,
"critical": 90
}
},
"pulseaudio": {
"scroll-step": 1, // %, can be a float
"format": "{volume}% {icon}",
"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",
"on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +2%",
"on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -2%",
},
"tray": {
"icon-size": 18,
"spacing":10,
},
"custom/spotify": {
"format": " ",
"on-click": "spot",
"tooltip": false
},
}