20 lines
508 B
Go
20 lines
508 B
Go
package hypr
|
|
|
|
import "encoding/json"
|
|
|
|
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)
|
|
}
|