💾 Archived View for gemini.ctrl-c.club › ~stack › gemlog › 2023-04-26.dwm_allin.gmi captured on 2023-05-24 at 18:13:47. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-04-26)

🚧 View Differences

-=-=-=-=-=-=-

All in on dwm; cheatsheet

I've been ecstatic with the suckless tiling desktop manager dwm on my notebook. Feeling all cocky I decided to switch my main machine to dwm as well. The result is great, but it took more time than I imagined.

Switching to dwm on XUbuntu

To keep it simple, just sudo apt install dwm. You don't want to use _that_ binary, but it will install in a way recognizable by the rest of the system (the login manager), and you will be able to select dwm alongside xfce on login. But recompile your own version from source and install over the distro's dwm!

git clone https://git.suckless.org/st
git clone https://git.suckless.org/dwm

dwm is configured statically, by modifying the header file.

I changed the dwm modifier key from ALT to the 'windows' key by replacing `#define MODKEY Mod1Mask` with with `#define MODKEY Mod4Mask` in config.h. I think you need to create config.h by copying it from config.def.h the first time. You may want to make a git branch to keep your changes separate.

Now make and make install both the st terminal and dwm. Log out, and log in after selecting dwm.

Cheatsheet

S-Enter - new terminal              t       - tiled mode
S-c     - kill active               f       - floating mode
S-q     - quit dwm                  m       - monocle mode
p       - dmenu                     Sp      - previous mode 
Enter   - swap master
h | l   - master resize
i | d   - #masters inc/dec          RMB     - resize fwindow
j | k   - focus next/previous       LMB     - move fwindow
S-<n>   - focused to tag <n>        MMB     - window un-float
<n>     - switch to tag             S-Sp    - window float 

b       - show/hide bar
, | .   - move between screens
S-, S-. - active window to screen
0       - view all windows on screen.

The modifier key usage is assumed. RMB is right mouse button, etc.

<n> is tag 1-9 (aka workspace) When 0, it means all tags!

index

home