Conky - Initial support for presenting system info

This commit is contained in:
Gaston Gonzalez
2024-10-06 08:14:59 -07:00
parent e2fb41c06c
commit 212f916659
5 changed files with 91 additions and 1 deletions
@@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Exec=conky
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Conky
Comment=Start Conky on login
+31
View File
@@ -0,0 +1,31 @@
conky.config = {
alignment = 'top_right',
update_interval = 2.0,
double_buffer = true,
background = false,
use_xft = true,
font = 'DejaVu Sans Mono:size=10',
own_window = true,
own_window_type = 'desktop',
own_window_transparent = true,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
draw_borders = false,
draw_outline = false,
draw_shades = false,
default_color = 'yellow',
minimum_width = 200,
};
conky.text = [[
${font DejaVu Sans Mono:size=12}${alignc}${time %A, %B %d %Y}
Local: ${alignr}${time %H:%M:%S}
UTC: ${alignr}${tztime UTC %H:%M:%S}
Uptime: ${uptime}
IP: ${execpi 3600 /opt/emcomm-tools/bin/et-system-info ip}
${execp /opt/emcomm-tools/bin/et-system-info release}
CAT: ${execpi 15 /opt/emcomm-tools/bin/et-system-info et-cat}
GPS: ${execpi 15 /opt/emcomm-tools/bin/et-system-info et-gps}
]];
+38
View File
@@ -0,0 +1,38 @@
#!/bin/bash
#
# Author : Gaston Gonzalez
# Date : 6 October 2024
# Purpose : Utility script for dumping system information
function usage() {
echo "Usage: $(basename $0) <command>"
echo " et-cat - Is CAT control connected"
echo " et-gps - Is the GPS connected"
echo " ip - System IP address"
echo " release - EmComm Tools Release"
}
if [ $# -ne 1 ]; then
usage
exit 1
fi
case $1 in
et-cat)
if [ -e /dev/et-cat ]; then echo "Yes"; else echo "No"; fi
;;
et-gps)
if [ -e /dev/et-gps ]; then echo "Yes"; else echo "No"; fi
;;
ip)
hostname -I
;;
release)
grep DISTRIB_DESCRIPTION /etc/lsb-release | sed 's|"||g' | awk '{print $1}' | cut -d"=" -f2
;;
*)
echo "Command not supported."
usage
exit 1
;;
esac
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
#
# Author : Gaston Gonzalez
# Date : 5 October 2022
# Purpose : Install Conky
set -e
et-log "Installing Conky..."
apt install \
conky\
-y
+3 -1
View File
@@ -2,7 +2,7 @@
# #
# Author : Gaston Gonzalez # Author : Gaston Gonzalez
# Date : 16 March 2024 # Date : 16 March 2024
# Updated : 1 October 2024 # Updated : 6 October 2024
# Purpose : Main installer for EmComm Tools OS Community # Purpose : Main installer for EmComm Tools OS Community
. ./env.sh . ./env.sh
@@ -30,3 +30,5 @@ exitIfNotRoot
./install-udev.sh ./install-udev.sh
./install-gps.sh ./install-gps.sh
./install-navit.sh ./install-navit.sh
./install-conky.sh