140 lines
3.7 KiB
JSON
140 lines
3.7 KiB
JSON
{
|
|
"modules-left": [
|
|
"sway/workspaces",
|
|
"sway/window"
|
|
],
|
|
"modules-center": [
|
|
"clock",
|
|
"custom/weather"
|
|
],
|
|
"modules-right": [
|
|
"mpd",
|
|
"custom/recording",
|
|
"custom/mail",
|
|
"custom/updates",
|
|
"pulseaudio",
|
|
"network",
|
|
"battery",
|
|
"tray"
|
|
],
|
|
"sway/workspaces": {
|
|
"enable-bar-scroll":true,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"1": "",
|
|
"2": "",
|
|
"3": "",
|
|
"8": "",
|
|
"9": "",
|
|
"10": "",
|
|
"urgent": "",
|
|
"focused": "",
|
|
"default": ""
|
|
}
|
|
},
|
|
"sway/window":{
|
|
"max-length":40
|
|
},
|
|
"mpd": {
|
|
"tooltip":false,
|
|
"format": " {stateIcon} {title} - {artist} 🎜 ",
|
|
"format-disconnected": " Disconnected 🎜 ",
|
|
"format-stopped": " Stopped 🎜 ",
|
|
"timeout":60,
|
|
"unknown-tag": " N/A ",
|
|
"tooltip":false,
|
|
"interval": 2,
|
|
"max-length":40,
|
|
"state-icons": {
|
|
"paused": "",
|
|
"playing": ""
|
|
}
|
|
},
|
|
"tray": {
|
|
"tooltip":false,
|
|
"spacing": 10
|
|
},
|
|
"clock": {
|
|
"interval":60,
|
|
"format":"{:%H:%M %a}",
|
|
"tooltip":false
|
|
},
|
|
"battery": {
|
|
"tooltip":false,
|
|
"states": {
|
|
"full":100,
|
|
"good": 95,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{capacity}% {icon}",
|
|
"format-charging": "{capacity}% ",
|
|
"format-plugged": "{capacity}% ",
|
|
"format-alt": "{time} {icon}",
|
|
"format-good": "{time} {icon}",
|
|
"format-full": "",
|
|
"format-icons": ["", "", "", "", ""]
|
|
},
|
|
"network": {
|
|
"tooltip":false,
|
|
"on-click": "termite -e nmtui",
|
|
"format-wifi": "",
|
|
"format-ethernet": "",
|
|
"format-linked": "",
|
|
"format-disconnected": "⚠",
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
},
|
|
"pulseaudio": {
|
|
"tooltip":false,
|
|
"scroll-step": 10,
|
|
"format": "{icon}",
|
|
"format-bluetooth": "",
|
|
"format-bluetooth-muted": "",
|
|
"format-muted": "",
|
|
"format-icons": {
|
|
"headphones": "",
|
|
"handsfree": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"custom/weather": {
|
|
"tooltip":false,
|
|
"exec": "forecast short",
|
|
"interval": 1800,
|
|
"on-click": "kitty --class weather sh -c 'forecast full;read -n1 -p\"Press Any key to quit \"'",
|
|
"on-click-right": "xdg-open https://openweathermap.org"
|
|
},
|
|
"custom/mail": {
|
|
"tooltip":false,
|
|
"format":"{} ",
|
|
"exec-if":"sleep 30s",
|
|
"exec": "checkmail",
|
|
"on-click": "kitty neomutt; pkill -SIGRTMIN+4 waybar",
|
|
"signal": 4,
|
|
"interval": 1800
|
|
},
|
|
"custom/updates": {
|
|
"tooltip":false,
|
|
"format": "{} ",
|
|
"interval": 3600,
|
|
"exec-if":"sleep 60s",
|
|
"exec": "yay -Syuw --noconfirm> /dev/null; yay -Qqu | wc -l | sed 's/^0$//'",
|
|
"on-click": "kitty sh -c 'ping -qc1 archlinux.org >/dev/null && yay -Syu || yay -Su && pkill -SIGRTMIN+8 waybar'",
|
|
"signal": 8
|
|
},
|
|
"custom/recording": {
|
|
"tooltip":false,
|
|
"exec": "pgrep wf-recorder > /dev/null && echo || echo",
|
|
"interval": 1,
|
|
"on-click": "pkill wf-recorder; pkill -SIGRTMIN+5 waybar",
|
|
"signal": 5
|
|
}
|
|
|
|
}
|
|
# vim:ft=json
|