Xinqi Bao's Git
1 /* See LICENSE file for copyright and license details. */
4 static const char soundcard
[] = "default";
5 static const char channel
[] = "Master";
8 static const char tempfile
[] = "/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input";
11 static const char wificard
[] = "wlp3s0";
14 static const char batterynowfile
[] = "/sys/class/power_supply/BAT0/energy_now";
15 static const char batteryfullfile
[] = "/sys/class/power_supply/BAT0/energy_full_design";
18 static const char timeformat
[] = "%y-%m-%d %H:%M:%S";
20 /* bar update interval in seconds */
21 static unsigned int update_interval
= 10;
25 - battery (battery percentage)
26 - cpu_temperature (cpu temperature in degrees)
27 - cpu usage (cpu usage in percent)
28 - datetime (date and time)
29 - ram_usage (ram usage in percent)
30 - volume (alsa volume and mute status in percent)
31 - wifi_signal (wifi signal in percent) */
32 #define FORMATSTRING "wifi %4s | bat %4s | cpu %4s %3s | ram %3s | vol %4s | %3s"
33 #define ARGUMENTS wifi_signal, battery, cpu_usage, cpu_temperature, ram_usage, volume, datetime