I've created a ~/.screenrc file based on another question here:
autodetach on startup_message off hardstatus alwayslastline shelltitle 'bash' hardstatus string '%{gk}[%{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= w}%?%+Lw%?%? %{g}][%{d}%l%{g}][ %{= w}%Y/%m/%d %0C:%s%a%{g} ]%{W}' Which is great, except that it doesn't contain anything that's useful to me! What I would like the hardstatus string to display is the "name" I give when I started screen.
For example, if I start a screen session as follows:
$ screen -S bluetoothctl bluetoothctl I would like the string "bluetoothctl" displayed in the status line/hardstatus string.
How do I do that?