1
0
forked from extern/nix-config

yambar: Simplify battery icon

This commit is contained in:
Donovan Glover 2023-04-30 17:35:40 -04:00
parent bc9a42e7bd
commit 8004d74a17
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -41,8 +41,8 @@ bar:
- ramp: - ramp:
tag: capacity tag: capacity
items: items:
- string: {text: , foreground: ff0000ff} - string: {text: }
- string: {text: , foreground: ffa600ff} - string: {text: }
- string: {text: } - string: {text: }
- string: {text: } - string: {text: }
- string: {text: } - string: {text: }
@ -50,7 +50,7 @@ bar:
- string: {text: } - string: {text: }
- string: {text: } - string: {text: }
- string: {text: } - string: {text: }
- string: {text: , foreground: 00ff00ff} - string: {text: }
- string: {text: "{capacity}% {estimate}", left-margin: *BMARGIN} - string: {text: "{capacity}% {estimate}", left-margin: *BMARGIN}
content: content:
map: map:
@ -60,25 +60,25 @@ bar:
state == discharging: state == discharging:
<<: *discharging <<: *discharging
state == charging: state == charging:
- string: {text: , foreground: 00ff00ff} - string: {text: }
- string: {text: "{capacity}% {estimate}"} - string: {text: "{capacity}% {estimate}"}
state == full: state == full:
- string: {text: , foreground: 00ff00ff} - string: {text: }
- string: {text: "{capacity}% full"} - string: {text: " {capacity}%"}
state == "not charging": state == "not charging":
- ramp: - ramp:
tag: capacity tag: capacity
items: items:
- string: {text:  , foreground: ff0000ff} - string: {text: }
- string: {text:  , foreground: ffa600ff} - string: {text: }
- string: {text:  , foreground: 00ff00ff} - string: {text: }
- string: {text:  , foreground: 00ff00ff} - string: {text: }
- string: {text:  , foreground: 00ff00ff} - string: {text: }
- string: {text:  , foreground: 00ff00ff} - string: {text: }
- string: {text:  , foreground: 00ff00ff} - string: {text: }
- string: {text:  , foreground: 00ff00ff} - string: {text: }
- string: {text:  , foreground: 00ff00ff} - string: {text: }
- string: {text:  , foreground: 00ff00ff} - string: {text: }
- string: {text: "{capacity}%"} - string: {text: "{capacity}%"}
- -
backlight: backlight:

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB