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.


${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.