Dotfiles config update (2021-01-09)
This commit is contained in:
parent
7c41f0d9d0
commit
9a74ff25ee
BIN
.i3-gaps-install.sh.swp
Normal file
BIN
.i3-gaps-install.sh.swp
Normal file
Binary file not shown.
|
@ -2,12 +2,14 @@
|
||||||
|
|
||||||
#################################################
|
#################################################
|
||||||
# Script to build and install i3-gaps on Debian #
|
# Script to build and install i3-gaps on Debian #
|
||||||
# Author: q3aql (q3aql@duck.com #
|
# Author: q3aql (q3aql@duck.com) #
|
||||||
# Last update: 14-11-2021 #
|
# Last update: 09-01-2022 #
|
||||||
# ###############################################
|
# ###############################################
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
URL_Repo="https://www.github.com/Airblader/i3"
|
URL_Repo="https://www.github.com/Airblader/i3"
|
||||||
|
URL_Package_Stable="https://github.com/Airblader/i3/releases/download/4.20.1/i3-4.20.1.tar.xz"
|
||||||
|
URL_Package_Stable_DEB="https://github.com/barnumbirr/i3-gaps-debian/releases/download/v4.20.1-1/i3-gaps_4.20.1-1_amd64_bullseye.deb"
|
||||||
dir_build="i3-gaps"
|
dir_build="i3-gaps"
|
||||||
|
|
||||||
# Check if you are root
|
# Check if you are root
|
||||||
|
@ -24,7 +26,63 @@ else
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Install i3-gaps from Git
|
||||||
|
function i3_gaps_install_git() {
|
||||||
|
#Build and install i3-gaps
|
||||||
|
cd /tmp
|
||||||
|
git clone ${URL_Repo} ${dir_build}
|
||||||
|
cd ${dir_build}
|
||||||
|
mkdir -p build && cd build
|
||||||
|
meson ..
|
||||||
|
ninja
|
||||||
|
ninja install
|
||||||
|
cp -rfv /usr/local/bin/i3* /usr/bin/
|
||||||
|
# Show message to restart
|
||||||
|
echo ""
|
||||||
|
echo "* i3-gaps process finished!"
|
||||||
|
echo ""
|
||||||
|
echo "* Restart to load i3-gaps"
|
||||||
|
echo ""
|
||||||
|
# Clean files
|
||||||
|
rm -rf /tmp/${dir_build}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Install i3-gaps Stable
|
||||||
|
function i3_gaps_install_stable() {
|
||||||
|
#Build and install i3-gaps
|
||||||
|
cd /tmp
|
||||||
|
wget -c ${URL_Package_Stable}
|
||||||
|
tar Jxvf i3-4.20.1.tar.xz
|
||||||
|
cd i3-4.20.1
|
||||||
|
mkdir -p build && cd build
|
||||||
|
meson ..
|
||||||
|
ninja
|
||||||
|
ninja install
|
||||||
|
cp -rfv /usr/local/bin/i3* /usr/bin/
|
||||||
|
# Show message to restart
|
||||||
|
echo ""
|
||||||
|
echo "* i3-gaps process finished!"
|
||||||
|
echo ""
|
||||||
|
echo "* Restart to load i3-gaps"
|
||||||
|
echo ""
|
||||||
|
# Clean files
|
||||||
|
rm -rf /tmp/${dir_build}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Install i3-gaps Stable from DEB
|
||||||
|
function i3_gaps_install_stable_deb() {
|
||||||
|
cd /tmp
|
||||||
|
wget -c ${URL_Package_Stable_DEB}
|
||||||
|
apt remove i3 i3-wm -y
|
||||||
|
apt install gdebi -y
|
||||||
|
gdebi -n i3-gaps_4.20.1-1_amd64_bullseye.deb
|
||||||
|
}
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
|
echo ""
|
||||||
|
echo "* INSTALLING DEPENDENCIES..."
|
||||||
|
echo ""
|
||||||
|
sleep 2
|
||||||
apt update
|
apt update
|
||||||
apt upgrade -y
|
apt upgrade -y
|
||||||
apt install dh-autoreconf libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev xcb libxcb1-dev libxcb-icccm4-dev libyajl-dev libev-dev libxcb-xkb-dev libxcb-cursor-dev libxkbcommon-dev libxcb-xinerama0-dev libxkbcommon-x11-dev libstartup-notification0-dev libxcb-randr0-dev libxcb-xrm0 libxcb-xrm-dev libxcb-shape0 libxcb-shape0-dev -y
|
apt install dh-autoreconf libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev xcb libxcb1-dev libxcb-icccm4-dev libyajl-dev libev-dev libxcb-xkb-dev libxcb-cursor-dev libxkbcommon-dev libxcb-xinerama0-dev libxkbcommon-x11-dev libstartup-notification0-dev libxcb-randr0-dev libxcb-xrm0 libxcb-xrm-dev libxcb-shape0 libxcb-shape0-dev -y
|
||||||
|
@ -36,25 +94,29 @@ libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev \
|
||||||
autoconf libxcb-xrm-dev -y
|
autoconf libxcb-xrm-dev -y
|
||||||
apt install cmake make gcc meson ninja-build git -y
|
apt install cmake make gcc meson ninja-build git -y
|
||||||
|
|
||||||
#Build and install i3-gaps
|
# show menu
|
||||||
cd /tmp
|
clear
|
||||||
git clone ${URL_Repo} ${dir_build}
|
|
||||||
cd ${dir_build}
|
|
||||||
mkdir -p build && cd build
|
|
||||||
meson ..
|
|
||||||
ninja
|
|
||||||
ninja install
|
|
||||||
cp -rfv /usr/local/bin/i3* /usr/bin/
|
|
||||||
|
|
||||||
# Show message to restart
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "* i3-gaps process finished!"
|
echo "* Installer for i3-gaps on Debian/Devuan"
|
||||||
echo ""
|
echo ""
|
||||||
echo "* Restart to load i3-gaps"
|
echo " s - Install i3-gaps stable"
|
||||||
|
echo " g - Install i3-gaps git"
|
||||||
|
echo " d - Install i3-gaps stable with deb package"
|
||||||
echo ""
|
echo ""
|
||||||
|
echo -n "* [Default: d] Choose an option: " ; read option
|
||||||
# Clean files
|
if [ "${option}" == "s" ] ; then
|
||||||
rm -rf /tmp/${dir_build}
|
i3_gaps_install_stable
|
||||||
|
elif [ "${option}" == "g" ] ; then
|
||||||
|
i3_gaps_install_git
|
||||||
|
elif [ "${option}" == "d" ] ; then
|
||||||
|
i3_gaps_install_stable_deb
|
||||||
|
else
|
||||||
|
i3_gaps_install_stable_deb
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user