#+TITLE: Joe's dwm (the dynamic window manager) build
The original [[https://dwm.suckless.org/][dwm]] build I used to run. Based on version 6.2.

* Dependencies
** Required:
	 - A C Compiler
	 - ~make~
	 - ~xorg~
	 - ~libX11~
	 - ~libXft~

** Optional:
	 - ~st~ find my custom improved build [[https://github.com/JozanLeClerc/st][here]]
	 - ~dmenu~

* Installation
To install this open a terminal and run these commands:
#+BEGIN_SRC shell
git clone git://jozanleclerc.xyz/jozan/dwm.git
cd dwm
make
make install clean
#+END_SRC
To use it as a default WM, if you are using xinit, add this to your ~.xinitrc~:
#+BEGIN_SRC shell
exec dwm
#+END_SRC
I am not shure about how to set it up on regular desktop managers like ~gdm~ or ~lightdm~.

* Bindings
Some of the main key bindings:
- *switch* to workspace 1-12 with ~super+{F1-F12}~
- *move* selected stack to workspace 1-12 with ~super+shift+{F1-F12}~
- *fire up* ~st~ terminal with ~super+return~
- *kill* selected stack with ~super+q~
- *cycle through* stacks down/up with ~super+j/k~
- *move* selected stack down/up with ~super+shift+j/k~
- *resize* master stack to left/right with ~super+h/l~
- *invoke* ~dmenu_run~ application launcher with ~super+p~. Get it [[https://tools.suckless.org/dmenu/][here]]
- toggle *better tiled mode* with ~super+s~
- toggle *alternative tiled mode* with ~super+shift+s~
- toggle *normal tiled mode* with ~super+t~
- toggle *fullscreen mode* on selected stack with ~super+f~
- toggle *floating mode* on selected stack with ~super+space~
- toggle *top bar* with ~super+b~. Hidden by default
- *restart* dwm with ~super+shift+r~
- *exit* dwm with ~super+shift+e~

* Patches
List of patches in use:
- /actualfullscreen/
- /alwayscenter/
- /alwaysfullscreen/
- /attachasideandbelow/
- /centeredmaster/
- /fibonacci/
- /focusonclick/
- /nmaster/
- /moveresize/
- /movestack/
- /noborder/
- /nodmenu/
- /pertag/
- /restartsig/
- /savefloats/
- /sizehints/
- /switchtotag/
- /tagothermon/

My own autostart script can be found under my
[[https://git.jozanleclerc.xyz/jozan/dotfiles-bsd/files.html][dotfiles-bsd]] repository. It should
be placed in =~/.config/dwm= directory.