Last active
October 21, 2022 10:19
-
-
Save tur1ngb0x/df45d958410f0a27f95d4cc47868887d to your computer and use it in GitHub Desktop.
ubuntu-dwm.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# refresh sources | |
sudo apt-get update | |
# install requirements | |
sudo apt-get install build-essential libx11-dev libxft-dev libxinerama-dev stterm suckless-tools wget | |
# create build folder | |
mkdir -pv ~/src/dwm | |
# download archive | |
wget -O /tmp/dwm.tar.gz http://dl.suckless.org/dwm/dwm-6.4.tar.gz | |
# extract archive | |
tar -vxz --strip-components 1 -f /tmp/dwm.tar.gz -C ~/src/dwm | |
# fix permissions | |
sudo chown -Rv $USER:$USER ~/src/dwm | |
# compile | |
sudo make clean install -C ~/src/dwm | |
# desktop entry | |
printf "[Desktop Entry]\nName=DWM\nExec=dwm\nType=XSession\n" | sudo tee /usr/share/xsessions/dwm.desktop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment