updated monocle bar to be actually useable, now just need to make a daemon.

This commit is contained in:
2026-06-06 19:55:52 +02:00
parent f6cb2fb1d2
commit be4d7a9b7a
8 changed files with 169 additions and 22 deletions
+6
View File
@@ -2,6 +2,10 @@
INDEX="$1"
while [ -e ~/.config/monocle.lock ]; do
sleep 0.01
echo "sleeping"
done
ACTIVEMON=$(mmsg get all-monitors | jq '.monitors[] | select(.active == true) | .name' -r)
echo "activemon is $ACTIVEMON"
@@ -10,6 +14,8 @@ echo "activetag is $ACTIVETAG"
WINDOWID=$(cat ~/.config/monocle.state | grep -e "index:$INDEX" | cut -d'\' -f3)
WINDOWtitle=$(cat ~/.config/monocle.state | grep -e "index:$INDEX" | cut -d'\' -f2)
echo "moving window $WINDOWID"
mmsg dispatch zoom client,$WINDOWID