feat: Adds switch subcommand to workspacectl, and updates keybinds.

This commit is contained in:
2025-10-09 08:16:11 -04:00
parent aec425c7d2
commit 63c8645051
3 changed files with 43 additions and 21 deletions

View File

@@ -20,6 +20,7 @@ USAGE:
COMMANDS:
launch: Launches in a new terminal window.
picker: Shows a picker / stats about active workspaces.
switch: Switch to another workspace, handling special workspaces.
toggle: Toggle visibility of all windows on a workspace.
FLAGS:
@@ -54,6 +55,11 @@ while [[ $# -gt 0 ]]; do
shift
THIS="$THIS picker" "$SCRIPTS/hypr/utils/workspaces/workspace-picker" "$@"
exit $?
elif [[ $1 == "switch" ]]; then
shift
THIS="$THIS switch" "$SCRIPTS/hypr/utils/workspaces/switch-to-workspace" "$@"
exit $?
elif [[ $1 == "toggle" ]]; then
shift
THIS="$THIS toggle" "$SCRIPTS/hypr/utils/workspaces/workspace-toggle" "$@"