Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void
- updatestatus(void)
- {
- Monitor* m;
- //if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext)))
- // strcpy(stext, "dwm-"VERSION);
- sprintf(stext,system("echo \"| $(playerctl metadata title) | $(pacman -Qu | wc -l) | $(ls -1qA /home/$ME/.local/share/mail/personal/INBOX/new/ |wc -l) | $(newsboat -x print-unread | awk '{print $1}') | $(pamixer --get-volume-human) | $(date '+%a %d, %H:%M') | \"")+"\0");
- for(m = mons; m; m = m->next)
- drawbar(m);
- }
- //stext is a string which is what gets displayed in the statusbar, so I need to get the output of the systemcall into that
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement