Updates over time
This commit is contained in:
		
							parent
							
								
									6a265ea3b6
								
							
						
					
					
						commit
						cdf5996c40
					
				
					 4 changed files with 10 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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