mirror of https://gitlab.com/dabruh/dotfiles.git
Build alacritty
This commit is contained in:
parent
f429afc5ee
commit
29a6b36cd0
|
@ -12,6 +12,7 @@ apt-any:python3,python3-pip
|
||||||
apt-any:sddm,gstreamer1.0-libav qml-module-qtmultimedia libqt5multimedia5-plugins
|
apt-any:sddm,gstreamer1.0-libav qml-module-qtmultimedia libqt5multimedia5-plugins
|
||||||
apt-any:codium,vim,ufw,scrot
|
apt-any:codium,vim,ufw,scrot
|
||||||
apt-any:chromium-browser
|
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-any:libxcb-render0-dev,libffi-dev,python3-dev,python3-cffi
|
||||||
apt-laptop:brightnessctl
|
apt-laptop:brightnessctl
|
||||||
pip-any:flashfocus
|
pip-any:flashfocus
|
||||||
|
|
|
@ -205,6 +205,20 @@ function setup_krew_plugins() {
|
||||||
done
|
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
|
# Setup for Arch-like systems
|
||||||
#
|
#
|
||||||
|
@ -323,6 +337,7 @@ function setup_debian() {
|
||||||
setup_brew_formulas || return 9
|
setup_brew_formulas || return 9
|
||||||
setup_krew || return 10
|
setup_krew || return 10
|
||||||
setup_krew_plugins || return 11
|
setup_krew_plugins || return 11
|
||||||
|
build_alacritty || return 12
|
||||||
}
|
}
|
||||||
|
|
||||||
ID_LIKE="$(grep ID_LIKE= </etc/os-release | cut -d= -f2)"
|
ID_LIKE="$(grep ID_LIKE= </etc/os-release | cut -d= -f2)"
|
||||||
|
|
Loading…
Reference in New Issue