#!/usr/bin/fish set ws (i3-msg -t get_workspaces | jq --raw-output '.[]|select(.focused == true).name') set script ~/.workspaces/$ws.space if type -q $script $script end