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
				
			
		
							
								
								
									
										35
									
								
								kuro/config/temari.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								kuro/config/temari.py
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,35 @@
 | 
			
		|||
from kuro.config import Config as GeneralConfig
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Config(GeneralConfig):
 | 
			
		||||
    """
 | 
			
		||||
    Kuro QTile configuration overrides for Meconopsis
 | 
			
		||||
    """
 | 
			
		||||
    config_name = "Temari"
 | 
			
		||||
 | 
			
		||||
    # Default Applications
 | 
			
		||||
    #app_terminal = "terminator"
 | 
			
		||||
    cmd_brightness_up = "brightnessctl -d intel_backlight set +5%"
 | 
			
		||||
    cmd_brightness_down = "brightnessctl -d intel_backlight set 5%-"
 | 
			
		||||
    #lock_command = "bash /home/kevin/bin/lock.sh"
 | 
			
		||||
 | 
			
		||||
    # Thermal indicator variables
 | 
			
		||||
    thermal_sensor = "Package id 0"
 | 
			
		||||
    thermal_chip = "coretemp-isa-0000"
 | 
			
		||||
 | 
			
		||||
    # Network variables
 | 
			
		||||
    wifi_interface = "wlp0s20f3"
 | 
			
		||||
    wired_interface = "enp7s0"
 | 
			
		||||
 | 
			
		||||
    # Volume widget variables
 | 
			
		||||
    volume_pulse_sinks = [
 | 
			
		||||
        # Analog jack
 | 
			
		||||
        "alsa_output.pci-0000_00_1f.3.analog-stereo",
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    # Screen organization
 | 
			
		||||
    laptop_screen_nvidia = "eDP-1-1"
 | 
			
		||||
    laptop_screen_intel = "eDP1"
 | 
			
		||||
 | 
			
		||||
    # Show battery widget
 | 
			
		||||
    show_battery_widget = True
 | 
			
		||||
| 
						 | 
				
			
			@ -110,7 +110,7 @@ def bar_separator(config):
 | 
			
		|||
                      )
 | 
			
		||||
 | 
			
		||||
def init_notify(qtile):
 | 
			
		||||
    if qtile and qtile.theme_instance and qtile.theme_instance.startup_completed:
 | 
			
		||||
    #if qtile and qtile.theme_instance and qtile.theme_instance.startup_completed:
 | 
			
		||||
    try:
 | 
			
		||||
        if not notify2.is_initted():
 | 
			
		||||
            logger.warning("Initializing Notify2")
 | 
			
		||||
| 
						 | 
				
			
			@ -119,8 +119,8 @@ def init_notify(qtile):
 | 
			
		|||
        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.")
 | 
			
		||||
    #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