Re: [dwm] Stats script

From: Thayer Williams <thayerw_AT_gmail.com>
Date: Sat, 2 May 2009 22:27:26 -0700

On Sat, May 2, 2009 at 8:30 PM, Jake Todd <jaketodd422_AT_gmail.com> wrote:
> I was wondering what some other dwm users were using for stats like
> memory, temperature, et cetera. Right now I'm using this for
> termperature, memory, wifi, date:

I'm lazy and use conky-cli to do most of the grunt work...my conkyrc
(below) displays the cpu frequency, cpu usage percentiles, battery or
AC status, LAN or WIFI stats depending on which is active, and the
date/time:

~$ cat .conkyrc

background no
out_to_console yes
update_interval 2
total_run_times 0
use_spacer none

TEXT
   ${freq 1}MHz ${cpu cpu1}%/${cpu cpu2}% :: ${if_existing
/sys/class/power_supply/BAT0/present}Bat
${battery_percent}%${else}AC${endif} :: ${if_empty ${exec ifconfig
wlan0 | grep 'inet addr:'}}${upspeed eth0}K ${downspeed
eth0}K${else}${wireless_link_qual_perc wlan0}% ${wireless_essid wlan0}
${upspeed wlan0}K ${downspeed wlan0}K${endif} :: ${time %b %d %H:%M}

...and I combine this with a startdwm script so I can reload dwm
without closing other applications:

$ cat bin/startdwm
#!/bin/sh

# A simple script to start dwm in a while loop which
# allows dwm to be killed without closing programs.
# Usage: killall dwm <-- restarts dwm
# killall startdwm <-- kills session

conky-cli | while read line; do
    xsetroot -name "$line";
done | while true; do dwm > /dev/null; done;
Received on Sun May 03 2009 - 05:27:26 UTC

This archive was generated by hypermail 2.2.0 : Sun May 03 2009 - 05:36:05 UTC