Last active
February 19, 2018 16:24
-
-
Save lboulard/daed7c19ffbbba9765702c918e6cf046 to your computer and use it in GitHub Desktop.
Compile polybar on trusty
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
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<!-- ~/.config/fontconfig/conf.d/20-siji.conf --> | |
<fontconfig> | |
<!-- Restore Fixed bitmap font for terminal usage --> | |
<selectfont> | |
<acceptfont> | |
<pattern> | |
<patelt name="family"> | |
<string>Siji</string> | |
</patelt> | |
</pattern> | |
</acceptfont> | |
</selectfont> | |
</fontconfig> |
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
# Build with i3 debian packages from https://i3wm.org | |
# deb [arch=amd64] http://debian.sur5r.net/i3 trusty universe | |
# Use i3 sourced packages for build | |
sudo apt-get install libcairo2-dev libxcbcommon-dev libxcbcommon-x11-dev libxcb-xrm-dev | |
# Need backports for trusty | |
sudo apt install cmake3 | |
sudo apt install libcurl4-gnutls-dev | |
sudo apt-get install libiw-dev | |
sudo apt-get install xcb-proto | |
sudo apt-get install libasound2-dev | |
sudo apt-get install libxcb-xkb-dev | |
sudo apt-get install libxcb-randr0-dev | |
sudo apt-get install libxcb-cursor-dev | |
sudo apt-get install libxcb-ewmh-dev libxcb-icccm4-dev | |
sudo apt-get install python-xcbgen | |
sudo apt-get install libmpdclient-dev | |
sudo apt-get install ttf-unifont | |
# for siji font go to https://github.com/stark/siji | |
# Use 20-siji.conf for enable font in fontconfig | |
# Options WITH_XRENDER WITH_XDAMAGE WITH_XSYNC WITH_XCOMPOSITE | |
sudo apt-get install libxcb-render0-dev libxcb-damage0-dev libxcb-damage0-dev libxcb-composite0-dev | |
# ppa:ubuntu-toolchain-r/test | |
sudo apt install g++-5 | |
# Avoid user local installation of python or any software | |
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games | |
git clone --branch 3.1.0 --recursive https://github.com/jaagr/polybar | |
mkdir polybar/build && cd polybar/build | |
CC=/usr/bin/gcc-5 CXX=/usr/bin/g++-5 cmake \ | |
-DCMAKE_C_COMPILER="$CC" \ | |
-DCMAKE_CXX_COMPILER="$CXX" \ | |
-DENABLE_ALSA:BOOL=ON \ | |
-DENABLE_I3:BOOL=ON \ | |
-DENABLE_MPD:BOOL=ON \ | |
-DENABLE_NETWORK:BOOL=ON \ | |
-DENABLE_CURL:BOOL=ON \ | |
-DBUILD_IPC_MSG:BOOL=ON \ | |
-DWITH_XRENDER:BOOL=ON \ | |
-DWITH_XDAMAGE:BOOL=ON \ | |
-DWITH_XSYNC:BOOL=ON \ | |
-DWITH_XCOMPOSITE:BOOL=ON \ | |
.. | |
sudo make install # in /usr/local | |
make userconfig | |
polybar example |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment