2020-03-06 00:29:24 +01:00
|
|
|
{
|
|
|
|
"layer": "top", // Waybar at top layer
|
2020-05-24 02:23:06 +02:00
|
|
|
"height": 25, // Waybar height (to be removed for auto height)
|
2020-03-06 00:29:24 +01:00
|
|
|
"modules-left": ["sway/workspaces"],
|
|
|
|
"modules-center": ["clock"],
|
2020-04-28 13:16:04 +02:00
|
|
|
"modules-right": ["mpd", "network", "pulseaudio", "battery"],
|
2020-03-06 00:29:24 +01:00
|
|
|
// Modules configuration
|
|
|
|
// "sway/workspaces": {
|
|
|
|
// "disable-scroll": true,
|
|
|
|
// "all-outputs": true,
|
|
|
|
// "format": "{name}: {icon}",
|
|
|
|
// "format-icons": {
|
|
|
|
// "1": "",
|
|
|
|
// "2": "",
|
|
|
|
// "3": "",
|
|
|
|
// "4": "",
|
|
|
|
// "5": "",
|
|
|
|
// "urgent": "",
|
|
|
|
// "focused": "",
|
|
|
|
// "default": ""
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
"sway/mode": {
|
|
|
|
"format": "<span style=\"italic\">{}</span>"
|
|
|
|
},
|
|
|
|
"mpd": {
|
2020-05-24 02:23:06 +02:00
|
|
|
"format": "<span foreground='#88C0D0'>{stateIcon}</span> {title}",
|
2020-03-06 00:29:24 +01:00
|
|
|
"format-disconnected": "",
|
|
|
|
"format-stopped": "{stateIcon} ",
|
|
|
|
"unknown-tag": "N/A",
|
|
|
|
"interval": 2,
|
|
|
|
"consume-icons": {
|
|
|
|
"on": " "
|
|
|
|
},
|
|
|
|
"state-icons": {
|
2020-05-24 02:23:06 +02:00
|
|
|
"paused": "",
|
|
|
|
"playing": ""
|
2020-03-06 00:29:24 +01:00
|
|
|
},
|
|
|
|
"tooltip-format": "MPD (connected)",
|
|
|
|
"tooltip-format-disconnected": "MPD (disconnected)"
|
|
|
|
},
|
|
|
|
"idle_inhibitor": {
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"activated": "",
|
|
|
|
"deactivated": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tray": {
|
|
|
|
// "icon-size": 21,
|
|
|
|
"spacing": 10
|
|
|
|
},
|
|
|
|
"clock": {
|
|
|
|
"format": "{:%a %d %b %H:%M}",
|
|
|
|
"format-alt": "{:%Y-%m-%d}"
|
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"states": {
|
|
|
|
// "good": 95,
|
2020-05-24 02:23:06 +02:00
|
|
|
"warning": 60,
|
|
|
|
"critical": 20
|
2020-03-06 00:29:24 +01:00
|
|
|
},
|
2020-05-24 02:23:06 +02:00
|
|
|
"format": "<span foreground='#88C0D0'>{icon}</span> {capacity}%",
|
|
|
|
"format-charging": "<span foreground='#88C0D0'></span> {capacity}%",
|
|
|
|
"format-plugged": "<span foreground='#88C0D0'></span> {capacity}%",
|
2020-03-06 00:29:24 +01:00
|
|
|
"format-alt": "{time} {icon}",
|
|
|
|
// "format-good": "", // An empty format will hide the module
|
2020-05-24 02:23:06 +02:00
|
|
|
"format-full": "<span foreground='#88C0D0'></span> Charged",
|
|
|
|
"format-icons": ["", "", ""]
|
2020-03-06 00:29:24 +01:00
|
|
|
},
|
|
|
|
"battery#bat2": {
|
2020-05-24 02:23:06 +02:00
|
|
|
"bat": "BAT1"
|
2020-03-06 00:29:24 +01:00
|
|
|
},
|
|
|
|
"network": {
|
|
|
|
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
2020-05-24 02:23:06 +02:00
|
|
|
"format-wifi": "<span foreground='#88C0D0'>{icon}</span> {essid}",
|
2020-03-06 00:29:24 +01:00
|
|
|
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
|
|
|
"format-linked": "{ifname} (No IP) ",
|
2020-05-24 02:23:06 +02:00
|
|
|
"format-disconnected": "<span foreground='#88C0D0'>睊</span> Disconnected",
|
2020-03-06 00:29:24 +01:00
|
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
2020-05-24 02:23:06 +02:00
|
|
|
"format-icons": ["直", "直", "直"]
|
2020-03-06 00:29:24 +01:00
|
|
|
},
|
|
|
|
"pulseaudio": {
|
|
|
|
// "scroll-step": 1, // %, can be a float
|
2020-05-24 02:23:06 +02:00
|
|
|
"format": "<span foreground='#88C0D0'>{icon}</span> {volume}%",
|
|
|
|
"format-muted": "<span foreground='#88C0D0'>婢</span>",
|
2020-03-06 00:29:24 +01:00
|
|
|
"format-icons": {
|
2020-05-24 02:23:06 +02:00
|
|
|
"default": ["", "墳", ""]
|
2020-03-06 00:29:24 +01:00
|
|
|
},
|
2020-05-24 02:23:06 +02:00
|
|
|
"on-click": ""
|
2020-03-06 00:29:24 +01:00
|
|
|
},
|
|
|
|
"custom/media": {
|
|
|
|
"format": "{icon} {}",
|
|
|
|
"return-type": "json",
|
|
|
|
"max-length": 40,
|
|
|
|
"format-icons": {
|
|
|
|
"spotify": "",
|
|
|
|
"default": "🎜"
|
|
|
|
},
|
|
|
|
"escape": true,
|
|
|
|
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
|
|
|
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
|
|
|
}
|
|
|
|
}
|