Add number to rename_workspaces prompt

This commit is contained in:
Adam Goldsmith 2017-08-14 02:04:19 -04:00
parent 6f572962ce
commit f63ffa5ad5

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
num=`i3-msg -t get_workspaces | jq 'map(select(.focused == true))[0].num'` num=`i3-msg -t get_workspaces | jq 'map(select(.focused == true))[0].num'`
i3-input -F "rename workspace to \"$num:%s\"" -P 'New name: ' i3-input -F "rename workspace to \"$num:%s\"" -P "New name: $num:"
name=`i3-msg -t get_workspaces | jq 'map(select(.focused == true))[0].name'` name=`i3-msg -t get_workspaces | jq 'map(select(.focused == true))[0].name'`
# If empty name was set # If empty name was set