Update Aria config to latest qtile version and newest config
This commit is contained in:
parent
f775ce8b03
commit
8f4f08e3bf
5 changed files with 10 additions and 5 deletions
|
@ -27,28 +27,33 @@
|
|||
# Import Theme
|
||||
from libqtile import hook
|
||||
from libqtile.log_utils import logger
|
||||
import traceback
|
||||
|
||||
try:
|
||||
from kuro.theme import Kuro
|
||||
Theme = Kuro()
|
||||
except ImportError as e:
|
||||
logger.error(traceback.format_exc())
|
||||
logger.error("Could not load Kuro Theme. Trying to load BaseTheme. Error: {}".format(e))
|
||||
try:
|
||||
from kuro.base import BaseTheme as Kuro
|
||||
Theme = Kuro()
|
||||
except ImportError as e:
|
||||
Kuro = None
|
||||
logger.error(traceback.format_exc())
|
||||
raise ImportError("Could not load theme Config or BaseTheme! Error: {}".format(e))
|
||||
|
||||
# Import theme configuration
|
||||
try:
|
||||
from kuro.config import Config
|
||||
except ImportError as e:
|
||||
logger.error(traceback.format_exc())
|
||||
logger.error("Could not load Kuro Config. Trying to load BaseConfig. Error: {}".format(e))
|
||||
try:
|
||||
from kuro.base import BaseConfig as Config
|
||||
except ImportError as e:
|
||||
Config = None
|
||||
logger.error(traceback.format_exc())
|
||||
raise ImportError("Could not load theme Config or BaseConfig! Error: {}".format(e))
|
||||
|
||||
|
||||
|
@ -108,6 +113,7 @@ try:
|
|||
except Exception as e:
|
||||
Theme = None
|
||||
Config = None
|
||||
logger.error(traceback.format_exc())
|
||||
raise AttributeError("Could not configure theme! Error: {}".format(e))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue