Introduction
Introduction Statistics Contact Development Disclaimer Help
Add meme-status to example. - dwmstatus - A simple dwm status application in C.
git clone git://git.suckless.org/dwmstatus
Log
Files
Refs
LICENSE
---
commit ec01a84698346cca0b3d4e06202101982cda7de0
parent 384bee02eac5cc189ed382f621bb8151a4e9872b
Author: Christoph Lohmann <[email protected]>
Date: Thu, 25 Jul 2024 13:16:11 +0200
Add meme-status to example.
Everyone should have a status of his/her memes.
Diffstat:
M dwmstatus.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/dwmstatus.c b/dwmstatus.c
@@ -211,6 +211,7 @@ main(void)
char *t1;
char *kbmap;
char *surfs;
+ char *memes;
if (!(dpy = XOpenDisplay(NULL))) {
fprintf(stderr, "dwmstatus: cannot open display.\n");
@@ -225,15 +226,17 @@ main(void)
tmbln = mktimes("KW %W %a %d %b %H:%M %Z %Y", tzberlin);
kbmap = execscript("setxkbmap -query | grep layout | cut -d':'…
surfs = execscript("surf-status");
+ memes = execscript("meme-status");
t0 = gettemperature("/sys/devices/virtual/thermal/thermal_zone…
t1 = gettemperature("/sys/devices/virtual/thermal/thermal_zone…
- status = smprintf("S:%s K:%s T:%s|%s L:%s B:%s A:%s U:%s %s",
- surfs, kbmap, t0, t1, avgs, bat, tmar, tmutc,
+ status = smprintf("S:%s M:%s K:%s T:%s|%s L:%s B:%s A:%s U:%s …
+ surfs, memes, kbmap, t0, t1, avgs, bat, tmar, …
tmbln);
setstatus(status);
free(surfs);
+ free(memes);
free(kbmap);
free(t0);
free(t1);
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.