Initial commit
This commit is contained in:
10
themes/blueleaves/polybar/scripts/is-monocle.sh
Executable file
10
themes/blueleaves/polybar/scripts/is-monocle.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user