Add 'Not charging' status support - slstatus - status monitor
  HTML git clone git://git.suckless.org/slstatus
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit f29aa9ab0656c938ad0c0d4a6136ff25bd82ebf9
   DIR parent 0aacce1c527749ccb85bd661a596af52dfb562cc
  HTML Author: Spenser Truex <truex@equwal.com>
       Date:   Wed, 26 Oct 2022 21:34:47 +0200
       
       Add 'Not charging' status support
       
       Exists on various ThinkPads. Seems to be both a synonym for "full".
       
       Tested on:
       - ThinkPad T500 (Spenser Truex <truex@equwal.com)
       - ThinkPad T420 (drkhsh <me@drkhsh.at)
       
       Diffstat:
         M components/battery.c                |       5 +++--
       
       1 file changed, 3 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/components/battery.c b/components/battery.c
       @@ -53,6 +53,7 @@
                                { "Charging",    "+" },
                                { "Discharging", "-" },
                                { "Full",        "o" },
       +                        { "Not charging", "o" },
                        };
                        size_t i;
                        char path[PATH_MAX], state[12];
       @@ -61,7 +62,7 @@
                                      "/sys/class/power_supply/%s/status", bat) < 0) {
                                return NULL;
                        }
       -                if (pscanf(path, "%12s", state) != 1) {
       +                if (pscanf(path, "%12[a-zA-Z ]", state) != 1) {
                                return NULL;
                        }
        
       @@ -84,7 +85,7 @@
                                      "/sys/class/power_supply/%s/status", bat) < 0) {
                                return NULL;
                        }
       -                if (pscanf(path, "%12s", state) != 1) {
       +                if (pscanf(path, "%12[a-zA-Z ]", state) != 1) {
                                return NULL;
                        }