gnunn1 / tilix

A tiling terminal emulator for Linux using GTK+ 3
https://gnunn1.github.io/tilix-web
Mozilla Public License 2.0
5.38k stars 293 forks source link

Support updating the badge via control sequence like iterm2 #2087

Open kohnish opened 2 years ago

kohnish commented 2 years ago

iTerm2 supports updating the badge with printf like this. It's useful for updating in an environment like ssh and tmux.

#!/bin/sh
badge_str=$1
printf "\033Ptmux;\033\033]1337;SetBadgeFormat=%s\a\033\\"   $(echo -n "$badge_str" | base64)