Bug#981115: please support multiple compose keys in keyboard-configuration

2021-01-26 Thread Lennart Sorensen
On Tue, Jan 26, 2021 at 10:33:07PM +0100, Martin wrote:
> On 2021-01-26 14:02, Lennart Sorensen wrote:
> > It is not that simple.
> ...
> > Simply manually putting in the config instead seems like a lot less work.
> 
> Thanks for the investigation, Lennart!
> 
> I probably stay with:
> 
> $ setxkbmap -option compose:caps
> $ setxkbmap -option compose:ralt

You could do them on one line too.

-- 
Len Sorensen



Bug#981115: please support multiple compose keys in keyboard-configuration

2021-01-26 Thread Martin
On 2021-01-26 14:02, Lennart Sorensen wrote:
> It is not that simple.
...
> Simply manually putting in the config instead seems like a lot less work.

Thanks for the investigation, Lennart!

I probably stay with:

$ setxkbmap -option compose:caps
$ setxkbmap -option compose:ralt

Cheers



Bug#981115: please support multiple compose keys in keyboard-configuration

2021-01-26 Thread Lennart Sorensen
On Tue, Jan 26, 2021 at 05:24:14PM +0100, Martin wrote:
> Package: keyboard-configuration
> Version: 1.200
> Severity: wishlist
> 
> It is convenient to have compose keys for both hands, e.g.
> capslock and ralt, similar to the two shift keys.
> 
> When running 
> $ sudo dpkg-reconfigure keyboard-configuration
> users can only select one compose key.
> 
> I assume, that multiple comma separated values would work.

It is not that simple.  While xkboptions supports specifying the compose
option multiple times, it is not a comma separated list.  Right now
the config for keyboard-configuration stores a single value for the
compose key in the debconf database and is able to match that against a
simple switch statement.  If it was changed to a comma separated list,
it would require splitting before being able to match each key against
the switch statement.  The code that turns the compose key value into
the right xkboptions would need to be expanded to handle multiple values
in a loop.  Quite a lot of current assumptions would need to be tossed
away and replaced with code that is quite a bit more complicated.  I am
sure it could be done but I am not sure if anyone would be willing to
put in the effort for something that is probably very rarely wanted.

Simply manually putting in the config instead seems like a lot less work.

-- 
Len Sorensen



Bug#981115: please support multiple compose keys in keyboard-configuration

2021-01-26 Thread Martin
Package: keyboard-configuration
Version: 1.200
Severity: wishlist

It is convenient to have compose keys for both hands, e.g.
capslock and ralt, similar to the two shift keys.

When running 
$ sudo dpkg-reconfigure keyboard-configuration
users can only select one compose key.

I assume, that multiple comma separated values would work.