Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
rename-window command for X11
# I added this snippet to my .bashrc to give me a `rename-window` command when
# using a terminal (`st`, in my case). Invoke as:
# `rename-window "the name you desire"`
# If you don't have `xdotool` then we alias an echo so we'll know it's not there.
which xdotool >/dev/null 2>&1
if [ "$?" = "0" ]
alias rename-window='xdotool selectwindow set_window --name'
alias rename-window='echo "xdotool not found"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.