|
NAMEmcwm - MC's Window Manager for X11.SYNOPSISmcwm [ -b width ] [ -i ] [ -t terminal-program ] [ -f colour ] [ -u colour ] [ -x colour ]DESCRIPTIONmcwm is a window manager for the X Window System.OPTIONS-b width sets border width to this many pixels.-i turns on icons/hidden windows. Please note that there is no way from mcwm to get a hidden window back! You have to use an external program such as a panel or the mcicon or 9icon scripts (see below) to get the window mapped again. -t urxvt will start urxvt when MODKEY + Return is pressed. Change to your prefered terminal program or something else entirely. -f colour sets border colour for focused window to a named colour, such as "red". -u colour sets border colour for unfocused windows. -x colour sets border colour for fixed windows, that is, windows that are visible on all workspaces. USENota bene: For mcwm to be at all useful you need to know how what keys generate the Mod1 and Mod4 modifier masks (default). If you don't know, use xmodmap(1) with the -pm option to list them. If you don't want to use Mod1 and Mod4, you can change the modifiers in the file config.h and recompile.With the the default configuration, use mcwm like this. Mod1 + mouse buttons:
Note that the mouse cursor needs to be inside the window you want to move, raise/lower or resize even if it currently has the focus. This is a feature, not a bug. Mod4 + key on focused window:
Note that all functions activated from the keyboard work on the currently focused window regardless of the position of the mouse cursor. Of course, changing workspaces has nothing to do with the focused window. If you don't like the default key bindings, border width, et cetera, look in the config.h file, change and recompile. In the config.h file you can also define mouse button actions on the root window. By default button 3 starts the command mcmenu. You can write your own mcmenu by using, for instance, 9menu, dmenu or ratmenu. ENVIRONMENTmcwm obeys the $DISPLAY variable.STARTINGTypically the window manager is started from a script, either run by startx(1) or a login manager such as xdm(1).If you start from the console, you need an .xinitrc file. Here's a complete example:
#! /bin/sh # Set nice background. xsetroot -solid grey20 # Set nice pointer cursor. xsetroot -cursor_name plus -fg white -bg black # Load resources. xrdb -load ~/.Xresources # Start window manager in the background. If it dies, X still lives. mcwm & # If you want to allow windows to be hidden, use this instead: # mcwm -i & # Start a terminal in the foreground. If this dies, X dies. exec urxvt SCRIPTSYou may want to define a menu program for use with mcwm (see config.h). In the source distribution you can find an example as mcmenu (the default menu program in config.h) in the scripts directory.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 find the script as scripts/9icon. Inspired by Christian's work I wrote a small program, hidden(1), which is included with mcwm. You can use hidden(1) with the -c option together with 9menu. See scripts/mcicon for an example. 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.
# 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' } Use it like this:
% title 'really descriptive title' SEE ALSOhidden(1)AUTHORMichael Cardell Widerkrantz <mc@hack.org>.
Visit the GSP FreeBSD Man Page Interface. |