#!/bin/bash

HYPRCMDS=$(hyprctl -j clients | jq -j '.[] | "dispatch closewindow address:\(.address); "')

hyprctl --batch "$HYPRCMDS" >> /tmp/hypr/cexit.log 2>&1
hyprctl dispatch exit >> /tmp/hypr/cexit.log 2>&1
