mirror of
https://codeberg.org/scip/swayipc.git
synced 2025-12-16 20:20:56 +01:00
renamed to swayipc
This commit is contained in:
6
bar.go
6
bar.go
@@ -14,7 +14,7 @@ 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package i3ipc
|
||||
package swayipc
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
@@ -74,7 +74,7 @@ type Bar struct {
|
||||
}
|
||||
|
||||
// Get a list of currently visible and active bar names
|
||||
func (ipc *I3ipc) GetBars() ([]string, error) {
|
||||
func (ipc *SwayIPC) GetBars() ([]string, error) {
|
||||
payload, err := ipc.get(GET_BAR_CONFIG)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -89,7 +89,7 @@ func (ipc *I3ipc) GetBars() ([]string, error) {
|
||||
}
|
||||
|
||||
// Get the bar object of the bar specified by the string 'id'
|
||||
func (ipc *I3ipc) GetBar(id string) (*Bar, error) {
|
||||
func (ipc *SwayIPC) GetBar(id string) (*Bar, error) {
|
||||
err := ipc.sendHeader(GET_BAR_CONFIG, uint32(len(id)))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user