#!/bin/bash # Used to check whether the current focused # window in BSPWM is using the monocle layout. if [[ $(bspc query -T -d focused) == *"monocle"* ]]; then echo 1 else echo 0 fi