Mostly done now, except for some popups and tweaking. We have a top bar with dmenu launcher, 9 workspaces, window buttons, thermal monitor, graphs, battery monitor, wifi monitor, sound monitors, system tray, layout indicator, datetime, update counter and screen indicator. On the bottom is a debug bar (only shown when debug=true in config) which is pretty useless at the moment.
This commit is contained in:
parent
a5ef8739db
commit
2df1347241
24 changed files with 721 additions and 51 deletions
31
config.py
31
config.py
|
@ -26,24 +26,30 @@
|
|||
|
||||
# Import Theme
|
||||
from libqtile import hook
|
||||
from libqtile.log_utils import logger
|
||||
|
||||
try:
|
||||
from kuro.theme import Kuro
|
||||
Theme = Kuro()
|
||||
except ImportError:
|
||||
from kuro.base import BaseTheme
|
||||
Kuro = None
|
||||
Theme = BaseTheme()
|
||||
except ImportError as e:
|
||||
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
|
||||
raise ImportError("Could not load theme Config or BaseTheme! Error: {}".format(e))
|
||||
|
||||
# Import theme configuration
|
||||
try:
|
||||
from kuro.config import Config
|
||||
except ImportError:
|
||||
except ImportError as e:
|
||||
logger.error("Could not load Kuro Config. Trying to load BaseConfig. Error: {}".format(e))
|
||||
try:
|
||||
from kuro.baseconfig import BaseConfig as Config
|
||||
except ImportError:
|
||||
except ImportError as e:
|
||||
Config = None
|
||||
raise ImportError("Could not load theme Config or BaseConfig!")
|
||||
raise ImportError("Could not load theme Config or BaseConfig! Error: {}".format(e))
|
||||
|
||||
# Initialize the Theme
|
||||
Theme.initialize()
|
||||
|
@ -92,3 +98,14 @@ floating_layout = Theme.floating_layout
|
|||
auto_fullscreen = Theme.auto_fullscreen
|
||||
focus_on_window_activation = Theme.focus_on_window_activation
|
||||
extentions = Theme.extensions
|
||||
|
||||
|
||||
def main(qtile):
|
||||
# set logging level
|
||||
if Config.get('debug', False):
|
||||
if Config.get('verbose', False):
|
||||
qtile.cmd_debug()
|
||||
else:
|
||||
qtile.cmd_info()
|
||||
else:
|
||||
qtile.cmd_warning()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue