Gkbd.KeyboardConfig

Fields

Name

Type

Access

Description

config_listener_id

int

r/w

engine

Xkl.Engine

r/w

layouts_variants

str

r/w

model

str

r/w

options

str

r/w

settings

Gio.Settings

r/w

Methods

class

add_default_switch_option_if_necessary (layouts_list, options_list, was_appended)

class

format_full_description (layout_descr, variant_descr)

class

get_descriptions (config_registry, name, layout_short_descr, layout_descr, variant_short_descr, variant_descr)

class

merge_items (parent, child)

class

split_items (merged, parent, child)

activate ()

equals (kbd_config2)

init (engine)

load (kbd_config_default)

load_from_x_current (buf)

load_from_x_initial (buf)

save ()

start_listen (func, *user_data)

stop_listen ()

term ()

to_string ()

Details

class Gkbd.KeyboardConfig
classmethod add_default_switch_option_if_necessary(layouts_list, options_list, was_appended)
Parameters:
  • layouts_list (str) –

  • options_list (str) –

  • was_appended (bool) –

Returns:

List of options

Return type:

[str]

classmethod format_full_description(layout_descr, variant_descr)
Parameters:
  • layout_descr (str) –

  • variant_descr (str) –

Return type:

str

classmethod get_descriptions(config_registry, name, layout_short_descr, layout_descr, variant_short_descr, variant_descr)
Parameters:
Return type:

bool

classmethod merge_items(parent, child)
Parameters:
  • parent (str) –

  • child (str) –

Return type:

str

classmethod split_items(merged, parent, child)
Parameters:
  • merged (str) –

  • parent (str) –

  • child (str) –

Return type:

bool

activate()
Return type:

bool

equals(kbd_config2)
Parameters:

kbd_config2 (Gkbd.KeyboardConfig) –

Return type:

bool

init(engine)
Parameters:

engine (Xkl.Engine) –

load(kbd_config_default)
Parameters:

kbd_config_default (Gkbd.KeyboardConfig) –

load_from_x_current(buf)
Parameters:

buf (Xkl.ConfigRec) –

load_from_x_initial(buf)
Parameters:

buf (Xkl.ConfigRec) –

save()
start_listen(func, *user_data)
Parameters:
stop_listen()
term()
to_string()
Return type:

str