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 b2c178f263
all: Add config files for sway desktop
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2022-12-26 21:11:15 +01:00

74 lines
2 KiB
Plaintext

{
"position": "top",
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": [],
"modules-right": ["tray", "custom/spotify", "backlight", "pulseaudio", "network", "battery", "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": "pavucontrol",
"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}"
},
"tray": {
"icon-size": 18
}
}