William Giokas avatar William Giokas committed 3ddd608

Updated comments and version number

Version 0.2:
Just some crappy documentation, but I think it gets its own version
number. I like my documentation. Also wanted something for the PKGBUILD
so I don't need people to use pacman 4.1.

Signed-off-by: William Giokas <1007380@gmail.com>;

Comments (0)

Files changed (2)

 NAME = dwmstatus
-VERSION = 0.1
+VERSION = 0.2
 
 # Customize below to fit your system
 
 /* BATTERY USAGE
  * Linux seems to change the filenames after suspend/hibernate
  * according to a random scheme. So just check for both possibilities.
- * DONE Add in time till empty (see i3status for help)
- * DONT Add in remaining charge time
  */
 
 char *
 		return smprintf("invalid");
 
     /* Getting time remaining */
-    /* First check the battery status */
     if (status == *("Discharging")) {
         remaining = (float)remcap / using;
         stat = "Batt";
  * NETWORK STUFF
  * TODO ip address display (need new func, not in net/dev)
  * TODO connection status (Put in ip address func?)
- * DONE make more modular (for use with wlan0/eth0/others)
  */
 int 
 parse_netdev(unsigned long long int *receivedabs, unsigned long long int *sentabs, char *netdevice)
 
 /* END NETWORK STUFF
  *
- * Temp stuff
- * gettemperature("/sys/class/hwmon/hwmon0/device", "temp1_input");
+ * TEMPERATURE STUFF
  */
 char *
 gettemperature(char *base, char *sensor)
         return(0);
 }
 
+
 int
 main(void)
 {
 	}
 
 	for (;;sleep(1)) {
+        /* Update every minute */
         if (runevery(&count60, 60)) {
             free(time);
 
 		    time  = mktimes("%Y/%d/%m %H:%M", TIMEZONE);
         }
+        /* Update every 10 seconds */
         if (runevery(&count10, 10)) {
             free(avgs);
             free(batt);
             batt   = getbattery(BATT_PATH);
             temp   = gettemperature(TEMP_SENSOR_PATH, TEMP_SENSOR_UNIT);
         }
+        /* Update every second */
         net    = get_netusage(NET_DEVICE);
 
+        /* Format of display */
 		status = smprintf("%s | %s | [%s] | T: %s | %s",
 				net, batt, avgs, temp, time);
         free(net);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.