Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window title #281

Closed
netblue30 opened this issue Feb 8, 2016 · 6 comments
Closed

window title #281

netblue30 opened this issue Feb 8, 2016 · 6 comments
Labels
enhancement New feature request

Comments

@netblue30
Copy link
Owner

From wordpress:

However, I think 1ab4535 (changing the terminal title to “Firejail”) should be reverted. While I’m not against the suggestion of appending “[firejailed]” after the terminal title, the current solution also removes the information about the terminal program, which is much more valuable!
For example, if someone uses the following programs in three separate terminals:
firejail less aaa.txt
firejail less bbb.txt
firejail mpv song.mp3
I think it is undeniably easier to navigate the default titles: “less aaa.txt”, “less bbb.txt”, “mpv song.mp3”, than “Firejail”, “Firejail”, “Firejail”. As a user of many terminal programs, I can confirm that it is currently very difficult to select the correct window, whether from alt-tab or a list. Scripting based on window title (aside from “firejailed or not”) is also not possible right now.

@netblue30 netblue30 added the enhancement New feature request label Feb 8, 2016
@netblue30
Copy link
Owner Author

Fixed!

@rogshdo
Copy link

rogshdo commented Nov 6, 2016

Was this fixed? I am running firejail 0.9.44. When I run, for instance firejail mutt, my window title is firejail. This isn't helpful when in tmux all my window names are firejail!

@rogshdo
Copy link

rogshdo commented Nov 6, 2016

Looking further, this appears to be a tmux issue. If I run $ firejail mutt in a terminal without tmux, the window title is firejail mutt.

However, I run tmux in all my terminals. Tmux looks like it only takes the first word of the window name by default. So they all end up being named firejail.

Has anyone else encountered this?

#242 suggested just using asterisks around the name, so the result would be *mutt*. I like that much better. It would avoid this issue with tmux, and is nice a short which can be an issue with lots of windows open.

@netblue30
Copy link
Owner Author

Let's reopen it and make it a bug. Maybe somebody comes up with another idea. I'll look into detecting tmux. Calling all windows firejail is very bad.

@netblue30 netblue30 reopened this Nov 6, 2016
@pigmonkey
Copy link
Contributor

I also use firejails in tmux and experience the same issue. I frequently have the same things running in the same windows all the time, so I'll tend to just rename the window to mutt or whatever the program is.

I like the idea of wrapping the program name in asterisks or something along those lines to keep it short.

Does it make sense for this to be something that is configured in the profile? Something like:

# I like the current default!
windowtitle "firejail $program"
# I want asterisks!
windowtitle "*$program*"

Where $program is interpreted by firejail.

@chiraag-nataraj
Copy link
Collaborator

Let's move discussion to #1983.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request
Projects
None yet
Development

No branches or pull requests

4 participants