Contents:
Hotkeys management. Requires “gi” package and “Gtk” & “Keybinder” modules.
clay.hotkeys.
_HotkeyManager
Manages configs. Runs Gtk main loop in a thread.
__init__
x.__init__(…) initializes x; see help(type(x)) for signature
__weakref__
list of weak references to the object (if defined)
_parse_hotkeys
Reads out the configuration file and parse them into a hotkeys for urwid.
_parse_x_hotkeys
Reads out them configuration file and parses them into hotkeys readable by GTK.
_to_gtk_modifier
Translates the modifies to the way that GTK likes them.
fire_hook
Fire hook by name.
initialize
Unbind previous hotkeys, re-read config & bind new hotkeys.
keypress
Process the pressed key by looking it up in the configuration file
report_error
Print an error message to the debug screen