i3-msg not toggling scratchpad
I'm issuing this:
i3-msg "scratchpad show"
It shows the scratchpad, but when executed again, scratchpad won't hide like with the keybind.
Is it a bug?
I'm issuing this:
i3-msg "scratchpad show"
It shows the scratchpad, but when executed again, scratchpad won't hide like with the keybind.
Is it a bug?
Asked: 2015-09-12 08:21:51 +0000
Seen: 63 times
Last updated: Sep 12
Yeah, would sound that way. Make sure you are running the latest version (4.10.4), pull a log file (please read the debugging docs for this) and report it on Github.
Hi Airblader, I've found that it works when adding a selector like [class=Thunar].
I do not know if that is what you are experiencing, but 'scratchpad show' will only move the currently shown scratchpad window back to scratchpad if it is currently focused, otherwise it will just focus that window.
But why the keybind version acts like a toggle, but i3-msg won't?
As vandannen said, if the scratchpad window is not focused, it will be focused. It will only be hidden, if it is focused. When you run `i3-msg` from some other window, that window has the focus. If you use this only for testing you can use `sleep 2 ; i3-msg ...` and manually focus the window.