diff --git a/bar.go b/bar.go index 4ff2293..228a0c8 100644 --- a/bar.go +++ b/bar.go @@ -1,19 +1,3 @@ -/* -Copyright © 2025 Thomas von Dein - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ package swayipc import ( diff --git a/command.go b/command.go index 0c6d65b..79aee55 100644 --- a/command.go +++ b/command.go @@ -1,20 +1,3 @@ -/* -Copyright © 2025 Thomas von Dein - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ - package swayipc import ( diff --git a/doc.go b/doc.go index cf2bbeb..1c2bb87 100644 --- a/doc.go +++ b/doc.go @@ -15,43 +15,5 @@ work with sway and swayfx, but may also work with i3wm, although I haven't tested it on i3wm. The module uses the i3-IPC proctocol as outlined in sway-ipc(7). - -Example usage: - -In this example we retrieve the current focused window: - - package main - - import ( - "fmt" - "log" - - "github.com/tlinden/swayipc" - ) - - func main() { - ipc := swayipc.NewSwayIPC() - - err := ipc.Connect() - if err != nil { - log.Fatal(err) - } - defer ipc.Close() - - tree, err := ipc.GetTree() - if err != nil { - log.Fatal(err) - } - - focused := tree.FindFocused() - - if focused != nil { - fmt.Printf("focused node: %s\n id: %d\n Geometry: %dx%d\n", - focused.Name, focused.Id, focused.Geometry.Width, - focused.Geometry.Height) - } - } - -Also take a look into the **_examples** folder for more examples. */ package swayipc diff --git a/event.go b/event.go index 05d645c..ae23082 100644 --- a/event.go +++ b/event.go @@ -1,20 +1,3 @@ -/* -Copyright © 2025 Thomas von Dein - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ - package swayipc import ( diff --git a/input.go b/input.go index be2274e..03436b3 100644 --- a/input.go +++ b/input.go @@ -1,19 +1,3 @@ -/* -Copyright © 2025 Thomas von Dein - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ package swayipc import ( diff --git a/net.go b/net.go index 957b9ed..d6e2534 100644 --- a/net.go +++ b/net.go @@ -1,20 +1,3 @@ -/* -Copyright © 2025 Thomas von Dein - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ - package swayipc import ( diff --git a/node.go b/node.go index 7954187..15c07ff 100644 --- a/node.go +++ b/node.go @@ -1,19 +1,3 @@ -/* -Copyright © 2025 Thomas von Dein - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ package swayipc import ( diff --git a/output.go b/output.go index 117992f..da5335f 100644 --- a/output.go +++ b/output.go @@ -1,19 +1,3 @@ -/* -Copyright © 2025 Thomas von Dein - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ package swayipc import ( diff --git a/seat.go b/seat.go index 16ac1ae..b891891 100644 --- a/seat.go +++ b/seat.go @@ -1,19 +1,3 @@ -/* -Copyright © 2025 Thomas von Dein - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ package swayipc import ( diff --git a/swayipc.go b/swayipc.go index 969c480..c4292b7 100644 --- a/swayipc.go +++ b/swayipc.go @@ -1,20 +1,3 @@ -/* -Copyright © 2025 Thomas von Dein - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ - package swayipc import ( diff --git a/version.go b/version.go index 521f689..19e5ecf 100644 --- a/version.go +++ b/version.go @@ -1,19 +1,3 @@ -/* -Copyright © 2025 Thomas von Dein - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ package swayipc import (