Article 54MAJ Conky Question

Conky Question

by
supusr
from LinuxQuestions.org on (#54MAJ)
I am using Debian (testing), and have a conky config. I would like to add a line to the conky display that shows the firewall (ufw) status (active, inactive). I cannibalized a line from someone else's config that does not work for me on my system:

${if_match "${execi 30 systemctl is-active ufw.service == "active"}} Active${else}Inactive${endif}

It returns the following: Invalid unit name "==" escaped as "\x3d\x3d" (maybe you should use systemd-escape?).
So, it fails to parse the expression.

If any of you conky/bash experts could tell me how to do that I would appreciate it very much. Thanks, in advance.latest?d=yIl2AUoC8zA latest?i=fqX1y6t2BIM:Gd1QUBoGUH0:F7zBnMy latest?i=fqX1y6t2BIM:Gd1QUBoGUH0:V_sGLiP latest?d=qj6IDK7rITs latest?i=fqX1y6t2BIM:Gd1QUBoGUH0:gIN9vFwfqX1y6t2BIM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments