My colleague Isamu, who has Cerebral Palsy, was asking
me if I knew how to configure CDE so that he could use the keyboard
Function keys to select focus on different windows.
Unable to turn down such a challenge I took a look at
docs.sun.com and soon found a reference to
sdthotkey(1). Alas using this application I was unable to accomplish
what Isamu wanted. However the manual page had a reference to
dtwmrc(4) which provided sufficient infomration to fulfill the
requirements.
So after some fiddling I supplied the following to Isamu (the Alt and Mod4 stuff where things I added for myself many moons ago):
$ cat $HOME/.dt/sdthotkey.dtwmrc #VERSION 1.0 # This file is generated by /usr/dt/bin/sdthotkey # Oh no it wasn't.... It was edited by hand.... # See dtwmrc(4) for a list of valid functions. # Keys DtKeyBindings { # Circle windows stack ‹key›F1 root|icon|window f.circle_down ‹key›F2 root|icon|window f.circle_up # Move to next window and give keyboard focus # Specify for Window , icon or both (also transient). ‹key›F3 root|icon|window f.next_key window | icon ‹key›F4 root|icon|window f.prev_key window | icon ‹key›F5 root|icon|window f.next_key icon ‹key›F6 root|icon|window f.prev_key icon # Text Editor ‹key›F7 root|icon|window f.exec "xemacs" # Disable/Enable CDE key functions - Passes key to application. ‹key›F8 root|icon|window f.pass_keys # Sun Volume keys ‹key›SunAudioLowerVolume root|icon|window f.action AudioLowerVolume ‹key›SunAudioMute root|icon|window f.action AudioMute ‹key›SunAudioRaiseVolume root|icon|window f.action AudioRaiseVolume # Move workspaces Alt‹Key›1 root|icon|window f.goto_workspace ws0 Alt‹Key›2 root|icon|window f.goto_workspace ws1 Alt‹Key›3 root|icon|window f.goto_workspace ws2 Alt‹Key›4 root|icon|window f.goto_workspace ws3 # Lock Alt‹Key›L1 ifkey|root|icon|window f.action LockDisplay # Manual pages Alt‹key›Help root|icon|window f.action Dtmanpageview # Audio Beep Mod4 Alt‹KEY›Cancel icon|window|root f.exec "/usr/openwin/bin/xset b off" Mod4 Alt‹KEY›Redo icon|window|root f.exec "/usr/openwin/bin/xset b on" # Applications Mod4 Alt‹KEY›G icon|window|root f.exec "/share/latest_SUNWspro/bin/gnuclient" Mod4 Alt‹KEY›T icon|window|root f.action Xterm Mod4 Alt‹KEY›X icon|window|root f.action Xterm }
Isamu was very pleased and has adjusted the file to suit himself.
Personally I use fvwm myself but I’m sure
,moving forward, that Isamu would like to configure
gnome to work in a similar fashion… Any
takers for this challenge?
Stace