blob: 2949be8cc4dd0bb75355c56d49b5eef84ac8285b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
# straight from wofi(7)
swaymsg -t get_tree \
| jq -r '.nodes[].nodes[] | if .nodes then [recurse(.nodes[])] else [] end + .floating_nodes | .[] | select(.nodes==[]) | ((.id | tostring) + " " + .name)' \
| wofi -i --show dmenu \
| {
read -r id name
swaymsg "[con_id=$id]" focus
}
|