leftwm(1)
π leftwm(1) β tiling window manager for adventurers π
okay so bestie, this is the manual page for leftwm(1), and it is literally giving main character energy for your desktop. no cap. π
πΈ NAME πΈ
LeftWM - A tiling window manager for adventurers. For more comprehensive documentation of leftwm please see: https://github.com/leftwm/leftwm/wiki
β¨ SYNOPSIS β¨
leftwm [SUBCOMMAND]
π DESCRIPTION π
leftwm starts the left window manager on $DISPLAY. this will depend on your session manager, though it is recommended to start leftwm using exec-dbus-launch leftwm . β yes, that command also launches leftwm-worker and logs for errors to the console. the list of available subcommands available for leftwm is listed below:
π SUBCOMMANDS π
-h,--helpβ prints help information for this subcommand. This flag can also be used with other subcommands to display their own help message.-v,--versionβ prints the version information.-b,--backendβ Specify the backend to use when starting LeftWM. Available backends depends on which feature flag was enables at compile time. You can check which backends are available on your LeftWM installation by usingleftwm help backend.
Currently implemented backends: "xlib" (default), "x11rb"
checkβ This command will run several actions to ensure leftwm is configured properly. It will report the current leftwm version and git commit, it will also check if configuration is loaded correctly, check for syntax errors in yourconfig.ronfile, check your environment and theme files for errors as well.
NOTE: This subcommand will check for basic / common mistakes made in the directory structure or permissions, however it will not check or report if any mistakes were made in any extra scripts, bar configurations, liquid templates and anything that isn't the up or down executables.
commandβ This subcommand sends commands directly to leftwm. It can also be used to concat commands for a keybind inconfig.ron. For a list of available commands use the-l, --listflag.stateβ Prints the current state of leftwm (in JSON format). You can also use flags and liqud-like syntax for a more refined output of this command. iykyk β¨themeβ Manage leftwm themes (This is part of an external package found in:https://GitHub.com/leftwm/leftwm-theme).configβ Manage leftwm configuration (This is part of an external package found in:https://GitHub.com/leftwm/leftwm-config).
π¦ CONFIGURING LEFTWM π¦
NOTE: From0.6.0, support for TOML was dropped in favor of RON as config language. Please useleftwm-configwith themigratecommand to convert your config. For more info please refer to the wiki.
π Configuration file π
The settings file of leftwm can be found at: $HOME/.config/leftwm/config.ron
With this file you can configure the modkey for leftwm, available keybinds, tag names, workspace layouts and more.
NOTE: This file is automatically generated when leftwm or leftwm-check is run for the first time.
π Default keybinds π
β Movement β
up, down, left or right refer to the arrow keys in your keyboard.
Mod + (1-9)β Switch to a desktop/tagMod + Shift + (1-9)β Move the focused window to desktop/tagMod + Wβ Switch the desktops for each screen. Desktops[1][2]changes to[2][1]Mod + Shift + Wβ Move window to the other desktopMod + (up or down)β Focus on the different windows in the current workspaceMod + Shift + (up or down)β Move the different windows in the current workspaceMod + Enterβ Move selected window to the top of the stack in the current workspaceMod + Ctrl + (up or down)β Switch between different layoutsMod + Shift + (left or right)β Switch between different workspacesMod + Shift + Enterβ Open a terminalMod + Ctrl + Lβ Lock the screenMod + Shift + Xβ Exit LeftWMMod + Shift + Qβ Close the current windowMod + Shift + Rβ Reload LeftWM and its configMod + pβ Use dmenu to start application
Note: Although we encourage you to use Alacritty, LeftWM will set your default terminal to the first terminal it finds in this list (in the order presented):
- Alacritty
- Termite
- Kitty
- URXVT
- RXVT
- ST
- ROXTerm
- Eterm
- XTerm
- Terminator
- Terminology
- Gnome Terminal
- XFCE4 Terminal
- Konsole
- UXTerm
- Guake
π About Keybind Modifiers π
Note: All entries require a modifier, even if blank:modifier: []see yourconfig.ronfile for more information.
π§ Floating Windows π§
You can optionally switch between tiling or floating mode for any window.
Mod + MouseDragβ Switch a tiled window to floating modeMod + RightMouseDragβ Resize a windowDrag window to a workspace edgeβ Switch a floating window to tiling mode
π₯ FloatingToTile π₯
This behaviour snaps the currenly focused window into the workspace below.
π TileToFloating π
This behaviour switches the currently focused window to floating mode when it's tiled.
π ToggleFloating π
This behaviour switches the currenly focused window between floating and tiled mode. periodt. π
IMPORTANT: bestie, you literally have to reload before any of the changes you write into config.ron do anything. No reload, no slay. π
NOTE: as of0.6.0, support for TOML got dropped in favour of RON as the config language. Please useleftwm-configwith themigratecommand to convert your config. For more info please refer to the wiki. π
π Modkey
The modkey is the most important setting, full stop. Lots of the other settings use it and it controls how key bindings work:
Default: modkey = "Mod4" (windows key) π
π Mousekey
The mousekey is similarly quite important. This value decides which key, when held, can assist a mouse drag in resizing or moving a floating window β or in making a window float or tile. It's giving co-pilot energy, honestly.
Default: mousekey = "Mod4" (windows key)
π Focus Behaviour
LeftWM has 3 focusing behaviours (Sloppy, ClickTo, and Driven) and 2 options (focus_new_windows, sloppy_mouse_follows_focus), which alter the way focus is handled. Together these encompass 5 different patterns:
- Sloppy Focus. Focus follows the mouse β hovering over a window brings it to focus. This behaviour has a variant, toggled with the
sloppy_mouse_follows_focusoption:- When
true, the cursor will follow the focus and teleport to the window that takes focus. β¨ - When
false, the cursor isn't moved by LeftWM at all.
- When
- Click-to-Focus. Focus follows the mouse, but only clicks change focus.
- Driven Focus. Focus disregards the mouse entirely; only keyboard actions drive the focus. keyboard main character energy fr.
Default:
focus_behaviour = "Sloppy" # Can be Sloppy, ClickTo, or Driven
focus_new_windows = true
sloppy_mouse_follows_focus = true # Only active with the Sloppy behaviour
π±οΈ Cursor Behaviour on Resize
LeftWM automatically snaps the mouse to the nearest corner (or lower right on default) when a window is being resized. This behaviour is controlled by the disable_cursor_reposition_on_resize setting. When true, the cursor will not be repositioned on resize start. When false or unspecified, the cursor will be snapped to the nearest corner of the window which is being resized β or lower right if the nearest is multiple corners. π
Default: disable_cursor_reposition_on_resize = false
πͺ Dialog Position
LeftWM centers dialog windows by default while retaining the dimensions requested by the client. Set respect_dialog_position to true to also retain the position requested by dialog-like windows.
Default: respect_dialog_position = false
πΈ Window Creation and Cursor Focus
In multi-workspace layouts (such as with multiple monitors), LeftWM will, by default, create the new window on the workspace where the cursor is currently located β even if that workspace is not the workspace which is focused. In Click-to-Focus and Driven Focus modes, though, it is often desirable to create the window in the focused workspace, not the one wherein the mouse is located. The create_follows_cursor feature lets you change this behavior. New windows will be created in the workspace:
- Containing the cursor when unset (
None),Some(true), or when the cursor is in Sloppy mode π±οΈ - Which is focused when set to
Some(false)
Default: create_follows_cursor = None
π Per-window New-window Mouse Warping
When Sloppy focus, focus_new_windows, and sloppy_mouse_follows_focus would normally move the pointer into a new window, a window rule can suppress that creation-time movement with disable_mouse_grab. This option controls pointer movement; it does not disable keyboard focus or mouse-button handling. important distinction, bestie π«Ά
Example:
window_rules: [
(window_class: "^pavucontrol$", disable_mouse_grab: true),
],
Windows of type _NET_WM_WINDOW_TYPE_UTILITY suppress the movement by default. A matching rule with disable_mouse_grab: false explicitly restores the normal behavior for a utility window.
π§ Layouts
Leftwm supports a variety of user definable layouts. Layouts define the way that windows are tiled in the workspace. iconic behaviour, truly.
The layouts considered by leftwm can be customized in the config.ron file by editing the layouts and the layout_definitions entries.
The layouts in the layouts list are those accessible when switching layouts. For an example with a single layout:
layouts = [ "MyMainAndVertStack" ]
Each list in the layouts list must have a corresponding definition in the layout_definitions entry. For example:
layout_definitions = [(
name: "MyMainAndVertStack",
flip: None,
rotate: North,
reserve: ReserveAndCenter,
columns: (
flip: None,
rotate: North,
main: (count: 1, size: 0.8, flip: None, rotate: North, split: None),
stack: (flip: None, rotate: North, split: Horizontal),
second_stack: None,
),
)]
The size of the main area can be controlled with the IncreaseMainSize and DecreaseMainSize commands. ποΈ
There are various possiblities for the other parameters, and the user is referred to the default configuration file to see a large selection of examples. (go look, it's a whole mood board of layouts π)
π₯οΈ Workspaces
Workspaces are how you view tags (desktops). A workspace is an area on a screen β or most likely the whole screen. In these areas you can view a given tag.
Default: workspaces: [] (one workspace per screen)
Example (two workspaces on a single ultrawide):
workspaces: [
( y: 0, x: 0, height: 1440, width: 1720 ),
( y: 0, x: 1720, height: 1440, width: 1720 ),
],
Workspaces can also be applied to a specific screen by using the output field. If this field is used, all size-related fields get relative to the output's position. You can set multiple workspaces per screen. π«Ά
If you only set per-screen workspaces, unassigned screens will be automatically given a workspace.
You can get the output names by running xrandr in your terminal.
Again the example for an ultra-wide screen, splitting workspaces by substracting half the width:
workspaces: [
( output: "HDMI-1", y: 0, x: 0, height: 1440, width: -1720 ),
( output: "HDMI-1", y: 0, x: 1720, height: 1440, width: -1720 ),
],
Workspaces can also be given their own list of layouts, which will override the global layouts list for that workspace only. π«
Example:
workspaces: [
( output: "HDMI-1", y: 0, x: 0, height: 1440, width: 1720, layouts: [ "CenterMain", "MainAndVertStack", "MainAndDeck" ] ),
],
You can also set the default layout for a workspace by using the default_layout field β this sets the layout the workspace will start with.
Example (setting the default layout of workspace 1 to MainAndVertStack):
workspaces: [
( output: "HDMI-1", y: 0, x: 0, height: 1440, width: 1720, default_layout: "MainAndVertStack" ),
],
π·οΈ Tags
Tags are the names of the virtual desktops where windows live. In other window managers these are sometimes just called desktops. You can rename them to any unicode string β including symbols/icons from popular icon libraries such as font-awesome. π go feral with the emoji tags, I support you.
Default: tags: ["1", "2", "3", "4", "5", "6", "7", "8", "9"]
π Scratchpads
A scratchpad is a set of windows which you can call to any tag and hide when not needed. These windows can be any set of application which can be run from a terminal. To call a scratchpad you will require a keybind for ToggleScratchPad. When you want to manipulate the currently focused scratchpad, other commands like ReleaseScratchPad, AttachScratchPad and NextScratchPadWindow/PrevScratchPadWindow are available. π
it's giving secret stash energy.
Example:
scratchpad: [
( name: "Alacritty", // This is the name which is referenced when calling (case-sensitive)
value: "alacritty", // The command to load the application if it isn't started (first application to start)
args: ["-e", "python"], // Any arguments to pass to the command
// x, y, width, height are in pixels when an integer is inputted or a percentage when a float is inputted.
// These values are relative to the size of the workspace, and will be restricted depending on the workspace size.
x: 860, y: 390, height: 300, width: 200
),
],
π WIKI
You can find more documentation in the LefrWM Wiki: https://github.com/leftwm/leftwm/wiki π¦
π BUGS
If you find any bugs or functionality issues please report them on Github: https://github.com/leftwm/leftwm/issues π₯ (be nice, they're doing their best)
π AUTHORS
The LeftWM Development Team.
Β©οΈ COPYRIGHT
2021 - LeftWM
and that's the whole page bestie!! this cutie came out of the User Manuals corner of Gnu/Linux, filed as leftwm(1) β go forth and tile something iconic πβ¨
π¦ where this page comes from
- nixpkgs unstable: leftwm 0.5.5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms