2024-01-05 18:20:29 +01:00
|
|
|
package hypr
|
|
|
|
|
|
|
|
import "encoding/json"
|
|
|
|
|
2024-01-05 18:42:16 +01:00
|
|
|
type WorkspaceIdent struct {
|
|
|
|
ID int `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
}
|
|
|
|
|
2024-01-05 18:20:29 +01:00
|
|
|
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)
|
|
|
|
}
|