aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/battery.nix5
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
3let 3let
4 name = "bat"; 4 name = "bat";
5 symbol = "❤️";
5in 6in
6pkgs.writeScriptBin name 7pkgs.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