87 lines
2.4 KiB
Plaintext
87 lines
2.4 KiB
Plaintext
|
{
|
||
|
"layer": "top", // Waybar at top layer
|
||
|
// "position": "bottom", // Waybar at the bottom of your screen
|
||
|
"height": 26, // Waybar height
|
||
|
// "width": 1280, // Waybar width
|
||
|
// Choose the order of the modules
|
||
|
"modules-left": ["sway/workspaces", "sway/mode", "custom/spotify"],
|
||
|
"modules-center": ["sway/window"],
|
||
|
"modules-right": ["pulseaudio", "network", "disk", "battery", "clock", "tray"],
|
||
|
// Modules configuration
|
||
|
"sway/workspaces": {
|
||
|
"all-outputs": false,
|
||
|
"format": "{icon} {name}",
|
||
|
"format-icons": {
|
||
|
"1": "",
|
||
|
"2": "#",
|
||
|
"3": "",
|
||
|
"4": "",
|
||
|
"5": "",
|
||
|
"6": "",
|
||
|
"7": "",
|
||
|
"urgent": "",
|
||
|
"focused": "",
|
||
|
"default": ""
|
||
|
}
|
||
|
},
|
||
|
"sway/mode": {
|
||
|
"format": "<span style=\"italic\">{}</span>"
|
||
|
},
|
||
|
"tray": {
|
||
|
// "icon-size": 21,
|
||
|
"spacing": 10
|
||
|
},
|
||
|
"clock": {
|
||
|
"format-alt": "{:%Y-%m-%d}"
|
||
|
},
|
||
|
"cpu": {
|
||
|
"format": "{load}% "
|
||
|
},
|
||
|
"memory": {
|
||
|
"format": "{}% "
|
||
|
},
|
||
|
"disk": {
|
||
|
"format": "{free} "
|
||
|
},
|
||
|
"battery": {
|
||
|
"states": {
|
||
|
// "good": 95,
|
||
|
"warning": 30,
|
||
|
"critical": 15
|
||
|
},
|
||
|
"format": "{capacity}% {icon}",
|
||
|
// "format-good": "", // An empty format will hide the module
|
||
|
// "format-full": "",
|
||
|
"format-icons": ["", "", "", "", ""]
|
||
|
},
|
||
|
"network": {
|
||
|
//"interface": "wlp58s0", // (Optional) To force the use of this interface
|
||
|
"format-wifi": "{essid} ",
|
||
|
"format-ethernet": "{ifname} ",
|
||
|
"format-disconnected": "Disconnected ⚠"
|
||
|
},
|
||
|
"pulseaudio": {
|
||
|
"scroll-step": 5,
|
||
|
"format": "{volume}% {icon}",
|
||
|
"format-bluetooth": "{volume}% {icon}",
|
||
|
"format-muted": "",
|
||
|
"format-icons": {
|
||
|
"headphones": "",
|
||
|
"handsfree": "",
|
||
|
"headset": "",
|
||
|
"phone": "",
|
||
|
"portable": "",
|
||
|
"car": "",
|
||
|
"default": ["", ""]
|
||
|
},
|
||
|
"on-click": "pavucontrol"
|
||
|
},
|
||
|
"custom/spotify": {
|
||
|
"format": " {}",
|
||
|
"escape": true,
|
||
|
"max-length": 40,
|
||
|
"on-click": "playerctl play-pause",
|
||
|
"exec": "$HOME/dotfiles/bin/spotify_meta.sh 2> /dev/null" // Script in resources folder
|
||
|
}
|
||
|
}
|