diff --git a/blocks.h b/blocks.h index 69e8867..3d9778b 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 30 -#define PATH(name) "/home/ashish/.scripts/statusbar/"name +#define PATH(name) "/home/ashish/.local/projects/dwmblocks/blocks/"name /* If multiple realtime signals are pending, then the lowest numbered signal is delivered first. * If interval of a block is set to 0, the block will only be updated once at startup. diff --git a/blocks/battery.sh b/blocks/battery.sh new file mode 100755 index 0000000..0901a42 --- /dev/null +++ b/blocks/battery.sh @@ -0,0 +1,3 @@ +#!/bin/dash +read -r capacity