Meminfo and bashrc
This commit is contained in:
parent
d910a3b422
commit
9a8ce89b63
2 changed files with 6 additions and 3 deletions
8
bashrc
8
bashrc
|
@ -84,9 +84,11 @@ alias poule='git pull'
|
||||||
alias makew='make'
|
alias makew='make'
|
||||||
|
|
||||||
alias BSI2='cd ~/Documents/UniGE/BSI2*/'
|
alias BSI2='cd ~/Documents/UniGE/BSI2*/'
|
||||||
alias dual='~/Progrmmation/Utils/monitor.sh dual'
|
|
||||||
alias laptop='~/Progrmmation/Utils/monitor.sh laptop'
|
MONITOR_PATH=~/Programmation/Utils/monitor.sh
|
||||||
alias extern='~/Progrmmation/Utils/monitor.sh extern'
|
alias dual='$MONITOR_PATH dual'
|
||||||
|
alias laptop='$MONITOR_PATH laptop'
|
||||||
|
alias extern='$MONITOR_PATH extern'
|
||||||
|
|
||||||
#alias 'make celan'='make clean'
|
#alias 'make celan'='make clean'
|
||||||
|
|
||||||
|
|
1
xinitrc
1
xinitrc
|
@ -24,6 +24,7 @@ while true; do
|
||||||
DATE=`date +"%F, %H:%M:%S - %s"`
|
DATE=`date +"%F, %H:%M:%S - %s"`
|
||||||
BATT=$( acpi -b | sed 's/.*[charg.|], \([0-9]*\)%.*/\1/gi' )
|
BATT=$( acpi -b | sed 's/.*[charg.|], \([0-9]*\)%.*/\1/gi' )
|
||||||
# STATUS=$( acpi -b | sed 's/.*: \([a-zA-Z]*\),.*/\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"
|
xsetroot -name "$MEM :: $BATT :: $DATE"
|
||||||
|
|
Loading…
Reference in a new issue