qtile: Add some unity3d stuff and a keybinding to print current window's info
This commit is contained in:
		
							parent
							
								
									c644a4346d
								
							
						
					
					
						commit
						766790b650
					
				@ -74,6 +74,9 @@ def toggle_language(qtile):
 | 
			
		||||
        qtile.spawn("setxkbmap -layout us -variant altgr-intl")
 | 
			
		||||
        current_language[0] = "en"
 | 
			
		||||
 | 
			
		||||
def get_current_window_info(qtile):
 | 
			
		||||
    logger.warning(qtile.current_window.info())
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
keys = [
 | 
			
		||||
    # A list of available commands that can be bound to keys can be found
 | 
			
		||||
@ -121,6 +124,7 @@ keys = [
 | 
			
		||||
    Key([mod, "shift"], "comma", lazy.prev_screen(), desc="Move focus to left screen"),
 | 
			
		||||
    Key([mod, "shift"], "period", lazy.next_screen(), desc="Move focus to left screen"),
 | 
			
		||||
    Key([mod], "w", lazy.next_layout(), desc="Toggle between layouts"),
 | 
			
		||||
    Key([mod, "control"], "w", lazy.function(get_current_window_info), desc="Get window info"),
 | 
			
		||||
    Key([mod], "s", lazy.spawn("flameshot gui"), desc="Flameshot screenshot"),
 | 
			
		||||
 | 
			
		||||
    # TODO: Figure out another binding for this
 | 
			
		||||
@ -359,6 +363,10 @@ floating_layout = layout.Floating(
 | 
			
		||||
        Match(title="Save Scene As..."),
 | 
			
		||||
        Match(title="branchdialog"),  # gitk
 | 
			
		||||
        Match(title="pinentry"),  # GPG key password entry
 | 
			
		||||
        # Unity3D
 | 
			
		||||
        Match(title="UnityEditor.AddComponent.AddComponentWindow"),
 | 
			
		||||
        Match(wm_class="Unity", title="Color"),
 | 
			
		||||
        # Match(wm_class="Unity", title="Select Material"),
 | 
			
		||||
    ]
 | 
			
		||||
)
 | 
			
		||||
auto_fullscreen = True
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user