Files
aglab.dotfiles/.config/waybar/config.jsonc

101 lines
1.9 KiB
JSON

{
"layer": "top",
"modules-left": [
"niri/workspaces",
"niri/window"
],
"modules-center": [
"clock"
],
"modules-right": [
"mpris",
"tray",
"battery",
"cpu",
"memory",
"temperature",
"pulseaudio"
],
"sway/scratchpad": {
"format": "󱂬 {count}"
},
"pulseaudio": {
"format": " {volume}%",
"format-muted": "x {volume}%",
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"on-click-right": "pavucontrol-qt"
},
"niri/workspaces": {
"format": "{index}"
},
"niri/window": {
"format": "{}",
"icon": true,
"max-length": 40,
"icon-size": 14,
"rewrite": {
"(.*) — Mozilla Firefox": "$1",
"(.*) - Google Chrome": "$1",
"(.*) - Visual Studio Code": "$1",
"(.*) - VLC media player": "$1",
"Yazi: (.*)": "$1"
}
},
"mpris": {
"format": "{status_icon} {title}",
"format-stopped": "",
"max-length": 40,
"status-icons": {
"paused": "",
"playing": "󰐊"
},
"interval": "3"
},
"clock": {
"format": "{:%d %b %H:%M}",
"interval": 1,
"tooltip-format": "{:%A %d %B %Y}"
},
"tray": {
"spacing": 12
},
"temperature": {
// "thermal-zone": 1,
"hwmon-path-abs": "/sys/devices/platform/coretemp.0/hwmon",
"input-filename": "temp1_input",
"critical-threshold": 90,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{icon} {temperatureC}°C",
"format-icons": [
"",
"",
""
]
},
"memory": {
"format": " {percentage}%",
"interval": 5
},
"cpu": {
"format": " {usage}%",
"interval": 2
},
"battery": {
"format": "{icon} {capacity}%",
"format-charging": "{icon} {capacity}% ",
"format-icons": [
"󰁺",
"󰁻",
"󰁼",
"󰁽",
"󰁾",
"󰁿",
"󰂀",
"󰂁",
"󰂂",
"󰁹"
],
"interval": 1
}
}