sway-wm/packages/nwg-wrapper-install.sh
2025-07-27 11:30:49 +02:00

41 lines
986 B
Bash
Executable File

#!/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 "* nwg-wrapper install"
echo "* Administrator permissions are required"
exit 1
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