From b975ab1aa2b879e584e0668b8ca2aa68608399aa Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 20 Sep 2022 10:21:53 +0300 Subject: [PATCH] Add title --- bashrc.d/ZZZ_always_screen | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bashrc.d/ZZZ_always_screen b/bashrc.d/ZZZ_always_screen index 9c7a0e9..4181b24 100644 --- a/bashrc.d/ZZZ_always_screen +++ b/bashrc.d/ZZZ_always_screen @@ -8,7 +8,7 @@ if [ -n "${screen_cmd}" ]; then echo "This is screen session '${session_name}'" xtitle_cmd="$(which xtitle)" if [ -n ${xtitle_cmd} ]; then - "${xtitle_cmd}" -q "${session_name}" + "${xtitle_cmd}" -q -t "${session_name}" return_code=$? if [ ${return_code} != 0 ]; then echo "There was an error ${return_code} setting the title." @@ -21,7 +21,7 @@ if [ -n "${screen_cmd}" ]; then read -r session_name if [ -n "${session_name}" ] && [ "${session_name}" != "" ]; then if [ -n ${xtitle_cmd} ]; then - "${xtitle_cmd}" -q "${session_name}" + "${xtitle_cmd}" -q -t "${session_name}" else echo "xtitle is not installed so I can't update the title of the X window with the session name. Install it and the experience will be better)" fi