Xinqi Bao's Git

completely new system: only values in config file get updated + cleaner code
[slstatus.git] / config.def.h
1 /* See LICENSE file for copyright and license details. */
2
3 /* alsa sound */
4 static const char channel[] = "Master";
5
6 /* battery */
7 static const char batterypath[] = "/sys/class/power_supply/";
8 static const char batterynow[] = "energy_now";
9 static const char batteryfull[] = "energy_full_design";
10
11 /* bar update interval in seconds (smallest value = 1) */
12 static unsigned int update_interval = 1;
13
14 /* statusbar
15 - get_battery (battery percentage) [argument: battery name]
16 - cpu_temperature (cpu temperature in degrees) [argument: temperature file]
17 - cpu usage (cpu usage in percent)
18 - datetime (date and time) [argument: format]
19 - diskusage (disk usage in percent) [argument: mountpoint]
20 - ram_usage (ram usage in percent)
21 - volume (alsa volume and mute status in percent) [argument: soundcard]
22 - wifi_signal (wifi signal in percent) [argument: wifi card interface name] */
23 static const struct arg args[] = {
24 /* function format argument */
25 { get_wifi_signal, "wifi %4s | ", "wlp3s0" },
26 { get_battery, "bat %4s | ", "BAT0" },
27 { get_cpu_usage, "cpu %4s ", NULL },
28 { get_cpu_temperature, "%3s | ", "/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input" },
29 { get_ram_usage, "ram %3s | ", NULL },
30 { get_volume, "vol %4s | ", "default" },
31 { get_diskusage, "ssd %3s | ", "/" },
32 { get_datetime, "%s", "%y-%m-%d %H:%M:%S" }
33 };