mirror of
				https://forge.katzen.cafe/schrottkatze/nix-configs.git
				synced 2025-10-31 01:27:57 +01:00 
			
		
		
		
	workspace stuff rework
This commit is contained in:
		
					parent
					
						
							
								05fdb8a9cb
							
						
					
				
			
			
				commit
				
					
						0522f35453
					
				
			
		
					 6 changed files with 100 additions and 32 deletions
				
			
		
							
								
								
									
										83
									
								
								modules/desktop/home/niri/workspaces.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										83
									
								
								modules/desktop/home/niri/workspaces.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,83 @@ | |||
| # { ... }: | ||||
| { | ||||
|   programs.niri.settings = | ||||
|     let | ||||
|       social = "aaa social"; | ||||
|       browser = "bbb browser"; | ||||
|       notes = "ccc notes"; | ||||
|     in | ||||
|     { | ||||
|       workspaces = { | ||||
|         "aaa social" = { }; | ||||
|         "bbb browser" = { }; | ||||
|         "ccc notes" = { }; | ||||
|       }; | ||||
| 
 | ||||
|       spawn-at-startup = [ | ||||
|         { command = [ "Discord" ]; } | ||||
|         { command = [ "element-desktop" ]; } | ||||
|         { command = [ "signal-desktop" ]; } | ||||
|         { command = [ ".evolution-wrapped_" ]; } | ||||
| 
 | ||||
|         { command = [ "obsidian" ]; } | ||||
|         { command = [ "firefox" ]; } | ||||
|       ]; | ||||
| 
 | ||||
|       window-rules = [ | ||||
|         { | ||||
|           matches = [ | ||||
|             { app-id = "^signal|Element|org\.gnome\.Evolution$|discord"; } | ||||
|           ]; | ||||
|           open-on-workspace = social; | ||||
|         } | ||||
|         { | ||||
|           matches = [ | ||||
|             { app-id = "^firefox|Chromium-browser$"; } | ||||
|           ]; | ||||
|           open-on-workspace = browser; | ||||
|         } | ||||
|         { | ||||
|           matches = [ | ||||
|             { app-id = "obsidian"; } | ||||
|           ]; | ||||
|           open-on-workspace = notes; | ||||
|         } | ||||
|       ]; | ||||
| 
 | ||||
|       # all workspace binds here, | ||||
|       binds = { | ||||
|         "Mod+P".action.focus-workspace-up = [ ]; | ||||
|         "Mod+N".action.focus-workspace-down = [ ]; | ||||
|         "Mod+Ctrl+P".action.move-workspace-up = [ ]; | ||||
|         "Mod+Ctrl+N".action.move-workspace-down = [ ]; | ||||
|         "Mod+Shift+P".action.move-column-to-workspace-up = [ ]; | ||||
|         "Mod+Shift+N".action.move-column-to-workspace-down = [ ]; | ||||
| 
 | ||||
|         "Mod+Q".action.focus-workspace = social; | ||||
|         "Mod+W".action.focus-workspace = browser; | ||||
|         "Mod+E".action.focus-workspace = notes; | ||||
|         "Mod+Ctrl+Q".action.move-column-to-workspace = social; | ||||
|         "Mod+Ctrl+W".action.move-column-to-workspace = browser; | ||||
|         "Mod+Ctrl+E".action.move-column-to-workspace = notes; | ||||
| 
 | ||||
|         "Mod+1".action.focus-workspace = 4; | ||||
|         "Mod+2".action.focus-workspace = 5; | ||||
|         "Mod+3".action.focus-workspace = 6; | ||||
|         "Mod+4".action.focus-workspace = 7; | ||||
|         "Mod+5".action.focus-workspace = 8; | ||||
|         "Mod+6".action.focus-workspace = 9; | ||||
|         "Mod+7".action.focus-workspace = 10; | ||||
|         "Mod+8".action.focus-workspace = 11; | ||||
|         "Mod+9".action.focus-workspace = 12; | ||||
|         "Mod+Ctrl+1".action.move-column-to-workspace = 4; | ||||
|         "Mod+Ctrl+2".action.move-column-to-workspace = 5; | ||||
|         "Mod+Ctrl+3".action.move-column-to-workspace = 6; | ||||
|         "Mod+Ctrl+4".action.move-column-to-workspace = 7; | ||||
|         "Mod+Ctrl+5".action.move-column-to-workspace = 8; | ||||
|         "Mod+Ctrl+6".action.move-column-to-workspace = 9; | ||||
|         "Mod+Ctrl+7".action.move-column-to-workspace = 10; | ||||
|         "Mod+Ctrl+8".action.move-column-to-workspace = 11; | ||||
|         "Mod+Ctrl+9".action.move-column-to-workspace = 12; | ||||
|       }; | ||||
|     }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Schrottkatze
				Schrottkatze