This commit is contained in:
mfgbhatti 2022-02-19 18:59:07 +00:00
parent 4a37ad0168
commit 218bb28bad
2 changed files with 12 additions and 13 deletions

View File

@ -22,18 +22,18 @@ install_aur() {
cd "$HOME" || exit 0 cd "$HOME" || exit 0
case "$AURHELPER" in case "$AURHELPER" in
"yay") "yay")
install_pkg "go" # install_pkg "go" permission error
git clone "https://aur.archlinux.org/yay.git" git clone "https://aur.archlinux.org/yay.git"
;; ;;
"trizen") "trizen")
install_pkg "perl" # install_pkg "perl"
git clone "https://aur.archlinux.org/trizen.git" git clone "https://aur.archlinux.org/trizen.git"
;; ;;
"aurman") "aurman")
git clone "https://aur.archlinux.org/aurman.git" git clone "https://aur.archlinux.org/aurman.git"
;; ;;
"aura") "aura")
install_pkg "stack" # install_pkg "stack"
git clone "https://aur.archlinux.org/aura.git" git clone "https://aur.archlinux.org/aura.git"
;; ;;
"pikaur") "pikaur")
@ -55,11 +55,6 @@ if [[ "$LAYOUT" -eq 1 ]]; then
install_aur "$LINE" install_aur "$LINE"
done <~/ArchTitus/pkg-files/aur-pkgs.txt done <~/ArchTitus/pkg-files/aur-pkgs.txt
touch "$HOME/.cache/zshhistory"
git clone "https://github.com/ChrisTitusTech/zsh"
git clone --depth=1 "https://github.com/romkatv/powerlevel10k.git" "$HOME"/powerlevel10k
ln -s "$HOME/zsh/.zshrc" "$HOME"/.zshrc
pip install konsave pip install konsave
konsave -i "$HOME"/ArchTitus/kde.knsv konsave -i "$HOME"/ArchTitus/kde.knsv
sleep 1 sleep 1
@ -67,6 +62,11 @@ if [[ "$LAYOUT" -eq 1 ]]; then
cp -r "$HOME"/ArchTitus/dotfiles/* "$HOME"/.config/ cp -r "$HOME"/ArchTitus/dotfiles/* "$HOME"/.config/
fi fi
touch "$HOME/.cache/zshhistory"
git clone "https://github.com/ChrisTitusTech/zsh"
git clone --depth=1 "https://github.com/romkatv/powerlevel10k.git" "$HOME"/powerlevel10k
ln -s "$HOME/zsh/.zshrc" "$HOME"/.zshrc
case "$DESKTOP" in case "$DESKTOP" in
"lxqt") "lxqt")
install_aur sddm-nordic-theme-git install_aur sddm-nordic-theme-git

View File

@ -41,7 +41,7 @@ do_reboot () {
} }
end() { end() {
logo REBOOT="true"
for (( i = 15; i >= 1; i-- )); do for (( i = 15; i >= 1; i-- )); do
read -r -s -n 1 -t 1 -p "Rebooting in $i seconds... Press Esc key to abort or press R key to reboot now."$'\n' KEY read -r -s -n 1 -t 1 -p "Rebooting in $i seconds... Press Esc key to abort or press R key to reboot now."$'\n' KEY
CODE="$?" CODE="$?"
@ -49,15 +49,14 @@ end() {
continue continue
fi fi
if [[ "$KEY" == $'\e' ]]; then if [[ "$KEY" == $'\e' ]]; then
REBOOT=0 REBOOT="false"
break break
elif [[ "$KEY" == "r" || "$KEY" == "R" ]]; then elif [[ "$KEY" == "r" || "$KEY" == "R" ]]; then
REBOOT=1 REBOOT="true"
break break
fi fi
REBOOT=1
done done
if [[ "$REBOOT" -eq 1 ]]; then if [[ "$REBOOT" == "true" ]]; then
do_reboot do_reboot
else else
echo "Reboot is aborted " echo "Reboot is aborted "