Meconopsis changes for Wayland and general refactoring/optimizations
This commit is contained in:
parent
1e65025045
commit
2860100089
9 changed files with 697 additions and 1185 deletions
14
config.py
14
config.py
|
@ -53,12 +53,12 @@ except ImportError as e:
|
|||
|
||||
|
||||
try:
|
||||
logger.info("Initializing theme...")
|
||||
logger.warning("Initializing theme...")
|
||||
# Initialize the Theme
|
||||
Theme.initialize()
|
||||
logger.info("Initialize done")
|
||||
logger.warning("Initialize done")
|
||||
|
||||
logger.info("Hooking theme into callbacks...")
|
||||
logger.warning("Hooking theme into callbacks...")
|
||||
# Hook theme into all hooks we know of
|
||||
hook.subscribe.startup_once(Theme.callback_startup_once)
|
||||
hook.subscribe.startup(Theme.callback_startup)
|
||||
|
@ -82,10 +82,11 @@ try:
|
|||
hook.subscribe.selection_notify(Theme.callback_selection_notify)
|
||||
hook.subscribe.selection_change(Theme.callback_selection_change)
|
||||
hook.subscribe.screen_change(Theme.callback_screen_change)
|
||||
hook.subscribe.screens_reconfigured(Theme.callback_screens_reconfigured)
|
||||
hook.subscribe.current_screen_change(Theme.callback_current_screen_change)
|
||||
logger.info("Hooking done")
|
||||
logger.warning("Hooking done")
|
||||
|
||||
logger.info("Initializing theme variables")
|
||||
logger.warning("Initializing theme variables")
|
||||
# Initialize variables from theme
|
||||
keys = Theme.keys
|
||||
mouse = Theme.mouse
|
||||
|
@ -104,7 +105,8 @@ try:
|
|||
focus_on_window_activation = Theme.focus_on_window_activation
|
||||
extensions = Theme.extensions
|
||||
wmname = Theme.wmname
|
||||
logger.info("Variable initialization done")
|
||||
reconfigure_screens = Theme.reconfigure_screens
|
||||
logger.warning("Variable initialization done")
|
||||
except Exception as e:
|
||||
Theme = None
|
||||
Config = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue