From 4b27ac9df10f43f9da8470eda7eb3552a83bc7be Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Mon, 22 Jun 2020 08:42:28 +0200 Subject: [PATCH] sigusr for slstatus --- config.h/slstatus/config.h | 2 +- .../slstatus/slstatus-sigusr-refresh-2020-06-18-b14e039.diff | 0 email/.local/bin/newmail.sh | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 config.h/slstatus/slstatus-sigusr-refresh-2020-06-18-b14e039.diff diff --git a/config.h/slstatus/config.h b/config.h/slstatus/config.h index 3a66ee3..719bf16 100644 --- a/config.h/slstatus/config.h +++ b/config.h/slstatus/config.h @@ -63,7 +63,7 @@ static const char unknown_str[] = "n/a"; */ static const struct arg args[] = { /* function format argument */ - { temp, "🌡 %s°C | ", + { temp, " 🌡 %s°C | ", "/sys/class/thermal/thermal_zone1/temp"}, { num_files, "✉ %s | ", "/home/mrl/.local/share/offlineimap/mail/INBOX/new" }, diff --git a/config.h/slstatus/slstatus-sigusr-refresh-2020-06-18-b14e039.diff b/config.h/slstatus/slstatus-sigusr-refresh-2020-06-18-b14e039.diff new file mode 100644 index 0000000..e69de29 diff --git a/email/.local/bin/newmail.sh b/email/.local/bin/newmail.sh index 29e0638..94d5945 100755 --- a/email/.local/bin/newmail.sh +++ b/email/.local/bin/newmail.sh @@ -1,3 +1,4 @@ #!/bin/sh notmuch new vdirsyncer sync +killall -s SIGUSR1 slstatus -- 2.20.1