function kill_toplevel if [ (count $argv) -lt 1 ] echo "usage: $(status filename...
Ity Kitty [unit X-69] - VIOLENT FUCK ⇉ 40C3 @tranquillity@mastodon.minionflo.net
function kill_toplevel
if [ (count $argv) -lt 1 ]
echo "usage: $(status filename) <foreign_toplevel_id> [flags...]"
exit 1
end
kill $argv[2..-1] (swaymsg -t get_tree --raw | jq '.. | objects | select(.foreign_toplevel_identifier == "'$argv[1]'")' | jq '.pid')
end
Works on sway only, kills the toplevel with the given foreign toplevel id