From c2dde967dacf9f8eee6de468cacb25859e82a550 Mon Sep 17 00:00:00 2001 From: Michael Cardell Widerkrantz Date: Mon, 5 Mar 2012 08:19:40 +0100 Subject: Added title shell function. --- mcwm.man | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/mcwm.man b/mcwm.man index c2b5eaa..1ceacb7 100644 --- a/mcwm.man +++ b/mcwm.man @@ -1,4 +1,4 @@ -.TH mcwm 1 "Nov 07, 2011" "" "" +.TH mcwm 1 "Mar 05, 2012" "" "" .SH NAME mcwm \- MC's Window Manager for X11. .SH SYNOPSIS @@ -208,5 +208,31 @@ Christian Neukirchen wrote a little script you can use to get iconified windows mapped again if you are running mcwm in allow icons mode (-i). You need awk, xdotool, xprop and xwininfo installed. You can the script as scripts/9icon. +.PP +You might also be interested in the following shell function that +might come in handy to give your terminal emulators good titles before +hiding them. +.sp +.in +4 +.nf +# Set the title and icon name of an xterm or clone. +function title +{ + # icon name + echo -e '\\033]1;'$1'\\007' + # title + echo -e '\\033]2;'$1'\\007' +} +.fi +.in -4 +.sp +Use it like this: +.sp +.in +4 +.nf +% title 'really descriptive title' +.fi +.in -4 +.sp .SH AUTHOR Michael Cardell Widerkrantz . -- cgit v1.2.3