2022-09-17 02:09:55 +09:00

26 lines
501 B
Bash

#!/bin/bash
eww="eww -c $HOME/.config/eww/mybar"
bspc subscribe desktop_focus desktop_layout | while read line; do
case `bspc query -T -d | jq -r .layout` in
tall)
echo "Tall"
;;
tiled)
$eww update layout_button=
;;
grid)
echo "Grid"
;;
monocle)
$eww update layout_button=
;;
even)
echo "Even"
;;
*)
echo "?"
;;
esac;
done