-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.def.h
79 lines (73 loc) · 4.32 KB
/
config.def.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/* see LICENSE file for copyright and license information. */
/* text to show if no value can be retrieved */
#define UNKNOWN_STR "n/a"
/* this is needed to enable anything pulse */
#define PULSE
#define SINK_INDEX 0
#define SOURCE_INDEX 1
#define PULSE_HEADPHONE_STR "alsa_output.pci-0000_00_1b.0.analog-stereo"
#define PULSE_SPEAKER_STR "alsa_output.pci-0000_00_1b.0.analog-surround-40"
#define PULSE_HDMI_STR "alsa_output.pci-0000_00_1b.0.hdmi-stereo"
#define PULSE_HEADPHONE_ICON "H"
#define PULSE_SPEAKER_ICON "S"
#define PULSE_HDMI_ICON "M"
/* volume symbols/text,
* %i is only needed for VOL_STR */
#define VOL_MUTE_STR "muted"
#define VOL_ZERO_STR "0%%"
#define VOL_STR "%d%%"
/* symbols/text for battery status */
#define BATT_CHARGING_STR "+"
#define BATT_DISCHARGING_STR "-"
#define BATT_FULL_STR "="
#define BATT_UNKNOWN_STR "?"
/* available functions
- battery_perc [argument: battery name] : battery percentage
- battery_perc_smapi [argument: battery name] : battery percentage, uses smapi
- battery_state [argument: battery name] : battery charging state
- battery_state_smapi [argument: battery name] : battery charging state, uses smapi
- battery_time_smapi [argument: battery name] : time till full/empty, uses smapi
- cpu_freq [argument: none] : cpu frequency in MHz
- cpu_perc [argument: none] : cpu usage in percent
- datetime [argument: format] : date/time (for help 'man strftime')
- disk_free [argument: mountpoint] : free disk space in GB
- disk_io [argument: none] : active number of I/O operations
- disk_perc [argument: mountpoint] : disk usage in percent
- disk_total [argument: mountpoint] : total disk space in GB
- disk_used [argument: mountpoint] : used disk space in GB
- entropy [argument: none] : available entropy
- fan_ibm [argument: none] : fan speed in rpm
- gid [argument: none] : gid of current user
- hostname [argument: none] : machine hostname
- ip [argument: interface] : ip address
- load_avg [argument: none] : load average
- net_down [argument: network card interface] : current download in B/s|KB/s|MB/s
- net_up [argument: network card interface] : current upload in B/s|KB/s|MB/s
- ram_free [argument: none] : free ram in GB
- ram_perc [argument: none] : ram usage in percent
- ram_total [argument: none] : total ram in GB
- ram_used [argument: none] : used ram in GB
- run_command [argument: command] : run custom shell command
- swap_free [argument: none] : free swap in GB
- swap_perc [argument: none] : swap usage in percent
- swap_total [argument: none] : total swap in GB
- swap_used [argument: none] : used swap in GB
- temp [argument: temperature file] : temperature in celsius
- uid [argument: none] : uid of current user
- uptime [argument: none] : uptime
- username [argument: none] : username of current user
- vol_perc_alsa [argument: soundcard] : alsa volume and mute status in percent
- vol_perc_pulse [argument: none] : pulse volume and mute status in percent
- micvol_perc_pulse [argument: none] : pulse mic volume and mute status in percent
- pulse_profile [argument: none] : profile of pulse volume being displayed,
only while vol_perc_pulse is in use
- pulse_profile_icon [argument: none] : same as pulse_profile but use predefined
icons instead of full name| see defs above
- wifi_essid [argument: wifi card interface] : wifi essid
- wifi_perc [argument: none] : wifi signal in percent */
#define STATUS_FORMAT "vol: %s[%s] bat: %s[%s] wifi: %s[%s] | %s"
#define STATUS_CONTENT \
pulse_profile(), vol_perc_pulse(), \
battery_perc("BAT0"), battery_state("BAT0"), \
wifi_essid("wlp3s0"), wifi_perc(),\
datetime("%x %X")