Re: [dwm] Window management ideas

2007-12-13 Thread Riccardo Murri
window is raised and obscures other ones - I have been too lazy to hunt down for this bug and coded a `show()` command instead, which brings the currently selected windows on top of the visibility stack. * Floating windows are not always kept on top; I make such little use of

Re: [dwm] [PATCH] replacing "#define ISTILE" by "Bool istile"

2007-10-27 Thread Riccardo Murri
al) and adds extra complexity just to avoid the chance of defining a layout with the `proceed`-function not matching the `arrange` one. Not sure it's worth the effort. Riccardo P.S. I think `supports()` would be a better name than `proceed()`. -- Riccardo Murri, via Galeazzo Alessi 61, 00176 Roma http://chargen.blogspot.com/

Re: [dwm] [dzen] strange behavior when using a C program

2007-10-17 Thread Riccardo Murri
On 10/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I wrote a shell script test.sh : > > while true > do > printf "test\n" > sleep 1 > done > > Then I wrote a C program test.c that does exactly the same : > > test.c > int main(void) > { > while(1) > { > printf ("test\n"); > sleep(1);

Re: [dwm] key bindings / french layout

2007-10-09 Thread Riccardo Murri
On 10/9/07, Xavier <[EMAIL PROTECTED]> wrote: > On Tue, Oct 09, 2007 at 08:09:45PM +0200, Marek Bernat wrote: > > Good way is to start with your default plain keymay ("us" usually, but I use > > "usdvorak") and map (RAlt + $letter) to an accented $letter. I think it's > > much better than any other

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

2007-10-02 Thread Riccardo Murri
On 10/2/07, Enno Gottox Boland <[EMAIL PROTECTED]> wrote: > > ...but it works... > It calculates as well as Excel :) Oops! Still, it's faster :-) > ceil n.0 gives n+1 > e.g. ceil 0.0 gives 1 > if your system has /usr/bin/printf (not the bash builtin):: $ ceil () { /usr/bin/printf '%.0f'

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

Re: [dwm] Proper way of monitoring battery level in DWM

2007-09-16 Thread Riccardo Murri
On 9/16/07, Amit <[EMAIL PROTECTED]> wrote: > Actually right now, I am using apm. I am not sure if acpi is supported > on my notebook. This is an old PowerBook G4 500MHz. I will try > modifying the scripts to use apm instead of acpi. > If it's a PowerBook G4, then it's using PMU, not ACPI nor APM.

Re: [dwm] column layout revival?

2007-09-04 Thread Riccardo Murri
On 9/4/07, Antoni Grzymala <[EMAIL PROTECTED]> wrote: > Tako rzecze Alexander Polakov (w e-mailu datowanym 2007-09-04, 20:07): > > > > For simplicity reasons I won't like to see any layout modes > > > (they won't work anyways with decor-less windows). > > > > > > So what do you think about this ide

[dwm] OT: software follows the inverse of Moore's law

2007-06-05 Thread Riccardo Murri
Hi, readers of this list might find the following link a good argument in favor of "suckless" software :-) http://hubpages.com/hub/_86_Mac_Plus_Vs_07_AMD_DualCore_You_Wont_Believe_Who_Wins cheers, Riccardo

Re: [dwm] place floating windows at cardinal points

2007-05-10 Thread Riccardo Murri
0 @@ -0,0 +1,56 @@ +/* Author: Riccardo Murri <[EMAIL PROTECTED]> + * See LICENSE file for license details. */ +#include "dwm.h" +#include + + +typedef enum {Top=0, Middle=1, Bottom=2} vertical_placement_t; +typedef enum {Left=0, Center=1, Right=2} horizontal_placement_

Re: [dwm] "pile" layout for dwm-4.0

2007-05-10 Thread Riccardo Murri
On 5/9/07, paul liljenberg <[EMAIL PROTECTED]> wrote: any screenshots? here you are: http://linuxhelp.uniroma1.it/~rmurri/dwm/pilebottom.png http://linuxhelp.uniroma1.it/~rmurri/dwm/piletop.png cheers, Riccardo

[dwm] place floating windows at cardinal points

2007-05-09 Thread Riccardo Murri
ly open. (I understand that one can already do this with tag+spawn, but I find the one-key solution more comfortable.) Ciao, Riccardo === added file 'place.c' --- place.c 1970-01-01 00:00:00 + +++ place.c 2007-05-08 20:49:13 + @@ -0,0 +1,54 @@ +/* © 2006-2007 Ricca

[dwm] "pile" layout for dwm-4.0

2007-05-09 Thread Riccardo Murri
Hello, I'm switching from larswm to dwm and I made an attempt at porting the features I use most. So, here's the "pile" layout, which is a tiled layout where the tiles are not resized to fit in screen - windows are just moved to the right and stacked like a pile of cards. There's an option to c