Skip to content

Commit

Permalink
fix last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ivam3 committed Dec 3, 2023
1 parent 3578170 commit acaf507
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .deb/home/.local/libexec/i-Haklab/Xwayland
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,23 @@ source $iHETC/functions

chk-pkg Xwayland xwayland
chk-pkg pulseaudio pulseaudio
command -v termux-x11 >/dev/null || { echo -en "${R}E:$W You need to install the Termux-Wayland(apk) deb file's.";exit;}

! command -v termux-x11 >/dev/null && { yes|apt install termux-x11-nightly
} || ! command -v Xwayland >/dev/null && { yes|apt install xwayland
} && { echo -en "\e[31mE:\e[0m You need to install the Termux-Wayland(apk) deb file's."
exit
}

export DISPLAY=:0
export XDG_RUNTIME_DIR=${TMPDIR}

pulseaudio --start --exit-idle-time=-1 2>/dev/null
pacmd load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1
am start -n com.termux.x11/com.termux.x11.MainActivity;sleep 3
command -v termux-x11 >/dev/null || apt install termux-x11-nightly

[[ ! -z "$1" ]] && [[ "$1" == "Xwayland" ]] && { Xbin="$1";} || { Xbin="termux-x11";tip="Xwayland";}
$(command -v $Xbin) :0 >/dev/null &
sleep 5;xfce4-session --display=:0 || echo -en "${R}E: Display unreachable $W|$Y Try it with: ${G}i-Haklab Xwayland $tip$W"

killall main pulseaudio 2>/dev/null
####::: REPORT ISSUES AT https://t.me/Ivam3_Bot :::####
2 changes: 1 addition & 1 deletion .deb/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ if [[ -e ${HOME}/.local/libexec/i-Haklab.login.backup ]]; then
cat ${HOME}/.local/libexec/i-Haklab.login.backup > ${HOME}/.local/libexec/i-Haklab.login
rm ${HOME}/.local/libexec/i-Haklab.login.backup
fi
echo -en "[updates]\n ╰──➤ New commands added:\n |\t\t• cmd\n |\t\t• gitbrowsering\n |\t\t• i-Haklab chatGPT\n |\t\t• cinderella\n ╰──➤ New features:\n\t\t• type into neovim 'alter', 'comma', 'n' \n\t\t (alt + , + n) to use AI"
echo -en "[updates]\n ╰──➤ New commands added:\n |\t\t• cmd\n |\t\t• gitbrowsering\n |\t\t• i-Haklab chatGPT\n |\t\t• cinderella\n ╰──➤ New features:\n\t\t• type into neovim 'alter', 'comma', 'n' \n\t\t (alt + , + n) to use AI\n"
echo "[*] i-Haklab installation finished."
echo "[*] run 'i-Haklab help' for a guide."
echo "[*] Run 'fixer' to fix any posible issue."
Expand Down

0 comments on commit acaf507

Please sign in to comment.