i3-rename-workspace 247 B

12345678910
  1. #!/bin/sh
  2. if [[ $# -lt 1 ]] ; then
  3. echo "i3-rename-workspace new-name"
  4. echo "i3-rename-workspace old-name new-name"
  5. elif [[ $# -eq 1 ]] ; then
  6. i3-msg "rename workspace to \"$1\""
  7. else
  8. i3-msg "rename workspace \"$1\" to \"$2\""
  9. fi