#!/bin/rc
op=$1
ws=`{swaymsg -t get_workspaces \
	| jq -r ".[].name" \
	| tofi --require-match=false --prompt-text "Workspace: "}

switch ($op) {
case "switch"
	swaymsg workspace $ws
case "move"
	swaymsg move container to workspace $ws
}
