Skip to content

Commit

Permalink
xapi
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkXero-dev committed Oct 6, 2024
1 parent 91a313e commit 8fc3edf
Show file tree
Hide file tree
Showing 25 changed files with 2,577 additions and 24 deletions.
23 changes: 23 additions & 0 deletions content/script/xapi/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Maintainer: DarkXero <[email protected]>
pkgname=xlapit-cli
_destname1="/"
pkgver=1.0
pkgrel=1
pkgdesc="XeroLinux Arch Post Install Toolkit"
arch=('any')
url="https://github.com/XeroLinux"
license=('GPL3')
makedepends=('git')
makedepends=('git' 'wget')
provides=("${pkgname}")
options=(!strip !emptydirs)
source=(${pkgname}::"git+${url}/${pkgname}")
sha256sums=('SKIP')
package() {
install -dm755 ${pkgdir}${_destname1}
cp -r ${srcdir}/${pkgname}${_destname1}/* ${pkgdir}${_destname1}
rm ${srcdir}/${pkgname}/push.sh
rm ${srcdir}/${pkgname}/README.md
rm ${srcdir}/${pkgname}/PKGBUILD
rm ${srcdir}/${pkgname}/LICENSE
}
3 changes: 3 additions & 0 deletions content/script/xapi/contents/.directory
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Dolphin]
Timestamp=2024,1,27,12,13,49.303
Version=4
129 changes: 129 additions & 0 deletions content/script/xapi/contents/scripts/customization.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
#!/bin/bash
#set -e
##################################################################################################################
# Written to be used on 64 bits computers
# Author : DarkXero
# Website : http://xerolinux.xyz
##################################################################################################################
clear
tput setaf 3
echo "#################################################"
echo "# System Customization #"
echo "#################################################"
tput sgr0
echo
echo "Hello $USER, please select what to do..."
echo
echo "################# Shell / Prompt #################"
echo
echo "z. Install ZSH+OMZ+Powerlevel10k."
echo "s. Install and Apply Starship Bash Prompt."
echo
echo "################# Plasma Stuffs #################"
echo
echo "#################################################"
echo "# Rices Currently Unavailable. #"
echo "# In Process Of Migrating to Plasma 6 #"
echo "#################################################"
echo
echo "p. Install missing Plasma Packages."
echo "m. Apply AppMenu Meta-Key Fix (Kwin/Rices)."
echo "w. Apply xWayland Screen/Window Sharing Fix."
echo
echo "Type Your Selection. Or type q to return to main menu."
echo

while :; do

read CHOICE

case $CHOICE in

z )
echo
echo "###########################################"
echo " Installing ZSH+OMZ+Powerlevel10k "
echo "###########################################"
sleep 3
sh $SCRIPTS_PATH/switch_to_zsh.sh
sleep 3
echo "#######################################"
echo " Done ! "
echo "#######################################"
clear && sh $0
;;

s )
echo
echo "###########################################"
echo " Starship Prompt "
echo "###########################################"
sleep 3
sudo pacman -S starship
mkdir -p ~/.config/starship && cd ~/.config/starship
wget https://raw.githubusercontent.com/xerolinux/xero-fixes/main/conf/starship.toml
sleep 3
echo "#######################################"
echo " Done ! "
echo "#######################################"
clear && sh $0
;;

p )
echo
sleep 2
echo "Installing Missing Plasma Packages..."
echo
sleep 3
$AUR_HELPER -S --noconfirm flatpak-kcm systemd-kcm kdeplasma-addons keditbookmarks kgpg kwalletmanager print-manager yakuake tesseract-data-eus dolphin-plugins gwenview kamera okular spectacle svgpart plasmatube dwayland egl-wayland qt6-wayland glfw-wayland lib32-wayland wayland-protocols kwayland-integration plasma-wayland-session plasma-wayland-protocols
echo
sleep 2
echo "All done, please reboot for good measure !"
sleep 3
clear && sh $0

;;

m )
echo
sleep 2
echo "Applying Meta-Key AppMenu fix..."
echo
kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.plasmashell,/PlasmaShell,org.kde.PlasmaShell,activateLauncherMenu"
sleep 3
echo "Relaunching Kwin..."
qdbus org.kde.KWin /KWin reconfigure
echo
echo "All done, should work now !"
sleep 3
clear && sh $0

;;

w )
echo
sleep 2
echo "Installing XWayland Bridge..."
echo
sleep 3
sudo pacman -S --noconfirm xwaylandvideobridge
echo
sleep 2
echo "All done, please reboot for good measure !"
sleep 3
clear && sh $0

;;

q )
clear && exec ~/.local/bin/xero-cli

;;

* )
echo "#################################"
echo " Choose the correct number "
echo "#################################"
;;
esac
done
157 changes: 157 additions & 0 deletions content/script/xapi/contents/scripts/dbox.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
#!/bin/bash
#set -e
##################################################################################################################
# Written to be used on 64 bits computers
# Author : DarkXero
# Website : http://xerolinux.xyz
##################################################################################################################
clear
tput setaf 3
echo "##############################################################"
echo "# XeroLinux Distrobox/Docker/Virt-Manager Tool #"
echo "##############################################################"
tput sgr0
echo
echo "Hello $USER, what would you like to do today ?"
echo
echo "################## Distrobox & Docker Setup ##################"
echo
echo "d. Install/Configure Docker."
echo "b. Install/Configure Distrobox."
echo
echo "################### Top 5 Distrobox Images ###################"
echo "#### Both Options d and b are required for below to work. ####"
echo
echo "1. Debian."
echo "2. Fedora."
echo "3. Void Linux."
echo "4. Tumbleweed."
echo
echo "u. Update all Containers (Might take a while)."
echo
echo "Type Your Selection. Or type q to return to main menu."
echo

while :; do

read CHOICE

case $CHOICE in

d )
echo
sleep 2
echo "Installing & Srtting up Docker..."
echo
sudo pacman -S --noconfirm docker docker-compose docker-buildx
sleep 2
echo
echo "Enabling Services & Adding you to group"
echo
sudo systemctl enable --now docker
sudo usermod -aG docker $USER
sleep 2
echo
# Prompt the user to reboot
tput setaf 1
read -p "All done. Reboot is required. Reboot now? (y/n): " reboot_response
tput setaf 0
echo
# Check the user's response
if [[ $reboot_response == "y" || $reboot_response == "yes" ]]; then
sudo reboot
else
echo
tput setaf 2
echo "Please manually reboot your system before using Docker."
sleep 3
clear && sh $0
tput sgr0
fi

;;

b )
echo
sleep 2
echo "Installing Dostrobox..."
echo
sudo pacman -S --noconfirm distrobox
sleep 3
echo
clear && sh $0

;;

1 )
echo
sleep 2
echo "Pulling Latest Debian Image with label Debian, Please Wait..."
echo
distrobox create -i quay.io/toolbx-images/debian-toolbox:latest -n "Debian"
sleep 10
echo
clear && sh $0

;;

2 )
echo
sleep 2
echo "Pulling Latest Fedora Image with label Fedora, Please Wait..."
echo
distrobox create -i registry.fedoraproject.org/fedora-toolbox:latest -n "Fedora"
sleep 10
echo
clear && sh $0

;;

3 )
echo
sleep 2
echo "Pulling Latest Void Linux Image with label VoidLinux, Please Wait..."
echo
distrobox create -i ghcr.io/void-linux/void-linux:latest-full-x86_64 -n "VoidLinux"
sleep 10
echo
clear && sh $0

;;

4 )
echo
sleep 2
echo "Pulling Latest Tumbleweed Image with label OpenSuse..."
echo
distrobox create -i registry.opensuse.org/opensuse/tumbleweed:latest -n "OpenSuse"
sleep 10
echo
clear && sh $0

;;

u )
echo
sleep 2
echo "Upgrading all Containers Please Wait..."
echo
distrobox-upgrade --all
sleep 3
echo
clear && sh $0

;;

q )
clear && exec ~/.local/bin/xero-cli

;;

* )
echo "#################################"
echo " Choose the correct number "
echo "#################################"
;;
esac
done
Loading

0 comments on commit 8fc3edf

Please sign in to comment.