-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.cate.pulse.h
110 lines (100 loc) · 5.41 KB
/
config.cate.pulse.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/* see LICENSE file for copyright and license information. */
/* macro used for creating the 'icon' with dwm color patch vars */
#define icon(str) "" str ""
/* 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
/* volume symbols/text,
* %i is only needed for VOL_STR */
#define VOL_MUTE_STR "mute"
#define VOL_ZERO_STR "0%%"
#define VOL_STR "%i%%"
/* symbols/text for battery status */
#define BATT_CHARGING_STR ""
#define BATT_DISCHARGING_STR ""
#define BATT_FULL_STR ""
#define BATT_UNKNOWN_STR ""
/* profiles for identifying pulse outputs */
#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"
/* icons for displaying active pulse output */
#define PULSE_HEADPHONE_ICON ""
#define PULSE_SPEAKER_ICON ""
#define PULSE_HDMI_ICON ""
/* 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_time [argument: battery name] : time till empty
- 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 */
/* FORMAT */
#define STATUS_FORMAT \
"情報" icon("%s") "%s" /* volume */\
icon("") "%s %s%s" /* battery */\
icon("") "%s %.2s/%.3sGB" /* disk */\
icon("") "%s %s %s %s" /* net */\
icon("") "%s %2s %.5sGB %s %s" /* sys */\
"%s" /* datetime */
/* CONTENT */
#define STATUS_CONTENT \
pulse_profile_icon(), /* volume */\
vol_perc_pulse(),\
battery_time_smapi("BAT0"), /* battery */\
battery_state_smapi("BAT0"),\
battery_perc_smapi("BAT0"),\
disk_io(), /* disk */\
disk_used("/"),\
disk_total("/"),\
ip("wlp3s0"), /* net */\
wifi_perc(),\
net_up("wlp3s0"),\
net_down("wlp3s0"),\
cpu_freq(), /* sys */\
cpu_perc(),\
ram_used(),\
temp("/sys/class/hwmon/hwmon0/temp1_input"),\
fan_ibm(),\
datetime("%F %T") /* datetime */