spoon

set dwm status
git clone git://git.2f30.org/spoon.git
Log | Files | Refs | LICENSE

commit 088f8e6f15d4d5cad187df163e32e0431a5fe1e9
parent cc9730b94b734a1cd45163d8ab57e156e3bb2f59
Author: Christoph Polcin <labs@polcin.de>
Date:   Wed, 14 Mar 2018 12:11:54 +0100

simplify args

Signed-off-by: Christoph Polcin <labs@polcin.de>

Diffstat:
config.def.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -4,7 +4,7 @@ int delay = 1; struct ent ents[] = { /* reorder/remove these as you see fit */ { .fmt = "[%s] ", .read = mpdread, .arg = &(struct mpdarg){ .host = NULL, .port = 0 } }, - { .fmt = "[%s] ", .read = countread, .arg = (char []){"/home/USER/Maildir/INBOX/new"} }, + { .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" }, @@ -14,5 +14,5 @@ struct ent ents[] = { { .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 = (char []){"%a %d %b %Y %H:%M %Z"} }, + { .fmt = "%s", .read = dateread, .arg = "%a %d %b %Y %H:%M %Z" }, };