Advertisement
Guest User

status

a guest
Nov 13th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.58 KB | None | 0 0
  1. void
  2. updatestatus(void)
  3. {
  4.     Monitor* m;
  5.     //if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext)))
  6.     //  strcpy(stext, "dwm-"VERSION);
  7.    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");
  8.     for(m = mons; m; m = m->next)
  9.         drawbar(m);
  10. }
  11.  
  12.  
  13. //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