diff --git a/.github/assets/screenshot.png b/.github/assets/screenshot.png index 3f2e06c..9500c4a 100644 Binary files a/.github/assets/screenshot.png and b/.github/assets/screenshot.png differ diff --git a/README.md b/README.md index 908917f..6f38477 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ https://github.com/tlinden/swaycycle/issues. - [sway-ipc(7)](https://www.mankier.com/7/sway-ipc) - [swaywm](https://github.com/swaywm/sway/) -- [swayfs](https://github.com/WillPower3309/swayfx) +- [swayfx](https://github.com/WillPower3309/swayfx) ## Copyright and license diff --git a/main.go b/main.go index eaa275d..929a531 100644 --- a/main.go +++ b/main.go @@ -19,7 +19,6 @@ package main import ( "encoding/binary" - "encoding/hex" "encoding/json" "fmt" "io" @@ -214,7 +213,7 @@ func readResponseIPC(sock net.Conn) ([]byte, error) { return nil, fmt.Errorf("failed to read header from socket: %s", err) } - slog.Debug("got IPC header", "header", hex.EncodeToString(buf)) + // slog.Debug("got IPC header", "header", hex.EncodeToString(buf)) if string(buf[:6]) != IPC_MAGIC { return nil, fmt.Errorf("got invalid IPC response from sway socket") @@ -314,7 +313,7 @@ func findNextWindow() int { func switchFocus(id int, sock net.Conn) error { command := fmt.Sprintf("[con_id=%d] focus", id) - slog.Debug("executing", "command", command) + slog.Debug("sending ipc", "command", command) // send switch focus command err := sendHeaderIPC(sock, IPC_RUN_COMMAND, uint32(len(command)))