Forked from doubtingben/gist:60a228c06a48a5b8601ea5e94e4ab22c
Last active
January 1, 2021 18:52
-
-
Save aaronsaderholm/872d55a1cec3969a5baf549f840147f1 to your computer and use it in GitHub Desktop.
Install i3-gaps on Ubuntu 16.04
This file contains 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 | |
# Install i3-gaps on Ubuntu 16 | |
set -e | |
set -x | |
sudo apt-get update && sudo apt-get -y upgrade | |
sudo apt-get install -y libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-shape0-dev libxcb-util0-dev libxcb-icccm4-dev libyajl-dev libstartup-notification0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev autoconf xutils-dev dh-autoreconf | |
mkdir -p $HOME/repos | |
cd $HOME/repos | |
# Setup xcb-util-xrm | |
if cd xcb-util-xrm; then \ | |
git pull; | |
else | |
git clone --recursive https://github.com/Airblader/xcb-util-xrm.git xcb-util-xrm; cd xcb-util-xrm; | |
fi | |
./autogen.sh | |
make | |
sudo make install | |
# Setup i3-gaps | |
sudo ldconfig | |
sudo ldconfig -p | |
cd $HOME/repos | |
if cd i3-gaps; then | |
git pull | |
else | |
git clone https://www.github.com/Airblader/i3 i3-gaps; cd i3-gaps; | |
fi | |
autoreconf --force --install | |
rm -Rf build/ | |
mkdir build | |
cd build/ | |
../configure --prefix=/usr --sysconfdir=/etc | |
make | |
sudo make install | |
which i3 | |
ls -l /usr/bin/i3 |
Isn't running dist-upgrade overkill ?
Worked like a charm, just need to add
sudo apt install libxcb-shape0-dev
Isn't running dist-upgrade overkill ?
Yes, probably.
I updated the script with suggested changes here.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks!
i'm getting some weird memory errors trying to run i3, though (this is probably related to me running ubuntu through WSL on windows 10)