diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2020-10-08 01:53:07 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2020-10-08 01:53:07 -0400 |
commit | e860d9a8f7ca586fa88ba2f0b1325377ebb14615 (patch) | |
tree | 22775fb8343e95ae56b26a8207b6a31c857ee419 /.local/bin/dwmbar-battery | |
parent | c295d8331ff5193cb97b1e3f6b15836654b010cc (diff) |
dwmblocks scripts
Diffstat (limited to '.local/bin/dwmbar-battery')
-rwxr-xr-x | .local/bin/dwmbar-battery | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/.local/bin/dwmbar-battery b/.local/bin/dwmbar-battery deleted file mode 100755 index bb2b76e..0000000 --- a/.local/bin/dwmbar-battery +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -# Better battery manager for polybar - -# Charging: -# Discharching: -# Full: underscore: -# LOW BATTERY: - -batstatus=$(acpi | tail -n 1) - -ico="" - -# Change the underscore color according to the charging state -case "$batstatus" in - *Charging*) ico=" ";; - *Discharging*) ico=" " ;; - *) ico=" " ;; -esac - -percentage=$( echo "$batstatus" | sed "s/.*\(\ [0-9]*\)\%.*$/\1/; s/\ //g; 1q") - -echo "$ico $percentage%" |