#!/bin/bash

# Close all open windows that aren't in special:* workspaces
hyprctl clients -j |
  jq -r '.[] | select(.workspace.name | startswith("special:") | not) | .address' |
  xargs -I{} hyprctl dispatch closewindow address:{}

# Move to first workspace
hyprctl dispatch workspace 1
