tFix spacing between mpd and recording status - spoon - dwm status utility (2f30 fork)
(HTM) git clone git://src.adamsgaard.dk/spoon
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 11d2344a17373aff077d0a7884a8ac8a3c7751e3
(DIR) parent 59436c2eeb7c104ed05c3a9af158fabd441950b4
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 28 Apr 2020 08:58:27 +0200
Fix spacing between mpd and recording status
Diffstat:
D .gitignore | 5 -----
M config.def.h | 26 ++++++++++++++------------
2 files changed, 14 insertions(+), 17 deletions(-)
---
(DIR) diff --git a/.gitignore b/.gitignore
t@@ -1,5 +0,0 @@
-*.o
-*.tar.gz
-/config.h
-/config.mk
-spoon
(DIR) diff --git a/config.def.h b/config.def.h
t@@ -1,18 +1,20 @@
/* delay between each update in seconds */
int delay = 1;
+#define SEP "|"
+
struct ent ents[] = {
/* reorder/edit/remove these as you see fit */
- { .fmt = "[%s] ", .read = mpdread, .arg = &(struct mpdarg){ .host = NULL, .port = 0 } },
- { .fmt = "[%s] ", .read = countread, .arg = "/home/USER/Maildir/INBOX/new" },
- { .fmt = "[%s] ", .read = mixread, .arg = NULL },
- { .fmt = "[%s] ", .read = loadread, .arg = NULL },
- { .fmt = "[%s] ", .read = cpuread, .arg = "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" },
- { .fmt = "[%s°] ", .read = tempread, .arg = "/sys/class/hwmon/hwmon1/temp1_input" },
- { .fmt = "%s ", .read = battread, .arg = &(struct battarg){ .cap = "/sys/class/power_supply/BAT0/capacity", .ac = "/sys/class/power_supply/AC/online" } },
- { .fmt = "%s ", .read = wifiread, .arg = NULL },
- { .fmt = "[%s] ", .read = xkblayoutread, .arg = NULL },
- { .fmt = "%s", .read = keyread, .arg = &(struct keyarg){ .sym = XK_Caps_Lock, .on = "[caps] ", .off = "" } },
- { .fmt = "%s ", .read = fileread, .arg = "/etc/myname" },
- { .fmt = "%s", .read = dateread, .arg = &(struct datearg){ .fmt = "%a %d %b %Y %H:%M %Z", .tz = NULL } },
+ { .fmt = "%s", .read = fileexists, .arg = "/tmp/screenrecord.pid" },
+ { .fmt = " %s "SEP, .read = mpdread, .arg = &(struct mpdarg){ .host = NULL, .port = 0 } },
+ { .fmt = "%s", .read = countread, .arg = "/home/ad/.mail/adamsgaard/INBOX/new" },
+ { .fmt = " %s "SEP, .read = xkblayoutread, .arg = NULL },
+ { .fmt = " vol %s "SEP, .read = mixread, .arg = NULL },
+ /*{ .fmt = "[%s] ", .read = cpuread, .arg = "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" },*/
+ { .fmt = " %s°C", .read = tempread, .arg = "/sys/class/hwmon/hwmon1/temp1_input" },
+ { .fmt = " %s "SEP, .read = loadread, .arg = NULL },
+ { .fmt = " %s "SEP, .read = battread, .arg = &(struct battarg){ .cap = "/sys/class/power_supply/BAT0/capacity", .ac = "/sys/class/power_supply/AC/online" } },
+ /*{ .fmt = "%s ", .read = fileread, .arg = "/etc/myname" },*/
+ { .fmt = " %s "SEP, .read = wifiread, .arg = NULL },
+ { .fmt = " %s", .read = dateread, .arg = &(struct datearg){ .fmt = "%Y-%m-%d %a %H:%M:%S %Z", .tz = NULL } },
};