]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Display teatimer in conky
authorMaximilian Friedersdorff <max@friedersdorff.com>
Mon, 8 Jun 2020 15:14:46 +0000 (16:14 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Mon, 8 Jun 2020 15:14:46 +0000 (16:14 +0100)
states/conky/files/conkyrc

index 86d818b3b99d2469b4587f9983a4bb3c88596247..1d20e7aed9a1857cdffc69c0fcecc0b3c6cb79a4 100644 (file)
@@ -32,6 +32,9 @@ conky.config = {
 
 conky.text = [[
 [
+{% if grains['host'] == 'barium' %}
+  {"full_text": "Last Tea: ${execi 120 tail -n 1 ~/.local/share/teatimer.log}s", "color": "\#ffffff"},
+{% endif %}
   {"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"},