Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save erlendaakre/12eb90eef84a3ab81f7b531e516c9594 to your computer and use it in GitHub Desktop.

Select an option

Save erlendaakre/12eb90eef84a3ab81f7b531e516c9594 to your computer and use it in GitHub Desktop.
Basic
=====
[Shift]+[Mod]+[Enter] - launch terminal.
[Mod]+[b] - show/hide bar.
[Mod]+[p] - dmenu for running programs like the x-www-browser.
[Mod]+[Enter] - push acive window from stack to master, or pulls last used window from stack onto master.
[Mod] + [j / k] - focus on next/previous window in current tag.
[Mod] + [h / l] - increases / decreases master size.
Navigation
==========
[Mod]+[2] - moves your focus to tag 2.
[Shift]+[Mod]+[2] - move active window to the 2 tag.
[Mod] + [i / d] - increases / decreases number of windows on master
[Mod] + [, / .] - move focus between screens (multi monitor setup)
[Shift]+[Mod]+[, / .] - move active window to different screen.
[Mod]+[0] - view all windows on screen.
[Shift]+[Mod]+[0] - make focused window appear on all tags.
[Shift]+[Mod]+[c] - kill active window.
[Shift]+[Mod]+[q] - quit dwm cleanly.
Layout
======
[Mod]+[t] - tiled mode. []=
[Mod]+[f] - floating mode. ><>
[Mod]+[m] - monocle mode. [M] (single window fullscreen)
Floating
========
[Mod]+[R M B] - to resize the floating window.
[Mod]+[L M B] - to move the floating window around.
[Mod]+[Space] - toggles to the previous layout mode.
[Mod]+[Shift]+[Space] - to make an individual window float.
[Mod]+[M M B] - to make an individual window un-float.
@5k3lly

5k3lly commented Jan 21, 2020

Copy link
Copy Markdown

On mine [Mod]+[Space] toggles previous layout mode.

@connormichalec

Copy link
Copy Markdown

On mine [Mod]+[Space] toggles previous layout mode.

Same here

@erlendaakre

Copy link
Copy Markdown
Author

oh, snap. will update that now

@Joilnen

Joilnen commented Mar 1, 2021

Copy link
Copy Markdown

@alinxviso

Copy link
Copy Markdown

[Mod]+[Shift]+[Enter] opens a terminal as default

@michjord0001

Copy link
Copy Markdown

[R M B] = Right Mouse Button

ghost commented Sep 1, 2023

Copy link
Copy Markdown

[Mod] + [Tab] - switch to previously viewed tag

@Bekon241

Copy link
Copy Markdown

Please add shotrcut for Veritical and Horisontal split in ST - terminal. And roll up/down example when you want look terminal history.

@optik-aper

Copy link
Copy Markdown

@Bekon241 at least history scrollback requires patches and are not default. This is also a list for dwm, not st so it's probably not appropriate here.

@realyukii

realyukii commented Jun 7, 2024

Copy link
Copy Markdown

I saw a Reddit comment mentioning that Ctrl+Shift+PageUp can increase font size, and it works on my dwm setup. However, I couldn't find where this keybinding is defined in my configuration files. Could someone please point me to the correct location?

@ThomasGrafNumerics

Copy link
Copy Markdown

this is outdated, and likely wont work, a lot of these keybinds are incorrect

Every single one of the above keybinds works in dwm 6.5 (currently the latest version). You might want to check the integrity of your setup.

@gathik-jindal

Copy link
Copy Markdown

one can also view all keybindings using man dwm in the terminal

@bwasilewski

Copy link
Copy Markdown

Thanks for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment