Friday, June 14, 2013

Simple System Display Monitor

# LSDM [ Linux System Display Monitor ] Version 1
# LSDM is simple system display information written by Bash script
# Maintainted by Randalltux <randalltux@bnshacker.hol.es>
figlet -f larry3d  Hellcome # Disable this script if Figlet not installed on your pc
echo -e "Os: Crunchbang Waldorf"
echo -e "Kernel: $(uname -r -o -m)"
echo -e "WM: Openbox $(openbox --version | head -1 | cut -d' ' -f2 | sed 's/debian\///g')"
echo -e "Uptime: $(uptime | sed 's/.*up \([^,]*\), .*/\1/')"
gtkrc="$HOME/.gtkrc-2.0"
GtkTheme=$( grep "gtk-theme-name" "$gtkrc" | cut -d\" -f2 )
GtkIcon=$( grep "gtk-icon-theme-name" "$gtkrc" | cut -d\" -f2 )
GtkFont=$( grep "gtk-font-name" "$gtkrc" | cut -d\" -f2 )
echo -e "Gtk Theme: $GtkTheme"
echo -e "Gtk Icons: $GtkIcon"
echo -e "Gtk Fonts: $GtkFont"
laptop2=$(echo "ASSUS K24PJ")
echo -e "My Laptop: $laptop2"
cpu=$( cat /proc/cpuinfo | grep 'model name' | sed -e 's/.*: //' | uniq)
echo -e "CPU: $cpu"
total_mem=$(awk '/MemTotal/ { print $2 }' /proc/meminfo)
totalmem=$((${total_mem}/1024))
free_mem=$(awk '/MemFree/ { print $2 }' /proc/meminfo)
used_mem=$((${total_mem} - ${free_mem}))
usedmem=$((${used_mem}/1024))
echo -e "Memory: ${usedmem}Mb / ${totalmem}Mb"

Fvck for Plagiarsm!


Load disqus comments

0 comments