Re: [dwm] Basic dwm usage question

From: James Turner <james_AT_bsdgroup.org>
Date: Wed, 6 Jun 2007 18:19:54 -0400

Alright, after browsing the archive I was able to whip up a working
solution. In my .xinitrc I have:

[ -p .dwm-status ] || mkfifo $HOME/.dwm-status
$HOME/.dwm.in &
exec dwm <> $HOME/.dwm-status

In .dmw.in I have:

#!/bin/sh

while true
do
echo "[ B: `/usr/sbin/apm -l`% T: `/sbin/sysctl hw.sensors.aps0.temp0 \
| sed 's/hw.sensors.aps0.temp0=//g' | sed 's/.00//g' | awk '{print \
$1}'`C ] [ `uptime | perl -e '<> =~ \
/\s+([0-9.]+),\s+([0-9.]+),\s+([0-9.]+)/;print qq[$1, $2, $3];'` ] [ \
`date "+%m/%d/%y %H:%M"` ]" > ~/.dwm-status
  sleep 60
done

I'm now able to use alt+shift+q and dwm and the xsession exits like I
would expect!

-- 
James Turner
BSD Group Consulting
http://www.bsdgroup.org
Received on Thu Jun 07 2007 - 00:20:28 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:44:01 UTC