I occasionally want to rename my workspaces and refer to them by their numbers. So I switched from
workspace number and renamed them like so:
1 renamed to
2 renamed to
2: music, etc
as per the user guide. Furthermore, following the suggestion from section 6.5.2 of the user guide, I added the following line in my configuration file:
bindsym $mod+n exec i3-input -F 'rename workspace to %s' -P 'New name: '
However, I would like to avoid typing
"1: www" if I could just type
www and automatically have the workspace number assigned. In particular, I need a variable, say
$WSNUM such that I could write the line like so:
bindsym $mod+n exec i3-input -F 'rename workspace to "$WSNUM: %s"' -P 'New name: '
Is there such a variable? How should I write this line?