summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cardell Widerkrantz <mc@hack.org>2012-03-05 08:19:40 +0100
committerMichael Cardell Widerkrantz <mc@hack.org>2012-03-05 08:19:40 +0100
commitc2dde967dacf9f8eee6de468cacb25859e82a550 (patch)
tree58902e2f45da5ffd3bf20d98839f5c0627028285
parentc5e912c86c94addd9bdc97d6b954396648ae1a0d (diff)
downloadmcwm-c2dde967dacf9f8eee6de468cacb25859e82a550.zip
Added title shell function.
-rw-r--r--mcwm.man28
1 files changed, 27 insertions, 1 deletions
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 <mc@hack.org>.