Meminfo and bashrc

This commit is contained in:
Frank Villaro-Dixon 2013-06-04 18:56:56 +02:00
parent d910a3b422
commit 9a8ce89b63
2 changed files with 6 additions and 3 deletions

8
bashrc
View file

@ -84,9 +84,11 @@ alias poule='git pull'
alias makew='make'
alias BSI2='cd ~/Documents/UniGE/BSI2*/'
alias dual='~/Progrmmation/Utils/monitor.sh dual'
alias laptop='~/Progrmmation/Utils/monitor.sh laptop'
alias extern='~/Progrmmation/Utils/monitor.sh extern'
MONITOR_PATH=~/Programmation/Utils/monitor.sh
alias dual='$MONITOR_PATH dual'
alias laptop='$MONITOR_PATH laptop'
alias extern='$MONITOR_PATH extern'
#alias 'make celan'='make clean'

View file

@ -24,6 +24,7 @@ while true; do
DATE=`date +"%F, %H:%M:%S - %s"`
BATT=$( acpi -b | sed 's/.*[charg.|], \([0-9]*\)%.*/\1/gi' )
# STATUS=$( acpi -b | sed 's/.*: \([a-zA-Z]*\),.*/\1/gi' )
MEM=`awk '/MemTotal/ {printf( "%.0fMb", $2 / 1024 )}' /proc/meminfo`
xsetroot -name "$MEM :: $BATT :: $DATE"