diff options
author | Akshay <[email protected]> | 2023-02-20 16:07:10 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2023-02-20 16:07:10 +0000 |
commit | 8151e88775c3f2b7e1de1b90b825ed68658629b0 (patch) | |
tree | cb9bde9bd13ba8e5d931b482adcf128f6e52fd4a /scripts/battery.nix | |
parent | 7fed1757c57c00a0886ae2613c73018eea9659d3 (diff) |
.
Diffstat (limited to 'scripts/battery.nix')
-rw-r--r-- | scripts/battery.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/battery.nix b/scripts/battery.nix index e89ad46..149d8a3 100644 --- a/scripts/battery.nix +++ b/scripts/battery.nix | |||
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | let | 3 | let |
4 | name = "bat"; | 4 | name = "bat"; |
5 | symbol = "❤️"; | ||
5 | in | 6 | in |
6 | pkgs.writeScriptBin name | 7 | pkgs.writeScriptBin name |
7 | '' | 8 | '' |
@@ -22,9 +23,9 @@ pkgs.writeScriptBin name | |||
22 | for i in {0..4} | 23 | for i in {0..4} |
23 | do | 24 | do |
24 | if [[ $i -le $(( $bat_status/20 )) ]]; then | 25 | if [[ $i -le $(( $bat_status/20 )) ]]; then |
25 | echo -ne "#[fg=colour1]· " | 26 | echo -ne "#[fg=colour1]${symbol} " |
26 | else | 27 | else |
27 | echo -ne "#[fg=colour8]· " | 28 | echo -ne "#[fg=colour8]${symbol} " |
28 | fi | 29 | fi |
29 | done | 30 | done |
30 | echo | 31 | echo |