You are not logged in.
Who decides what is displayed in the title bar for an application? In a terminal I get my login name and the computer host ... and that's fine. But, when running firefox I get part of a novel: The current page section, page and the helpful text "- Mozilla firefox". Is there a way to delete that last part?
Offline
I guess the application sets what is showed in the title bar, I don't think it's an Xfce thing.
In Firefox you can use something like the Custom Titlebar Text add-on (I've never used it).
In the Xfce Terminal, you can tweak the corresponding setting in Preferences > General > Title, plus you can change the title per-tab, live.
Offline
Thanks for the suggestion. I just tried the suggested add on and it (apparently) makes no difference at all to the title bar on any sites I visited. Oh well
Offline
You can use wmctrl or xdotool to set the title.
Here's a quick workaround. Haven't tested much, the loop works for now on two different firefox windows.
The change is not instant because of "sleep 1".
You could set it to .5 but the less sleep is - the more CPU is used.
#!/bin/bash
while :
do
# get firefox xid
ff_xid=$(wmctrl -lx | grep -e "- Mozilla Firefox" | grep -oE "[0-9a-z]{10}")
if [ ! -z "${ff_xid}" ]
then
# extract the title
new_title="$(wmctrl -lx | grep -e "- Mozilla Firefox" | grep -o -P "(?<=$(hostname)).*(?=\- Mozilla Firefox$)")"
# set new title
wmctrl -r "Mozilla Firefox" -N "${new_title}"
fi
sleep 1
done
Do you want to exit the Circus?
https://www.youtube.com/watch?v=ZJwQicZHp_c
Offline
Oh my! And here I thought that it'd be a simple line in my chrome file or a setting in xfce4.
An interesting display of how one can customize a desktop. And, yes, it works.
The little delay is a bit distracting, but it is nice to NOT have the browser name being displayed all the time. I'll have to see if I can figure out why FF thinks appending "mozilla FF" to the title is so damned important
Thanks!
Offline
Probably for the same reason that Ford sticks "Ford" emblems on all its vehicles, lol.
Regards,
MDM
Offline
Yup ... I think you are right
I saw on the 'net that there is an option in FF (got to Customize in the hamburger menu) and at the bottom left there is a "titlebar" option. Apparently, when it is unticked the title bar is supposed to the the tab bar superimposed on it. I tried it a number of times with xfce, unity and plasma ... even as a different user, but I see no difference in that at all.
Offline
[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 536.63 KiB (Peak: 537.47 KiB) ]