Skip to content

Set terminal window title #148

@donjan

Description

@donjan

I'd like to be able to customise the title of the GNOME terminal window launched when clicking on an Argos entry that contains a bash action.

As a side note, the gnome-terminal has a --title arg which doesn't seem to work in 2023.

Instead, setting the terminal title works well with a helper function such as shown here:
https://unix.stackexchange.com/questions/177572/how-to-rename-terminal-tab-title-in-gnome-terminal

But I've unsuccessfully tried an Argos line such as:

bash='ORIG=$PS1; TITLE='\[\e]2;test\a\]'; PS1=${ORIG}${TITLE}; echo hello world}'

or escaped:

bash='ORIG=\$PS1; TITLE=\'\\[\\e]2;test\\a\\]\'; PS1=\${ORIG}\${TITLE}; echo hello world}'

and various in-between versions, none of which works.

Neither does having the set-title function in ~/.bash.testing and

bash='source ~/.bash.testing; set-title test'

Can this be done with current Argos?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions