You are not logged in.

#1 2008-08-01 00:23:29

Hessiess
Member
Registered: 2008-07-21
Posts: 75

system monitor for awesome

Im currently using awesome, its great except for one thing, there is no system monitor, like gnome-system-monitor for example. though I want something that dosent depend on gnome and displays remainning laptop battery time, aswell as mounted file systems, ram/cpu/network usage and a list of prosesses.

Offline

#2 2008-08-01 11:29:20

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: system monitor for awesome

Have you tried Conky?

Offline

#3 2008-08-01 12:10:55

Mefju
Member
From: Poland
Registered: 2006-07-12
Posts: 104

Re: system monitor for awesome

Maybe htop is what you are looking for.

Offline

#4 2008-08-01 13:15:40

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: system monitor for awesome

Having htop open all the time in tiled mode looks really pretty, but it doesn't do some of the things you want.

Offline

#5 2008-08-03 03:31:36

Ruckus
Member
Registered: 2007-02-17
Posts: 204

Re: system monitor for awesome

I think conky is going to be your best bet.

Offline

#6 2008-08-03 15:11:21

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: system monitor for awesome

awesomeness does some of the things you want. If you are an good Perl hacker you could modify it, to fit your needs.


Arch - It's something refreshing

Offline

#7 2008-08-03 22:41:58

chimpyw
Member
Registered: 2007-02-14
Posts: 21

Re: system monitor for awesome

Lots of things you can use really, but +1 for conky here.
A couple other options though are dzen and amazing although I have never used the latter.

Last edited by chimpyw (2008-08-03 22:42:20)

Offline

#8 2008-08-04 15:04:45

Hessiess
Member
Registered: 2008-07-21
Posts: 75

Re: system monitor for awesome

conky seems about right but the battery monitor dosent work porpaly. when plugged it says 'AC', but when its running on battery it always reports as 'full' insted of a percentage. then when the power is re-connected it always starts charging from 0%.

Offline

#9 2008-08-04 15:25:57

awagner
Member
From: Mainz, Germany
Registered: 2007-08-24
Posts: 191

Re: system monitor for awesome

Here's what I'm using with dwm - probably good for dzen as well:

dwm-mystats.sh

#!/bin/zsh
# vim:ft=zsh ts=4
#
# (c) 2007 by Robert Manea

# Date format as recognized by standard system 'date'
SDATE_FORMAT='%Y-%m-%d %H:%M'

sdate() {
    date +${SDATE_FORMAT}
}

sdfree() {
    print -n `df -h / /home` | awk '{verf1=$11; part1=$13; verf2=$17; part2=$19}; END {print "["part1"] -"verf1"  [~] -"verf2}'
}

smemused() {
    awk '/MemTotal/ {t=$2}; /MemFree/ {f=$2}; END {print t-f " " t}' /proc/meminfo | dbar -w 6 -s '='
}

swapused() {
    awk '/SwapTotal/ {t=$2}; /SwapFree/ {f=$2}; END {print t-f " " t}' /proc/meminfo | dbar -w 6 -s '='
}

sload() {
    print -n ${(@)$(</proc/loadavg)[1,3]}
}

scpu() {
    vmstat | awk '/0/ {print 100-$15}' | dbar -w 6 -s '='
    }

snetabs() {
    local iface
    iface=`ifconfig | grep "Ethernet" | awk '{print $1}'`
    if [ $iface != "" ] ; then 
        print -n "$iface: `mesure -l -i $iface -avK -c 2`||" 
    fi
}

snetbar() {
    mesure -aK -c 2 -l -i `ifconfig | grep "Ethernet" | awk '{print $1}'` | dbar -nonl -w 6 -s '=' -min 0 -max 270
}

sac() {
    case `awk '{print $2}' /proc/acpi/ac_adapter/AC/state` in
    on-line)
        print -n "yep"
        ;;
    *)
        print -n "no"
        ;;
    esac
}

sbatt() {
    local STATE
    STATE=`cat /proc/acpi/battery/BAT0/state /proc/acpi/battery/BAT0/info`
    case `echo $STATE | awk '/present:/{print $2}' - | tail -n 1` in
    no)
        print -n "no"
        ;;
    *)
        echo $STATE | awk '/design capacity:/ {f=$3}; /remaining capacity:/ {r=$3}; END {print 100*r/f"%"}' -
        ;;
    esac
}

sgov() {
    < /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
}

sfreq() {
    awk '{print $1/1000}' /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
}

stemp() {
     awk '{print $2}' /proc/acpi/thermal_zone/THRC/temperature
}

supdates() {
    grep pkg.tar.gz /var/log/updates.log | wc -l
}

# Main
while true; do
    upd=$(supdates)
    if [ $upd = 0 ] ; then
        print " AC: $(sac) | Batt: $(sbatt) || $(sdfree) || CPU:$(scpu) ($(sload)) |  $(sgov) / $(sfreq) MHz -> $(stemp)°  || $(sdate)"
    else
        print " AC: $(sac) | Batt: $(sbatt) || $(sdfree) || CPU:$(scpu) ($(sload)) |  $(sgov) / $(sfreq) MHz -> $(stemp)° || $upd UPD. || $(sdate)"
    fi
# change polling frequency in AC/BATT mode
    case $(sac) in
        yep)
            sleep 8
            ;;
        no)
            sleep 1m
            ;;
    esac
done

You can play around a bit with the functions that get called/displayed in the main loop. It depends on zsh and makes use of this cronjob (in /etc/cron.hourly/pacsync):

#!/bin/dash
pacman -Syup --noprogressbar > /var/log/updates.log

Offline

#10 2008-08-04 21:36:19

nDray
Member
From: Portugal
Registered: 2007-01-21
Posts: 143
Website

Re: system monitor for awesome

I have this little program sending me info to the dwm bar. From the things you listed, it just doesn't show BATTERY usage and a list of processes, that would be harsh...
http://bugflux.org/bugdev/dwmstat/dwmstat.c
Note that some info might not work in your computer because I wrote this to my hardware and configurations...


If you really need to see the list of processes, you should consider something like htop running in a console...

Offline

Board footer

Powered by FluxBB