Skip to content

Instantly share code, notes, and snippets.

@ha7ilm
Last active October 22, 2021 16:11
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ha7ilm/4712e38bdfdb81d53264c011a7f867e5 to your computer and use it in GitHub Desktop.
Save ha7ilm/4712e38bdfdb81d53264c011a7f867e5 to your computer and use it in GitHub Desktop.
Prompt to rename current workspace in i3 so that the new name starts with the number of the current workspace, e.g. "1:term"
bindsym $mod+u exec i3-input -F "rename workspace to \"$(i3-msg -t get_workspaces | jq -r \"map(select(.focused))[0].num\"):%s\"" -P 'New name for this workspace: '
@ha7ilm
Copy link
Author

ha7ilm commented Oct 30, 2019

Requires jq.

@markstos
Copy link

markstos commented Feb 5, 2020

I'm using this. Thank you.

@03eltond
Copy link

this is really slick, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment