header
This commit is contained in:
		
							parent
							
								
									291e2bcb30
								
							
						
					
					
						commit
						ace0aa15bf
					
				
							
								
								
									
										26
									
								
								slstatus.c
									
									
									
									
									
								
							
							
						
						
									
										26
									
								
								slstatus.c
									
									
									
									
									
								
							| @ -15,30 +15,8 @@ | |||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
| #include <X11/Xlib.h> | #include <X11/Xlib.h> | ||||||
| 
 | 
 | ||||||
| /* global variables */ | /* local headers */ | ||||||
| static Display *dpy; | #include "slstatus.h" | ||||||
| 
 |  | ||||||
| /* statusbar configuration type and struct */ |  | ||||||
| typedef char *(*op_fun) (const char *); |  | ||||||
| struct arg { |  | ||||||
|     op_fun func; |  | ||||||
|     const char *format; |  | ||||||
|     const char *args; |  | ||||||
| }; |  | ||||||
| 
 |  | ||||||
| /* functions */ |  | ||||||
| void setstatus(const char *); |  | ||||||
| char *smprintf(const char *, ...); |  | ||||||
| char *get_battery(const char *); |  | ||||||
| char *get_cpu_temperature(const char *); |  | ||||||
| char *get_cpu_usage(const char *); |  | ||||||
| char *get_datetime(const char *); |  | ||||||
| char *get_diskusage(const char *); |  | ||||||
| char *get_ram_usage(const char *); |  | ||||||
| char *get_volume(const char *); |  | ||||||
| char *get_wifi_signal(const char *); |  | ||||||
| 
 |  | ||||||
| /* include config header */ |  | ||||||
| #include "config.h" | #include "config.h" | ||||||
| 
 | 
 | ||||||
| /* set statusbar */ | /* set statusbar */ | ||||||
|  | |||||||
							
								
								
									
										22
									
								
								slstatus.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								slstatus.h
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,22 @@ | |||||||
|  | /* global variables */ | ||||||
|  | static Display *dpy; | ||||||
|  | 
 | ||||||
|  | /* statusbar configuration type and struct */ | ||||||
|  | typedef char *(*op_fun) (const char *); | ||||||
|  | struct arg { | ||||||
|  |     op_fun func; | ||||||
|  |     const char *format; | ||||||
|  |     const char *args; | ||||||
|  | }; | ||||||
|  | 
 | ||||||
|  | /* functions */ | ||||||
|  | void setstatus(const char *); | ||||||
|  | char *smprintf(const char *, ...); | ||||||
|  | char *get_battery(const char *); | ||||||
|  | char *get_cpu_temperature(const char *); | ||||||
|  | char *get_cpu_usage(const char *); | ||||||
|  | char *get_datetime(const char *); | ||||||
|  | char *get_diskusage(const char *); | ||||||
|  | char *get_ram_usage(const char *); | ||||||
|  | char *get_volume(const char *); | ||||||
|  | char *get_wifi_signal(const char *); | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user