[SunHELP] Switch desktops in CDE

Tom Lieuallen sunhelp at sunhelp.org
Wed Mar 14 10:57:17 CST 2001


> Is it possible to configure CDE to change to a different desktop utilizing
> the ALT or CNTL and the Functions or number keys? 
> 
> For example, pressing <ALT> & <F1> will bring you to the first desktop,
> etc.
> 
> 
> Thanks,
> Paul

Yes, all is very configurable.  The following are some of my
favorites:

    <Key>F1        root|icon|window        f.goto_workspace ws0
    <Key>F2        root|icon|window        f.goto_workspace ws1
    <Key>F3        root|icon|window        f.goto_workspace ws2
    <Key>F4        root|icon|window        f.goto_workspace ws3
    <Key>F5        root|icon|window        f.goto_workspace ws4
    <Key>F6        root|icon|window        f.goto_workspace ws5

    <Key>F8        window                  f.minimize
    <Key>F8        icon                    f.normalize
    <Key>F9        root|icon|window        f.action LockDisplay
    Shift<Key>F3   root|icon|window        f.action NewNetscape
    Shift<Key>F4   root|icon|window        f.action TextEditor
    Shift<Key>F5   root|icon|window        f.action RunXrsh
    Shift<Key>F6   root|icon|window        f.action Xterm
    Shift<Key>F7   root|icon|window        f.action RunXcalc
    Shift <Key>F9  root|icon|window        f.action ExitSession

I copied dtwmrc from whatever the standard directory to
~/.dt/C or ~/.dt...  I've got multiple copies -- never quite sure which
one has precedence.  Then, I put these entries in the 
"Keys DtKeyBindings" section.  Note that some of the f.action lines
refer to actions I've defined elsewhere.

Tom Lieuallen
Oregon State University




More information about the SunHELP mailing list