by Morgan Aldridge firstname.lastname@example.org
This a set of configuration files for Takashi HASEGAWA's Macintosh-like Virtual Window Manager (MLVWM) with the following goals:
- More accurate emulation of System 7 and MacOS 8 User Interfaces
- A complete configuration out-of-the-box
- Well structured configuration files
MLVWM includes a very rudimentary set of rc (run command) files and requires a fair amount of customization to better emulate Macintosh operating systems' UI. Additionally, since it is generally no more than a hobbyist window manager, no appropriate structure for the rc files (esp. for individual applications), icons (i.e. pixmaps), etc. Last, but not least, I wanted to reduce the amount of configuration needed every time I configure MLVWM on a new workstation.
make && make install to install
bin/mlvwm-* in your home directory, including downloading and/or converting appropriate icons.
It's a good idea to test your
mlvwm configuration prior to attempting to use it as your default window manager for the first time or after making any changes. The easiest way to do this is using
Xephyr. I do the following:
Xephyr :32 -screen 1024x768 & DISPLAY=:32 mlvwm -debug
The above will run
mlvwm in a window, so you can test within your existing environment and easily troubleshoot or kill it if something goes wrong.
SUGGESTED ADDITIONAL CONFIGURATION
Some of the included configurations are for GTK+ 3 applications which use client-side decorations (CSD), resulting in window controls being included in the "header bar". These window controls already exist in the
mlvwm window title bars, so are redundant and look out of place. They can be disabled by editing
~/.config/gtk-3.0/settings.ini to set
gtk-decoration-layout to a blank string (or customize as you see fit), for example:
Configurations for the following X11 applications are included:
- Basilisk II
Configurations for the following X11 applications are included for use in the menu bar:
Configurations for additional applications and utilities are also available from the following separate projects:
mlvwm-specific scripts are included and installed in
~/bin/. You should ensure that this directory is in your user's
PATH environment variable.
mlvwm-message is a wrapper around
xmessage (both of which accept the same options), so that other
mlvwm-specific scripts can use the former, if available, or fall back to the latter.
mlvwm-message [ -buttons label1[:value1],label2[:value2], ... ] [ options ] message ...
mlvwm-message -title "Yo" -buttons "Goodbye:1,Hello:2" -default "Hello" "Hello, world!"
mlvwm-alert is a wrapper around
mlvwm-message which displays an alert-style dialog with the provided title, message, and with a single "OK" button to dismiss it.
mlvwm-alert title message
mlvwm-alert "WARNING!" "This message will self destruct..."
mlvwm-confirm is a wrapper around
mlvwm-message which displays a confirmation-style dialog with the provided title, message, and with two buttons to dismiss it: "OK" to confirm (exit status
0) and "Cancel" to deny (exit status
mlvwm-confirm title message
mlvwm-confirm "Shut Down" "Are you sure you want to shut down your computer now?"
mlvwm-powerdown is a wrapper around OS-specific commands to suspend/sleep, reboot/restart, or shut/power down the computer. It accepts a single option, either
-s for suspend/sleep,
-r for reboot/restart, or
-p for power/shut down. For the
-p options, it utilizes
mlvwm-confirm to prompt for confirmation before restarting or shutting down the computer.
This is primarily used to implement "Sleep", "Restart", and "Shutdown" menu items in the default "Special" menu.
mlvwm-powerdown [ -s | -r | -p ]
mlvwm-powerdown, is unrelated to the power state of the computer and is instead used to relaunch
mlvwm, reloading configurations. It requires
xdotool to trigger a special keyboard shortcut which is specified in the default configuration.
mlvwm-screenshot is a wrapper around
maim which saves a date & time stamped PNG screenshot of the screen in the user's
~/Pictures/ directory. Optionally, by specifying the
-s option, it will allow the user to select an area of the screen to be captured instead of the entire screen.
This is primarily used to implement the screenshots via keyboard shortcuts in the default configuration.
mlvwm-screenshot [ -s ]
MLVWM loads its configuration from
~/.mlvwmrc, but to break configuration up into more logical and manageable chunks within a
~/.mlvwm/ directory. That directory contains its own
.mlvwmrc file which
~/.mlvwmrc gets symlinked to, and it takes advantage of the
Read command (see mlvwm/CONFIGURATION) to import the remaining configuration files.
The current structure is:
~/ .mlvwmrc -> .mlvwm/.mlvwmrc .mlvwm/ .mlvwmrc .initrc .restartrc MenuBar VirtualDesktops theme/ System7 MacOS8 MacOS9 MenuExtras/ xload … apps/ .AppManifest Xterm Xcalc … pixmap/ *.xpm bin/ mlvwm-alert mlvwm-confirm mlvwm-message mlvwm-powerdown mlvwm-restart mlvwm-screenshot
rc file. It contains some important configuration settings & commands, esp.
IconPath, but primarily loads other
rc & configuration files. The active theme can be changed by editing the
Read .mlvwm/theme/System7 line to one of the other theme files.
InitFunction block which can be modified to run commands upon initialization of MLVWM.
RestartFunction block which can be modified to run commands upon init or reload of MLVWM.
Contains configuration settings for virtual desktops, incl. the number of virtual desktops (default is 1.)
Contains the default menu bar configuration. Note: the Apple menu is actually defined in the theme files as some theme-specific settings need to be applied during creation, incl. icons. For this reason, the theme files must be loaded prior to the default menu bar in
Read command for each application-specific file in the
apps directory. This is primarily to limit the complexity of the main
Xosview icon by Oxygen Team.