Skyler Grey | ff71562 | 2022-09-01 23:59:07 +0100 | [diff] [blame] | 1 | export id="$(swaymsg -t get_tree | jq -r '.nodes[].nodes[] | select(.name == "__i3_scratch").floating_nodes | reverse[] | ((.id | tostring) + "\t" + (.app_id // .window_properties.class) + "\t" + .name)' | wofi --show dmenu --prompt "Select window to restore" | awk '{print $1;}')" |
2 | echo Showing $id | ||||
3 | swaymsg "[con_id=$id]" focus |