diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | slstatus_240525.diff | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..aca27e4 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +## My diff files diff --git a/slstatus_240525.diff b/slstatus_240525.diff new file mode 100644 index 0000000..cfd2dd6 --- /dev/null +++ b/slstatus_240525.diff @@ -0,0 +1,50 @@ +diff -r -u MASTER/slstatus/components/battery.c WORKING/slstatus/components/battery.c +--- MASTER/slstatus/components/battery.c 2025-05-01 17:34:50.686576726 +0200 ++++ WORKING/slstatus/components/battery.c 2025-05-24 11:54:19.365389265 +0200 +@@ -56,10 +56,10 @@ + char *state; + char *symbol; + } map[] = { +- { "Charging", "+" }, +- { "Discharging", "-" }, +- { "Full", "o" }, +- { "Not charging", "o" }, ++ { "Charging", "" }, ++ { "Discharging", "" }, ++ { "Full", "" }, ++ { "Not charging", "" }, + }; + size_t i; + char path[PATH_MAX], state[12]; +diff -r -u MASTER/slstatus/components/datetime.c WORKING/slstatus/components/datetime.c +--- MASTER/slstatus/components/datetime.c 2025-05-01 17:34:50.686576726 +0200 ++++ WORKING/slstatus/components/datetime.c 2025-05-24 11:33:30.573630300 +0200 +@@ -1,6 +1,7 @@ + /* See LICENSE file for copyright and license details. */ + #include <stdio.h> + #include <time.h> ++#include <locale.h> + + #include "../slstatus.h" + #include "../util.h" +@@ -8,6 +9,7 @@ + const char * + datetime(const char *fmt) + { ++ setlocale(LC_ALL,"fr_FR.utf8"); + time_t t; + + t = time(NULL); +diff -r -u MASTER/slstatus/config.def.h WORKING/slstatus/config.def.h +--- MASTER/slstatus/config.def.h 2025-05-01 17:34:50.686576726 +0200 ++++ WORKING/slstatus/config.def.h 2025-05-24 14:38:22.311193608 +0200 +@@ -66,5 +66,8 @@ + */ + static const struct arg args[] = { + /* function format argument */ +- { datetime, "%s", "%F %T" }, ++ { battery_remaining, "%s", "BAT0"}, ++ { battery_state, " %s", "BAT0"}, ++ { battery_perc, " %s%%", "BAT0" }, ++ { datetime, " | %s", "%a %d %b %T" }, + }; |