[TriLUG] C-A-D, xubuntu, xfce4, xflock4

Tom Roche Tom_Roche at pobox.com
Wed Jul 22 13:13:04 EDT 2009


Tom Roche Wed Jul 22 11:57:35 EDT 2009
>> 0 How to remap C-A-D in xubuntu-9.04 to be semantically equal to
>>   hitting the icon @ upper right of desktop?

Note this is for the vanilla wubi install of xubuntu: no GUI changes
have yet been made.

Alexander Ray Wed Jul 22 12:29:53 EDT 2009
> I think it might be in loadkeys(1).

$ info loadkeys | head -n 22 # broken for mail
> info: Writing node (*manpages*)loadkeys...
> info: Done.
> File: *manpages*,  Node: loadkeys,  Up: (dir)

> LOADKEYS(1)

> NAME
>        loadkeys - load keyboard translation tables

> SYNOPSIS
>        loadkeys [ -c --clearcompose ] [ -C '<cons1 cons2 ...>' |
>        --con- sole=cons1,cons2,... ] [ -d --default ] [ -h --help ]
>        [ -m --mktable ] [ -s --clearstrings ] [ -v --verbose ] [
>        filename... ]

> DESCRIPTION
>        The program loadkeys reads the file or files specified by
>        filename.... Its main purpose is to load the kernel keymap
>        for the console.

Looks like a write-only interface for the keyboard, so I'm wondering:
how will this tell me what is *currently* being invoked by the
upper-right-corner icon? (Note that I'm pretty sure I already know how
to change what gets invoked by C-A-D: see XML fragment in
http://www.trilug.org/pipermail/trilug/Week-of-Mon-20090720/059101.html
)

> RESET TO DEFAULT
>        If the -d (or --default ) option is given, loadkeys loads a
>        default keymap, probably the file defkeymap.map either in
>        /usr/share/keymaps or in /usr/src/linux/drivers/char.

$ for D in "/usr/share/keymaps" "/usr/src/linux/drivers/char" ; do
>   CMD="find $D -type f -name '*.map'"
>   echo -e $CMD
>   eval $CMD
>   echo
> done
> find /usr/share/keymaps -type f -name '*.map'
> find: `/usr/share/keymaps': No such file or directory

> find /usr/src/linux/drivers/char -type f -name '*.map'
> find: `/usr/src/linux/drivers/char': No such file or directory

$ find /usr -type d -name '*keymap*'
> /usr/share/X11/xkb/keymap
> /usr/share/vim/vim72/keymap

$ ls -al /usr/share/X11/xkb/keymap
> total 60
> drwxr-xr-x  5 root root  4096 2009-04-20 10:51 .
> drwxr-xr-x 10 root root  4096 2009-04-20 10:51 ..
> -rw-r--r--  1 root root   631 2009-03-31 01:08 amiga
> -rw-r--r--  1 root root   638 2009-03-31 01:08 ataritt
> drwxr-xr-x  2 root root  4096 2009-04-20 10:51 digital_vndr
> -rw-r--r--  1 root root   706 2009-03-31 01:08 macintosh
> -rw-r--r--  1 root root   269 2009-03-31 01:08 README
> drwxr-xr-x  2 root root  4096 2009-04-20 10:51 sgi_vndr
> -rw-r--r--  1 root root  1508 2009-03-31 01:08 sony
> drwxr-xr-x  2 root root  4096 2009-04-20 10:51 sun_vndr
> -rw-r--r--  1 root root 13334 2009-03-31 01:08 xfree86
> -rw-r--r--  1 root root  1580 2009-03-31 01:08 xfree98

$ cat /usr/share/X11/xkb/keymap/README 
> The keymap component provides a way how to set up one pre-defined
> keyboard mapping from a given set. It has been obsoleted by 'rules'
> component which is simplier and more flexible. The directory is
> preserved for compatibility reasons. Avoid using it [...]

Doesn't look good--am I missing something?

>> 1 How to fix/debug whatever's making my screen take forever to
>>   lock?

TIA, Tom Roche <Tom_Roche at pobox.com>



More information about the TriLUG mailing list