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' %}
8 {% set ifdev = 'eth0' %}
14 out_to_console = true,
16 update_interval = 0.5,
21 if_up_strictness = 'address',
30 {"full_text": "${new_mails mail_aber/Inbox} new mails", "color": "\#ffa500"},
32 {"full_text": "Home ${fs_free /home} Free", "color": "\#ffffff"},
33 {"full_text": "Root ${fs_free /root} Free", "color": "\#ffffff"},
34 {"full_text": "Disk r:${diskio_read} w:${diskio_write}", "color": "\#ffffff"},
35 {"full_text": "CPU ${cpu cpu0}%", "color": "\#ffffff"},
38 "d:${downspeed {{ ifdev }}} u:${upspeed {{ ifdev }}} ${addr {{ ifdev }}}",
40 ${if_match "${addr {{ ifdev }}}"=="No Address"}
46 ${if_match "${addr tun0}"!="No Address"}
47 {"full_text": "VPN", "color": "\#00ff00"},
50 "full_text": "RAM ${memperc}%",
52 ${if_match ${memperc}<90}
58 {% if grains['host'] == 'platinum' %}
60 "full_text": "BAT ${battery_short} ${battery_time}",
62 ${if_match ${battery_percent}<20}
69 {"full_text": "${time}", "color": "\#ffffff"}