dotfiles/.config/waybar/config

65 lines
1.5 KiB
Plaintext

{
"height": 24,
"spacing": 4,
"modules-left": [
"sway/workspaces",
"sway/window"
],
"modules-center": [],
"modules-right": [
"custom/cmus",
"custom/newsboat",
"cpu",
"memory",
"temperature",
"battery",
"clock",
"tray"
],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"format": "{name}"
},
"tray": {
"spacing": 10
},
"clock": {
"format": "{:%Y-%m-%d %a %H:%M}"
},
"cpu": {
"format": " {usage}%",
"tooltip": false
},
"memory": {
"format": " {}%",
"tooltip": false
},
"temperature": {
"thermal-zone": 10,
"critical-threshold": 80,
"format": " {temperatureC}°"
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": " {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-full": " {capacity}%",
"format-warning": " {capacity}%",
"format-critical": " {capacity}%"
},
"custom/cmus": {
"return-type": "json",
"exec": "$HOME/.config/waybar/custom_cmus.lua 2> /dev/null"
},
"custom/newsboat": {
"format": " {}",
"exec": "$HOME/.config/waybar/custom_newsboat.sh 2> /dev/null",
"on-click": "alacritty -e newsboat -r"
}
}