-
Notifications
You must be signed in to change notification settings - Fork 5
Home
shod, shodc - mouse-focused window manager
shod [-cs] [-m modifier]
shodc close [win_id]
shodc desks
shodc focus [-clrtbpnLRTBPN] [win_id]
shodc geom [-r] [-x N] [-y N] [-w N] [-h N] [win_id]
shodc goto [-m mon_id] desk_id
shodc list [-ls] [win_id]
shodc sendto [-m mon_id] desk_id [win_id]
shodc state [-ATR] [-abfMmsy] [win_id]
shod is a multi-monitor floating reparenting X11 window manager which supports tiled and tabbed containers. shod sets no keybindings, reads no configuration, and works only via mouse with a given key modifier (Alt by default) and by responding to client messages (it is needed a controller called shodc(1) to control shod).
The options are as follows:
-
-c
Honor configure requests. By default, shod ignore requests to configure a window size or position after the window is mapped. A client may request the window manager to reconfigure (ie', resize or replace) its own window. For example, xterm(1) sends a configure request for the window manager to expand or shrink its window when the user changes its font size. Clients requesting to change its size may be annoying, so configure requests are ignored by defaul; but they can be honored by invoking shod with the -c command-line option.
-
-m modifier
Which modifier, from Mod1 to Mod5 is used to move and resize windows with the mouse pointer. By default, shod uses Mod1 (Alt) as modifier.
-
-s
Use sloppy focus rather than click-to-focus.
shodc is the remote controller for shod. Its first argument must be an operation to be performed. The following arguments are the options for the operation (each operation accepts a different set of options). The last arguments are the operation's arguments, such as a window ID or a desktop ID.
Known operations for shodc are listed below.
The close operation closes a window whose ID is provided as argument. If no argument is provided, close the active window.
The desks operation lists the desktops, one per line.
If the line begins with an asterisk, the desktop is the focused one; If the line begins with a hyphen, the desktop has an urgent window in it. The number is the number of windows in the desktop.
The focus operation focus a window whose ID is provided as argument. If a option is provided, focus a window relative to the window provided as argument.
The options are as follows:
-
-c
Cycle focus. This option only makes sense when using -n, -p, -N, or -P.
-
-l
Focus window in the closest container to the left of the container of the window provided as argument (or the active window, if no argument is provided).
-
-r
Focus window in the closest container to the right of the container of the window provided as argument (or the active window, if no argument is provided).
-
-t
Focus window in the closest container on the top of the container of the window provided as argument (or the active window, if no argument is provided).
-
-b
Focus window in the closest container on the bottom of the container of the window provided as argument (or the active window, if no argument is provided).
-
-p
Focus window in the previous container in the focus list in relation to the container of the window provided as argument (or the active window, if no argument is provided).
-
-n
Focus window in the next container in the focus list in relation to the container of the window provided as argument (or the active window, if no argument is provided).
-
-L
Focus window in the column to the left of the window provided as argument (or the active window, if no argument is provided).
-
-R
Focus window in the column to the right of the window provided as argument (or the active window, if no argument is provided).
-
-T
Focus window in the row above (on the top of) the window provided as argument (or the active window, if no argument is provided).
-
-B
Focus window in the row below (on the bottom of) the window provided as argument (or the active window, if no argument is provided).
-
-P
Focus window in the tab previous to the window provided as argument (or the active window, if no argument is provided).
-
-N
Focus window in the tab next to the window provided as argument (or the active window, if no argument is provided).
The geom operation sets the geometry (position and size) of the container of the window whose ID is provided as argument. If no argument is provided, sets the geometry of the container of the active window. If no position (set by the options -x and -y) is provided, move window to position 0,0 (top left corner).
The options are as follows:
-
-r
Relative. All position and size values are relative to the container's current position and size.
-
-x N
Set the position on the X axis to N.
-
-y N
Set the position on the Y axis to N.
-
-w N
Set the width of the contianer to N.
-
-h N
Set the height of the contianer to N.
The goto operation goes to the desktop ID provided as argument. Different of other window managers, shod counts desktop from 1; So the first desktop is the desktop 1, not the desktop 0.
The options are as follows:
-
-M monitor
Goes to a desktop on the provided monitor rather than on the currently focused monitor. Monitors are counted from 1, not from 0.
The list operation lists windows, one entry per line. If a window ID is provided as argument, list only this window.
The option are as follows:
-
-l
Long list format. More information on this format below.
-
-s
Sort by stacking order.
If the -l option is given, the following information (delimited by tabs) is displayed for each window: window state, window desktop, window geometry (size and position), ID of the container window is on, ID of the row window is on, ID of the window, name of the window.
The state consists of a sequence of eight characters, each one meaning a state for the container. If a character is - the state is not set or does not apply to the window.
- The first character is d to indicate that the window is a dialog.
- The second character is y to indicate that the window's container is sticky.
- The third character is M to indicate that the window's container is maximized.
- The fourth character is m to indicate that the window's container is minimized.
- The fifth character is f to indicate that the window's container is fullscreen.
- The sixth character is s to indicate that the window's container is shaded.
- The seventh character is a to indicate that the window's container is above others, or b to indicate that the window's container is below others.
- The eighth character is u to indicate that the window has the urgency hint set, a to indicate that the window demands attention, or U to indicate that the window is both urgent and demands attention.
- The ninth and last character is a to indicate that the window is active, f to indicate that the window is focused, or A to indicate that the window is both active and focused.
The sendto operation sends to the desktop ID provided as first argument the container of the window whose ID provided as second argument. If no window ID is provided, sends the container of the active window to that desktop. Different of other window managers, shod counts desktop from 1; So the first desktop is the desktop 1, not the desktop 0.
The options are as follows:
-
-M monitor
Sends to a desktop on the provided monitor rather than on the currently focused monitor. Monitors are counted from 1, not from 0.
The state operation sets the state of the container of the window whose ID is provided as argument. If no argument is provided, sets the state of the container of the active window.
The options are as follows:
-
-a
Set state above. Raise container above others.
-
-b
Set state below. Lower container below others.
-
-f
Set state fullscreen. Make container fullscreen.
-
-M
Set state maximized. Maximize container
-
-m
Set state minimized. Minimize container.
-
-s
Set state shaded. The container is resized to fit its titlebars.
-
-y
Set state sticky. Stick container to the monitor.
-
-A
Add (set) state. Force state to be set.
-
-T
Toggle state. Set state if it is unset, or unset it if it is set.
-
-R
Remove (unset) state. Force state to be unset.
shod maintains one virtual monitor for each physical monitor found by Xinerama(1). One of the monitors is the focused one, where new windows go to when they are created. Each monitor contains a different set of virtual desktops (or "desktop", for short). One of the desktops of a monitor is the focused desktop for that monitor.
Each monitor has an area called container area, within containers are spawned and can be maximized. The size and position of a monitor's container area can be changed by bars and the dock.
Most client windows are displayed in containers; but some windows are special and are displayed in different ways.
Containers are floating windows. A container contains sub-windows (called tiles) organized in columns, rows, and tabs; each tile represents a client and can have dialog windows associated with it. A new container is created in the focused desktop of the focused monitor; this new container is placed in a empty area of the screen.
Container Structure. A container has borders (four edge handles and four corner handles) around it; borders are always visible, except when the container is fullscreen. Borders are used to move and resize containers; more information on that below. A container has divisors between its columns, and between the rows within each column. Divisors are used to resize the tiles by dragging them with the first mouse button. A container has title bars above each row; title bars contains tabs, the left (stack) button and the right (close) button. More information on those below.
Focus. Keyboard input goes to the focused client of the focused container. A container can be focused by clicking on it with the 1st mouse button; the click is passed to the application, which can process it in a particular way. The focused container is decorated with a visually distinct decoration (blue in the default theme); while other containers have either the common decoration (gray in the default theme), or have the urgent decoration (red in the default theme).
Stacking Order. Containers are stacked one above the other in the virtual Z axis. The position of the container in this Z axis can be changed by a operation called raising. A container can be raised by clicking on it with the 1st mouse button. The list of containers in this Z axis, from the one in the bottom to the topmost, is called the stacking order. The stacking order is organized in four layers: the bottom layer (for containers below others); the middle layer (for normal containers); the upper layer (for containers above others); and the fullscreen layer (for fullscreen containers, independent of also being below or above others). When a container in is raised, it moves to the top of its layer.
Container States. Each container can have one or more of the following states: maximized (the container occupies the entire container area); fullscreen (the container occupies the entire monitor and its borders are hidden); minimized (the container is not shown on the monitor); shaded (the container is resized to show only the title bars, the clients are hidden); sticky (the container is stickied to the monitor and appears on the screen no matter which desktop is selected); and above/below (the container is raised above or lowered below other containers).
Container Movement. A non-fullscreen, non-maximized container can be moved by the following methods: by dragging the container border with the mouse button 3; by dragging a title bar with the mouse button 1; or by pressing the modifier key and dragging any part of the container with the mouse button 1.
Container Resizing. A non-fullscreen, non-maximized container can be resized by the following methods: by dragging the container border with the mouse button 1; or by pressing the modifier key and dragging any part of the container with the mouse button 3.
The Title-Bar. Each title-bar has tabs, which display the title of its client. Dragging a tab with the mouse button 1 moves the entire container. Dragging a tab with the mouse button 3 dettaches the tab from the container. A detached tab, while being dragged, can be reattached in other container (or the same container) by dropping it on the title bar or on a divisor, or can be made into a new container by dropping it elsewhere.
The Left Title-Bar Button. Each title bar has a left button. Clicking on the left title-bar button with the first mouse button restacks the column by maximizing its row (and minimizing the other rows in the same column) or undoes this state. Dragging the left title-bar button with the third mouse button moves the row through the columns.
The Right Title-Bar Button. Each title bar has a right button. Clicking on the right title-bar button with the first mouse button closes the focused client or its top dialog.
Windows that are transient for another managed windows (called its leader) are mapped in the center of the leader.
Dialogs are small windows that communicates informate to the user and can prompt for a response.
shod only changes the position and size of a dialog window when the size of its leader changes.
Windows of type _NET_WM_WINDOW_TYPE_SPLASH (called splash screens) are mapped above all other windows and are stacked on the order they are spawned. Splash screens cannot be manipulated. Splash screens have no decoration around them.
Splash screens are transient windows that appear temporarily while an application is loading.
shod centers the splash screens on the monitor.
Windows of type _NET_WM_WINDOW_TYPE_MENU, _NET_WM_WINDOW_TYPE_UTILITY, _NET_WM_WINDOW_TYPE_TOOLBAR, or MWM_TEAROFF_WINDOW (called menu windows) are windows that cannot be tiled or tabbed into a container and are tied to a leader window. They are floating windows that always appear on top of their leader and are not listed on the list of clients.
Menu windows, often called torn off windows, are pinnable menus, utility windows and toolbar windows, ie' toolbars and menus "torn off" from the main application.
The user can change the position of a menu window in the same way of changing the position of a container.
A window of type _NET_WM_WINDOW_TYPE_PROMPT (called prompt window) is mapped on the top of the focused monitor. This window will stay focused and mapped until be closed or a mouse button is pressed outside that window. This is an EWMH extension, only used by xprompt(1).
shod does not change the size of the prompt window. However, shod changes its position.
Windows of type _NET_WM_WINDOW_TYPE_DESKTOP (called desktop windows) are mapped bellow all other windows and are stacked on the order they are spawned. Desktop windows cannot be manipulated. Desktop windows have no decoration around them.
Desktop windows indicates a desktop feature. That includes windows such as conky(1) and windows that manage desktop icons.
shod does not change the size nor the position of desktop windows.
Windows of type _NET_WM_WINDOW_TYPE_NOTIFICATION (called notifications) are popped up on the top right corner, one above another. Notification windows cannot be manipulated. Notification windows have a decoration around them; this decoration is the same as the borders of the active container (or, for urgent notifications, the same as the borders of an urgent container).
An example of a notification window would be a bubble appearing with informative text such as "Your laptop is running out of power" etc.
The screen corner where notification windows pop up can be changed with the -N command-line option.
shod can change the size and the position of notification windows.
Windows of type _NET_WM_WINDOW_TYPE_DOCK (called, panels, bars, or external docks (to distinguish them from shod's internal dock)) are mapped on a side of a monitor. Dock windows cannot be manipulated, have no decoration and do not receive input focus.
A bar window can change the size of a region of the monitor called container area. The container area is the region of the monitor that a maximized container occupies. The container area is also the region of the monitor inside which containers are spawned.
Example of bar are a taskbar (that shows which programs are currently running), and a statusbar (that shows information about the system, such as memory usage and system time).
shod does not change the size nor the position of bar windows.
Windows that initiates in the WithdrawnState (called dockapps) are mapped inside the dock. The dock is a panel or bar that appears on the edge of the first monitor. Inside the dock, dockapps are organized by order of map request.
Dockapps, or docked applications are windows which appear to reside inside an icon or a dock rather than a container.
shod understands the following X resources. Some of them (the resources that set colors) occur in triplets, and all of them must be set for a consistent theme.
-
shod.borderWidth
The width of the borders and divisions.
-
shod.activeBackground, shod.activeTopShadowColor, shod.activeBottomShadowColor
The body color, light shadow color, and dark shadow color for the 3D effect of the borders and title bars of active windows.
-
shod.dockBackground, shod.dockTopShadowColor, shod.dockBottomShadowColor
The body color, light shadow color, and dark shadow color for the 3D effect of the dock.
-
shod.dockGravity
The placement of the dock described with up to two uppercase letters. The first letter ("E", "N", "W" or "S") defines in which edge of the screen (East, North, West or South) to allign the dock. The optional second letter (also "E", "N", "W" or "S") defines in which corner of that edge of the screen to allign the dock; if no second letter is supplied, the dock is centered on that edge. For example, for a value of "NE", a horizontal dock will be placed in the north edge of the screen, alligned to the northeast corner. For a value of "EN", a vertical dock will be placed in the east edge of the screen, alligned to the northeast corner. For a value of "E" (the default), a vertical dock wil be placed in the east edge of the screen, alligned to its center.
-
shod.dockWidth
The width (for vertical docks) or height (for horizontal dock) of the dock in pixels. Defaults to 64 (the size of most dockapps).
-
shod.inactiveBackground, shod.inactiveTopShadowColor, shod.inactiveBottomShadowColor
The body color, light shadow color, and dark shadow color for the 3D effect of the borders and title bars of inactive windows.
-
shod.numOfDesktops
The number of desktops for each monitor. The default is 10 desktops for each monitor.
-
shod.notifBackground, shod.notifTopShadowColor, shod.notifBottomShadowColor
The body color, light shadow color, and dark shadow color for the 3D effect of the notification borders.
-
shod.notifGap
The gap in pixels between notifications.
-
shod.notifGravity
The placement of the dock in uppercase abbreviated points of the compass. For example, a value of "N" will place notifications centered on the north edge of the screen. A value of "E" will place notifications centered on the east edge of the screen. A value of "NE" (the default) will place notifications on the northeast corner of the screen.
-
shod.promptBackground, shod.promptTopShadowColor, shod.promptBottomShadowColor
The body color, light shadow color, and dark shadow color for the 3D effect of the prompt borders.
-
shod.shadowThickness
Thickness of the 3D shadow effect. Must be less than the border width.
-
shod.snapProximity
The proximity of edges of a container in pixels for the snap attraction to occur when moving the container. If set to zero, no snap attraction occurs. The default is 8 pixels.
-
shod.font
The font of the text in the title bar.
-
shod.foreground
The color of the text in the title bar.
-
shod.titleWidth
The width of the title bar.
-
shod.urgentBackground, shod.urgentTopShadowColor, shod.urgentBottomShadowColor
The body color, light shadow color, and dark shadow color for the 3D effect of the borders and title bars of urgent windows.
The resources below are named based on the class or the name of a window. Therefore, those resources are client-specific. Replace CLASS with the class of the window, and replace NAME with the name of the window.
-
shod.class.CLASS.type
Define the type of a window whose class is equal to CLASS. Possible types are DESKTOP (for desktop windows) DOCKAPP (for docked applications) or PROMPT (for prompt windows).
-
shod.class.CLASS.dockpos
Define the position in the dock of a docked application whose class is equal to CLASS. Its value should be a number, starting from position 0.
-
shod.name.CLASS.type
Define the type of a window whose name is equal to NAME. Possible types are DESKTOP (for desktop windows) DOCKAPP (for docked applications) or PROMPT (for prompt windows).
-
shod.name.NAME.dockpos
Define the position in the dock of a docked application whose name is equal to NAME. Its value should be a number, starting from position 0.
The following environment variables affect the execution of shod
-
DISPLAY
The display to start shod on.
X(1), xprompt(1), xnotify(1)
XSizeHints(3) are ignored. Size hints make no sense in a tiled and tabbed window manager. They only make sense when the size of a single container depends only on a single window, and a single window dictates the size of a single container. When the size of a container depends on the size of other windows (as in the tiled situation), or when a set of windows must have the same size (as in a tabbed situation), it makes no sense to constrain the size of a container based on the size hints of a single window, because the relation from windows to containers is no more one-to-one.
Shaped client-windows do not have shaped containers. They are mapped inside a rectangular container.
The focus buttons and raise buttons settings, that were presented in earlier versions of shod, are removed in recent versions. It is also not possible anymore to have a focus-follow-pointer focus behavior.