Replaced tabs with spaces in macros
This commit is contained in:
parent
39ced773b6
commit
d4a726ad78
16
blocks.h
16
blocks.h
|
@ -1,7 +1,7 @@
|
||||||
/* time interval in seconds to sleep before looking for updates in the main loop */
|
/* time interval in seconds to sleep before looking for updates in the main loop */
|
||||||
#define SLEEPINTERVAL 1
|
#define SLEEPINTERVAL 1
|
||||||
|
|
||||||
#define PATH(name) "/home/ashish/.local/projects/dwmblocks/blocks/"name
|
#define PATH(name) "/home/ashish/.local/projects/dwmblocks/blocks/"name
|
||||||
|
|
||||||
/* If interval of a block is set to 0, the block will only be updated once at startup.
|
/* If interval of a block is set to 0, the block will only be updated once at startup.
|
||||||
* If interval is set to a negative value, the block will never be updated in the main loop.
|
* If interval is set to a negative value, the block will never be updated in the main loop.
|
||||||
|
@ -12,16 +12,16 @@
|
||||||
/* pathu - path of the program whose output is to be used for status text
|
/* pathu - path of the program whose output is to be used for status text
|
||||||
* pathc - path of the program to be executed on clicks */
|
* pathc - path of the program to be executed on clicks */
|
||||||
static Block blocks[] = {
|
static Block blocks[] = {
|
||||||
/* pathu pathc interval signal */
|
/* pathu pathc interval signal */
|
||||||
{ PATH("time.sh"), NULL, 30, 10},
|
{ PATH("time.sh"), NULL, 30, 10},
|
||||||
|
|
||||||
{ PATH("calendar.sh"), NULL, 30, 3},
|
{ PATH("calendar.sh"), NULL, 30, 3},
|
||||||
|
|
||||||
{ PATH("volume.sh"), PATH("volume_button.sh"), 0, 1},
|
{ PATH("volume.sh"), PATH("volume_button.sh"), 0, 1},
|
||||||
|
|
||||||
{ PATH("cpu_temp.sh"), PATH("cpu_temp_button.sh"), 1, 4},
|
{ PATH("cpu_temp.sh"), PATH("cpu_temp_button.sh"), 1, 4},
|
||||||
|
|
||||||
{ PATH("battery.sh"), PATH("battery_button.sh"), 30, 2},
|
{ PATH("battery.sh"), PATH("battery_button.sh"), 30, 2},
|
||||||
|
|
||||||
{ NULL } /* just to mark the end of the array */
|
{ NULL } /* just to mark the end of the array */
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
|
|
||||||
#define CMDLENGTH 25
|
#define CMDLENGTH 25
|
||||||
#define STTLENGTH 256
|
#define STTLENGTH 256
|
||||||
#define NILL INT_MIN
|
#define NILL INT_MIN
|
||||||
#define LOCKFILE "/tmp/dwmblocks.pid"
|
#define LOCKFILE "/tmp/dwmblocks.pid"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char *pathu;
|
char *pathu;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#define LOCKFILE "/tmp/dwmblocks.pid"
|
#define LOCKFILE "/tmp/dwmblocks.pid"
|
||||||
|
|
||||||
void
|
void
|
||||||
sendsignal(int signum, union sigval sv)
|
sendsignal(int signum, union sigval sv)
|
||||||
|
|
Loading…
Reference in a new issue