21 lines
		
	
	
		
			513 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			513 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package niri
 | |
| 
 | |
| import "encoding/json"
 | |
| 
 | |
| type WorkspaceID int
 | |
| 
 | |
| type Workspace struct {
 | |
| 	ID             WorkspaceID `json:"id"`
 | |
| 	Name           string      `json:"name"`
 | |
| 	Output         OutputName  `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)
 | |
| }
 |