mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 22:22:40 +00:00
feat: Adds switch subcommand to workspacectl, and updates keybinds.
This commit is contained in:
6
env/.local/scripts/hypr/workspacectl
vendored
6
env/.local/scripts/hypr/workspacectl
vendored
@@ -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" "$@"
|
||||
|
||||
Reference in New Issue
Block a user