Re: Make CapsLock an additional Escape key - Problem: https://wiki.debian.org/Keyboard advice does not work

2017-09-23 Thread David Wright
On Sat 16 Sep 2017 at 19:45:50 (+1000), Erik Christiansen wrote:
> On 15.09.17 08:48, Peter Smith wrote:
> > P.S.: I actually was able to change the keyboard layout later on by
> > the Gnome Tweak tool, but nevertheless I do not unterstand why the
> > official information does not work and it should be rectified.
> 
> It is depressing to see the linux community succumb to unwarranted
> creeping complexity. For nearly two decades, this has done it for me:
> 
> $ more ~/.Xmodmap 
> keycode 0x42 =  Escape
> clear Lock
> 
> That's consulted as X fires up, so if you copy your useful dot-files
> across upgrades and reinstalls, it's done from here on out.

… which is a bit late for me. OTOH if one follows the wiki and
edits XKBOPTIONS in /etc/default/keyboard, the Caps Lock will
behave as ESC in the linux console as well as X.
(Of course, I don't use Gnome.)

XKBMODEL="pc105"
XKBLAYOUT="gb"
XKBVARIANT=""
XKBOPTIONS="caps:escape,compose:menu,terminate:ctrl_alt_bksp"
BACKSPACE="guess"

Cheers,
David.



Re: Make CapsLock an additional Escape key - Problem: https://wiki.debian.org/Keyboard advice does not work

2017-09-16 Thread Erik Christiansen
On 15.09.17 08:48, Peter Smith wrote:
> P.S.: I actually was able to change the keyboard layout later on by
> the Gnome Tweak tool, but nevertheless I do not unterstand why the
> official information does not work and it should be rectified.

It is depressing to see the linux community succumb to unwarranted
creeping complexity. For nearly two decades, this has done it for me:

$ more ~/.Xmodmap 
keycode 0x42 =  Escape
clear Lock

That's consulted as X fires up, so if you copy your useful dot-files
across upgrades and reinstalls, it's done from here on out.

Erik

-- 
The meta-problem here is that the configuration wizard does all the approved
rituals (GUI with standardized clicky buttons, help popping up in a browser,
etc. etc.) but doesn't have the central attribute these are supposed to achieve:
discoverability. That is, the quality that every point in the interface has
prompts and actions attached to it from which you can learn what to do next.
   - Eric Raymond, in "The Luxury of Ignorance."



Re: Make CapsLock an additional Escape key - Problem: https://wiki.debian.org/Keyboard advice does not work

2017-09-15 Thread James Montgomery

On 2017-09-15 10:03, Steve McIntyre wrote:

Peter Smith wrote:


--> Yes, I have already done that. Nevertheless the documentation on
that Wiki page is wrong. I'd like to report a bug or something like
this but the Wiki page does not provide any clues on how to do that.
I don't want anybody else to waste his/her time by reading and
following that wrong documentation. Do you know how to file a bug for
that Wiki page?


The wiki is meant to be updated by users too - register for an account
and fix the text yourself. :-)


Yes, you can correct wiki issues yourself once you have registered an 
account. As for actual bugs you find in the functional portion of the 
wiki you can file a bug against the pseudo-package[1] wiki.debian.org


[1] https://www.debian.org/Bugs/pseudo-packages
--
jam



Re: Make CapsLock an additional Escape key - Problem: https://wiki.debian.org/Keyboard advice does not work

2017-09-15 Thread Steve McIntyre
Peter Smith wrote:
>
>--> Yes, I have already done that. Nevertheless the documentation on
>that Wiki page is wrong. I'd like to report a bug or something like
>this but the Wiki page does not provide any clues on how to do that.
>I don't want anybody else to waste his/her time by reading and
>following that wrong documentation. Do you know how to file a bug for
>that Wiki page?

The wiki is meant to be updated by users too - register for an account
and fix the text yourself. :-)

-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
< sladen> I actually stayed in a hotel and arrived to find a post-it
  note stuck to the mini-bar saying "Paul: This fridge and
  fittings are the correct way around and do not need altering"



Re: Make CapsLock an additional Escape key - Problem: https://wiki.debian.org/Keyboard advice does not work

2017-09-15 Thread Greg Wooledge
On Fri, Sep 15, 2017 at 10:08:26AM +0200, Dejan Jocic wrote:
> On 15-09-17, Peter Smith wrote:
> > --> Yes, I have already done that. Nevertheless the documentation on
> > that Wiki page is wrong. I'd like to report a bug or something like
> > this but the Wiki page does not provide any clues on how to do that.
> > I don't want anybody else to waste his/her time by reading and
> > following that wrong documentation. Do you know how to file a bug for
> > that Wiki page?

It's a wiki.  You edit the page yourself, so that it's no longer
incorrect.

> Ahh, sorry, did not get that P.S. part, thought that it is part of
> signature, or something like that. As for wiki question, perhaps you can
> find answer on this page: https://wiki.debian.org/DebianWiki/Contact

You can also file a bug against the pseudo-package "wiki.debian.org".

But the real underlying problem here is


 GNOME BREAKS EVERYTHING


It's really friggin' hard to work around this in documentation that has
been written over a span of 20 years, and has always worked before.

UNTIL GNOME.

Want to set or tweak your locale?  You edit this or that file and you put
this or that variable in it, log out and back in, and it works everywhere
EXCEPT GNOME.

Want to change the PATH variable?  You edit this or that file and log
out and back in, and it works everywhere EXCEPT GNOME.

Want to change keyboard mapping?  You run an xmodmap command to make it
take effect immediately, and then you also put it in this or that file so
that it happens on future logins, and this works everywhere EXCEPT GNOME.

And so on, and so on.

And they made this thing the god damned DEFAULT?!



Re: Make CapsLock an additional Escape key - Problem: https://wiki.debian.org/Keyboard advice does not work

2017-09-15 Thread Zenaan Harkness
On Fri, Sep 15, 2017 at 08:48:21AM +0200, Peter Smith wrote:
> Hi,
> 
> I have tried to change the behavior of the CapsLock key to make it an
> additional Escape key. In order to do this I read the advice on
> https://wiki.debian.org/Keyboard
> 
> Specifically I did:
> I changed the file /etc/default/keyboard to:
> 
> XKBLAYOUT="us,at"
> XKBVARIANT=","
> BACKSPACE="guess"
> XKBMODEL="pc105"
> XKBOPTIONS="caps:escape"
> 
> Then I tried to execute the commands
> 
> # service keyboard-setup restart
> 
> and rebooting the the whole system. Nothing worked. After rebooting
> the CapsLock key behaved in exactly the same manner as before
> rebooting. It is still a CapsLock key.
> 
> Maybe this is helpful:
> I use Debian Testing with Gnome.
> 
> Does anyone have any tips on why this does not work? Or how to inform
> the Wiki team that this page contains wrong information?
> 
> Best regards,
> Peter
> 
> P.S.: I actually was able to change the keyboard layout later on by
> the Gnome Tweak tool, but nevertheless I do not unterstand why the
> official information does not work and it should be rectified.

I don't do this change, but when I do change my config as you've done
(/etc/default/keyboard), I always run this:

sudo dpkg-reconfigure xkb-data keyboard-configuration

and then restart Xorg

(I also run this from a Linux console, to make sure it's up to date
with my config too:
sudo setupcon
)

Good luck,



Re: Make CapsLock an additional Escape key - Problem: https://wiki.debian.org/Keyboard advice does not work

2017-09-15 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, Sep 15, 2017 at 10:09:27AM +0200, Mariusz Gronczewski wrote:

[...]

> I did it by xmodmap, just to different key than escape:

Perhaps the problem is an interaction with the original poster's
desktop environment (it is Gnome, iirc).

Desktop environments have their own mechanisms to manage those
things and it is pretty difficult to find out how they interact
with the "basic" X configuration interfaces (besides reading
source code, that is).

Cheers
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlm7mMEACgkQBcgs9XrR2kZ7iQCfZHmO1uHn+//0PxP5gcqpcvju
QacAmwRSsEzlTW8T88yOL1N1lJplFaVi
=wnwi
-END PGP SIGNATURE-



Re: Make CapsLock an additional Escape key - Problem: https://wiki.debian.org/Keyboard advice does not work

2017-09-15 Thread Mariusz Gronczewski
On Fri, 15 Sep 2017 08:48:21 +0200, Peter Smith  
wrote:

> Hi,
> 
> I have tried to change the behavior of the CapsLock key to make it an
> additional Escape key. In order to do this I read the advice on
> https://wiki.debian.org/Keyboard
> 
> Specifically I did:
> I changed the file /etc/default/keyboard to:
> 
> XKBLAYOUT="us,at"
> XKBVARIANT=","
> BACKSPACE="guess"
> XKBMODEL="pc105"
> XKBOPTIONS="caps:escape"
> 
>

I did it by xmodmap, just to different key than escape:


keycode 66= Hyper_L

then just load xmodmap via xmodmap filename


--
Mariusz Gronczewski, Administrator

Efigence S. A.
ul. Wołoska 9a, 02-583 Warszawa
T: [+48] 22 380 13 13
F: [+48] 22 380 13 14
E: mariusz.gronczew...@efigence.com 



Re: Make CapsLock an additional Escape key - Problem: https://wiki.debian.org/Keyboard advice does not work

2017-09-15 Thread Dejan Jocic
On 15-09-17, Peter Smith wrote:
> > Hi,
> >
> > I have tried to change the behavior of the CapsLock key to make it an
> > additional Escape key. In order to do this I read the advice on
> > https://wiki.debian.org/Keyboard
> >
> > Specifically I did:
> > I changed the file /etc/default/keyboard to:
> >
> > XKBLAYOUT="us,at"
> > XKBVARIANT=","
> > BACKSPACE="guess"
> > XKBMODEL="pc105"
> > XKBOPTIONS="caps:escape"
> >
> > Then I tried to execute the commands
> >
> > # service keyboard-setup restart
> >
> > and rebooting the the whole system. Nothing worked. After rebooting
> > the CapsLock key behaved in exactly the same manner as before
> > rebooting. It is still a CapsLock key.
> >
> > Maybe this is helpful:
> > I use Debian Testing with Gnome.
> >
> > Does anyone have any tips on why this does not work? Or how to inform
> > the Wiki team that this page contains wrong information?
> >
> > Best regards,
> > Peter
> >
> > P.S.: I actually was able to change the keyboard layout later on by
> > the Gnome Tweak tool, but nevertheless I do not unterstand why the
> > official information does not work and it should be rectified.
> >
> 
> >In case of Gnome, use gnome tweak tool, typing, caps lock key behaviour.
> >Set it there and that's it.
> 
> 
> --> Yes, I have already done that. Nevertheless the documentation on
> that Wiki page is wrong. I'd like to report a bug or something like
> this but the Wiki page does not provide any clues on how to do that.
> I don't want anybody else to waste his/her time by reading and
> following that wrong documentation. Do you know how to file a bug for
> that Wiki page?

Ahh, sorry, did not get that P.S. part, thought that it is part of
signature, or something like that. As for wiki question, perhaps you can
find answer on this page: https://wiki.debian.org/DebianWiki/Contact




Re: Re: Make CapsLock an additional Escape key - Problem: https://wiki.debian.org/Keyboard advice does not work

2017-09-15 Thread Peter Smith
> Hi,
>
> I have tried to change the behavior of the CapsLock key to make it an
> additional Escape key. In order to do this I read the advice on
> https://wiki.debian.org/Keyboard
>
> Specifically I did:
> I changed the file /etc/default/keyboard to:
>
> XKBLAYOUT="us,at"
> XKBVARIANT=","
> BACKSPACE="guess"
> XKBMODEL="pc105"
> XKBOPTIONS="caps:escape"
>
> Then I tried to execute the commands
>
> # service keyboard-setup restart
>
> and rebooting the the whole system. Nothing worked. After rebooting
> the CapsLock key behaved in exactly the same manner as before
> rebooting. It is still a CapsLock key.
>
> Maybe this is helpful:
> I use Debian Testing with Gnome.
>
> Does anyone have any tips on why this does not work? Or how to inform
> the Wiki team that this page contains wrong information?
>
> Best regards,
> Peter
>
> P.S.: I actually was able to change the keyboard layout later on by
> the Gnome Tweak tool, but nevertheless I do not unterstand why the
> official information does not work and it should be rectified.
>

>In case of Gnome, use gnome tweak tool, typing, caps lock key behaviour.
>Set it there and that's it.


--> Yes, I have already done that. Nevertheless the documentation on
that Wiki page is wrong. I'd like to report a bug or something like
this but the Wiki page does not provide any clues on how to do that.
I don't want anybody else to waste his/her time by reading and
following that wrong documentation. Do you know how to file a bug for
that Wiki page?



Re: Make CapsLock an additional Escape key - Problem: https://wiki.debian.org/Keyboard advice does not work

2017-09-15 Thread Dejan Jocic
On 15-09-17, Peter Smith wrote:
> Hi,
> 
> I have tried to change the behavior of the CapsLock key to make it an
> additional Escape key. In order to do this I read the advice on
> https://wiki.debian.org/Keyboard
> 
> Specifically I did:
> I changed the file /etc/default/keyboard to:
> 
> XKBLAYOUT="us,at"
> XKBVARIANT=","
> BACKSPACE="guess"
> XKBMODEL="pc105"
> XKBOPTIONS="caps:escape"
> 
> Then I tried to execute the commands
> 
> # service keyboard-setup restart
> 
> and rebooting the the whole system. Nothing worked. After rebooting
> the CapsLock key behaved in exactly the same manner as before
> rebooting. It is still a CapsLock key.
> 
> Maybe this is helpful:
> I use Debian Testing with Gnome.
> 
> Does anyone have any tips on why this does not work? Or how to inform
> the Wiki team that this page contains wrong information?
> 
> Best regards,
> Peter
> 
> P.S.: I actually was able to change the keyboard layout later on by
> the Gnome Tweak tool, but nevertheless I do not unterstand why the
> official information does not work and it should be rectified.
> 

In case of Gnome, use gnome tweak tool, typing, caps lock key behaviour.
Set it there and that's it.