81 lines
2.5 KiB
Text
81 lines
2.5 KiB
Text
{
|
||
"ipc": true,
|
||
// "layer": "top", // Waybar at top layer
|
||
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
||
"height": 34, // Waybar height (to be removed for auto height)
|
||
// "width": 1280, // Waybar width
|
||
// Choose the order of the modules
|
||
"modules-left": ["sway/workspaces", "sway/mode", "sway/window"],
|
||
"modules-center": ["custom/cmus"],
|
||
"modules-right": ["tray", "network", "custom/stat", "memory", "temperature", "pulseaudio", "battery", "clock"],
|
||
"sway/window": {
|
||
},
|
||
"sway/mode": {
|
||
"format": "<span>{}</span>"
|
||
},
|
||
"tray": {
|
||
"icon-size": 28,
|
||
"spacing": 8
|
||
},
|
||
"clock": {
|
||
"format": "{:%H:%M}",
|
||
"tooltip-format": "{:%Y %B}",
|
||
"format-alt": "{:%A, %d.%m.%Y}",
|
||
"tooltip": false
|
||
},
|
||
"cpu": {
|
||
"format": "CPU {usage}%",
|
||
"tooltip": false
|
||
},
|
||
"memory": {
|
||
"format": "MEM {}%",
|
||
"tooltip": false
|
||
},
|
||
"temperature": {
|
||
"thermal-zone": 0,
|
||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||
"critical-threshold": 80,
|
||
// "format-critical": "{temperatureC}°C {icon}",
|
||
"format": "{temperatureC}°C"
|
||
},
|
||
"battery": {
|
||
//"bat": "8xlifepo4",
|
||
"interval": 30,
|
||
"format": " {}%",
|
||
"format-charging": " {}%",
|
||
"format-full": " {}%"
|
||
},
|
||
"network": {
|
||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||
"format-wifi": "直 {essid} {signalStrength}%",
|
||
//"format-ethernet": " {ifname}: {ipaddr}/{cidr}",
|
||
"format-ethernet": " {ifname}",
|
||
"format-linked": " {ifname} NO IP",
|
||
"format-disconnected": " ×",
|
||
"format": " ×",
|
||
"on-click": "xfce4-terminal -e nmtui --title nmtui"
|
||
},
|
||
"pulseaudio": {
|
||
// "scroll-step": 1,
|
||
"format": "VOL {volume}%",
|
||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||
"format-bluetooth-muted": " {icon} {format_source}",
|
||
"format-muted": "MUTED {format_source}",
|
||
"format-source": "{volume}%",
|
||
"format-source-muted": "MUTE",
|
||
"on-click": "reform-pavucontrol"
|
||
},
|
||
"custom/stat": {
|
||
"format": "{}",
|
||
"max-length": 20,
|
||
"interval": 0,
|
||
"exec": "reform-compstat -d 1 -i 0.3",
|
||
"on-click": "gnome-system-monitor"
|
||
},
|
||
"custom/cmus": {
|
||
"format": " {}",
|
||
"max-length": 30,
|
||
"interval": 1,
|
||
"exec": "cmus-remote -Q | grep 'tag title' | sed 's/tag title //g'"
|
||
}
|
||
}
|