Lots of changes.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user