[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
Next revisionBoth sides next revision
howtos:window_managers:dwm_-_dynamic_window_manager [2021/08/23 02:27 (UTC)] – [Common Key Shortcuts] cppimmohowtos:window_managers:dwm_-_dynamic_window_manager [2021/08/28 18:14 (UTC)] – [Program Menu] add link to suckless dmenu cppimmo
Line 2: Line 2:
 ====== 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 dwm is a dynamic window manager for X11 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 11: Line 12:
   * 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.
Line 29: Line 28:
 </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 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 =====+===== 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, 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. \\ 
  
 +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. 
 ===== Common Key Shortcuts ===== ===== Common Key Shortcuts =====
 +<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 + Right Mouse Button</key> resize clicked window\\
 <key>Alt + Shift + Enter</key> launch st(suckless terminal)\\ <key>Alt + Shift + Enter</key> launch st(suckless terminal)\\
-<key>Alt + j/k</key> cycle focus to different windows on the current tag\\+<key>Alt + b</key> toggle top bar\\
 <key>Alt + h/l</key> shrink or grow the master window\\ <key>Alt + h/l</key> shrink or grow the master window\\
-<key>Alt + 1/9</key> change to window tags 1 through 9\\ 
 <key>Alt + Shift + c</key> close the currently focused window\\ <key>Alt + Shift + c</key> close the currently focused window\\
 <key>Alt + Shift + q</key> quit dwm cleanly\\ <key>Alt + Shift + q</key> quit dwm cleanly\\
 +==== Layouts ====
 +<key>Alt + t</key> switch to tiled mode\\
 +<key>Alt + f</key> switch to floating mode\\
 +<key>Alt + m</key> switch to monocle mode\\
 +<key>Alt + space</key> switch between the two most currently used layouts\\
 +<key>Alt + Shift + space</key> toggle focused window between tiled and floating mode\\
 +<key>Alt + Enter</key> set currently focused window as master\\
 +<key>Alt + i/d</key> shift windows through stack area in tiled mode\\
 +==== Tags ====
 +<key>Alt + j/k</key> cycle focus to different windows on the current tag\\
 +<key>Alt + 1/9</key> change to window tags 1 through 9\\
 +<key>Alt + Shift + 1/9</key> switch currently focused window to tags 1 through 9\\
 +<key>Ctrl + Shift + 1/9</key> show windows on tag 1 through 9 on the currently focused tag\\
 +<key>Alt + 0</key> view windows from all tags at once\\
 +<key>Alt + Tab</key> cycle through the most recent tags\\
 +<key>Right Click</key> when right clicked windows from a tag will be visible\\
 +==== Multiple Screens ====
 +<key>Alt + ./,</key> switch focus between screens\\
 +<key>Alt + Shift + ./,</key> switch window to between screens\\
  
 ===== Program Menu ===== ===== Program Menu =====
Line 46: Line 78:
 <key>Alt + P</key> and type the program name or use the arrow keys then press enter. <key>Alt + P</key> and type the program name or use the arrow keys then press enter.
 This will execute the selected program. This will execute the selected program.
 +To install dmenu visit [[https://tools.suckless.org/dmenu/|dmenu - suckless tools]]
 <= <=
-==== 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 53: Line 86:
 [[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 62: Line 94:
 <!-- 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 ()