-
-
Save sigmavirus24/56e684ea0c9e5d7fc5f81fc693222e52 to your computer and use it in GitHub Desktop.
Build Polybar on Fedora-ish systems
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 | |
# Builds Polybar on Fedora-based systems | |
# Tested on Fedora 25, Fedora 26 and Korora 25, untested on others | |
# To get started: | |
# | |
# wget -O- https://gist.githubusercontent.com/nathanchere/22491daf4f917b100a35e5c284a5fec5/raw/install-polybar-ex.sh | bash | |
sudo dnf install -y cmake @development-tools gcc-c++ i3-ipc jsoncpp-devel alsa-lib-devel wireless-tools-devel libmpdclient-devel libcurl-devel cairo-devel xcb-proto xcb-util-devel xcb-util-wm-devel xcb-util-image-devel | |
rm -rf /tmp/polybar | |
git clone --recursive https://github.com/jaagr/polybar /tmp/polybar | |
cd /tmp/polybar | |
pkill polybar | |
./build.sh -f |
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 | |
# Builds Polybar on Fedora-based systems | |
# Tested on Fedora 25, Fedora 26 and Korora 25, untested on others | |
# To get started: | |
# | |
# wget -O- https://gist.githubusercontent.com/nathanchere/22491daf4f917b100a35e5c284a5fec5/raw/install-polybar.sh | bash | |
# Main build dependencies # | |
########################### | |
sudo dnf install -y cmake @development-tools gcc-c++ | |
sudo dnf install -y cairo-devel xcb-proto xcb-util-devel xcb-util-wm-devel xcb-util-image-devel | |
# Optional module dependencies # | |
################################ | |
# i3 | |
sudo dnf -y install i3-ipc jsoncpp-devel | |
# Volume | |
sudo dnf -y install alsa-lib-devel | |
# Network | |
sudo dnf -y install wireless-tools-devel | |
# MPD | |
sudo dnf -y install libmpdclient-devel | |
# Github | |
sudo dnf -y install libcurl-devel | |
# Get latest Polybar source # | |
############################# | |
# Clone repo locally | |
rm -rf /tmp/polybar | |
git clone --recursive https://github.com/jaagr/polybar /tmp/polybar | |
cd /tmp/polybar | |
# Check out the latest tagged release | |
currentRelease=$(git describe --tags `git rev-list --tags --max-count=1`) | |
git checkout $currentRelease | |
./build.sh -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment