dotfiles/sway/.config/waybar/config
Peter Cai 3a96a6fba3 sway: display IP in tooltip when on WiFi
having IP always displayed is kind of annoying
2022-04-03 16:12:36 -04:00

51 lines
1.1 KiB
Plaintext

{
"layer": "top",
"position": "bottom",
"modules-left": ["custom/power", "sway/workspaces", "sway/mode"],
"modules-center": [],
"include": [
"$HOME/.config/waybar/local"
],
"clock": {
"format": "{:%m/%d %H:%M}"
},
"pulseaudio": {
"tooltip": false,
"scroll-step": 5,
"format": "{icon} {volume}%",
"format-icons": {
"default": ["奄", "奔", "墳"]
},
"on-click": "pavucontrol"
},
"network": {
"tooltip": true,
"format-wifi": " {essid}",
"format-ethernet": " {ipaddr}",
"tooltip-format": "{ipaddr}"
},
"cpu": {
"tooltip": false,
"format": " {}%"
},
"memory": {
"tooltip": false,
"format": " {}%"
},
"tray": {
"icon-size": 21,
"spacing": 10
},
"custom/power": {
"format": "",
"on-click": "nwg-bar"
},
"custom/weather": {
"format": "{}",
"tooltip": true,
"interval": 60,
"exec": "~/.config/waybar/waybar-wttr.py",
"return-type": "json"
}
}