diff --git a/.installer/packages b/.installer/packages index 76cf381..e63d1da 100644 --- a/.installer/packages +++ b/.installer/packages @@ -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 diff --git a/setup_system.sh b/setup_system.sh index 51a0a79..ece9494 100755 --- a/setup_system.sh +++ b/setup_system.sh @@ -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=