To change the text in the statusbar, you need to have the xsetroot
command available.
pacman -S xorg-xsetroot
make clean install
Create a startdwm
script with the following content.
#!/bin/sh
dwmblocks &
while true; do
dwm &>> ~/.dwm.log
done
Create a .desktop
file at /usr/share/xsessions
to allow choosing dwm in your display-manager.
[Desktop Entry]
Name=dwm
Comment=suckless dwm
Exec=/home/michael/scripts/startdwm
Type=Application
Tip for Chromium
In order to display the dwm borders on Chromium/Chrome windows, right click on the "title bar" at the top of Chromium and toggle Use system title bar and borders
.
Official
Additional
- Fix border transparency bug for transparent terminal windows (attribution)
- Add top/bottom padding to bar, change square to full-width line
- Choose the
centeredmaster
layout if the screensize is greater than2560px
- Implement function to resize a window to
1920x1080
. Useful for screen recording.
Not all keybindings are listed here, only the ones that aren't obvious.
Basic
- Toggle bar super + b
Navigation
- Increase number of master windows super + i
- Decrease number of master windows super + d
- Move focus to next screen super + ,
- Move focus to previous screen super + .
- Move active window to next screen super + shift + ,
- Move active window to previous screen super + shift + .
Gaps
- Toggle gaps alt + super + 0
- Reset gaps to default alt + super + shift + 0
- Increase gaps alt + super + h
- Decrease gaps alt + super + l
Additional Features
- Resize window to
1920x1080
super + shift + r
Some parts of the source code, mostly the vanitygaps patches for the custom layouts, have been copied from Luke Smith's dwm.