#!/bin/bash if [ "$EUID" -ne 0 ] then echo "The script has to be run as root." exit fi cd dwmf echo "Installing dwm" rm -rf config.h make clean install cd .. cd dmenuf echo "Installing dmenu" rm -rf config.h make clean install cd .. cd slstatusf echo "Installing slstatus" rm -rf config.h make clean install cd .. cd stf echo "Installing st" rm -rf config.h make clean install cd .. cd slockf echo "Installing slock" rm -rf config.h make clean install cd .. echo "Install finished. You should reboot the machine now."