#!/bin/sh if [[ $# -lt 1 ]] ; then echo "i3-rename-workspace new-name" echo "i3-rename-workspace old-name new-name" elif [[ $# -eq 1 ]] ; then i3-msg "rename workspace to \"$1\"" else i3-msg "rename workspace \"$1\" to \"$2\"" fi