Update window.sh

This commit is contained in:
OdiousImp2604
2021-02-13 16:01:16 +00:00
committed by GitHub
parent 47c54c2912
commit 06fcc705af

View File

@@ -1,6 +1,6 @@
swaymsg -t get_tree | swaymsg -t get_tree |
jq -r '.nodes[].nodes[] | if .nodes then [recurse(.nodes[])] else [] end + .floating_nodes | .[] | select(.nodes==[]) | ((.id | tostring) + "" + .name)' | jq -r '.nodes[].nodes[] | if .nodes then [recurse(.nodes[])] else [] end + .floating_nodes | .[] | select(.nodes==[]) | ((.id | tostring) + "" + .name)' |
wofi -c ~/.config/wofi/menu -s ~/.config/wofi/sway.css --show dmenu | { wofi -c ~/.config/wofi/menu -s ~/.config/wofi/sway.css --show dmenu --lines 5 | {
read -r id name read -r id name
swaymsg "[con_id=$id]" focused swaymsg "[con_id=$id]" focused
} }