Archived
1
0
Fork 0
This repository has been archived on 2024-06-19. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/waybar/config
Christoph Heiss 6286ab533c
waybar: Kill pavucontrol on click if already open
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-03-13 21:45:29 +01:00

82 lines
2.2 KiB
Plaintext

{
"position": "top",
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": [],
"modules-right": [
"tray", "custom/spotify", "backlight", "pulseaudio", "network", "battery",
"custom/disp1-ddcswitch", "idle_inhibitor", "sway/language", "clock"
],
"sway/mode": {
"format": " {}"
},
"sway/workspaces": {
"format": "{name}",
"disable-scroll": true
},
"clock": {
"format": "{:%a %d %b %H:%M}",
"tooltip": false
},
"battery": {
"format": "{capacity}% {icon}",
"format-icons": ["", "", "", "", ""],
"format-charging": "{capacity}% ",
"interval": 10,
"states": {
"warning": 20,
"critical": 10
}
},
"network": {
"format": "{icon}",
"format-disconnected": "",
"format-icons": {
"wifi": "",
"ethernet": "",
},
"tooltip-format": "{ifname}: {ipaddr}/{cidr} via {gwaddr}",
"tooltip-format-wifi": "{ifname}: {ipaddr}/{cidr} via {gwaddr}\nAP: {essid} ({signalStrength}%)"
},
"pulseaudio": {
"format": "{volume}% {icon}",
"format-muted": "",
"format-icons": {
"phone": [" ", " ", " ", " "],
"default": ["", "", ""]
},
"scroll-step": 10,
"on-click": "~/.config/waybar/modules/pavucontrol.sh",
"tooltip": false
},
"custom/spotify": {
"interval": 1,
"return-type": "json",
"exec": "~/.config/waybar/modules/spotify.sh",
"exec-if": "pgrep spotify",
"escape": true
},
"backlight": {
"format": "{percent}% {icon}",
"format-icons": [""]
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
},
"tooltip": false
},
"sway/language": {
"tooltip-format": "{long}"
},
"custom/disp1-ddcswitch": {
"format": "",
"on-click": "~/.config/waybar/modules/disp1-ddcswitch.sh",
"tooltip": false
},
"tray": {
"icon-size": 18
}
}