hypr/model_workspace.go

25 lines
592 B
Go
Raw Permalink Normal View History

2024-02-09 20:24:48 +01:00
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)
}