Add Temari config, always try to launch dbus because qtile.theme_instance is broken since latest qtile update
This commit is contained in:
		
							parent
							
								
									b5a3d3f577
								
							
						
					
					
						commit
						a68f516f33
					
				
					 2 changed files with 46 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -110,17 +110,17 @@ def bar_separator(config):
 | 
			
		|||
                      )
 | 
			
		||||
 | 
			
		||||
def init_notify(qtile):
 | 
			
		||||
    if qtile and qtile.theme_instance and qtile.theme_instance.startup_completed:
 | 
			
		||||
        try:
 | 
			
		||||
            if not notify2.is_initted():
 | 
			
		||||
                logger.warning("Initializing Notify2")
 | 
			
		||||
                notify2.init("QTileWM")
 | 
			
		||||
        except DBusException:
 | 
			
		||||
            logger.error(f"Failed to initialize Notify2 (DBus error), retrying later.")
 | 
			
		||||
        except Exception:
 | 
			
		||||
            logger.error(f"Failed to initialize Notify2 (Generic error), retrying later.")
 | 
			
		||||
    else:
 | 
			
		||||
        logger.warning(f"Not initializing Notify2 yet, QTile startup not completed.")
 | 
			
		||||
    #if qtile and qtile.theme_instance and qtile.theme_instance.startup_completed:
 | 
			
		||||
    try:
 | 
			
		||||
        if not notify2.is_initted():
 | 
			
		||||
            logger.warning("Initializing Notify2")
 | 
			
		||||
            notify2.init("QTileWM")
 | 
			
		||||
    except DBusException:
 | 
			
		||||
        logger.error(f"Failed to initialize Notify2 (DBus error), retrying later.")
 | 
			
		||||
    except Exception:
 | 
			
		||||
        logger.error(f"Failed to initialize Notify2 (Generic error), retrying later.")
 | 
			
		||||
    #else:
 | 
			
		||||
    #    logger.warning(f"Not initializing Notify2 yet, QTile startup not completed.")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def notify(qtile, title, content, urgency=URGENCY_NORMAL, timeout=5000, image=None):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue