Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

4Dwm and KeyBindings

Status
Not open for further replies.

mrdo

Programmer
Jun 4, 2002
1
US
Hello,

I am having trouble using key bindings with 4Dwm.

I have defined in my .4Dmwrc file the following bindings in my Keys 4DwmKeyBindings block...

Keys 4DwmKeyBindings
{
# Donath
#Desktop switching
<Key>F1 root|icon|window f.switch_desk &quot;Desk 1&quot;
<Key>F2 root|icon|window f.switch_desk &quot;Desk 2&quot;
<Key>F3 root|icon|window f.switch_desk &quot;Desk 3&quot;
<Key>F4 root|icon|window f.switch_desk &quot;Desk 4&quot;
! <Key>F5 root|icon|window f.switch_desk &quot;Desk 5&quot;
! <Key>F6 root|icon|window f.switch_desk &quot;Desk 6&quot;
! <Key>F7 root|icon|window f.switch_desk &quot;Desk 7&quot;
! <Key>F8 root|icon|window f.switch_desk &quot;Desk 8&quot;
! <Key>F9 root|icon|window f.switch_desk &quot;Desk 9&quot;
<Key>F10 root|icon|window f.switch_desk &quot;Global&quot;

# Donath
Ctrl<Key>F11 root|icon|window f.exec &quot;/usr/local/bin/nedit&quot;
! Ctrl<Key>Right root|icon|window f.exec &quot;/usr/donath/winamp.pl next track&quot;


# Same as the standard OSF Key Bindings
Shift<Key>Escape window|icon f.post_wmenu
Meta<Key>space window|icon f.post_wmenu
Meta<Key>Tab root|icon|window f.next_key
Meta Shift<Key>Tab root|icon|window f.prev_key
Meta<Key>Escape root|icon|window f.next_key
Meta Shift<Key>Escape root|icon|window f.prev_key
Meta Shift Ctrl<Key>exclam root|icon|window f.set_behavior
Meta<Key>F6 window f.next_key transient
Meta Shift<Key>F6 window f.prev_key transient
<Key>F4 icon f.post_wmenu

# SGI added key bindings
Shift<Key>Escape root f.menu 4DwmRootMenu
Meta<Key>space root f.menu 4DwmRootMenu
}


CTRL-F11 is my test case.

When CTRL-F11 is pressed, or even when I have the key bound to just F11, three instances of nedit are opened and I lose the keyboard. The system console also shows shows three processes started in the background. The only way I can get the keyboard back is to press ALT-SHIFT and ESC. I suspect this is the same behavior with all keys bound, because occassionally I'll lose focus when switching desktops.

I've searched the net for others with a similar problem, but cannot find anything.

Please, does anyone know anything about what might be happening?

Thank you, and best regards,
Clarence Donath
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top