bspwm: Toggling states doesn't work anymore

Hi,

as of bspwm 1088, I’ve got the problem that commands like bspc window -t floating put the window into the given state, but the state isn’t toggled anymore. I. e. in this example, the window is sent into the floating state, but can’t be brought back into tiling state by executing this command again.

Toggling seems to be only dead for states, for flags, it still works…

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 1
  • Comments: 16 (3 by maintainers)

Most upvoted comments

I prefer to have a single shortcut for toggling between tiled and floating, regardless of the window’s initial state, so I use the following in sxhkdrc (with bash as the shell):

super + f
    if [ -z "$(bspc query -N -n focused.floating)" ]; then \                    
        bspc node focused -t floating; \                                        
    else \                                                                      
        bspc node focused -t tiled; \                                           
    fi

@Swoorup

super + {t,shift + t,s,f}
    bspc node -t '~{tiled,pseudo_tiled,floating,fullscreen}'