Build alacritty

This commit is contained in:
dabruh 2022-12-14 10:18:11 +01:00
parent f429afc5ee
commit 29a6b36cd0
2 changed files with 16 additions and 0 deletions

View File

@ -12,6 +12,7 @@ apt-any:python3,python3-pip
apt-any:sddm,gstreamer1.0-libav qml-module-qtmultimedia libqt5multimedia5-plugins
apt-any:codium,vim,ufw,scrot
apt-any:chromium-browser
apt-any:cargo,cmake,pkg-config,libfreetype6-dev,libfontconfig1-dev,libxcb-xfixes0-dev,libxkbcommon-dev,python3
apt-any:libxcb-render0-dev,libffi-dev,python3-dev,python3-cffi
apt-laptop:brightnessctl
pip-any:flashfocus

View File

@ -205,6 +205,20 @@ function setup_krew_plugins() {
done
}
function build_alacritty() {
local tmp_dir="/tmp/alacritty"
echo "Installing Alacritty."
git clone https://github.com/alacritty/alacritty.git $tmp_dir
sudo cargo build --release --manifest-path=$tmp_dir/Cargo.toml
sudo cp $tmp_dir/target/release/alacritty /usr/local/bin
sudo cp $tmp_dir/extra/logo/alacritty-term.svg /usr/share/pixmaps/Alacritty.svg
sudo desktop-file-install $tmp_dir/extra/linux/Alacritty.desktop
sudo update-desktop-database
rm -Rf /tmp/alacritty
}
#
# Setup for Arch-like systems
#
@ -323,6 +337,7 @@ function setup_debian() {
setup_brew_formulas || return 9
setup_krew || return 10
setup_krew_plugins || return 11
build_alacritty || return 12
}
ID_LIKE="$(grep ID_LIKE= </etc/os-release | cut -d= -f2)"