Skip to content

Instantly share code, notes, and snippets.

@coseos
Created March 26, 2022 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coseos/40e4cfba2b8735f75d00b48a8c9b3fd1 to your computer and use it in GitHub Desktop.
Save coseos/40e4cfba2b8735f75d00b48a8c9b3fd1 to your computer and use it in GitHub Desktop.

How to use dwm on a Raspberry Pi with RaspiOS

RaspiOS based on Debian Bullseye

Prepare

You should install RaspiOS from the official image or have your Raspberry Pi ready. Sorry, no details for that. There are lot's of helpful resources available.

Since dwm is in the official Repo's, just install it

sudo apt install dwm

And go configure it in the following files:

Edit /etc/xdg/lxsession/LXDE-pi/desktop.conf. Locate the line that specifies the window_manager and change it to dwm.

[Session]
window_manager=dwm

Next is /etc/xdg/lxsession/LXDE-pi/autostart. Comment the line for lxpanel and pcmanfm. I also commented the xscreensaver, but you can make your own choice about that.

#@lxpanel --profile LXDE-pi
#@pcmanfm --desktop --profile LXDE-pi
#@xscreensaver -no-splash

What else ...

I also changed the default x-window-manager in update-alternatives though that is not necessary.

update-alternatives --config x-window-manager

Final words

That's it. Have fun with dwm which will save resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment