10 lines
258 B
Plaintext
10 lines
258 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -eo pipefail
|
||
|
|
||
|
MAIN_ID="$(alfaview-get-window-id)"
|
||
|
CURRENT_ID=$(swaymsg -t get_tree | jq '.. | (.nodes? // empty)[] | select(.focused==true).id')
|
||
|
swaymsg "[con_id=$MAIN_ID]" focus
|
||
|
wtype -M ctrl m
|
||
|
swaymsg "[con_id=$CURRENT_ID]" focus
|