dotfiles/gui/waybar/thinkpad

60 lines
1.8 KiB
Plaintext

{
"layer": "top",
"modules-left": ["sway/workspaces", "sway/window", "pulseaudio/slider"],
"modules-center": ["custom/weather"],
"modules-right": ["cpu", "memory", "network", "battery", "custom/bg", "custom/date"],
"sway/workspaces": {
"all-outputs": true
},
"sway/window": {
"all-outputs": true,
"max-length": 20
},
"pulseaudio/slider": {
"min": 0,
"max": 100
},
"custom/spotify-scroll": {
},
"custom/weather": {
"exec": "weather -pd",
"on-click": "i3-scratchpad.sh scratch st -n scratch -e weather -f",
"on-click-right": "weather -r",
"on-click-midde": "i3-scratchpad.sh scratch st -n scratch -e weather -pf"
},
"cpu": {
"format": "CPU: {usage}%"
},
"memory": {
"format": "RAM: {percentage}%",
"tooltip-format": "RAM: {used}/{total} GiB"
},
"network": {
"interval": 2,
"format-icons": ["󰤟 ", "󰤢 ", "󰤥 ", "󰤨 "],
"format-disconnected": "󰌙 ",
"format-ethernet": "󰌘 ",
"format-wifi": "{icon}",
"tooltip-format-wifi": "{essid} {ipaddr}  {bandwidthDownBits}  {bandwidthUpBits}",
"tooltip-format-ethernet": "{ipaddr} CAP: {bandwidthTotalBits}  {bandwidthDownBits}  {bandwidthUpBits}"
},
"battery": {
"format": "{icon} {capacity}%",
"format-charging": "󰂄 {capacity}%",
"format-icons": [ "󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
"format-tooltip": "{timeTo}",
"format-time": "{H}:{M}",
},
"custom/bg": {
"exec": "echo -e '\uf1c5'",
"interval": "once",
"on-click": "wallpaper.sh -s"
},
"custom/date": {
"exec": "date +'%a, %b %d %l:%M %P'",
"interval": 10
}
}