diff --git a/bashrc b/bashrc index e587695..d056182 100644 --- a/bashrc +++ b/bashrc @@ -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' diff --git a/xinitrc b/xinitrc index 05ad071..6ba8356 100644 --- a/xinitrc +++ b/xinitrc @@ -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"