package main /* Retrieve a list of current available inputs */ import ( "log" "github.com/alecthomas/repr" "codeberg.org/scip/swayipc/v1" ) func main() { ipc := swayipc.NewSwayIPC() err := ipc.Connect() if err != nil { log.Fatal(err) } defer ipc.Close() inputs, err := ipc.GetInputs() if err != nil { log.Fatal(err) } repr.Println(inputs) }