Lots of changes.

This commit is contained in:
2014-09-30 19:55:51 +02:00
parent 2f42d54327
commit b323c66209
17 changed files with 229 additions and 181 deletions

View File

@@ -53,12 +53,12 @@ conky() {
if threshold2 ; then
if [[ ! -f "$PATH_WARN_2" ]] ; then
echo > "$PATH_WARN_2"
notify-send --icon dialog-warning "Battery below ${THRESHOLD2}%"
notify-send --icon dialog-warning "Battery below ${THRESHOLD2}%" --expire-time 0
fi
elif threshold1 ; then
if [[ ! -f "$PATH_WARN_1" ]] ; then
echo > "$PATH_WARN_1"
notify-send --icon dialog-warning "Battery below ${THRESHOLD1}%"
notify-send --icon dialog-warning "Battery below ${THRESHOLD1}%" --expire-time 30000
fi
fi
fi

View File

@@ -22,7 +22,7 @@ echo "MEM:"
echo "${memused}MB / ${memtotal}MB ($(( $memused * 100 / $memtotal ))%) used"
echo ""
echo "PROCS:"
(echo "x x cpu% mem% x x x x x x command" ; ps aux | sort -nrk 3 | tr -s " " | cut -d " " -f -11 | uniq -uf 10 | head -10) | cut -d " " -f 3,4,11 | column -t
(echo "x x CPU% MEM% x x x x x x COMMAND" ; ps aux | grep -v '^USER' | sort -nrk 3 | tr -s " " | cut -d " " -f -11 | uniq -uf 10 | head -10) | cut -d " " -f 3,4,11 | column -t
echo ""
echo "STORAGE:"
df -hT --type=btrfs --type=ext4 --total