i3-msg not toggling scratchpad

asked 2015-09-12 08:21:51 +0000

tigrezno gravatar image

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?

edit retag flag offensive close merge delete

Comments

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.

Airblader gravatar imageAirblader ( 2015-09-12 08:50:09 +0000 )edit

Hi Airblader, I've found that it works when adding a selector like [class=Thunar].

tigrezno gravatar imagetigrezno ( 2015-09-12 09:23:54 +0000 )edit
1

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.

vandannen gravatar imagevandannen ( 2015-09-12 11:24:02 +0000 )edit

But why the keybind version acts like a toggle, but i3-msg won't?

tigrezno gravatar imagetigrezno ( 2015-09-14 09:02:58 +0000 )edit

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.

Adaephon gravatar imageAdaephon ( 2015-09-16 11:17:34 +0000 )edit