Axa-Ru / g3kb-switch

Keyboard layout switcher for Gnome Shell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

g3kb-switch

This is a keyboard layout switcher for Gnome 3. It is not based on the X interface but rather implements direct D-Bus messaging with the Gnome Shell.

Installation

Build as a normal user.

    $ mkdir build && cd build
    $ cmake ..
    $ make

Install being a superuser.

    # make install

Usage

Usage: g3kb-switch -s ARG    Sets current layout group to ARG
       g3kb-switch -l        Displays all layout groups
       g3kb-switch -h        Displays this message
       g3kb-switch -v        Shows version number
       g3kb-switch [-p]      Displays current layout group

Integration with vim-xkbswitch

Basically, put in .vimrc lines

let g:XkbSwitchEnabled = 1
let g:XkbSwitchLib = '/usr/local/lib/libg3kbswitch.so'

See details about configuration rules for vim-xkbswitch here.

About

Keyboard layout switcher for Gnome Shell


Languages

Language:C 95.9%Language:CMake 4.1%