added proof-of-concept monocle tabs bar

This commit is contained in:
2026-06-06 18:35:24 +02:00
parent 850151b8d6
commit f6cb2fb1d2
16 changed files with 564 additions and 8 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
INDEX="$1"
ACTIVEMON=$(mmsg get all-monitors | jq '.monitors[] | select(.active == true) | .name' -r)
echo "activemon is $ACTIVEMON"
ACTIVETAG=$(mmsg get tags $ACTIVEMON | jq '.tags[] | select(.is_active == true) | .index' -r)
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