Fixes for crash and updates
This commit is contained in:
		
							parent
							
								
									0f4ef9190a
								
							
						
					
					
						commit
						3b6ee3d20d
					
				
					 3 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue