dotfiles/private_dot_config/waybar/config
2022-10-17 15:19:14 -04:00

85 lines
2.4 KiB
Plaintext

{
"layer": "top",
"position": "top",
"height": 30,
"modules-left": ["sway/workspaces", "sway/mode", "sway/window"],
"modules-center": [],
"modules-right": ["custom/cmus", "idle_inhibitor", "network", "pulseaudio", "battery", "clock", "custom/themer"],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": true
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"sway/window":{
"icon": false
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"clock": {
"interval": 1,
"format": "{:%T}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%T %d-%m-%Y}"
},
"battery": {
"states": {
"warning": 20,
"critical": 10
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""]
},
"network": {
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
"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": {
"default": ["", "", "", ""]
},
"on-click": "pavucontrol"
},
"custom/cmus": {
"format": "♪ {}",
"interval": 1,
"exec": "cmus-remote -C \"format_print '%a - %t'\"",
"exec-if": "pgrep cmus",
"on-click": "cmus-remote --pause",
"on-click-right": "cmus-remote --next",
"escape": true
},
"custom/themer": {
"format": "  ",
"interval": 1,
"on-click": "exec ~/.config/sway/colors.sh",
"on-click-right": "exec ~/.config/sway/colors.sh"
}
}