Re: [dwm] Done Before: dwm stat scripts!

2007-10-02 Thread Szabolcs Nagy
On 10/2/07, Kurt H Maier [EMAIL PROTECTED] wrote: I'm not really happy with calling perl in battery.sh, but bc proved to be enough of a turd that I won't use it. If anyone knows how to cast floats to int in bash let me know. :V can i ask what was wrong with bc? bc is supposed to be simple

Re: [dwm] Done Before: dwm stat scripts!

2007-10-02 Thread Martin Sander
On Mon, Oct 01, 2007 at 06:46:24PM -0500, Kurt H Maier wrote: If anyone knows how to cast floats to int in bash let me know. :V I guess it's not what you're looking for, but zsh can do floating point arithmetic. zshmodules(1): THE ZSH/MATHFUNC MODULE The zsh/mathfunc module provides

Re: [dwm] Done Before: dwm stat scripts!

2007-10-02 Thread Riccardo Murri
On 10/2/07, Kurt H Maier [EMAIL PROTECTED] wrote: If anyone knows how to cast floats to int in bash let me know. :V Not exactly efficient, but it works (pay attention to the spaces is round(), `expr` is especially picky...):: $ floor () { echo $1 | sed -e 's|\.[0-9]\+||'; } $ floor 0.1

Re: [dwm] Done Before: dwm stat scripts!

2007-10-02 Thread Jeremy O'Brien
On Sun, Sep 30, 2007 at 03:42:33AM -0400, T Biehn wrote: Anyone have any other things they put in here? Or perhaps better script coding practices? (I'm just starting out) .xinitrc (dwm section): #***dwm*** if [ $wmchoice = dwm ]; then setdotbackground ~/.xsession

Re: [dwm] Done Before: dwm stat scripts!

2007-10-01 Thread Alpt
On Sun, Sep 30, 2007 at 03:42:33AM -0400, T Biehn: ~ Anyone have any other things they put in here? http://dev.hinezumi.org/svnroot/alpt-wm/fdock.c http://svn.fenilot.org/viewcvs/fdock/ -- :wq! I don't know nothing The One Who reached the Thinking Matter '.' [ Alpt --- Freaknet Medialab ]

Re: [dwm] Done Before: dwm stat scripts!

2007-10-01 Thread Alexandre Boily
.xinitrc: #!/bin/sh fbsetbg -c /home/boily/Images/mallorca.jpg #exec startxfce4 exec dwmwrap -- dwmwrap: #!/bin/bash [ -p /home/boily/.dwm-status ] || mkfifo /home/boily/.dwm-status dwm /home/boily/.dwm-status sleep 0.2 ruby /usr/local/bin/ligne.rb -- ligne.rb:

[dwm] Done Before: dwm stat scripts!

2007-09-30 Thread T Biehn
I spent a few hours cobbling this bad boy together (On a Flight and Elsewhere) You'd need to tweak where it grabs battery life from or remove it entirely, the part I really like is the connected network interfaces script, which could be extended to display stuff like rx and tx bytes (from