From d4a726ad785e114ca4917c519d9c95e54868bdd2 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Yadav Date: Sat, 22 Aug 2020 23:13:56 +0530 Subject: [PATCH] Replaced tabs with spaces in macros --- blocks.h | 16 ++++++++-------- dwmblocks.c | 8 ++++---- sigdwmblocks.c | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) 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)