Xinqi Bao's Git

fixed hostname function and added HOST_NAME_MAX limit
[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 - battery_perc (battery percentage) [argument: battery name]
16 - cpu_perc (cpu usage in percent) [argument: NULL]
17 - datetime (date and time) [argument: format]
18 - disk_perc (disk usage in percent) [argument: mountpoint]
19 - entropy (available entropy) [argument: NULL]
20 - hostname [argument: NULL]
21 - ip (ip address) [argument: interface]
22 - ram_perc (ram usage in percent) [argument: NULL]
23 - temp (temperature in degrees) [argument: temperature file]
24 - vol_perc (alsa volume and mute status in percent) [argument: soundcard]
25 - wifi_perc (wifi signal in percent) [argument: wifi card interface name] */
26 static const struct arg args[] = {
27 /* function format argument */
28 { wifi_perc, "wifi %4s | ", "wlp3s0" },
29 { battery_perc, "bat %4s | ", "BAT0" },
30 { cpu_perc, "cpu %4s ", NULL },
31 { temp, "%3s | ", "/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input" },
32 { ram_perc, "ram %3s | ", NULL },
33 { vol_perc, "vol %4s | ", "default" },
34 { disk_perc, "ssd %3s | ", "/" },
35 { datetime, "%s", "%y-%m-%d %H:%M:%S" },
36 };