mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Conky - Added initial audio interface state; added headings; added system info section
This commit is contained in:
@@ -17,17 +17,25 @@ conky.config = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
conky.text = [[
|
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}
|
Local: ${alignr}${time %H:%M:%S}
|
||||||
UTC: ${alignr}${tztime UTC %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}
|
CAT : ${execpi 10 et-system-info et-cat}
|
||||||
GPS : ${execpi 10 et-system-info et-gps}
|
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}
|
||||||
]];
|
]];
|
||||||
|
|
||||||
|
|||||||
@@ -2,16 +2,17 @@
|
|||||||
#
|
#
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 6 October 2024
|
# Date : 6 October 2024
|
||||||
# Updated : 20 October 2024
|
# Updated : 21 October 2024
|
||||||
# Purpose : Utility script for dumping system information
|
# Purpose : Utility script for dumping system information
|
||||||
|
|
||||||
function usage() {
|
function usage() {
|
||||||
echo "Usage: $(basename $0) <command>"
|
echo "Usage: $(basename $0) <command>"
|
||||||
echo " active-radio - Display model of active radio"
|
echo " active-radio - Display model of active radio"
|
||||||
echo " et-cat - Is CAT control connected"
|
echo " et-audio - State of audio interface"
|
||||||
echo " et-gps - Is the GPS connected"
|
echo " et-cat - State of CAT control interface"
|
||||||
|
echo " et-gps - State of GPS interface"
|
||||||
echo " ip - System IP address"
|
echo " ip - System IP address"
|
||||||
echo " release - EmComm Tools Release"
|
echo " release - EmComm Tools release"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $# -ne 1 ]; then
|
if [ $# -ne 1 ]; then
|
||||||
@@ -26,6 +27,16 @@ case $1 in
|
|||||||
else
|
else
|
||||||
echo "No radio selected"
|
echo "No radio selected"
|
||||||
fi
|
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)
|
et-cat)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user