hyprland: workspace/rules module init
still some work too be done, the regex types are cursed.
This commit is contained in:
		
							parent
							
								
									0b8a730519
								
							
						
					
					
						commit
						0873f56c28
					
				
					 5 changed files with 447 additions and 22 deletions
				
			
		
							
								
								
									
										37
									
								
								modules/home/workstation/hyprland/settings/workspaces.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								modules/home/workstation/hyprland/settings/workspaces.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,37 @@ | |||
| {osConfig, ...}: let | ||||
|   inherit (osConfig.ooknet) hardware; | ||||
|   multiMonitor = builtins.length hardware.monitors > 1; | ||||
|   primary = hardware.primaryMonitor; | ||||
|   secondary = | ||||
|     if multiMonitor | ||||
|     then (builtins.elemAt hardware.monitors 1).name | ||||
|     else primary; | ||||
| in { | ||||
|   wayland.windowManager.hyprland.workspaces = { | ||||
|     "1" = { | ||||
|       name = "terminal"; | ||||
|       monitor = primary; | ||||
|       default = true; | ||||
|     }; | ||||
|     "2" = { | ||||
|       name = "browser"; | ||||
|       monitor = primary; | ||||
|     }; | ||||
|     "3" = { | ||||
|       name = "media"; | ||||
|       monitor = secondary; | ||||
|       default = true; | ||||
|     }; | ||||
|     "4" = { | ||||
|       name = "discord"; | ||||
|       monitor = secondary; | ||||
|     }; | ||||
|     "5" = { | ||||
|       name = "gaming"; | ||||
|       monitor = primary; | ||||
|     }; | ||||
|     "r[6-9]" = { | ||||
|       monitor = primary; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue