diff --git a/blocks.h b/blocks.h index 39f4400..f587ba0 100644 --- a/blocks.h +++ b/blocks.h @@ -1,7 +1,7 @@ /* 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 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 * pathc - path of the program to be executed on clicks */ static Block blocks[] = { -/* pathu pathc interval signal */ - { PATH("time.sh"), NULL, 30, 10}, +/* pathu pathc interval signal */ + { 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 */ }; diff --git a/dwmblocks.c b/dwmblocks.c index 5a7fde2..36cad3a 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -8,10 +8,10 @@ #include #include -#define CMDLENGTH 25 -#define STTLENGTH 256 -#define NILL INT_MIN -#define LOCKFILE "/tmp/dwmblocks.pid" +#define CMDLENGTH 25 +#define STTLENGTH 256 +#define NILL INT_MIN +#define LOCKFILE "/tmp/dwmblocks.pid" typedef struct { char *pathu; diff --git a/sigdwmblocks.c b/sigdwmblocks.c index abeffd2..5d5fb80 100644 --- a/sigdwmblocks.c +++ b/sigdwmblocks.c @@ -7,7 +7,7 @@ #include #include -#define LOCKFILE "/tmp/dwmblocks.pid" +#define LOCKFILE "/tmp/dwmblocks.pid" void sendsignal(int signum, union sigval sv)