Files
dotfiles/.scripts/workspace-new.sh
2025-08-10 21:41:02 +02:00

11 lines
256 B
Bash
Executable File

#!/usr/bin/env bash
# get highest workspace ID
max_id=$(hyprctl workspaces | grep '^workspace ID ' | awk '{print $3}' | sort -n | tail -1)
# case not found default to 0
if [ -z "$max_id" ]; then
max_id=0
fi
hyprctl dispatch workspace $((max_id + 1))