Browse Source

cpu load indicator fixed

master
Ivan Polyakov 2 years ago
parent
commit
3c443195d1
  1. 14
      .xinitrc

14
.xinitrc

@ -2,14 +2,12 @@
setxkbmap -option 'grp:alt_shift_toggle' -option 'caps:swapescape' 'dvorak,ru' setxkbmap -option 'grp:alt_shift_toggle' -option 'caps:swapescape' 'dvorak,ru'
while true; do while true; do
XROOTNAME=$(cat <<-END XROOTNAME="RAM: $(free -m | grep '^Mem' | awk '{print $3"MB"}') |"
RAM: $(free -m | grep '^Mem' | awk '{print $3"MB"}') | XROOTNAME="$XROOTNAME CPU: $(mpstat | awk '$13 ~ /[0-9.]+/ { print 100 - $13"%" }') |"
CPU: $(mpstat | awk '$12 ~ /[0-9.]+/ { print 100 - $12"%" }') | XROOTNAME="$XROOTNAME $(date +"%F %R")"
$( date +"%F %R" ) xsetroot -name "$XROOTNAME"
END
) sleep 20s
xsetroot -name "$XROOTNAME"
sleep 20s
done & done &
# Set wallpaper # Set wallpaper

Loading…
Cancel
Save