Update Aria config to latest qtile version and newest config

This commit is contained in:
Kevin Alberts 2021-09-13 19:56:40 +02:00
parent f775ce8b03
commit 8f4f08e3bf
Signed by: Kurocon
GPG key ID: BCD496FEBA0C6BC1
5 changed files with 10 additions and 5 deletions

View file

@ -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))