From 0a222a6ce07274bb26021a2e22b419c9f36d8268 Mon Sep 17 00:00:00 2001 From: noctuid Date: Fri, 27 Nov 2015 20:01:33 -0500 Subject: [PATCH] Update bspwm is_floating command for new syntax Bspc's query --tree command now outputs json. Maintain compatability with old syntax as well. --- tdrop | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tdrop b/tdrop index 142857f..0952981 100755 --- a/tdrop +++ b/tdrop @@ -298,7 +298,8 @@ wm_autoset_for_hide_show() { subtract_when_same=false is_floating() { # checking if the window id (converted from decimal to hex) is floating; empty if not floating - bspc query -T | grep -i "$(printf 0x%x "$1").*f-" + bspc query -T | grep -i "$(printf 0x%x "$1").*f-" || \ + bspc query -T -w | grep '"state": "floating"' } elif [[ $wm == i3 ]]; then subtract_when_same=false