[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:window_managers:dwm_-_dynamic_window_manager [2021/08/23 03:04 (UTC)] – [Tags] cppimmohowtos:window_managers:dwm_-_dynamic_window_manager [2023/06/09 20:22 (UTC)] (current) – Fix typos & add external links cppimmo
Line 1: Line 1:
 <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). -->
 ====== dwm - dynamic window manager ====== ====== dwm - dynamic window manager ======
-dwm is a dynamic window manager for X11 that supports organization of windows in tiled, floating, and +[[http://dwm.suckless.org/|dwm]] is a dynamic window manager made by [[http://suckless.org/|suckless]] for the X11 windowing system that supports organization of windows in tiled, floating, and 
-monocle layouts. Windows are grouped together on tags where they can be reorganized and modified. +monocle layouts. Windows are grouped together on tags where they can be reorganized and modified.\\ \\ 
 +{{:howtos:window_managers:dwm8-25-21.png?nolink&412 |}}\\ 
 +//minimally patched build of dwm6.2//.
 ===== dwm Installation ===== ===== dwm Installation =====
 You can install dwm from [[https://slackbuilds.org/repository/14.2/desktop/dwm/|SlackBuilds]]. You can install dwm from [[https://slackbuilds.org/repository/14.2/desktop/dwm/|SlackBuilds]].
Line 9: Line 10:
 via the instructions in the README text file. via the instructions in the README text file.
 ===== dwm Dependencies ===== ===== dwm Dependencies =====
 +The dependencies required for building dwm version 6.2 are included in a base slackware64-current install. You may need to choose an older version of dwm if using versions of Slackware 14.2 or less.
   * X11   * X11
   * FreeType   * FreeType
-The newest version of dwm, 6.5, does not build on Slackware 14.2 at the time of writing this article. You 
-will have to try an older version. 
 ===== Starting dwm ===== ===== Starting dwm =====
 The SlackBuilds dwm will create a xinit script for you. The SlackBuilds dwm will create a xinit script for you.
-If you build dwm yourself you will need to create a file named xinitrc.dwm in the +If you build dwm yourself you will need to create a file named //xinitrc.dwm// in the 
-/etc/X11/xinit directory. +// /etc/X11/xinit/ // directory. 
-typically xinitrc for dwm might look as such:+typical xinitrc for dwm might look as such:
 <code> <code>
 # /etc/X11/xinit/xinitrc.dwm # /etc/X11/xinit/xinitrc.dwm
Line 24: Line 24:
 # dunst & # start notification daemon # dunst & # start notification daemon
 # dwmblocks & # start statusbar program # dwmblocks & # start statusbar program
-# xcompmgr -CFn & # start compositor+# xcompmgr -CFn & # start composito
  
 exec dwm # start dwm exec dwm # start dwm
 </code> </code>
-With that in place run xwmconfig in your terminal to switch to your configuration file. +With that in place run **xwmconfig** in your terminal to switch to your configuration file. 
-===== dwm Configuration ===== +===== Configuration ===== 
-dwm configuration is done through the source instead of a runtime configuration file. +dwm configuration is done through the source code instead of a runtime configuration file. 
-The config.h file contains all of the configuration options. +The //config.h// file contains all of the configuration options.  
-===== dwm Usage =====+<note important>You will need to run **make** and **sudo make install** in your source directory after each change.</note>  
 +===== Patching ===== 
 +Patches(submitted user modifications that add useful features) are available directly from the suckless website: 
 +[[https://dwm.suckless.org/patches/|dwm Patches]]. You can find detailed instructions on patching here: [[https://suckless.org/hacking/|How to Apply Patches]]. If you experience difficulty applying patches you may want to switch to the release tarball that can be found on the [[https://dwm.suckless.org/|dwm Homepage]] under //Download//
 +===== Using dwm ===== 
 +Using dwm is fairly simple. Try pressing <key>Alt + Shift + Enter</key> to open a terminal emulator. 
 +By default this will be set to st ([[http://st.suckless.org/|simple terminal]]), but you can symbolically link your terminal emulator of choice to st. 
 +Now open a few more terminal windows. You should notice the tiling effect. To change focus simply hover your 
 +mouse cursor over another window or press <key>Alt + j/k</key>.\\ \\ 
 +To change the //master// window in the //tiled// layout change focus to it and press <key>Alt + Enter</key>
 +Press <key>Alt + h/l</key> to shrink/grow the master window. To reorganize the //tiled// layout press <key>Alt + d/i</key>.\\ 
 +Try switch between //floating// <key>Alt + f</key> and //monocle// <key>Alt + m</key> mode. Use <key>Alt + Left Click</key>(while holding)  
 +to move windows around and <key>Alt + Right Click</key>(also while holding) to resize windows. \\ 
  
-===== Common Key Shortcuts =====+Now switch back to tiled <key>Alt + t</key> and press <key>Alt + Shift + Space</key> on any floating windows to return them to tiled mode.  
 +===== Key Shortcuts ===== 
 +==== Common ====
 <key>Alt + Left Mouse Button</key> move clicked window\\ <key>Alt + Left Mouse Button</key> move clicked window\\
 <key>Alt + Middle Mouse Button</key> switch clicked window between floating and tiled layout\\ <key>Alt + Middle Mouse Button</key> switch clicked window between floating and tiled layout\\
Line 64: Line 78:
  
 ===== Program Menu ===== ===== Program Menu =====
-If you also installed dmenu you can press +[[http://tools.suckless.org/dmenu/|dmenu]] is the preferred program launcher/menu for dwm. It spawns a simple, intractable search bar that you can use to search for a program installed on your system. If you also installed dmenu you can press <key>Alt + P</key> and type the program name or use the arrow keys then press enter. This will execute the selected program. You may also press the escape key to cancel the search. \\ 
-<key>Alt + P</key> and type the program name or use the arrow keys then press enter. +To install dmenu visit [[https://tools.suckless.org/dmenu/|dmenu - suckless tools]]
-This will execute the selected program.+
 <= <=
-==== Resources =====+====== Sources ======
 [[https://dwm.suckless.org/|dwm Webpage]]\\ [[https://dwm.suckless.org/|dwm Webpage]]\\
 [[https://tools.suckless.org/dmenu/|dmenu Webpage]]\\ [[https://tools.suckless.org/dmenu/|dmenu Webpage]]\\
Line 74: Line 87:
 [[https://slackbuilds.org/repository/14.2/desktop/dwm/|SlackBuilds dwm]]\\ [[https://slackbuilds.org/repository/14.2/desktop/dwm/|SlackBuilds dwm]]\\
 [[https://ratfactor.com/dwm|Great Article about Controls]] [[https://ratfactor.com/dwm|Great Article about Controls]]
-====== Sources ====== 
 <!-- If you are copying information from another source, then specify that source --> <!-- If you are copying information from another source, then specify that source -->
 <!-- * Original source: [[http://some.website.org/some/page.html]] --> <!-- * Original source: [[http://some.website.org/some/page.html]] -->
Line 83: Line 95:
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
 <!-- You must remove the tag-word "template" below before saving your new page --> <!-- You must remove the tag-word "template" below before saving your new page -->
-{{tag>howtos template}}+{{tag>howtos software dwm wm author_cppimmo}}
 howtos:window_managers:dwm_-_dynamic_window_manager ()