summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorswindlesmccoop <swindlesmccoop@waifu.club>2022-10-28 14:53:40 -0400
committerswindlesmccoop <swindlesmccoop@waifu.club>2022-10-28 14:53:40 -0400
commit7676c9bbc2793b1f42abb1803fd12603e9829430 (patch)
tree30a0af3c6a5640c77163a6f4cf03f937808f6407
parentd34c2a0413d5b86f9d9acca2cfab182552d61ab1 (diff)
Add ifdef to define kill sig between OSes
-rw-r--r--blocks.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/blocks.h b/blocks.h
index e0e78c0..b94afdd 100644
--- a/blocks.h
+++ b/blocks.h
@@ -1,8 +1,16 @@
//Modify this file to change what commands output to your statusbar, and recompile using the make command.
+#ifdef __linux__
+ #define SIG 10
+#elif __OpenBSD__
+ #define SIG 1
+#elif __FreeBSD__
+ #define SIG 1
+#endif
+
static const Block blocks[] = {
// Label Command Int SIG
{"CPU: ", "sb-cpuusage", 1, 0},
- {"Vol: ", "sb-volume", 1, 0},
+ {"Vol: ", "sb-volume", 1, SIG},
{"Mem: ", "sb-memory", 1, 0},
{"Temp: ", "sb-cputemp -f", 1, 0},
//{"IP: ", "sb-network", 1, 0},