mirror of
http://github.com/JaeUs3792/dotfiles
synced 2025-12-14 08:01:35 +09:00
26 lines
501 B
Bash
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
|