这是我参与 8 月更文挑战的第 2 天,活动详情查看:8 月更文挑战
对于颜值的高要求,首先这里安装的时候参考了www.github.com/Airblader/i…
个人的配置文件地址:github.com/itgoyo/i3
cd /path/where/you/want/the/repository
# clone the repository
git clone https://www.github.com/Airblader/i3 i3-gaps
cd i3-gaps
# compile & install
autoreconf --force --install
rm -rf build/
mkdir -p build && cd build/
# Disabling sanitizers is important for release versions!
# The prefix and sysconfdir are, obviously, dependent on the distribution.
../configure --prefix=/usr --sysconfdir=/etc --disable-sanitizers
make
sudo make install
我使用linux mint安装的过程中出现了确实依赖包的情况 所以我又参考了这篇文章hackmd.io/s/By6mF5Rqb… 先安装依赖
sudo apt install libxcb1-dev libxcb-keysyms1-dev libpango1.0-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 libtool
编译的过程中还可能出现
Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory
这里使用
sudo apt-get install automake
来修复该问题
还可能出现
No package 'xcb-xrm' found
这里使用
sudo apt-get install libxcb-xrm-dev
来修复该问题,详细参考了:unix.stackexchange.com/questions/3…
一种选择是从源手动构建它(github)
第二种选择是从第三方ppa获得
sudo add-apt-repository ppa:aguignard/ppa
sudo apt-get update
sudo apt-get install xcb-util-xrm
no Package xcb-shape
solution
sudo apt install libxcb-shape0-dev
No package 'libpcre' found
sudo apt-get install libpcre3-dev
No package 'cairo' found
sudo apt-get install libcairo2-dev
No package 'pangocairo' found
sudo apt-get install libpango1.0-dev
美化状态栏推荐安装conky
sudo apt-get install conky
具备一切条件之后,运行一下命令即可安装成功
gaps also needs to be installed from source so run these commands:
cd /tmp
git clone https://www.github.com/Airblader/i3 i3-gaps
cd i3-gaps
git checkout gaps && git pull
autoreconf --force --install
rm -rf build
mkdir build
cd build
../configure --prefix=/usr --sysconfdir=/etc
make
sudo make install
Now i3-gaps should be installed.