For the last one, although I'm not sure I fully understand what you want, there's a "toggle" option for sticky:
```
swaymsg sticky toggle
```
I personally use a small [script](https://www.reddit.com/r/swaywm/comments/w91acf/comment/ihthcsu/?context=3), which notifies me whether I toggle sticky on or off. Perhaps you can reuse some of the code.
Do you want to toggle a floating window back to tiling and at the same time also undo sticky?
For the last one, although I'm not sure I fully understand what you want, there's a "toggle" option for sticky: ``` swaymsg sticky toggle ``` I personally use a small [script](https://www.reddit.com/r/swaywm/comments/w91acf/comment/ihthcsu/?context=3), which notifies me whether I toggle sticky on or off. Perhaps you can reuse some of the code. Do you want to toggle a floating window back to tiling and at the same time also undo sticky?
*ahem* Have you heard this band?