Re: [dwm] bold in status text

From: Alexander Polakov <polachok_AT_narod.ru>
Date: Thu, 24 Aug 2006 12:12:09 +0400

On Wed, 23 Aug 2006 23:29:41 -0500
"Kurt Maier" <karmaflux_AT_gmail.com> wrote:

> I've attached my .conkyrc file. I've also attached the helper script
> that gets the essid of the wifi connection. Basically, the status
> bar reads from left to right:
>
> time
> cpu speed in gigahertz
> cpu temperature in centigrade
> ram percentage used
> swap percentage used
> wifi (eth0) essid (reads 'off' if none)
> wifi connection strength
> eth0 ip address
> battery status
>
> Hope they help you get started on your own perfect configuration.
>
> Rather than xosd or libnotify, both of which I've used in the past,
> it's my intention to write a small program that displays a message in
> the upper-right corner of the screen. I've already hacked dmenu to do
> it, but it's not a pretty hack. Unfortunately, my job in the Army
> doesn't give me much free time to work on it, but it's a thought you
> might keep in mind when looking for multi-tag notification.
>
> Currently, I just use xmessage.
>
> Kurt
>
Is conky resource-friendly? I use some lines in shell to get my bar like in attachment.
while true
do
  for IF in ppp0 eth0 ath0
  do
    IFS="`/sbin/ifconfig "$IF" | grep inet | cut -f 2 -d ':'|cut -f 1 -d ' '`"
    if [ "$IFS" != "" ]
      then
         echo "$IF: $IFS" | osd_cat -p bottom -A right -o -45 -f "-artwiz-snap-*-*-*-*-11-*-*-*-*-*-koi8-r" -d 5 -c orange &
    fi
  done
 echo "MPD: [`mpc | sed -n '2s/\[\(.*\)\].*/\1/;2s/playing/p/p;2s/paused/s/p;2s/stopped/t/p'`] `mpc | sed -n '1p'` `mpc | sed -n '2s/.*\]//p'|cut -d ' ' -f 2,6` | bat0: $(eval echo `grep remain /proc/acpi/battery/BAT0/state|cut -d ' ' -f 8`*100/4423 | bc) cpu0: `echo $(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq)/1000 | bc` | `date` `uptime | sed 's/.*://; s/,//g'`"
sleep 2
done | dwm

status.png
Received on Thu Aug 24 2006 - 10:13:47 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:30:25 UTC