apoorv569

blocks.h (DWM)

Jun 5th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.79 KB | None | 0 0
  1. //Modify this file to change what commands output to your statusbar, and recompile using the make command.
  2. static const Block blocks[] = {
  3.     /*Icon*/    /*Command*/                                                 /*Update Interval*/ /*Update Signal*/
  4.     {"",        "cat ~/.pacupdate | sed /📦0/d",                                      0,                  9},
  5.    
  6.     {"🧠",        "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g",          30,                 0},
  7.    
  8.   /*{"",        "~/.local/bin/statusbar/volume",                                    0,                  10},*/
  9.  
  10.     {"☀",         "xbacklight | sed 's/\\..*//'",                                     0,                  11},
  11.    
  12.   /*{"",        "~/.local/bin/statusbar/battery",                                   5,                  0},*/
  13.  
  14.     {"🌡",        "sensors | awk '/^temp1:/{print $2}'",                              5,                  0},
  15.  
  16.   /*{"",        "~/.local/bin/statusbar/clock",                                     60,                 0},*/
  17.    
  18.   /*{"",        "cat /tmp/recordingicon 2>/dev/null",                               0,                  9},*/
  19.   /*{"",        "~/.local/bin/statusbar/music",                                     0,                  11},*/
  20.   /*{"",        "~/.local/bin/statusbar/pacpackages",                               0,                  8},*/
  21.   /*{"",        "~/.local/bin/statusbar/memory",                                    10,                 14},*/
  22.   /*{"",        "~/.local/bin/statusbar/cpu",                                       10,                 18},*/
  23.   /*{"",        "~/.local/bin/statusbar/weather",                                   18000,              5},*/
  24.     {"",        "~/.local/bin/statusbar/volume",                                    0,                  10},
  25.     {"",        "~/.local/bin/statusbar/battery",                                   5,                  3},
  26.     {"",        "~/.local/bin/statusbar/clock",                                     60,                 1},
  27.   /*{"",        "~/.local/bin/statusbar/internet",                                  5,                  4},*/
  28.    
  29. };
  30.  
  31. //sets delimeter between status commands. NULL character ('\0') means no delimeter.
  32. static char delim = '|';
Add Comment
Please, Sign In to add comment