[dev] Please test dwm master

2011-06-25 Thread garbeam
Hi there,

I'm planning the dwm-5.9 release very shortly, prior to a major
overhaul of the multiscreen handling and the draw.c introduction in
dwm 6.0.

I'd like you to test it and let me know any issues.

Thanks in advance,
--garbeam



Re: [dev] wmii

2011-06-25 Thread Thomas Dahms
2011/6/25 hiro 23h...@googlemail.com:
 Wrong permissions perhaps?
 Other than that I have no idea.

Removing the whole ~/.wmii directory should work at least, using the
system-wide configuration. That will trigger an xmessage asking you
what Modkey you want to use. Answer Mod1 and you should be happy.

-- 
Thomas Dahms



Re: [dev] wmii

2011-06-25 Thread Ruben Gonzalez Arnau

On 25/06/11 11:38, Thomas Dahms wrote:

2011/6/25 hiro23h...@googlemail.com:

Wrong permissions perhaps?
Other than that I have no idea.

Removing the whole ~/.wmii directory should work at least, using the
system-wide configuration. That will trigger an xmessage asking you
what Modkey you want to use. Answer Mod1 and you should be happy.

Well, you only need to have .~/wmii/wmiirc_local file instead of 
~/wmii/wmiirc, since you can override it using wmiirc_local file instead.


~/.wmii/wmiirc_local:
export MODKEY=Mod4
export ALTKEY=Mod1
etc
...

--
r...@sdf.lonestar.org




[dev] Re: The Apollo Display Manager [very long]

2011-06-25 Thread Connor Lane Smith
On 25 June 2011 00:56, Connor Lane Smith c...@lubutu.com wrote:
 allowing the user to quickly alter the text and then hit M-!, running
 all the commands.

Ignore this bit, on second thoughts I think the hold mechanism is
nicer -- it's just as fast, and conceptually simpler.

One question remaining is where we keep the transcript for commands
activated through keybinds. Do we keep a read-only meta-buffer
available for each window, into which you can type only by holding
Meta, and otherwise you have to go to a proper command window? How did
Apollo solve this problem, if at all?

cls



Re: [dev] Experimental editor

2011-06-25 Thread Connor Lane Smith
Progress update. You can edit things, but we don't have the B-tree in
place yet, so I'm mostly working on the peripherals. I'll set up a
repo very soon, though aside from my UTF-8 and display abstraction
library I have little to show, yet.

Here's a little screenshot of the aesthetic I'm going for. There's not
much to see -- that's a feature.

cls
attachment: scrot.png

Re: [dev] The Apollo Display Manager [very long]

2011-06-25 Thread Gregor Best
Thanks a lot for this insightful and very interesting story. It's one of
those (sadly few) jewels that from time to time come across this mailing
list.

-- 
$l=\n;$p=q-sub r{rand}sub c{((shift)**2+(shift)**2)1}while(
$i++=$s){$t++if c r,r}die(Gregor Best, 0xDB9F9A7C, .($t/$s*
4).$l)-;$s+=ord$$|$_ for split //,$p;srand($s|$$);eval$p;die$@


pgpmoq5pSocOo.pgp
Description: PGP signature


Re: [dev] The Apollo Display Manager [very long]

2011-06-25 Thread John Yates
 I have no idea how I've never heard of this,

The adage is that the victors get to write history.  Apollo was a
single company peddling a proprietary technology.  At the time that it
started Unix was offered only to academic institutions.  There was no
way to foresee that the consent decree constraining ATT's activities
would be lifted and that Unix would snowball into a vast community and
ecosystem.

Rich Gabriel had some insightful thoughts on why Unix was so
successful in his Worse is Better essays:

  http://en.wikipedia.org/wiki/Worse_is_better

Apollo engineering was definitely an example of what Gabriel calls the
MIT or The Right Thing approach.


 It would be almost
 trivial to introduce a sane mouse interface to this idea, and then
 build all kinds of applications that lever the separation of streams.

I will be happy to try anything you come up with.

/john



Re: [dev] wmii

2011-06-25 Thread Thomas Dahms
2011/6/25 Thomas Kucharczyk kuc...@googlemail.com:
 This is weird, deleting the wmii dir doesnt seem to cause changes, nor pops
 up a menu
 creating wmiirc_local doesnt solve it
 changing Modkey in /etc/wmii/wmiirc doesnt solve it

Try to start wmii with wmii -r /etc/wmii/wmiirc and change the
Modkey in /etc/wmii/wmiirc.
The -r flag specifies which wmiirc to load; maybe something mixed up
the configuration-path auto magic.

Are any other changes to your config files affecting wmii's behavior?
Try to change some color, for example.

And are you sure you are using wmii 3.9.2 and not hg tip? The hg
version uses /etc/wmii-hg and ~/.wmii-hg as configuration paths.

-- 
Thomas Dahms



[dev] [patch] enternotify: fewer winto{mon,client} calls; small simplification

2011-06-25 Thread Peter Hartlich
diff -r 014df3c34b64 dwm.c
--- a/dwm.c Sat Jun 25 09:07:04 2011 +0100
+++ b/dwm.c Sat Jun 25 22:46:04 2011 +0200
@@ -827,13 +827,14 @@
if((ev-mode != NotifyNormal || ev-detail == NotifyInferior)  
ev-window != root)
return;
c = wintoclient(ev-window);
-   if((m = wintomon(ev-window))  m != selmon) {
+   m = c ? c-mon : wintomon(ev-window);
+   if(m != selmon) {
unfocus(selmon-sel, True);
selmon = m;
}
-   else if(c == selmon-sel || c == NULL)
+   else if(!c || c == selmon-sel)
return;
-   focus((wintoclient(ev-window)));
+   focus(c);
 }
 
 void



Re: [dev] Please test dwm master

2011-06-25 Thread Mikhail Gonchar
On Sat, Jun 25, 2011 at 09:32:24AM +0100, garbeam wrote:
 Hi there,
 
 I'd like you to test it and let me know any issues.

Hello.

dwm hotkeys and mouse buttons doesn't work for me when Num Lock is on.
Patch attached.

My keyboard setup:
  setxkbmap us,ru
  xmodmap -e keysym Caps_Lock = ISO_First_Group ISO_Last_Group
  numlockx on

xmodmap output:
  xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

  shift   Shift_L (0x32),  Shift_R (0x3e)
  lockISO_First_Group (0x42)
  control Control_L (0x25),  Control_R (0x69)
  mod1Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd)
  mod2Num_Lock (0x4d)
  mod3
  mod4Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
  mod5ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)

x86-64 Linux system, X.Org 7.6, evdev, 105 key PC keyboard.

diff -r 014df3c34b64 dwm.c
--- a/dwm.c Sat Jun 25 09:07:28 2011 +0100
+++ b/dwm.c Sun Jun 26 10:22:08 2011 +0600
@@ -42,7 +42,7 @@
 
 /* macros */
 #define BUTTONMASK  (ButtonPressMask|ButtonReleaseMask)
-#define CLEANMASK(mask) (mask  
(ShiftMask|ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask))
+#define CLEANMASK(mask) (mask  ~numlockmask  
(ShiftMask|ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask))
 #define INRECT(X,Y,RX,RY,RW,RH) ((X) = (RX)  (X)  (RX) + (RW)  (Y) = 
(RY)  (Y)  (RY) + (RH))
 #define ISVISIBLE(C)((C-tags  C-mon-tagset[C-mon-seltags]))
 #define LENGTH(X)   (sizeof X / sizeof X[0])