Sawfish is a lisp-extensible window manager for X11. Its aim is to allow all areas of window management (decoration, manipulation) to be customised as far as is possible, yet still remain as fast or faster than existing window managers.
Whenever you interact with Sawfish in one way or another it usually involves some kind of binding: Whether it's dragging a window across the screen with your mouse, switching workspaces or closing a window via a combination of keys. All of this follows the same general scheme: You, the user, perform some kind of action – clicking, moving the mouse, pressing a key – to which Sawfish responds in a particular (and hopefully desired) fashion. This association between user performed inputs and Sawfish behavior is called binding.
Most window managers today provide a way to customise bindings. While it's usually possible to bind keys to launch applications and perform simple and common operations like minimizing a window, mouse events are often predefined and can't be changed at all. Sawfish on the other hand allows for full customization of bindings. Even if you don't notice it, every reaction to your inputs is specified by a binding and can be altered.
But bindings in Sawfish are specified by more than just a user input. You obviously don't want one action to have the same effect in every situation. Clicking on a window title should have a different effect than clicking on the root window. That's why you can define contexts for your bindings. Depending on the context, your actions have different outcomes. Clicking on the title of a window might raise it, while clicking on the window itself could raise and focus it. And clicking on the root window would pop up the application menu.
To customise your mouse and key bindings, launch the Sawfish Configurator and switch to the "Bindings" tab.
There are two ways to configure, by the configurator GUI and by preparing lisp code. The GUI can be run by left clicking background -> “Customise”. Most customisations similar to other window managers can be done through GUI.
For customisations by lisp, first understand that in the startup, files ~/.sawfish/custom, .rc are read in this order.
This file is created and edited by the configurator GUI, and stores customisations. It shouldn’t really be edited manually.
This is the file you edit. It is a handwritten lisp code, and almost all explicit customisations should be done here.
This is an example of an rc file, it has extra window movements over and above those that come as standard with Ready Linux. It has window commands which are specific to a particular monitor resolution, 1366 x 768.
You can also put other lisp scripts, like user-contributed codes in the directory ~/.sawfish..
You can start an application in Sawfish from a key. Bind a key to the ‘run-shell-command’ command. In the configurator, you can enter the command name at the same time. From lisp the function system invokes a shell. Don’t forget to add “&” not to block the Sawfish execution.
(system "firefox doodle.com &")
You can add any program to startup automatically by adding it to the file
This is the current autostart file:
feh --bg-scale '/usr/share/wallpaper/c64_wall.png' &
xscreensaver -no-splash &
no copyright to anything ** contact email@example.com or @MarkStuCarter