Re: [dwm] bloq may used to ignore keybindings

2008-04-28 Thread Kalle Svensson

On Sun, Apr 27, 2008 at 04:30:24PM +0200, =?ISO-8859-1?Q?Asbj=F8rn_Clemmensen_ 
wrote:
  Maybe the gnome-settings-daemon (which is also exexuted in my .xinitrc) 
  owerwrites this?
 
 It does seem pretty likely that Gnome messes with it.

Yes. I can confirm that this was the case, I don't know why I did'nt
try this in the first place.

Now I just have to find out how to make the gnome-settings-daemon to
load my .xmodmap. I remember a dialog asking about this the first
login when I first created ~/.xmodmap but I turned it down.

 Sincerely,
 
 - Asbjørn

Regards,
KSV



Re: [dwm] bloq may used to ignore keybindings

2008-04-27 Thread Asbjørn Clemmensen
On Sat, Apr 26, 2008 at 09:52:54AM +0200, Kalle Svensson wrote:
 
 On Thu, Apr 24, 2008 at 08:37:23AM +0200, markus schnalke wrote:
  tutorial for X
  (uses `xmodmap' which is in package xbase-clients on Debian systems)
  
  in the .xinitrc:
/usr/bin/xmodmap $HOME/.xmodmaprc
  
  in .xmodmaprc
! have CAPS_LOCK as second ESC
remove Lock = Caps_Lock
keysym Caps_Lock = Escape 
 
 This does, for some reason, not work for me.
 
 When the X session starts the  xmodmap rules have not been applied, though 
 when manually executed they work fine.

I was experiencing a similar problem. Showed up that when using setxkbmap to
change keyboard layout, all xmodmap settings were removed. As I use xbindkeys
to launch setxkbmap, I just added ; xmodmap ~/.xmodmaprc after setxkbmap.

 Maybe the gnome-settings-daemon (which is also exexuted in my .xinitrc) 
 owerwrites this?

It does seem pretty likely that Gnome messes with it.

 Regards,
   KSV
 

Sincerely,

- Asbjørn



Re: [dwm] bloq may used to ignore keybindings

2008-04-26 Thread Kalle Svensson

On Thu, Apr 24, 2008 at 08:37:23AM +0200, markus schnalke wrote:
 tutorial for X
 (uses `xmodmap' which is in package xbase-clients on Debian systems)
 
 in the .xinitrc:
   /usr/bin/xmodmap $HOME/.xmodmaprc
 
 in .xmodmaprc
   ! have CAPS_LOCK as second ESC
   remove Lock = Caps_Lock
   keysym Caps_Lock = Escape 

This does, for some reason, not work for me.

When the X session starts the  xmodmap rules have not been applied, though when 
manually executed they work fine.

Maybe the gnome-settings-daemon (which is also exexuted in my .xinitrc) 
owerwrites this?

Regards,
KSV



Re: [dwm] bloq may used to ignore keybindings

2008-04-24 Thread markus schnalke
Antoni Grzymala [EMAIL PROTECTED] wrote:
 Martin Sander dixit (2008-04-24, 01:27):
 
 Which, in my case, is mapped to the control-key

so you're probably an emacs user ;-9
vi friends would map escape to caps lock instead

... however, you'll increase your working speed
(if you dont work on foreign computers too often)


tutorial for X
(uses `xmodmap' which is in package xbase-clients on Debian systems)

in the .xinitrc:
  /usr/bin/xmodmap $HOME/.xmodmaprc

in .xmodmaprc
  ! have CAPS_LOCK as second ESC
  remove Lock = Caps_Lock
  keysym Caps_Lock = Escape 


meillo


signature.asc
Description: Digital signature


Re: [dwm] bloq may used to ignore keybindings

2008-04-24 Thread Antoni Grzymala
markus schnalke dixit (2008-04-24, 08:37):

 Antoni Grzymala [EMAIL PROTECTED] wrote:
  Martin Sander dixit (2008-04-24, 01:27):
  
  Which, in my case, is mapped to the control-key
 
 so you're probably an emacs user ;-9
 vi friends would map escape to caps lock instead

Nah. I'm a rather dedicated vim user (though I think emacs could have
its uses too if I learned it well. I'm interested in getting to know
some Lisp-related stuff deeper).

Instead of pressing the Esc-key I press ^[ or ^c in Vim. The latter is
not exactly the same as Esc, but both are usually sufficient to get out
of insert mode for most editing situations and obviously far more
comfortable than reaching for Esc-key.

 ... however, you'll increase your working speed
 (if you dont work on foreign computers too often)

I still need a comfortable ctrl-key for commandline editing and such,
and such placement had also been a standard on my way-back workstations.

 tutorial for X
 (uses `xmodmap' which is in package xbase-clients on Debian systems)
 
 in the .xinitrc:
   /usr/bin/xmodmap $HOME/.xmodmaprc
 
 in .xmodmaprc
   ! have CAPS_LOCK as second ESC
   remove Lock = Caps_Lock
   keysym Caps_Lock = Escape 

Here's my .Xmodmaprc; it's being used by my Xsession scripts
automatically OOTB:

keycode 66 = Control_L
clear Lock
add Control = Control_L
keycode 117 = ISO_Level3_Shift

As a bonus it clears the useless right-hand windows key (contextual menu
key) and turns it into a secondary r-alt. A blessing for vim.

Best,

-- 
[a]


signature.asc
Description: Digital signature


Re: [dwm] bloq may used to ignore keybindings

2008-04-24 Thread Martin Sander
On Thu, Apr 24, 2008 at 12:43:05PM +0200, Antoni Grzymala wrote:
 markus schnalke dixit (2008-04-24, 08:37):
  Antoni Grzymala [EMAIL PROTECTED] wrote:
   Martin Sander dixit (2008-04-24, 01:27):
   Which, in my case, is mapped to the control-key

Wrong quoting, I didn't write that. Caps is OF COURSE mapped to Esc.
vim for teh win!

  in the .xinitrc:
/usr/bin/xmodmap $HOME/.xmodmaprc
  in .xmodmaprc
! have CAPS_LOCK as second ESC
remove Lock = Caps_Lock
keysym Caps_Lock = Escape 

This did not work for me all the time, however, this:
clear Lock
keysym Caps_Lock = Escape
did.

 Here's my .Xmodmaprc; it's being used by my Xsession scripts
 automatically OOTB:
 
 keycode 66 = Control_L
 clear Lock

For mapping ctrl to caps you don't need xmodmap,
Option XkbOptions ctrl:nocaps
in xorg.conf is enough. Of course you need root access for that..

cheers

Martin



Re: [dwm] bloq may used to ignore keybindings

2008-04-23 Thread Premysl Hruby
On (23/04/08 14:18), pancake wrote:
 To: dwm@suckless.org
 From: pancake [EMAIL PROTECTED]
 Subject: [dwm] bloq may used to ignore keybindings
 Reply-To: dynamic window manager dwm@suckless.org
 List-Id: dynamic window manager dwm.suckless.org
 
 Recently I tried wmii (for a few minutes :P) and notice that if
 I press bloq.mayus I was able to use alt-1, alt-2 to change between
 the tabs in firefox.
 
 This makes me think that we can probably take the same idea for dwm
 to make it ignore the keybindings.
 
 Maybe we can also let configurable this bloq. key in config.h and
 use any other locked key for this.
 
 --pancake
 
 

I prefer to use Mod4 (win key) as MODKEY, so I have no keybinding clash.

-- 
Premysl Anydot Hruby, http://www.redrum.cz/



Re: [dwm] bloq may used to ignore keybindings

2008-04-23 Thread Antoni Grzymala
Premysl Hruby dixit (2008-04-23, 14:27):

  Maybe we can also let configurable this bloq. key in config.h and
  use any other locked key for this.
 
 I prefer to use Mod4 (win key) as MODKEY, so I have no keybinding clash.

Agreed, mod4 is far more comfortable.

Which brings another question to mind on a related topic:

Is it possible to prevent applications to receive dwm-specific
keystrokes upon focusing them? My particular problem is that I often
work on remote Windows machines via rdesktop and when I switch my view
to the tag with the rdesktop client, the client (and subsequently the
windows machine) receives the already-pressed win-key event (I use mod4
to switch tags) and opens up the windows start menu which is very
annoying.

So it it possible to prevent passing pressed dwm-function keys to
applications?

Regards,

-- 
[a]


signature.asc
Description: Digital signature


Re: [dwm] bloq may used to ignore keybindings

2008-04-23 Thread Enno Gottox Boland
This is one of these bug-features. It should be fixed in rdesktop. not in dwm.

2008/4/23, Antoni Grzymala [EMAIL PROTECTED]:
 Premysl Hruby dixit (2008-04-23, 14:27):


Maybe we can also let configurable this bloq. key in config.h and
use any other locked key for this.
  

  I prefer to use Mod4 (win key) as MODKEY, so I have no keybinding clash.


 Agreed, mod4 is far more comfortable.

  Which brings another question to mind on a related topic:

  Is it possible to prevent applications to receive dwm-specific
  keystrokes upon focusing them? My particular problem is that I often
  work on remote Windows machines via rdesktop and when I switch my view
  to the tag with the rdesktop client, the client (and subsequently the
  windows machine) receives the already-pressed win-key event (I use mod4
  to switch tags) and opens up the windows start menu which is very
  annoying.

  So it it possible to prevent passing pressed dwm-function keys to
  applications?

  Regards,

  --

 [a]

 -BEGIN PGP SIGNATURE-
  Version: GnuPG v2.0.9 (GNU/Linux)

  iEYEARECAAYFAkgPOOMACgkQL69KEesxVYNm4gCfc8sV/DoWAOfGbYHharDCqWUV
  wEkAoJ5sv7Z9+N0bxin3RD9D3Qjt3245
  =mMU/
  -END PGP SIGNATURE-





-- 
http://www.gnuffy.org - Real Community Distro
http://www.gnuffy.org/index.php/GnuEm - Gnuffy on Ipaq (Codename Peggy)



Re: [dwm] bloq may used to ignore keybindings

2008-04-23 Thread Antoni Grzymala
Enno Gottox Boland dixit (2008-04-23, 15:35):

   Which brings another question to mind on a related topic:
 
   Is it possible to prevent applications to receive dwm-specific
   keystrokes upon focusing them? My particular problem is that I often
   work on remote Windows machines via rdesktop and when I switch my view
   to the tag with the rdesktop client, the client (and subsequently the
   windows machine) receives the already-pressed win-key event (I use mod4
   to switch tags) and opens up the windows start menu which is very
   annoying.
 
   So it it possible to prevent passing pressed dwm-function keys to
   applications?

 This is one of these bug-features. It should be fixed in rdesktop. not
 in dwm.

What do you mean by „this is a feature”? I can't imagine a single
situation where I'd like my dwm-specific keystrokes to be received by
apps. The whole point of wm shortcuts is application non-interference.

Best,

-- 
[a]


signature.asc
Description: Digital signature


Re: [dwm] bloq may used to ignore keybindings

2008-04-23 Thread Antoni Grzymala
Enno Gottox Boland dixit (2008-04-23, 16:27):

 think of alt+tab. btw. There's a switch to prevent rdesktop from grabbing 
 keys:
 
-K Do not override window manager key bindings.  By default
 rdesktop attempts to grab all keyboard input when it is  in
   focus.

I know the -K flag. I use it and it doesn't fix the issue I'm having.
When I switch to the tag with rdesktop it sees that win-key is still
pressed and accordingly remote windows opens up the start menu.

I don't know much about X11 programming, but isn't there an option to
make a keypress private once the keypress is used up by dwm?

As to alt-tab, or whatever alternative people are using, I still don't
see any use in feeding this shortcut to an application after having been
used by dwm for whatever purpose.

Best,

-- 
[a]


signature.asc
Description: Digital signature


Re: [dwm] bloq may used to ignore keybindings

2008-04-23 Thread Martin Sander
On Wed, Apr 23, 2008 at 03:25:55PM +0200, Antoni Grzymala wrote:
 Premysl Hruby dixit (2008-04-23, 14:27):
  I prefer to use Mod4 (win key) as MODKEY, so I have no keybinding clash.
 Agreed, mod4 is far more comfortable.

Not when you have a vintage IBM Model M Keyboard. No Mod4 in sight,
still one of the best keyboards around.
I like pancake's idea (but I don't have a clue what bloq.mayus is).


Martin



Re: [dwm] bloq may used to ignore keybindings

2008-04-23 Thread Antoni Grzymala
Martin Sander dixit (2008-04-24, 01:27):

 I like pancake's idea (but I don't have a clue what bloq.mayus is).

Caps lock.

Which, in my case, is mapped to the control-key, as caps-lock is a key I
used probably about three times in my life, everytime by accident.

Always made me wonder, why such an utterly useless key has been given
such a prominent place on modern PC keyboards. Seems someone anticipated
its use in dwm.

 Not when you have a vintage IBM Model M Keyboard. No Mod4 in sight,
 still one of the best keyboards around.

Just had an idea: make caps lock your control key the old-skool-way, and
your ex-control key your mod4. There. A solution. Everyone's happy.

Best,

-- 
[a]


signature.asc
Description: Digital signature