ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] Парочка проблем после установки
Date: Sun, 15 May 2011 21:05:35 +0400
Message-ID: <20110515170535.GA6605@atlas.home> (raw)
In-Reply-To: <BANLkTikwp0-GOX4UeNkKJ+jGEhehsXrnEQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2692 bytes --]

On Sat, May 14, 2011 at 01:39:37PM +0400, Teimuraz Abashidze wrote:
> Кроме того, переключение настроено по Ctrl-Shift. Так вот, левый
> Ctrl-Shift переключает - EN-RU-GE, а правый - EN-GE-RU :-))

Этот режим и должен так работать - см. его описание в
/usr/share/X11/xkb/symbols/group:

// using the group(ctrl_shift_toggle) map, pressing:
//     Control_L+Shift_L locks the previous group
//     Control_R+Shift_R locks the next group
// If you have two groups and group wrap is enabled, the effect is
// indistinguishable.
partial modifier_keys 
xkb_symbols "ctrl_shift_toggle" {
    key <LFSH> {
	type[Group1]="PC_CONTROL_LEVEL2",
	symbols[Group1]= [ Shift_L,	ISO_Prev_Group ]
    };
    key <RTSH> {
	type[Group1]="PC_CONTROL_LEVEL2",
	symbols[Group1]= [ Shift_R,	ISO_Next_Group ]
    };
    key <LCTL>	{	[	Control_L,	ISO_Prev_Group ]	};
    key <RCTL>	{	[	Control_R,	ISO_Next_Group ]	};
};

Правда, сейчас там же рядом есть ещё два режима, которые можно
попробовать включить одновременно, чтобы добиться одинакового
поведения левых и правых Ctrl+Shift:

// using the group(lctrl_lshift_toggle) map, pressing:
//     Control_L+Shift_L locks the next group
// If you have two groups and group wrap is enabled, the effect is
// indistinguishable.
partial modifier_keys 
xkb_symbols "lctrl_lshift_toggle" {
    key <LFSH> {
	type[Group1]="PC_CONTROL_LEVEL2",
	symbols[Group1]= [ Shift_L,	ISO_Next_Group ]
    };
    key <LCTL>	{	[	Control_L,	ISO_Next_Group ]	};
};

// using the group(rctrl_rshift_toggle) map, pressing:
//     Control_R+Shift_R locks the next group
// If you have two groups and group wrap is enabled, the effect is
// indistinguishable.
partial modifier_keys
xkb_symbols "rctrl_rshift_toggle" {
    key <RTSH> {
    type[Group1]="PC_CONTROL_LEVEL2",
    symbols[Group1]= [ Shift_R, ISO_Next_Group ]
    };
    key <RCTL>  {   [   Control_R,  ISO_Next_Group ]    };
};

В случае настройки через ~/.Xkbmap это настраиваеться параметрами
-option (вместо grp:ctrl_shift_toggle вписать
grp:lctrl_lshift_toggle,grp:rctrl_rshift_toggle).

Кстати, варианты grp:shifts_toggle, grp:ctrl_alt_toggle,
grp:alt_shift_toggle, grp:ctrls_toggle, grp:alts_toggle ведут себя
аналогичным образом - последовательность переключения раскладок
зависит от того, с какой стороны клавиатуры была клавиша, нажатая
последней.  Вот для этих вариантов альтернативных настроек,
устраняющих эту зависимость, в готовом виде нет - остаётся только
править файлы настроек XKB (которые, кроме всего прочего, ещё и не
считаются файлами конфигурации с точки зрения RPM, поэтому при
обновлении пакетов локальные изменения будут молча затёрты).

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  parent reply	other threads:[~2011-05-15 17:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-14  9:39 Teimuraz Abashidze
2011-05-14 11:29 ` Dmitriy Kruglikov
2011-05-14 11:31   ` Aleksey Novodvorsky
2011-05-14 12:10     ` Dmitriy Kruglikov
2011-05-15  9:32 ` Aleksey Novodvorsky
2011-05-15  9:57   ` Teimuraz Abashidze
2011-05-15 10:00     ` Aleksey Novodvorsky
2011-05-15 10:55       ` Teimuraz Abashidze
2011-05-15 10:07     ` Dmitriy Kruglikov
2011-05-15 10:47       ` Teimuraz Abashidze
2011-05-15 17:37         ` Dmitriy Kruglikov
2011-05-15 11:48 ` Mikhail Efremov
2011-05-18  7:48   ` Teimuraz Abashidze
2011-05-15 17:05 ` Sergey Vlasov [this message]
2011-05-15 20:21   ` Mikhail Efremov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110515170535.GA6605@atlas.home \
    --to=vsu@altlinux.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git