Conky - Added initial audio interface state; added headings; added system info section

This commit is contained in:
Gaston Gonzalez
2024-10-21 14:47:45 -07:00
parent de3cd96368
commit 0faa56fd33
2 changed files with 28 additions and 9 deletions
+13 -5
View File
@@ -17,17 +17,25 @@ conky.config = {
};
conky.text = [[
${font DejaVu Sans Mono:size=12}${alignc}${time %A, %B %d %Y}
${font DejaVu Sans:bold:size=10}${color #8d5133}${alignc}DATE/TIME
${font DejaVu Sans Mono:size=11}${color yellow}${alignc}${time %A, %B %d %Y}
Local: ${alignr}${time %H:%M:%S}
UTC: ${alignr}${tztime UTC %H:%M:%S}
Uptime: ${uptime}
IP: ${execpi 60 /opt/emcomm-tools/bin/et-system-info ip}
${font DejaVu Sans:bold:size=10}${color #8d5133}${alignc}SYSTEM
${font DejaVu Sans Mono:size=11}${color yellow}Uptime : ${uptime}
CPU Util : ${cpu}%
Disk Free: ${fs_free /}
Radio: ${execpi 10 et-system-info active-radio}
${font DejaVu Sans:bold:size=10}${color #8d5133}${alignc}NETWORK
${font DejaVu Sans Mono:size=11}${color yellow}IP: ${execpi 60 /opt/emcomm-tools/bin/et-system-info ip}
${font DejaVu Sans:bold:size=10}${color #8d5133}${alignc}INTERFACES
${font DejaVu Sans Mono:size=11}${color yellow}Radio: ${execpi 10 et-system-info active-radio}
CAT : ${execpi 10 et-system-info et-cat}
GPS : ${execpi 10 et-system-info et-gps}
Audio: ${execpi 10 et-system-info et-audio}
${font DejaVu Sans Mono:size=10}${alignc}${execp /opt/emcomm-tools/bin/et-system-info release}
${font DejaVu Sans Mono:size=9}${color #8d5133}${alignc}${execp /opt/emcomm-tools/bin/et-system-info release}
]];
+15 -4
View File
@@ -2,16 +2,17 @@
#
# Author : Gaston Gonzalez
# Date : 6 October 2024
# Updated : 20 October 2024
# Updated : 21 October 2024
# Purpose : Utility script for dumping system information
function usage() {
echo "Usage: $(basename $0) <command>"
echo " active-radio - Display model of active radio"
echo " et-cat - Is CAT control connected"
echo " et-gps - Is the GPS connected"
echo " et-audio - State of audio interface"
echo " et-cat - State of CAT control interface"
echo " et-gps - State of GPS interface"
echo " ip - System IP address"
echo " release - EmComm Tools Release"
echo " release - EmComm Tools release"
}
if [ $# -ne 1 ]; then
@@ -26,6 +27,16 @@ case $1 in
else
echo "No radio selected"
fi
;;
et-audio)
# 1. Check if the symlink was created by the udev rules
if [ -e /dev/et-audio ]; then
echo "Connected"
else
echo "Not connected"
fi
;;
et-cat)