Skip to content

Commit

Permalink
v1.3
Browse files Browse the repository at this point in the history
fix memory leaks

add support for multiple interfaces

appearance changes
  • Loading branch information
uidops committed Dec 30, 2022
1 parent 7e43ebb commit 2904188
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 100 deletions.
14 changes: 9 additions & 5 deletions config.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#ifndef CONFIG_H
#define CONFIG_H

#define VERSION "v1.0"
#include <X11/Xlib.h>
#include <stdio.h>

#define VERSION "v1.3"

#define ICON ""
#define UNKNOWN ""
Expand All @@ -12,11 +15,12 @@
#define SND_CARD "Master"
#define SND_INDEX 0
#define MEMINFO "/proc/meminfo"
#define TEMP "/sys/class/thermal/thermal_zone2/temp"
#define TEMP "/sys/class/thermal/thermal_zone1/temp"
#define STAT "/proc/stat"
#define IW "wlan0"
#define ET "enp1s0"
static char *vpn_interfaces[] = {"tun0", "proton0", NULL};

static char *IW[] = {"wlp2s0", NULL};
static char *ET[] = {"enp1s0", "enp0s20f0u3", NULL};
static char *VI[] = {"tun0", "proton0", NULL};

struct meminfo {
long long int memtotal;
Expand Down
Loading

0 comments on commit 2904188

Please sign in to comment.