Re: Using dzen, ratpoison, freebsd

Rob Paisley <paisley-fBzVes0d2/ZWk0Htik3J/[email protected]>
Newsgroups gmane.comp.window-managers.ratpoison.devel
Message-ID <[email protected]>
Dirk Arlt:

I'm not sure what your question is here.  Why aren't you satisfied
with your two scripts here?

One thing I noticed is there is no sleep in your loop(s) so the
shell spins and updates your stats probably a lot more often than you
care about.  Consider adding at least a "sleep 1" to your loop(s).

Rob

On Mon, May 18, 2009 at 11:54:30PM +0200, Dirk Arlt wrote:
> Hi all you nice people!
> 
> I work on using dzen with ratpoison but most scripts i find via Google
> are done for xmonad. I'd love to see some scripts working using rp with
> fbsd.
> 
> For now i have two simple ones, working but not satisfying:
> 
> -----------------------------------------------------------------
> leftbar:
> -----------------------------------------------------------------
> 
> #!/bin/sh
> 
> XPOS=0
> WIDTH=830
> HEIGHT=16
> FONT="-*-fixed-*-*-*-*-12-*-*-*-*-*-*-*"
> FG="#959595"
> BG="#000000"
> 
> GREEN="^fg(#aece92)^bg()"
> YELLOW="^fg(#968a38)^bg()"
> RED="^fg(#bc8383)^bg()"
> WHITE="^fg(#ffffff)^bg()"
> 
> CLEAN="^fg()^bg()"
> 
> while true; do
> 
> BATTERYLINE=$(echo "Batt: $GREEN`sysctl -n hw.acpi.battery.life`%$CLEAN")
> CPULINE=$(echo "CPU: $RED`sysctl -n dev.cpu.0.freq`$CLEAN")
> TEMPLINE=$(echo "Temp: $WHITE`sysctl -n hw.acpi.thermal.tz0.temperature`$CLEAN")
> 
> echo "$BATTERYLINE | $CPULINE | $TEMPLINE"
> 
> done | dzen2 -h $HEIGHT -ta l -x $XPOS -w $WIDTH -h 14 -fg $FG -bg $BG -fn $FONT
> 
> 
> -----------------------------------------------------------------
> rightbar:
> -----------------------------------------------------------------
> 
> #!/bin/sh
> 
> XPOS=830
> WIDTH=450
> HEIGHT=16
> FONT="-*-fixed-*-*-*-*-12-*-*-*-*-*-*-*"
> FG="#959595"
> BG="#000000"
> 
> GREEN="^fg(#aece92)^bg()"
> YELLOW="^fg(#968a38)^bg()"
> RED="^fg(#bc8383)^bg()"
> WHITE="^fg(#ffffff)^bg()"
> 
> CLEAN="^fg()^bg()"
> 
> while true; do
> 
> DATELINE=$(echo "`date +%d-%B-%Y` $WHITE`date +%H:%M:%S`$CLEAN")
> 
> echo "$DATELINE"
> 
> done | dzen2 -h $HEIGHT -ta r -x $XPOS -w $WIDTH -h 14 -fg $FG -bg $BG -fn $FONT
> 
> 
> -----------------------------------------------------------------
> in .ratpoisonrc:
> -----------------------------------------------------------------
> 
> exec ratpoison -c "set padding 0 14 0 0" -c "exec ~/.ratpoison/ratpoison.dzen.leftbar" -c "exec ~/.ratpoison/ratpoison.dzen.rightbar"
> 
> 
> _______________________________________________
> Ratpoison-devel mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/ratpoison-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.