This commit is contained in:
sankalp committed 2024-06-29 23:54:25 +05:45
1 parent 8fd6dc4221
commit 3e0f2abb9a
12 files changed
+179 -57

No files matched your search

+12
View File
@@ -29,6 +29,14 @@ get_kernel() {
uname -r
}
get_gpu() {
lshw -C display | grep "product" | awk -F ': ' '{print $2}'
}
get_hostname() {
cat /etc/hostname
}
if [[ "$1" == "--cpu-usage" ]]; then
get_cpu_usage
elif [[ "$1" == "--ram-usage" ]]; then
@@ -45,4 +53,8 @@ if [[ "$1" == "--cpu-usage" ]]; then
get_ram
elif [[ "$1" == "--kernel" ]]; then
get_kernel
elif [[ "$1" == "--gpu-name" ]]; then
get_gpu
elif [[ "$1" == "--hostname" ]]; then
get_hostname
fi