#!/bin/sh HYPRCMDS=$(hyprctl -j clients | jq -j '.[] | "dispatch closewindow address:\(.address); "') hyprctl --batch "$HYPRCMDS"