#!/usr/bin/bash # current highest-numbered workspace MAX_WORKSPACE=$(hyprctl workspaces -j | jq 'sort_by(.id) | reverse | .[0].id') hyprctl dispatch workspace $(($MAX_WORKSPACE + 1))