From 3b6ee3d20ddeb51457424cbeffc570569b61e5b4 Mon Sep 17 00:00:00 2001 From: Kevin Alberts Date: Sat, 28 May 2022 14:01:07 +0200 Subject: [PATCH] Fixes for crash and updates --- kuro/config.py | 2 +- kuro/utils/general.py | 2 +- kuro/utils/widgets.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/kuro/config.py b/kuro/config.py index 5d06eb3..b942998 100644 --- a/kuro/config.py +++ b/kuro/config.py @@ -19,7 +19,7 @@ class Config(BaseConfig): app_launcher = "/home/kevin/bin/dmenu_wal.sh" web_browser = "firefox-developer-edition" file_manager = "thunar" - app_chat = "/usr/bin/ramboxpro" + app_chat = "/usr/bin/rambox" app_irc = "quasselclient" app_mail = "thunderbird" cmd_brightness_up = "sudo /usr/bin/xbacklight -inc 10" diff --git a/kuro/utils/general.py b/kuro/utils/general.py index 8a432b0..5bc12bc 100644 --- a/kuro/utils/general.py +++ b/kuro/utils/general.py @@ -196,7 +196,7 @@ class KuroTopBar(Bar): self.theme = theme super(KuroTopBar, self).__init__(widgets, size, **config) - def _configure(self, qtile, screen): + def _configure(self, qtile, screen, *args, **kwargs): super(KuroTopBar, self)._configure(qtile, screen) self.window.handle_EnterNotify = self.handle_enter_notify self.window.handle_LeaveNotify = self.handle_leave_notify diff --git a/kuro/utils/widgets.py b/kuro/utils/widgets.py index c32532c..36e1283 100644 --- a/kuro/utils/widgets.py +++ b/kuro/utils/widgets.py @@ -8,6 +8,7 @@ import iwlib import netifaces import psutil import six +import unicodedata from libqtile import bar, pangocffi from libqtile.log_utils import logger from libqtile.widget import base @@ -437,6 +438,7 @@ class MediaWidget(base.InLoopPollText): else: res = "Unknown" res = pangocffi.markup_escape_text(res) + res = unicodedata.normalize("NFKD", res) if len(res) > self.max_chars_per_player: res = res[:self.max_chars_per_player] + "..." return res