initial commit
This commit is contained in:
		
							
								
								
									
										20
									
								
								model_workspace.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								model_workspace.go
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,20 @@ | ||||
| package niri | ||||
|  | ||||
| import "encoding/json" | ||||
|  | ||||
| type WorkspaceID int | ||||
|  | ||||
| type Workspace struct { | ||||
| 	ID             WorkspaceID `json:"id"` | ||||
| 	Name           string      `json:"name"` | ||||
| 	Output         string      `json:"output"` | ||||
| 	Urgent         bool        `json:"is_urgent"` | ||||
| 	Active         bool        `json:"is_active"` | ||||
| 	Focused        bool        `json:"is_focused"` | ||||
| 	ActiveWindowID WindowID    `json:"active_window_id"` | ||||
| } | ||||
|  | ||||
| func (m Workspace) String() string { | ||||
| 	data, _ := json.MarshalIndent(m, "", "\t") | ||||
| 	return string(data) | ||||
| } | ||||
		Reference in New Issue
	
	Block a user