]> git.friedersdorff.com Git - max/saltfiles.git/blobdiff - states/conky/files/conkyrc
Configure some moar
[max/saltfiles.git] / states / conky / files / conkyrc
index 86d818b3b99d2469b4587f9983a4bb3c88596247..dc051ab80dde8efe652cd2ab6f6697be9b882191 100644 (file)
@@ -5,11 +5,13 @@
 {% elif grains['host'] == 'platinum' %}
        {% set ifdev = ['wlp2s0'] %}
 {% elif grains['host'] == 'barium' %}
-       {% set ifdev = ['enp3s0f1', 'wlp4s0'] %}
+       {% set ifdev = ['enp6s0'] %}
 {% elif grains['host'] == 'dubnium' %}
        {% set ifdev = ['enp4s0'] %}
 {% elif grains['host'] == 'rhenium' %}
        {% set ifdev = ['wlp2s0'] %}
+{% elif grains['host'] == 'baryte' %}
+       {% set ifdev = ['enp0s20f0u4u2c2'] %}
 {% else %}
        {% set ifdev = ['eth0'] %}
 {% endif %}
@@ -32,14 +34,21 @@ conky.config = {
 
 conky.text = [[
 [
-  {"full_text": "Home ${fs_free /home} Free", "color": "\#ffffff"},
-  {"full_text": "Root ${fs_free /root} Free", "color": "\#ffffff"},
-  {"full_text": "Disk r:${diskio_read} w:${diskio_write}", "color": "\#ffffff"},
+  ${if_match "${exec cat ~/.local/share/pomodoro}"!="done"}
+    {"full_text": "Pomodoro: ${exec cat ~/.local/share/pomodoro}", "color": "\#ea0501"},
+  ${endif}
+{% if grains['host'] == 'barium' %}
+  {"full_text": "Tea: ${execi 120 tail -n 1 ~/.local/share/teatimer.log}s", "color": "\#ffffff"},
+{% endif %}
+  {"full_text": "~ ${fs_free /home}", "color": "\#ffffff"},
+  {"full_text": "/ ${fs_free /root}", "color": "\#ffffff"},
+  {"full_text": "IO r:${diskio_read} w:${diskio_write}", "color": "\#ffffff"},
   {"full_text": "CPU ${cpu cpu0}%", "color": "\#ffffff"},
   {% for dev in ifdev %}
+  ${if_match "${addr {{ dev }}}"!="No Address"}
   {
       "full_text": 
-               "d:${downspeed {{ dev }}} u:${upspeed {{ dev }}} ${addr {{ dev }}}", 
+               "{{ dev }} d:${downspeed {{ dev }}} u:${upspeed {{ dev }}} ${addr {{ dev }}}", 
       "color":
         ${if_match "${addr {{ dev }}}"=="No Address"}
           "\#ff0000"
@@ -47,6 +56,7 @@ conky.text = [[
          "\#00ff00"
         ${endif}
   },
+  ${endif}
   {% endfor %}
   ${if_match "${addr tun0}"!="No Address"}
        {"full_text": "VPN", "color": "\#00ff00"},
@@ -60,7 +70,7 @@ conky.text = [[
                "\#ff0000"
          ${endif} 
   },
-{% if grains['host'] == 'platinum' or grains['host'] == 'rhenium' or grains['host'] == 'barium' %}
+{% if grains['host'] in ['platinum', 'rhenium', 'barium', 'baryte'] %}
        {
          "full_text": "BAT ${battery_short} ${battery_time}", 
          "color": 
@@ -71,7 +81,7 @@ conky.text = [[
          ${endif}
        },
 {% endif %}
-  {"full_text": "${time}", "color": "\#ffffff"}
+  {"full_text": "${time %Y-%m-%d %H:%M}", "color": "\#ffffff"}
 ],
 ]];