Commit 55a2d7fb authored by Anton Midyukov's avatar Anton Midyukov

l10n: add variable GNOME_KB_SWITCH

parent e221e4c8
...@@ -15,13 +15,16 @@ use/l10n: ...@@ -15,13 +15,16 @@ use/l10n:
@$(call xport,LOCALES) @$(call xport,LOCALES)
@$(call xport,XKB_KEYMAPS) @$(call xport,XKB_KEYMAPS)
@$(call xport,XKB_SWITCH) @$(call xport,XKB_SWITCH)
@$(call xport,GNOME_KB_SWITCH)
# see also alterator-sysconfig backend # see also alterator-sysconfig backend
use/l10n/xkb/switch/ctrl_shift: use/l10n use/l10n/xkb/switch/ctrl_shift: use/l10n
@$(call set,XKB_SWITCH,grp:ctrl_shift_toggle) @$(call set,XKB_SWITCH,grp:ctrl_shift_toggle)
@$(call set,GNOME_KB_SWITCH,<Ctrl>Shift_L)
use/l10n/xkb/switch/alt_shift: use/l10n use/l10n/xkb/switch/alt_shift: use/l10n
@$(call set,XKB_SWITCH,grp:alt_shift_toggle) @$(call set,XKB_SWITCH,grp:alt_shift_toggle)
@$(call set,GNOME_KB_SWITCH,<Shift>Alt_L)
# FIXME: derive from locale by default if possible # FIXME: derive from locale by default if possible
use/l10n/ru_RU: use/l10n/xkb/switch/alt_shift use/l10n/ru_RU: use/l10n/xkb/switch/alt_shift
......
#!/bin/sh -x
[ -n "$GLOBAL_GNOME_KB_SWITCH" ] || exit 0
gsettings get org.gnome.desktop.wm.keybindings switch-input-source || return 0
cat > /etc/dconf/db/local.d/01-gnome-keymap <<EOF
[org/gnome/desktop/wm/keybindings]
switch-input-source=[ "$GLOBAL_GNOME_KB_SWITCH" ]
switch-input-source-backward=[ "$GLOBAL_GNOME_KB_SWITCH" ]
EOF
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment