]> git.friedersdorff.com Git - max/saltfiles.git/blobdiff - states/conky/files/conkyrc
Configure some moar
[max/saltfiles.git] / states / conky / files / conkyrc
index 2606323f198de8e1467fb7d035823ceaa90c2fac..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,12 +34,15 @@ conky.config = {
 
 conky.text = [[
 [
+  ${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": "Last Tea: ${execi 120 tail -n 1 ~/.local/share/teatimer.log}s", "color": "\#ffffff"},
+  {"full_text": "Tea: ${execi 120 tail -n 1 ~/.local/share/teatimer.log}s", "color": "\#ffffff"},
 {% endif %}
-  {"full_text": "Home ${fs_free /home}", "color": "\#ffffff"},
-  {"full_text": "Root ${fs_free /root}", "color": "\#ffffff"},
-  {"full_text": "Disk r:${diskio_read} w:${diskio_write}", "color": "\#ffffff"},
+  {"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"}
@@ -65,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":