mirror of https://github.com/qpixel/dotfiles.git
115 lines
2.8 KiB
Plaintext
115 lines
2.8 KiB
Plaintext
{
|
|
// "layer": "top", // Waybar at top layer
|
|
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
|
"height": 35, // Waybar height (to be removed for auto height)
|
|
// "width": 1280, // Waybar width
|
|
"spacing": 8, // Gaps between modules (4px)
|
|
// Choose the order of the modules
|
|
"modules-left": [
|
|
"custom/icon",
|
|
"sway/workspaces",
|
|
"sway/mode",
|
|
"sway/window"
|
|
],
|
|
"modules-right": [
|
|
"custom/spotify",
|
|
"pulseaudio",
|
|
"cpu",
|
|
"memory",
|
|
"battery",
|
|
"network",
|
|
"clock",
|
|
"tray"
|
|
],
|
|
// Modules configuration
|
|
"sway/mode": {
|
|
"format": "<span style=\"italic\">{}</span>"
|
|
},
|
|
"custom/icon": {
|
|
"format": ""
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
}
|
|
},
|
|
"tray": {
|
|
// "icon-size": 21,
|
|
"spacing": 10
|
|
},
|
|
"clock": {
|
|
"timezone": "America/Los_Angeles",
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
"format-alt": "{:%Y-%m-%d}"
|
|
},
|
|
"cpu": {
|
|
"format": "{usage}% ",
|
|
"tooltip": false
|
|
},
|
|
"memory": {
|
|
"format": "{}% "
|
|
},
|
|
"network": {
|
|
"format-wifi": "{essid} ({signalStrength}%) ",
|
|
"format-ethernet": "{ipaddr}/{cidr} ",
|
|
"tooltip-format": "{ifname} via {gwaddr} ",
|
|
"format-linked": "{ifname} (No IP) ",
|
|
"format-disconnected": "Disconnected ⚠",
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
},
|
|
"pulseaudio": {
|
|
"format": "{volume}% {icon} {format_source}",
|
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
|
"format-bluetooth-muted": " {icon} {format_source}",
|
|
"format-muted": " {format_source}",
|
|
"format-source": "{volume}% ",
|
|
"format-source-muted": "",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"default": [
|
|
"",
|
|
"",
|
|
""
|
|
]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"sway/workspaces": {
|
|
"all-outputs": true
|
|
},
|
|
"battery": {
|
|
"interval": 30,
|
|
"states": {
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{capacity}% {icon}",
|
|
"format-icons": [
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"max-length": 25
|
|
},
|
|
"custom/spotify": {
|
|
"format": " {icon}{}",
|
|
"escape": true,
|
|
"return-type": "json",
|
|
"format-icons": {
|
|
"Playing": " ",
|
|
"Paused": " "
|
|
},
|
|
"max-length": 40,
|
|
// "interval": 30,
|
|
"on-click": "spt playback --toggle",
|
|
"on-click-right": "kitty spt",
|
|
//"exec": "zscroll --delay 0.2 --match-command \"spt playback\" --update-check true \"spt playback\" &",
|
|
"exec": "playerctl -a metadata --format '{\"text\": \"{{markup_escape(title)}} - {{artist}}\", \"tooltip\": \"{{markup_escape(title)}} - {{artist}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
|
|
"exec-if": "pgrep spotify"
|
|
}
|
|
}
|