Here's a complete guide:
Setting urgency hints in i3
You need the following settings in your i3 config to have the workspace indicator go red and draw a red border around your windows which have the urgency hint set:
client.urgent #2f343a #900000 #ffffff #900000
bar {
colors {
urgent_workspace #2f343a #900000 #ffffff
}
}
Setting urgency hints in your terminal emulator
According to kempurpy, only urxvt and terminator support this. As I only use urxvt, I needed to set the following in my Xdefaults:
urxvt*urgentOnBell: true
Setting urgency hints in your shell
urxvt will now set the urgency hint whenever a bell is encountered; to do that with bash, I simply use the following alias:
alias enable_alert='PS1="$PS1\a"'
I now can make any shell an alerting shell by simply typing "enable_alert".
Putting it all together
Hint: If you are using debian, and using urxvturgentOnBell in your config as well as x-terminal-emulator (which is called by i3-sensible-terminal) - that won't work. In that case, use x-terminal-emulatorurgentOnBell or *.URxvt.urgentOnBell.