Writing

DWM Shortcut

2025-07-24

5 minutes read

Share article

DWM Shortcut Guide

Dynamic Window Manager (DWM) is one of the lightest and most efficient window managers for Linux. With DWM, you can manage windows easily using keyboard shortcuts. Here’s a list of essential DWM shortcuts to improve your workflow.

πŸš€ Launching Apps

ShortcutFunction
Mod + pLaunch dmenu
Mod + Shift + EnterLaunch st terminal

πŸ”„ Window Focus & Swap

ShortcutFunction
Mod + jFocus next window
Mod + kFocus previous window
Mod + EnterSwap window with master (zoom)
Mod + TabSwitch to previous tag (view)

⬛ Layout / Window Position

ShortcutFunction
Mod + tTile layout (left-right)
Mod + fFloating layout
Mod + mMonocle layout (fullscreen)
Mod + spaceCycle through layouts
Mod + Shift + spaceToggle floating mode (per window)

πŸ“ Master Area Control

ShortcutFunction
Mod + iIncrease number of master windows
Mod + dDecrease number of master windows
Mod + hShrink master area (mfact -)
Mod + lExpand master area (mfact +)

❌ Close / Quit

ShortcutFunction
Mod + Shift + cKill client (close window)
Mod + Shift + qQuit dwm

πŸ–₯️ Multi-monitor

ShortcutFunction
Mod + ,Focus left monitor
Mod + .Focus right monitor
Mod + Shift + ,Move window to left
Mod + Shift + .Move window to right

πŸ”’ Tag Management (Virtual Desktop)

ShortcutFunction
Mod + [1-9]Switch to tag (workspace) 1–9
Mod + Ctrl + [1-9]Toggle view specific tag (multi view)
Mod + Shift + [1-9]Move window to specific tag
Mod + Ctrl + Shift + [1-9]Toggle move window to multiple tags
Mod + 0View all tags (show all)
Mod + Shift + 0Tag window to all tags

πŸ–±οΈ Mouse Bindings

Click (location)ButtonFunction
Layout symbol (top left)LMBSet layout to default
Layout symbol (top left)RMBSet layout to monocle
Window title (bar)MMBZoom
Status barMMBLaunch terminal
Client (window)Mod + LMBMove window
Client (window)Mod + MMBToggle floating
Client (window)Mod + RMBResize window
Tag bar (left)LMBView tag
Tag bar (left)RMBToggle view tag
Tag bar (left)Mod + LMBTag window to tag
Tag bar (left)Mod + RMBToggle tag window

πŸ“‹ Miscellaneous

ShortcutFunction
Mod + Shift + rReload dwm configuration
Mod + Shift + xExit dwm
Mod + Shift + sScreenshot (uses scrot)
Mod + Shift + vPaste clipboard content
Mod + Shift + bToggle status bar visibility
Mod + Shift + mToggle master area visibility
Mod + Shift + nToggle all windows visibility
Mod + Shift + tToggle title bar visibility
Mod + Shift + fToggle fullscreen mode