Re: FVWM: Tab window switching more informative??

From: jpkotta <sqrt_-1_at_ezrs.com>
Date: Thu, 12 May 2005 12:27:26 -0500

I have this in my .bashrc:

        # this makes the title of the terminal window 'user_at_host:
/present/working/directory/'
        # see the Eterm technical docs, "Set X Terminal Parameters"
        # 'ESC ] 0 ; string BEL' sets icon name and title to string
        if [[ "$TERM" != "linux" ]] ; then
                     PROMPT_COMMAND='echo -ne "\033]0;${USER}_at_${HOSTNAME}: ${PWD}\007"'
        fi

Though it does the same thing, it doesn't use $PS1. Theoretically, any
command could generate the string, so you may be able to find a way to
make it print out the command that you last executed. I found this in the
Eterm documentation, much of which applies to other terms:
<http://www.eterm.org/docs/view.php?doc=ref>.

BTW, I did the whole snapshot window list thing. You could probably just
dump my config into a file, tweak it a bit, and do a Read on it. I posted
it on the FVWM forum here: <http://fvwm.lair.be/viewtopic.php?t=349>.

jpkotta


On Mon, 09 May 2005 15:34:06 -0500, Peter Williams <petertw_at_gmail.com>
wrote:

> This solution is application-specific, but what i do is include the
> working directory in the xterm titlebar. And then do this separately for
> other applications in which i want more information, for instance.
>
> .bashrc:
>
> case $TERM in
> xterm*)
> TITLEBAR='\[\033]0;xterm:\w\007\]'
> ;;
> *)
> TITLEBAR=''
> ;;
> esac
> PS1="${TITLEBAR}\u_at_\h:\w\$ "
>
> this sets the prompt to be user_at_host:directory
> and the title to be xterm:directory
>
> It is included in the PS1 variable, that way every time the prompt is
> printed the title bar is updated.
>
> -Peter
>
> Yang Yang wrote:
>> hi guys:
>> I use Alt+tab in FVWM to switch between windows. the problem that
>> bothers me is that there is too little information showing in the
>> windowlist, for example, all xterm windows just show "xterm". so I do
>> not know which xterm window is the one I want to go to. it would be
>> more informative if the list also shows, for example, the working
>> directory, recent commands in that window, etc. anybody knows how to
>> do this? ( I do not want to use the "instant
>> snapshot" approach, cuz I'm too lazy to do the config, and it's
>> probably too slow for my machine .... )
>> thanks a lot!
>> Yang
>> --
>> Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
>> To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
>> message to majordomo_at_fvwm.org.
>> To report problems, send mail to fvwm-owner_at_fvwm.org.
>>
>
> --
> Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
> To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
> message to majordomo_at_fvwm.org.
> To report problems, send mail to fvwm-owner_at_fvwm.org.


--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Thu May 12 2005 - 12:28:55 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:57 BST