Created
January 28, 2021 23:45
-
-
Save squidds/431d6f11d6a73a7c8054b1098a0815ed to your computer and use it in GitHub Desktop.
waybar battery config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"position": "top", | |
"height": 30, | |
"modules-left": ["sway/workspaces"], | |
"modules-right": ["pulseaudio", "network", "battery", "custom/date", "clock", "custom/power"], | |
// Modules configuration | |
"sway/workspaces": { | |
"disable-scroll": true, | |
"all-outputs": true, | |
"format": "{icon}", | |
"persistent_workspaces": { | |
"1": [], | |
"2": [], | |
"3": [], | |
"4": [], | |
"5": [], | |
"6": [], | |
"7": [], | |
"8": [], | |
"9": [], | |
"10": [] | |
}, | |
"format-icons": { | |
"1": "1", | |
"2": "2", | |
"3": "3", | |
"4": "4", | |
"5": "5", | |
"6": "6", | |
"7": "7", | |
"8": "8", | |
"9": "9", | |
"10": "10", | |
} | |
}, | |
"custom/date": { | |
"format": " {}", | |
"interval": 3600, | |
"exec": "/home/squidd/.bin/waybar-date.sh" | |
}, | |
"custom/power": { | |
"format": "", | |
"on-click": "/home/squidd/.bin/waybar-power.sh" | |
}, | |
"clock": { | |
"format": " {:%H:%M}", | |
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", | |
"format-alt": "{:%Y-%m-%d}" | |
}, | |
"battery": { | |
"states": { | |
"warning": 30, | |
"critical": 15 | |
}, | |
"format": "{icon} {capacity}%", | |
"format-charging": " {capacity}%", | |
"format-plugged": "{capacity}%", | |
"format-alt": "{time} {icon}", | |
"format-full": " {capacity}%", | |
"format-icons": ["", "", ""] | |
}, | |
"network": { | |
"format-wifi": " {essid}", | |
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ", | |
"format-linked": "{ifname} (No IP) ", | |
"format-disconnected": " Disconnected", | |
"format-alt": "{ifname}: {ipaddr}/{cidr}" | |
}, | |
"pulseaudio": { | |
"format": "{icon} {volume}%", | |
"format-muted": " Muted", | |
"format-icons": { | |
"headphone": "", | |
"hands-free": "", | |
"headset": "", | |
"phone": "", | |
"portable": "", | |
"car": "", | |
"default": ["", "", ""] | |
}, | |
"on-click": "pavucontrol" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment