1
0
mirror of https://github.com/tiyn/dwmblocks.git synced 2025-10-14 20:01:23 +02:00

Compare commits

...

7 Commits

Author SHA1 Message Date
2db2956e42 added player 2024-03-09 02:52:53 +01:00
6408f5ad98 added gpu script 2023-10-22 23:29:52 +02:00
d2b75f9148 made cpu script automatically detect vendor 2023-10-22 23:16:14 +02:00
d4fc8eccf5 changed timers 2023-10-22 00:37:40 +02:00
e36b94a9e8 only one space as separator 2023-10-16 23:54:40 +02:00
45700e9850 removed separators 2023-10-16 23:53:25 +02:00
13706b2c24 made volume check every other minute 2023-10-16 18:40:52 +02:00
2 changed files with 11 additions and 9 deletions

View File

@@ -4,12 +4,14 @@
#include "util.h" #include "util.h"
Block blocks[] = { Block blocks[] = {
{"memory", 10, 6}, {"player", 5, 9},
{"cpu intel", 10, 5}, {"memory", 30, 6},
{"disk /", 1800, 7}, {"cpu", 30, 5},
{"volume", 0, 4}, {"gpu", 30, 8},
{"battery BAT0", 5, 2}, {"disk /home", 1800, 7},
{"internet", 5, 3}, {"volume", 120, 4},
{"battery BAT0", 120, 2},
{"internet", 30, 3},
{"clock", 60, 1}, {"clock", 60, 1},
}; };

View File

@@ -1,6 +1,6 @@
#pragma once #pragma once
#define CLICKABLE_BLOCKS 0 // Enable clickability for blocks #define CLICKABLE_BLOCKS 0 // Enable clickability for blocks
#define CMDLENGTH 45 // Trim block output to this length #define CMDLENGTH 130 // Trim block output to this length
#define DELIMITER " " // Delimiter string used to separate blocks #define DELIMITER " " // Delimiter string used to separate blocks
#define LEADING_DELIMITER 0 // Whether a leading separator should be used #define LEADING_DELIMITER 0 // Whether a leading separator should be used