hypr/model_workspace.go

25 lines
592 B
Go

package hypr
import "encoding/json"
type WorkspaceIdent struct {
ID int `json:"id"`
Name string `json:"name"`
}
type Workspace struct {
ID int `json:"id"`
Name string `json:"name"`
Monitor string `json:"monitor"`
MonitorID int `json:"monitorID"`
Windows int `json:"windows"`
HasFullscreen bool `json:"hasfullscreen"`
LastWindow string `json:"lastwindow"`
LastWindowTitle string `json:"lastwindowtitle"`
}
func (w Workspace) String() string {
data, _ := json.MarshalIndent(w, "", "\t")
return string(data)
}