]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Integrate pomodoro timer into conkyrc
authorMaximilian Friedersdorff <max@friedersdorff.com>
Wed, 5 Aug 2020 08:39:57 +0000 (09:39 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Wed, 5 Aug 2020 08:39:57 +0000 (09:39 +0100)
states/conky/files/conkyrc

index 2606323f198de8e1467fb7d035823ceaa90c2fac..8e8fcc115bca963592e99d3bf4e9ac6d19132bcf 100644 (file)
@@ -32,6 +32,9 @@ 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"},
 {% endif %}