1 -- vim: ts=4 sw=4 noet ai cindent syntax=lua
3 {% if grains['host'] == 'magnesium' %}
4 {% set ifdev = 'br0' %}
5 {% elif grains['host'] == 'platinum' %}
6 {% set ifdev = 'wlp2s0' %}
7 {% elif grains['host'] == 'barium' %}
8 {% set ifdev = 'enp3s0f1' %}
9 {% elif grains['host'] == 'dubnium' %}
10 {% set ifdev = 'enp4s0' %}
11 {% elif grains['host'] == 'rhenium' %}
12 {% set ifdev = 'wlp2s0' %}
14 {% set ifdev = 'eth0' %}
20 out_to_console = true,
22 update_interval = 0.5,
27 if_up_strictness = 'address',
36 {"full_text": "${new_mails mail_aber/Inbox} new mails", "color": "\#ffa500"},
38 {"full_text": "Home ${fs_free /home} Free", "color": "\#ffffff"},
39 {"full_text": "Root ${fs_free /root} Free", "color": "\#ffffff"},
40 {"full_text": "Disk r:${diskio_read} w:${diskio_write}", "color": "\#ffffff"},
41 {"full_text": "CPU ${cpu cpu0}%", "color": "\#ffffff"},
44 "d:${downspeed {{ ifdev }}} u:${upspeed {{ ifdev }}} ${addr {{ ifdev }}}",
46 ${if_match "${addr {{ ifdev }}}"=="No Address"}
52 ${if_match "${addr tun0}"!="No Address"}
53 {"full_text": "VPN", "color": "\#00ff00"},
56 "full_text": "RAM ${memperc}%",
58 ${if_match ${memperc}<90}
64 {% if grains['host'] == 'platinum' or grains['host'] == 'rhenium' or grains['host'] == 'barium' %}
66 "full_text": "BAT ${battery_short} ${battery_time}",
68 ${if_match ${battery_percent}<20}
75 {"full_text": "${time}", "color": "\#ffffff"}