dwm.1 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. .TH DWM 1 dwm\-VERSION
  2. .SH NAME
  3. dwm \- dynamic window manager
  4. .SH SYNOPSIS
  5. .B dwm
  6. .RB [ \-v ]
  7. .SH DESCRIPTION
  8. dwm is a dynamic window manager for X. It manages windows in tiled, monocle
  9. and floating layouts. Either layout can be applied dynamically, optimising the
  10. environment for the application in use and the task performed.
  11. .P
  12. In tiled layouts windows are managed in a master and stacking area. The master
  13. area on the left contains one window by default, and the stacking area on the
  14. right contains all other windows. The number of master area windows can be
  15. adjusted from zero to an arbitrary number. In monocle layout all windows are
  16. maximised to the screen size. In floating layout windows can be resized and
  17. moved freely. Dialog windows are always managed floating, regardless of the
  18. layout applied.
  19. .P
  20. Windows are grouped by tags. Each window can be tagged with one or multiple
  21. tags. Selecting certain tags displays all windows with these tags.
  22. .P
  23. Each screen contains a small status bar which displays all available tags, the
  24. layout, the title of the focused window, and the text read from the root window
  25. name property, if the screen is focused. A floating window is indicated with an
  26. empty square and a maximised floating window is indicated with a filled square
  27. before the windows title. The selected tags are indicated with a different
  28. color. The tags of the focused window are indicated with a filled square in the
  29. top left corner. The tags which are applied to one or more windows are
  30. indicated with an empty square in the top left corner.
  31. .P
  32. dwm draws a small border around windows to indicate the focus state.
  33. .P
  34. .SH OPTIONS
  35. .TP
  36. .B \-v
  37. prints version information to stderr, then exits.
  38. .SH USAGE
  39. .SS Status bar
  40. .TP
  41. .B X root window name
  42. is read and displayed in the status text area. It can be set with the
  43. .BR xsetroot (1)
  44. command.
  45. .TP
  46. .B Button1
  47. click on a tag label to display all windows with that tag, click on the layout
  48. label toggles between tiled and floating layout.
  49. .TP
  50. .B Button3
  51. click on a tag label adds/removes all windows with that tag to/from the view.
  52. .TP
  53. .B Mod1\-Button1
  54. click on a tag label applies that tag to the focused window.
  55. .TP
  56. .B Mod1\-Button3
  57. click on a tag label adds/removes that tag to/from the focused window.
  58. .SS Keyboard commands
  59. .TP
  60. .B Mod1\-Return
  61. Start
  62. .BR terminal.
  63. .TP
  64. .B Mod1\-Shift\-d
  65. Spawn
  66. .BR dmenu(1)
  67. for launching other programs.
  68. .TP
  69. .B Mod1\-,
  70. Focus previous screen, if any.
  71. .TP
  72. .B Mod1\-.
  73. Focus next screen, if any.
  74. .TP
  75. .B Mod1\-Shift\-,
  76. Send focused window to previous screen, if any.
  77. .TP
  78. .B Mod1\-Shift\-.
  79. Send focused window to next screen, if any.
  80. .TP
  81. .B Mod1\-b
  82. Toggles bar on and off.
  83. .TP
  84. .B Mod1\-t
  85. Sets tiled layout.
  86. .TP
  87. .B Mod1\-f
  88. Sets floating layout.
  89. .TP
  90. .B Mod1\-m
  91. Sets monocle layout.
  92. .B Mod1\-g
  93. Sets grid layout.
  94. .TP
  95. .B Mod1\-space
  96. Toggles between current and previous layout.
  97. .TP
  98. .B Mod1\-j
  99. Focus next window.
  100. .TP
  101. .B Mod1\-k
  102. Focus previous window.
  103. .TP
  104. .B Mod1\-i
  105. Increase number of windows in master area.
  106. .TP
  107. .B Mod1\-d
  108. Decrease number of windows in master area.
  109. .TP
  110. .B Mod1\-l
  111. Increase master area size.
  112. .TP
  113. .B Mod1\-h
  114. Decrease master area size.
  115. .TP
  116. .B Mod1\-Return
  117. Zooms/cycles focused window to/from master area (tiled layouts only).
  118. .TP
  119. .B Mod1\-Shift\-c
  120. Close focused window.
  121. .TP
  122. .B Mod1\-Shift\-space
  123. Toggle focused window between tiled and floating state.
  124. .TP
  125. .B Mod1\-Tab
  126. Toggles to the previously selected tags.
  127. .TP
  128. .B Mod1\-Shift\-[1..n]
  129. Apply nth tag to focused window.
  130. .TP
  131. .B Mod1\-Shift\-0
  132. Apply all tags to focused window.
  133. .TP
  134. .B Mod1\-Control\-Shift\-[1..n]
  135. Add/remove nth tag to/from focused window.
  136. .TP
  137. .B Mod1\-[1..n]
  138. View all windows with nth tag.
  139. .TP
  140. .B Mod1\-0
  141. View all windows with any tag.
  142. .TP
  143. .B Mod1\-Control\-[1..n]
  144. Add/remove all windows with nth tag to/from the view.
  145. .TP
  146. .B Mod1\-Shift\-q
  147. Quit dwm.
  148. .SS Mouse commands
  149. .TP
  150. .B Mod1\-Button1
  151. Move focused window while dragging. Tiled windows will be toggled to the floating state.
  152. .TP
  153. .B Mod1\-Button2
  154. Toggles focused window between floating and tiled state.
  155. .TP
  156. .B Mod1\-Button3
  157. Resize focused window while dragging. Tiled windows will be toggled to the floating state.
  158. .SH FILES
  159. The files containing programs to be started along with dwm are searched for in
  160. the following directories:
  161. .IP "1. $XDG_DATA_HOME/dwm"
  162. .IP "2. $HOME/.local/share/dwm"
  163. .IP "3. $HOME/.dwm"
  164. .P
  165. The first existing directory is scanned for any of the autostart files below.
  166. .TP 15
  167. autostart.sh
  168. This file is started as a shell background process before dwm enters its handler
  169. loop.
  170. .TP 15
  171. autostart_blocking.sh
  172. This file is started before any autostart.sh; dwm waits for its termination.
  173. .SH CUSTOMIZATION
  174. dwm is customized by creating a custom config.h and (re)compiling the source
  175. code. This keeps it fast, secure and simple.
  176. .SH SEE ALSO
  177. .BR dmenu (1),
  178. .BR st (1)
  179. .SH ISSUES
  180. Java applications which use the XToolkit/XAWT backend may draw grey windows
  181. only. The XToolkit/XAWT backend breaks ICCCM-compliance in recent JDK 1.5 and early
  182. JDK 1.6 versions, because it assumes a reparenting window manager. Possible workarounds
  183. are using JDK 1.4 (which doesn't contain the XToolkit/XAWT backend) or setting the
  184. environment variable
  185. .BR AWT_TOOLKIT=MToolkit
  186. (to use the older Motif backend instead) or running
  187. .B xprop -root -f _NET_WM_NAME 32a -set _NET_WM_NAME LG3D
  188. or
  189. .B wmname LG3D
  190. (to pretend that a non-reparenting window manager is running that the
  191. XToolkit/XAWT backend can recognize) or when using OpenJDK setting the environment variable
  192. .BR _JAVA_AWT_WM_NONREPARENTING=1 .
  193. .SH BUGS
  194. Send all bug reports with a patch to hackers@suckless.org.