-
Notifications
You must be signed in to change notification settings - Fork 0
/
blocks.h
49 lines (42 loc) · 2.26 KB
/
blocks.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* This file is part of dwmblocks2.
* Copyright (C) 2024 Lucas Mior
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef BLOCKS_H
#define BLOCKS_H
#include "dwmblocks2.h"
#include "block_functions.c"
Block blocks[] = {
/* function | command signal environment variable |interval */
{NULL, "block_recording.sh", "DWMBLOCKS2_RECORD", 0},
{NULL, "block_clipboard.sh", "DWMBLOCKS2_CLIPBOARD", 0},
{NULL, "block_volume.sh", "DWMBLOCKS2_VOLUME", 60},
{NULL, "block_microphone.sh", "DWMBLOCKS2_MICROPHONE", 60},
{NULL, "block_bright.sh", "DWMBLOCKS2_BRIGHT", 60},
{NULL, "block_network.sh", "DWMBLOCKS2_NETWORK", 60},
{block_clock, NULL, "DWMBLOCKS2_CLOCK", 1},
{NULL, "block_battery.sh", "DWMBLOCKS2_BATTERY", 60},
{NULL, "block_uptime.sh", "DWMBLOCKS2_UPTIME", 60},
{NULL, "block_ytdlp.sh", "DWMBLOCKS2_YOUTUBE", 60},
{NULL, "block_drives_not.sh", "DWMBLOCKS2_DRIVES0", 60},
{NULL, "block_trafic.sh", "DWMBLOCKS2_TRAFIC", 2},
{NULL, "block_drives_mount.sh", "DWMBLOCKS2_DRIVES1", 60},
{NULL, "block_phone.sh", "DWMBLOCKS2_DRIVES2", 60},
{NULL, "block_written.sh", "DWMBLOCKS2_UPTIME", 10},
{NULL, "block_music.sh", "DWMBLOCKS2_MUSIC", 60},
{NULL, "block_memory.sh", "DWMBLOCKS2_RAM", 60},
{NULL, "block_temperature.sh", "DWMBLOCKS2_CPU", 60},
{NULL, "block_mining.sh", "DWMBLOCKS2_CPU", 10},
{NULL, "block_ip.sh", "DWMBLOCKS2_NETWORK", 60},
{NULL, "block_bluetooth.sh", "DWMBLOCKS2_BLUETOOTH", 60},
};
#endif