Skip to content

Instantly share code, notes, and snippets.

@david-bergstrom
Created December 16, 2014 18:26
Show Gist options
  • Save david-bergstrom/0ea2b0d8a0d3e3165f99 to your computer and use it in GitHub Desktop.
Save david-bergstrom/0ea2b0d8a0d3e3165f99 to your computer and use it in GitHub Desktop.
dwm installer
#/bin/bash
# Authors Simon and David
# Go to the correct directory
mkdir ~/dwm
cd ~/dwm
# Download the things
wget http://dl.suckless.org/dwm/dwm-6.0.tar.gz
# Unpack the tar
tar xvf dwm-6.0.tar.gz
# Enter the downloaded folder
cd dwm-6.0
mkdir ~/dwm/install
# Patch dwm
wget https://gist.githubusercontent.com/david-bergstrom/1e35038245fc1900617d/raw/8135a84ea335dec9e2a83a8f2ac91cd0e3661d4b/u1.patch
cp config.def.h config.h
patch < u1.patch
# Actually install dwm
make clean install DESTDIR=~/dwm/install
cd ..
wget http://dl.suckless.org/tools/dmenu-4.5.tar.gz
tar xvf dmenu-4.5.tar.gz
cd dmenu-4.5
wget https://gist.githubusercontent.com/david-bergstrom/3b264be6245d8c3b58f2/raw/c0007bb4008da20719528bb02a8a85cb5cd2e994/dmenu_run.patch
patch < dmenu_run.patch
make clean install DESTDIR=~/dwm/install
# Set xsession to start dwm as wm
echo /home/$USER/dwm/install/usr/local/bin/dwm > ~/.xsession.bak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment