A rudimentary bash script for hyprland to open an empty workspace on the same monitor. This resolves the problem that, when calling for an empty workspace with multi-monitor setups, the focus changes to another monitor that already has an empty workspace.
Focus the empty workspace:
bind = $mainMod, Slash, exec, $HOME/.config/hypr/scripts/monitor-new-workspace.sh
Move windows to the empty workspace:
bind = $mainMod SHIFT, Slash, exec, $HOME/.config/hypr/scripts/monitor-new-workspace.sh --move