Locale Script python reference¶
LMI Locale Provider client library.
- lmi.scripts.locale.get_locale(ns)¶
Get locale.
Return type: LMIInstance/LMI_Locale
- lmi.scripts.locale.set_locale(ns, locales, values)¶
Set given locale variables with new values.
Parameters: - locales (list) – List of locale variable names to be set.
- values (list) – List of new values for locale variables.
- lmi.scripts.locale.set_vc_keyboard(ns, keymap, keymap_toggle, convert)¶
Set the key mapping on the virtual console.
Parameters: - keymap (string) – Requested keyboard mapping for the virtual console.
- keymap_toggle (string) – Requested toggle keyboard mapping for the virtual console.
- convert (bool) – Whether also X11 keyboard should be set to the nearest X11 keyboard setting for the chosen console keyboard setting.
- lmi.scripts.locale.set_x11_keymap(ns, layouts, model, variant, options, convert)¶
Set the default key mapping of the X11 server.
Parameters: - layouts (string) – Requested X11 keyboard mappings.
- model (string) – Requested X11 keyboard model.
- variant (string) – Requested X11 keyboard variant.
- options (string) – Requested X11 keyboard options.
- convert (bool) – Whether also console keyboard should be set to the nearest console keyboard setting for the chosen X11 keyboard setting.