Xinqi Bao's Git

fixed some small things (update_interval) interferes with get_cpu_usage() and reordered)
[slstatus.git] / config.def.h
1 /* See LICENSE file for copyright and license details. */
2
3 /* alsa sound */
4 static const char soundcard[] = "default";
5 static const char channel[] = "Master";
6
7 /* cpu temperature */
8 static const char tempfile[] = "/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input";
9
10 /* wifi */
11 static const char wificard[] = "wlp3s0";
12
13 /* battery */
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";
16
17 /* time */
18 static const char timeformat[] = "%y-%m-%d %H:%M:%S";
19
20 /* bar update interval in seconds (smallest value = 1) */
21 static unsigned int update_interval = 1;
22
23 /* statusbar
24 Possible arguments:
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