Compare commits

..

7 commits

4 changed files with 15 additions and 22 deletions

View file

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

View file

@ -107,8 +107,8 @@ class Config(BaseConfig):
# Thermal indicator variables # Thermal indicator variables
thermal_threshold = 75 thermal_threshold = 75
thermal_sensor = "Tdie" thermal_sensor = "Package id 0"
thermal_chip = "zenpower-pci-00c3" thermal_chip = "coretemp-isa-0000"
# CPU graph variables # CPU graph variables
cpu_graph_colour = '#ff0000' cpu_graph_colour = '#ff0000'
@ -135,8 +135,8 @@ class Config(BaseConfig):
volume_font = "Noto Sans" volume_font = "Noto Sans"
volume_fontsize = 11 volume_fontsize = 11
volume_theme_path = "/home/kevin/.config/qtile/kuro/resources/volume" volume_theme_path = "/home/kevin/.config/qtile/kuro/resources/volume"
volume_pulse_sink = "alsa_output.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00.analog-stereo-output" volume_pulse_sink = "alsa_output.pci-0000_00_1f.3.analog-stereo"
volume_pulse_sink2 = "alsa_output.pci-0000_0d_00.4.analog-stereo" volume_pulse_sink2 = ""
volume_is_bluetooth_icon = False volume_is_bluetooth_icon = False
volume_update_interval = 0.2 volume_update_interval = 0.2

View file

@ -637,18 +637,6 @@ class Kuro(BaseTheme):
self.log_info("Starting notification daemon...") self.log_info("Starting notification daemon...")
utils.execute_once("dunst") utils.execute_once("dunst")
self.log_info("Starting xiccd color profile manager...")
utils.execute_once("xiccd")
self.log_info("Starting KDE connect daemon...")
utils.execute_once("/usr/lib/kdeconnectd")
self.log_info("Starting KDE connect indicator...")
utils.execute_once("/usr/bin/kdeconnect-indicator")
self.log_info("Starting automatic backup scheduler...")
utils.execute_once("/usr/bin/vorta")
# Update color scheme # Update color scheme
self.initialize_colorscheme() self.initialize_colorscheme()
@ -677,7 +665,7 @@ class Kuro(BaseTheme):
if not hasattr(qtile, 'theme_instance'): if not hasattr(qtile, 'theme_instance'):
# Save theme instance in qtile # Save theme instance in qtile
qtile.theme_instance = self qtile.theme_instance = self
# Only run on first startup # Only run on first startup
if not qtile.no_spawn: if not qtile.no_spawn:
dg = qtile.dgroups dg = qtile.dgroups
@ -758,7 +746,6 @@ class Kuro(BaseTheme):
client.window.togroup("") client.window.togroup("")
def callback_client_killed(self, *args, **kwargs): def callback_client_killed(self, *args, **kwargs):
client = args[0] client = args[0]
logger.warning("Client {} Killed".format(client)) logger.warning("Client {} Killed".format(client))

View file

@ -360,19 +360,19 @@ class MediaWidget(base.InLoopPollText):
if data['playing'] and data['muted']: if data['playing'] and data['muted']:
self.custom_player_data['firefox']['showing'] = True self.custom_player_data['firefox']['showing'] = True
self.custom_player_data['firefox']['state'] = MediaWidget.Status.PAUSED self.custom_player_data['firefox']['state'] = MediaWidget.Status.PAUSED
self.custom_player_data['firefox']['title'] = data['title'] self.custom_player_data['firefox']['title'] = data['title'][:50]
elif data['playing'] and not data['muted']: elif data['playing'] and not data['muted']:
self.custom_player_data['firefox']['showing'] = True self.custom_player_data['firefox']['showing'] = True
self.custom_player_data['firefox']['state'] = MediaWidget.Status.PLAYING self.custom_player_data['firefox']['state'] = MediaWidget.Status.PLAYING
self.custom_player_data['firefox']['title'] = data['title'] self.custom_player_data['firefox']['title'] = data['title'][:50]
elif not data['playing'] and data['muted']: elif not data['playing'] and data['muted']:
self.custom_player_data['firefox']['showing'] = True self.custom_player_data['firefox']['showing'] = True
self.custom_player_data['firefox']['state'] = MediaWidget.Status.STOPPED self.custom_player_data['firefox']['state'] = MediaWidget.Status.STOPPED
self.custom_player_data['firefox']['title'] = data['title'] self.custom_player_data['firefox']['title'] = data['title'][:50]
elif not data['playing'] and not data['muted']: elif not data['playing'] and not data['muted']:
self.custom_player_data['firefox']['showing'] = False self.custom_player_data['firefox']['showing'] = False
self.custom_player_data['firefox']['state'] = MediaWidget.Status.OFFLINE self.custom_player_data['firefox']['state'] = MediaWidget.Status.OFFLINE
self.custom_player_data['firefox']['title'] = data['title'] self.custom_player_data['firefox']['title'] = data['title'][:50]
def _get_players(self): def _get_players(self):
players = [] players = []