I am using the following command to get a readout of my motherboards UEFI:
inxi -Mxx | awk '/UEFI:/ {uefi=$NF; getline; print uefi, $1, $2, $3, $4}'
It works perfectly in terminal, and I created a polkit for inxi so conky could launch it as root:
org.logan.inxi.policy
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<policyconfig>
<vendor>The Logan Project</vendor>
<vendor_url>http://www.logan.org/</vendor_url>
<icon_name>inxi</icon_name>
<action id="org.logan.inxi">
<description gettext-domain="inxi">Run inxi as root</description>
<message gettext-domain="inxi">Authentication is NOT required to run inxi as root</message>
<defaults>
<allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/inxi</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">false</annotate>
</action>
</policyconfig>
In conky I am using the same command prefix that is in place for performing lshw commands:
${exec pkexec inxi -Mxx | awk '/UEFI:/ {uefi=$NF; getline; print uefi, $1, $2, $3, $4}'}
taken from the example
${exec pkexec lshw -class system | grep -A 1 "description" | awk -F": " '{print $2}' | head -n 1}
I have rebooted my computer and I have done a chmod +x on the .policy file, I don't know if that is of any relevance with a .policy file but it seemed a reasonable troubleshooting step.
Can anyone help me get conky performing this command?
Thank you for reading,
Logan