Script for install nwg-wrapper

This commit is contained in:
q3aql 2025-07-27 10:48:47 +02:00
parent 4c8ab31a3a
commit 7e75e91b1f

43
packages/nwg-wrapper-install.sh Executable file
View File

@ -0,0 +1,43 @@
#!/bin/bash
#################################################
# Script to build and install i3-gaps on Debian #
# Author: q3aql (q3aql@duck.com) #
# Last update: 09-01-2022 #
# ###############################################
# Variables
URL_Repo="https://github.com/nwg-piotr/nwg-wrapper.git"
dir_build="nwg-wrapper"
# Check if you are root
mkdir -p /etc/root &> /dev/null
administrador=$?
if [ ${administrador} -eq 0 ] ; then
rm -rf /etc/root
else
echo ""
echo "* nwg-wrapper install"
echo ""
echo "* Administrator permissions are required"
echo ""
exit
fi
# Install dependencies
apt update
apt upgrade -y
apt install git python3 python3-pip wlr-randr -y
apt install python3-setuptools -y
apt install libgtk3.0-cil-dev -y
apt install libgtk-layer-shell0 -y
apt install libgtk-layer-shell-dev -y
apt install python3-i3ipc -y
apt install python3-gi -y
# Install nwg-wrapper
cd /tmp
git clone ${URL_Repo}
cd ${dir_build}
python3 setup.py install --optimize=1