Groups | Search | Server Info | Login | Register


Groups > comp.windows.x > #584

Re: how to make the pause key switch keyboard variants?

Path csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From Winston <wbe@UBEBLOCK.psr.com.invalid>
Newsgroups comp.windows.x
Subject Re: how to make the pause key switch keyboard variants?
Date Sat, 15 Mar 2025 09:18:14 -0400
Organization A noiseless patient Spider
Lines 57
Message-ID <ydmsdma0vd.fsf@UBEblock.psr.com> (permalink)
References <871pwa7gnc.fsf@example.com> <yd5xlmgyom.fsf@UBEblock.psr.com> <vo4c89$314vf$2@dont-email.me> <ydv7tlfqir.fsf@UBEblock.psr.com> <87v7ssmcnx.fsf@example.com>
MIME-Version 1.0
Content-Type text/plain; charset=iso-8859-1
Content-Transfer-Encoding 8bit
Injection-Date Sat, 15 Mar 2025 14:18:15 +0100 (CET)
Injection-Info dont-email.me; posting-host="302d57b56e4c757bcc49281456be7651"; logging-data="3755568"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EHxlBy2zcum/rPIrifgBO"
User-Agent Gnus/5.13 (Gnus v5.13)
Cancel-Lock sha1:MmBEocuKt34x2ykfy5zHoaMo/g8= sha1:yeQCSyLAFNlw9LicnHQybVlD0Qk=
Mail-Copies-To never
Xref csiph.com comp.windows.x:584

Show key headers only | View raw


From: Winston <wbe@UBEBLOCK.psr.com.invalid>
Newsgroups: comp.windows.x
Subject: Re: how to make the pause key switch keyboard variants?
References: <871pwa7gnc.fsf@example.com> <yd5xlmgyom.fsf@UBEblock.psr.com>
	<vo4c89$314vf$2@dont-email.me> <ydv7tlfqir.fsf@UBEblock.psr.com>
	<87v7ssmcnx.fsf@example.com>
X-Draft-From: ("comp.windows.x" 760)
Mail-Copies-To: never
Date: Sat, 15 Mar 2025 08:41:39 -0400
Message-ID: <ydmsdmea9o.fsf@UBEblock.psr.com>
User-Agent: Gnus/5.13 (Gnus v5.13)
--text follows this line--
Salvador Mirzo <smirzo@example.com> posted:
>>>>> I wish I could toggle the variant using the pause key and not the
>>>>> menu key as it is currently set on my OpenBSD system---see below.

to which I replied:
>>>> I'm not sure, but this sounds more like something xmodmap(1) would
>>>> do.  man xmodmap.

Later, Salvador Mirzo <smirzo@example.com> replied:
> Thanks.  I was able to get it to work.  I used xev to figure out what
> was the keycode of pause and the menu key.  I discovered that the pause
> key issues the keycode 135 when pressed, and menu key, keycode 117.  So
> the following commands disable the menu key and makes the pause key
> behave like the menu key:
>
> xmodmap -e 'keycode 135 = ISO_Next_Group'
> xmodmap -e 'keycode 117 = VoidSymbol'
>
> Now, what I'm puzzled about is that I add these commands to .xsession,
> which I'm positive that xenodm runs when I log in, but it takes no
> effect.

Try this and see if it helps...

1) Create a file (e.g., .xmodmaprc, but there's nothing special about
   the name) with the relevant remove/keysym/keycode/add commands.
   This is for step 2.

2) Once X and some xterm is running, run xmodmap .xmodmaprc again,
   maybe even twice.

ISTM there's some sort of bug with xmodmap, and either I've always done
something wrong or the bug's been there for years.  Even though I run
xmodmap during startup, half the changes don't happen (and half do).
I have to run xmodmap twice after startup to get things right.

> Another puzzling thing that's going on here, which might be totally
> unrelated, is that my Firefox stopped translating 'c into ç.  The
> toggle to make this translation happen is the environment variable
>
>   GTK_IM_MODULE=cedilla

Sorry, not something I know about.  Maybe someone else can help with
that.
 -WBE

Back to comp.windows.x | Previous | NextPrevious in thread | Find similar


Thread

how to make the pause key switch keyboard variants? Salvador Mirzo <smirzo@example.com> - 2025-02-06 21:16 -0300
  Re: how to make the pause key switch keyboard variants? Winston <wbe@UBEBLOCK.psr.com.invalid> - 2025-02-06 23:34 -0500
    Re: how to make the pause key switch keyboard variants? vallor <vallor@cultnix.org> - 2025-02-07 07:20 +0000
      Re: how to make the pause key switch keyboard variants? Winston <wbe@UBEBLOCK.psr.com.invalid> - 2025-02-07 15:28 -0500
        Re: how to make the pause key switch keyboard variants? Salvador Mirzo <smirzo@example.com> - 2025-03-01 22:41 -0300
          Re: how to make the pause key switch keyboard variants? Winston <wbe@UBEBLOCK.psr.com.invalid> - 2025-03-15 09:18 -0400

csiph-web