Update Aria config to latest qtile version and newest config
This commit is contained in:
parent
f775ce8b03
commit
8f4f08e3bf
|
@ -27,28 +27,33 @@
|
||||||
# Import Theme
|
# Import Theme
|
||||||
from libqtile import hook
|
from libqtile import hook
|
||||||
from libqtile.log_utils import logger
|
from libqtile.log_utils import logger
|
||||||
|
import traceback
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from kuro.theme import Kuro
|
from kuro.theme import Kuro
|
||||||
Theme = Kuro()
|
Theme = Kuro()
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
|
logger.error(traceback.format_exc())
|
||||||
logger.error("Could not load Kuro Theme. Trying to load BaseTheme. Error: {}".format(e))
|
logger.error("Could not load Kuro Theme. Trying to load BaseTheme. Error: {}".format(e))
|
||||||
try:
|
try:
|
||||||
from kuro.base import BaseTheme as Kuro
|
from kuro.base import BaseTheme as Kuro
|
||||||
Theme = Kuro()
|
Theme = Kuro()
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
Kuro = None
|
Kuro = None
|
||||||
|
logger.error(traceback.format_exc())
|
||||||
raise ImportError("Could not load theme Config or BaseTheme! Error: {}".format(e))
|
raise ImportError("Could not load theme Config or BaseTheme! Error: {}".format(e))
|
||||||
|
|
||||||
# Import theme configuration
|
# Import theme configuration
|
||||||
try:
|
try:
|
||||||
from kuro.config import Config
|
from kuro.config import Config
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
|
logger.error(traceback.format_exc())
|
||||||
logger.error("Could not load Kuro Config. Trying to load BaseConfig. Error: {}".format(e))
|
logger.error("Could not load Kuro Config. Trying to load BaseConfig. Error: {}".format(e))
|
||||||
try:
|
try:
|
||||||
from kuro.base import BaseConfig as Config
|
from kuro.base import BaseConfig as Config
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
Config = None
|
Config = None
|
||||||
|
logger.error(traceback.format_exc())
|
||||||
raise ImportError("Could not load theme Config or BaseConfig! Error: {}".format(e))
|
raise ImportError("Could not load theme Config or BaseConfig! Error: {}".format(e))
|
||||||
|
|
||||||
|
|
||||||
|
@ -108,6 +113,7 @@ try:
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
Theme = None
|
Theme = None
|
||||||
Config = None
|
Config = None
|
||||||
|
logger.error(traceback.format_exc())
|
||||||
raise AttributeError("Could not configure theme! Error: {}".format(e))
|
raise AttributeError("Could not configure theme! Error: {}".format(e))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ class Config(BaseConfig):
|
||||||
app_launcher = "/home/kevin/bin/dmenu_wal.sh"
|
app_launcher = "/home/kevin/bin/dmenu_wal.sh"
|
||||||
web_browser = "firefox-developer-edition"
|
web_browser = "firefox-developer-edition"
|
||||||
file_manager = "thunar"
|
file_manager = "thunar"
|
||||||
app_chat = "/home/kevin/bin/ramboxpro"
|
app_chat = "ramboxpro"
|
||||||
app_irc = "quasselclient"
|
app_irc = "quasselclient"
|
||||||
app_mail = "thunderbird"
|
app_mail = "thunderbird"
|
||||||
cmd_brightness_up = "sudo /usr/bin/xbacklight -inc 10"
|
cmd_brightness_up = "sudo /usr/bin/xbacklight -inc 10"
|
||||||
|
|
|
@ -7,7 +7,7 @@ import notify2
|
||||||
import six
|
import six
|
||||||
from dbus import DBusException
|
from dbus import DBusException
|
||||||
from libqtile import widget
|
from libqtile import widget
|
||||||
from libqtile.window import Internal
|
from libqtile.backend.x11.window import Internal
|
||||||
from libqtile.bar import Bar
|
from libqtile.bar import Bar
|
||||||
from notify2 import Notification, URGENCY_NORMAL
|
from notify2 import Notification, URGENCY_NORMAL
|
||||||
from libqtile.log_utils import logger
|
from libqtile.log_utils import logger
|
||||||
|
|
|
@ -18,7 +18,7 @@ from libqtile.widget.currentlayout import CurrentLayoutIcon
|
||||||
from libqtile.widget.graph import _Graph
|
from libqtile.widget.graph import _Graph
|
||||||
from libqtile.widget.tasklist import TaskList
|
from libqtile.widget.tasklist import TaskList
|
||||||
from libqtile.widget.wlan import get_status
|
from libqtile.widget.wlan import get_status
|
||||||
from libqtile.window import Window
|
from libqtile.backend.x11.window import Window
|
||||||
|
|
||||||
from kuro.utils.general import notify, BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT, BUTTON_DOWN, BUTTON_UP, BUTTON_MUTE, \
|
from kuro.utils.general import notify, BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT, BUTTON_DOWN, BUTTON_UP, BUTTON_MUTE, \
|
||||||
call_process
|
call_process
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
from cairocffi.test_xcb import xcffib
|
from cairocffi.test_xcb import xcffib
|
||||||
from libqtile import hook
|
from libqtile import hook
|
||||||
from libqtile.window import Window, Static
|
from libqtile.backend.x11.window import Window, Static
|
||||||
|
|
||||||
|
|
||||||
class KuroStatic(Static):
|
class KuroStatic(Static):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue