dotfiles/.config/waybar/config

132 lines
2.3 KiB
JSON

// -*- mode: json -*-
{
"layer": "top",
"position": "top",
"modules-left": [
"sway/workspaces",
],
"modules-center": [
"clock#1",
"clock#2",
"clock#3",
],
"modules-right": [
"pulseaudio",
"memory",
"cpu",
"custom/gpu",
"network",
"mpd",
"tray"
],
"sway/workspaces": {
"disable-scroll": true,
"format": "{index}: {name}"
},
"clock#1": {
"format": "{:%a}",
"tooltip": false
},
"clock#2": {
"format": "{:%H.%M}",
"tooltip": false
},
"clock#3": {
"format": "{:%d-%m-%Y}",
"tooltip": false
},
"pulseaudio": {
"format": "{icon} {volume:2}%",
"format-bluetooth": "{icon} {volume}%",
"format-muted": "MUTE",
"format-icons": {
"headphones": "",
"default": [
"",
""
]
},
"scroll-step": 5,
"on-click": "pamixer -t",
"on-click-right": "pavucontrol"
},
"memory": {
"interval": 5,
"format": "Mem {}%"
},
"cpu": {
"interval": 5,
"format": "CPU {usage:2}%"
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-icons": [
"",
"",
"",
"",
""
]
},
"network": {
"format": "{icon} {ipaddr}",
"format-alt": "{icon} {ipaddr}/{cidr}",
"format-alt-click": "click-right",
"format-icons": {
"wifi": [""],
"ethernet": [""],
"disconnected": [""]
},
"on-click": "kitty -e nmtui",
"tooltip": false
},
"bluetooth": {
"format": "{icon}",
"format-alt": "bluetooth: {status}",
"format-icons": {
"enabled": "",
"disabled": ""
},
"tooltip-format": "{}"
},
"disk": {
"interval": 5,
"format": "💾 {percentage_used:2}%",
"path": "/"
},
"tray": {
"icon-size": 20,
"spacing": 5
},
"mpd": {
"format": "🎵 {title}",
"max-length": 20
},
"custom/gpu": {
"format": "GPU {} ℃",
//"max-length": 15,
"interval": 15,
"exec": "/home/lanxu/Scripts/gputemp.py",
"on-click": "gputemp.py"
},
"custom/pacman": {
"format": " {}",
"tooltip-format": "{tooltip}",
"return-type": "json",
"interval": 3600, // every hour
"exec": "/home/lanxu/Scripts/checkupdates.sh",
"on-click": "kitty sh -c 'sudo pacman -Syu'; pkill -SIGRTMIN+8 waybar", // update system
"signal": 8
}
}