Basics
You will learn
- How tiling differs from floating window managers
- How to start SomeWM and read the default desktop
- Essential keybindings for windows, tags, and layouts
- How to edit and reload your
rc.lua
Prerequisites
- SomeWM installed and working
- A terminal emulator installed (the default config uses
xterm, but any terminal works)
What is a Tiling Window Manager?
SomeWM is a tiling window manager. This means:
- Windows don't overlap - they automatically arrange to fill your screen
- Keyboard-driven - most actions use keyboard shortcuts instead of mouse
- Highly customizable - everything is configured in Lua
Starting SomeWM
From a Display Manager
If you use a display manager (GDM, SDDM, LightDM), select SomeWM from the session menu before logging in.
From TTY
If you prefer starting from a terminal:
# Make sure no other compositor/WM is running
somewm
Understanding the Desktop
The Wibar (Top Bar)
The bar at the top of your screen is called a wibar (widget bar). From left to right:
| Component | Description |
|---|---|
| Launcher icon | Click to open the main menu |
| Tags (1-9) | Virtual desktops - click to switch |
| Prompt area | Shows the run prompt when activated |
| Tasklist | Shows windows on current tag (middle section) |
| Keyboard layout | Current keyboard layout |
| System tray | App indicators (volume, network, etc.) |
| Clock | Current time |
| Layout indicator | Shows current window layout (rightmost) |
Tags vs Workspaces
SomeWM uses tags instead of fixed workspaces:
- A window can be on multiple tags at once (not just one)
- You can view multiple tags simultaneously
- Tags are numbered 1-9 by default
Think of tags as labels you attach to windows, rather than containers that hold windows.
Your First Commands
All shortcuts use Mod4 (Super/Windows key) as the primary modifier.
Opening a Terminal
Press Mod4 + Enter to open a terminal.
Opening More Windows
Open a few more terminals with Mod4 + Enter.
The first window takes the left half (the "master" area), and additional windows stack on the right. See Master and Stack to learn how this works and how to customize it.
Switching Focus
With multiple windows open:
| Keybinding | Action |
|---|---|
| Mod4 + j | Focus next window |
| Mod4 + k | Focus previous window |
| Mod4 + Tab | Switch to last focused window |
Try pressing Mod4 + j and Mod4 + k to move focus between windows.
Closing Windows
Press Mod4 + Shift + c to close the focused window.
The Run Prompt
Press Mod4 + r to open a run prompt in the wibar. Type any command (like firefox or nautilus) and press Enter.
Showing Help
Press Mod4 + s to show the keybinding help popup.
Press any key to dismiss the help popup.
Working with Tags
Tags are how you organize your windows. By default, you have 9 tags (numbered 1-9).
Switching Tags
| Keybinding | Action |
|---|---|
| Mod4 + 1-9 | Switch to tag 1-9 |
| Mod4 + Left | Switch to previous tag |
| Mod4 + Right | Switch to next tag |
Try it: Open a terminal, then press Mod4 + 2 to switch to tag 2. Open another terminal here.
Now press Mod4 + 1 to go back to tag 1. The first terminal is still there.
Moving Windows Between Tags
To move the focused window to another tag:
| Keybinding | Action |
|---|---|
| Mod4 + Shift + 1-9 | Move window to tag 1-9 |
Viewing Multiple Tags
| Keybinding | Action |
|---|---|
| Mod4 + Ctrl + 1-9 | Toggle viewing tag 1-9 |
Press Mod4 + Ctrl + 2 while on tag 1 to view both tags simultaneously.
Understanding Layouts
SomeWM supports multiple window layouts. The current layout is shown in the rightmost icon of the wibar.
Changing Layouts
| Keybinding | Action |
|---|---|
| Mod4 + Space | Next layout |
| Mod4 + Shift + Space | Previous layout |
Common layouts:
| Layout | Description |
|---|---|
| Tile | Master on left, stack on right |
| Fair | All windows equal size |
| Max | Focused window fills screen |
| Floating | Traditional overlapping windows |
Resizing the Master Area
In tiling layouts, you can adjust how much space the master area takes:
| Keybinding | Action |
|---|---|
| Mod4 + l | Increase master width |
| Mod4 + h | Decrease master width |
This works with tile, spiral, and dwindle layouts.
Using the Mouse
Mouse bindings:
| Action | Effect |
|---|---|
| Click on tag | Switch to that tag |
| Scroll on taglist | Cycle through tags |
| Mod4 + Left Click (drag) | Move window (in floating mode or makes window floating) |
| Mod4 + Right Click (drag) | Resize window |
| Right-click on desktop | Open main menu |
Your First Customization
Finding Your Config File
SomeWM looks for configuration in this order:
~/.config/somewm/rc.lua~/.config/awesome/rc.lua(AwesomeWM compatibility)- System fallback config
If you don't have a config yet, copy the default:
mkdir -p ~/.config/somewm
cp /usr/share/somewm/somewmrc.lua ~/.config/somewm/rc.lua
Or if you installed from source:
mkdir -p ~/.config/somewm
cp /path/to/somewm/somewmrc.lua ~/.config/somewm/rc.lua
Changing Your Terminal
Open your config file in any text editor:
nano ~/.config/somewm/rc.lua
# or
vim ~/.config/somewm/rc.lua
Find this line near the top:
terminal = "xterm"
Change it to your preferred terminal:
terminal = "alacritty" -- or "kitty", "foot", "wezterm", etc.
Save the file.
Reloading Your Config
Press Mod4 + Ctrl + r to reload your configuration.
Now Mod4 + Enter opens your new terminal.
If there's an error in your config, SomeWM will show a notification and continue with the old config. Check the notification for details about what went wrong.
Changing the Modkey
If you prefer a different modifier key, find this line:
modkey = "Mod4"
Common alternatives:
"Mod4"- Super/Windows key (default)"Mod1"- Alt key
Be careful when changing modkey - you'll need to use the new key for all shortcuts, including the reload shortcut!
Quick Reference Card
| Action | Keybinding |
|---|---|
| Open terminal | Mod4 + Enter |
| Close window | Mod4 + Shift + c |
| Run prompt | Mod4 + r |
| Show help | Mod4 + s |
| Switch tag | Mod4 + 1-9 |
| Move window to tag | Mod4 + Shift + 1-9 |
| Focus next/prev | Mod4 + j/k |
| Change layout | Mod4 + Space |
| Reload config | Mod4 + Ctrl + r |
| Quit SomeWM | Mod4 + Shift + q |
What's Next?
- Theme - Change colors, fonts, and appearance
- Keybindings - Add your own keyboard shortcuts
- Widgets - Build a custom widget for your wibar
- Default Keybindings - Complete list of all shortcuts
Troubleshooting
Nothing happens when I press keys
Make sure you're pressing the correct modifier. By default, Mod4 is the Super/Windows key. On some keyboards, you may need to check your BIOS settings or use xmodmap to configure the modifier keys.
Terminal won't open
The default config uses xterm. If it's not installed, either:
- Install xterm:
sudo apt install xterm(Debian/Ubuntu) orsudo pacman -S xterm(Arch) - Change the terminal in your config as shown above
Config changes don't work
After editing rc.lua:
- Save the file
- Press
Mod4 + Ctrl + rto reload - Check for error notifications
If you see an error, SomeWM will tell you the line number. Common issues:
- Missing comma at end of line
- Mismatched brackets or parentheses
- Typos in variable names
See the Troubleshooting guide for more help.