Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
scrotwm_es.conf keyboard_mapping file for the Spanish keyboard layout
[spectrwm.git]
/
baraction.sh
diff --git
a/baraction.sh
b/baraction.sh
index
1248080
..
c3ac272
100644
(file)
--- a/
baraction.sh
+++ b/
baraction.sh
@@
-1,6
+1,5
@@
#!/bin/sh
#
#!/bin/sh
#
-# $scrotwm$
print_date() {
# The date is printed to the status bar by default.
print_date() {
# The date is printed to the status bar by default.
@@
-12,13
+11,13
@@
print_date() {
}
print_mem() {
}
print_mem() {
- MEM=`/usr/bin/top | grep Free: | cut -d " " -f7`
+ MEM=`/usr/bin/top | grep Free: | cut -d " " -f6`
echo -n "Free mem: $MEM "
}
_print_cpu() {
typeset -R4 _1=${1} _2=${2} _3=${3} _4=${4} _5=${5}
echo -n "Free mem: $MEM "
}
_print_cpu() {
typeset -R4 _1=${1} _2=${2} _3=${3} _4=${4} _5=${5}
- echo -n "CPU:${_1}% User${_2}% Nice${_3}% Sys${_4}% Int${_5}% Idle "
+ echo -n "CPU:${_1}% User${_2}% Nice${_3}% Sys${_4}% Int${_5}% Idle "
}
print_cpu() {
}
print_cpu() {
@@
-78,7
+77,7
@@
print_apm() {
print_cpuspeed() {
CPU_SPEED=`/sbin/sysctl hw.cpuspeed | cut -d "=" -f2`
print_cpuspeed() {
CPU_SPEED=`/sbin/sysctl hw.cpuspeed | cut -d "=" -f2`
- echo -n " CPU speed: $CPU_SPEED MHz"
+ echo -n "CPU speed: $CPU_SPEED MHz "
}
while :; do
}
while :; do
@@
-95,10
+94,10
@@
while :; do
fi
if [ $I -gt 2 ]; then
# print_date
fi
if [ $I -gt 2 ]; then
# print_date
- # print_mem $MEM
+ print_mem $MEM
print_cpu $REPLY
print_cpu $REPLY
- print_apm $APM_DATA
print_cpuspeed
print_cpuspeed
+ print_apm $APM_DATA
echo ""
fi
I=$(( ${I} + 1 ));
echo ""
fi
I=$(( ${I} + 1 ));