updated monocle bar and added wayshell framework with some modules.
This commit is contained in:
@@ -1,21 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
ACTIVEMON=$2
|
||||
INDEX="$1"
|
||||
while [ -e ~/.config/monocle.lock ]; do
|
||||
while [ -e ~/.config/monocle-$ACTIVEMON.lock ]; do
|
||||
sleep 0.01
|
||||
echo "sleeping"
|
||||
done
|
||||
|
||||
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)
|
||||
WINDOWID=$(cat ~/.config/monocle-$ACTIVEMON.state | grep -e "index:$INDEX" | cut -d'\' -f3)
|
||||
WINDOWtitle=$(cat ~/.config/monocle-$ACTIVEMON.state | grep -e "index:$INDEX" | cut -d'\' -f2)
|
||||
|
||||
|
||||
echo "moving window $WINDOWID"
|
||||
|
||||
mmsg dispatch zoom client,$WINDOWID
|
||||
mmsg dispatch focusid client,$WINDOWID
|
||||
|
||||
Reference in New Issue
Block a user