rych wrote: ↑31 Jul 2022, 10:29
New version of sakura shipped with 5.0 doesn't have the -t option anymore. Is there another solution? I wish we could specify the window title in sakura conf, otherwise I'm back to the stupid "Unnamed Window"
yeah, still have an open bug report on this at launchpad.. you can set the the tab name after launch with: rightclick>Set tab name.. or shortcut: shift+ctrl+n
...but then i noticed that there was different behaviour in nemesis(artix) (and my obarun(also arch based) install) ie. the window title takes the initial prompt: eg. guest@porteus:~
with some digging i narrowed it down to this in bashrc:
Code: Select all
case ${TERM} in
xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
;;
screen*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
;;
esac
which i guess sets the variable PROMPT_COMMAND which sakura(and other terms?) can use to set a "window title property" that window managers can understand... or smthng like
i havn't tested this in porteus yet, but i guess you can adjust the part after printf to display whatever you want.. eg. to set the title to just "sakura"
Code: Select all
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s\007" "sakura"'
EDIT:
just checking the launchpad bug report thread: another solution:
add to ~/.config/sakura/sakura.conf > line:
tab_default_title= (doesn't matter if it's empty or whatever you put, the title will always be "sakura")
(again, havn't tested it in porteus)
EDIT EDIT:
both those solutions work in porteus 5.0
the downside of the tab_default_title= approach is that it breaks dynamic tab name setting ..ie. whatever you change the tab name to, the window title remains the same (sakura) whereas the bashrc way does allow that (although each new tab has the original window name)
another thing: without doing either of those^ just opening a new tab (ctrl+shft+t) gives names: terminal 0 and terminal 1 (and switch between tabs at least once(ctrl+arrow) which is then reflected in the window name thereafter...