Files
dotfiles/polybar/hack/scripts/is-monocle.sh
2025-06-03 14:16:01 +03:00

11 lines
193 B
Bash
Executable File

#!/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