From c87ea36c67e353e881bc8457e8e5f73a7c57824f Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Sat, 2 Mar 2024 18:44:53 +0300 Subject: [PATCH] Change telegram from apt to binary --- install_ubuntu.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/install_ubuntu.sh b/install_ubuntu.sh index c0f33ed..6c77380 100755 --- a/install_ubuntu.sh +++ b/install_ubuntu.sh @@ -33,12 +33,19 @@ ubuntu-wallpapers-jammy `# backgrounds` \ xfe `# classic file manager` \ surf `# suckless lightweight browser` \ micro `# lightweight editor` \ -telegram-desktop \ +psmisc `# pstree etc.` \ slack \ firefox \ python3 - +# install telegram +if [ ! -f telegram.tar.xz ] +then + curl -L https://telegram.org/dl/desktop/linux -o telegram.tar.xz +fi +tar -xf telegram.tar.xz +rm -f telegram.tar.xz +sudo mv Telegram /opt/ # remove snap cause I hate it sudo systemctl disable --now snapd @@ -87,8 +94,11 @@ echo "xhost +local:" > $HOME/.dwm/autostart.sh # give permissions to display echo "xcompmgr &" >> $HOME/.dwm/autostart.sh # for st opacity echo "xwallpaper --stretch /usr/share/backgrounds/Blue_flower_by_Elena_Stravoravdi.jpg" >> $HOME/.dwm/autostart.sh # background echo "firefox &" >> $HOME/.dwm/autostart.sh -echo "telegram-desktop &" >> $HOME/.dwm/autostart.sh +echo "Telegram &" >> $HOME/.dwm/autostart.sh echo "st &" >> $HOME/.dwm/autostart.sh chmod +x $HOME/.dwm/autostart.sh sudo timedatectl set-timezone Europe/Moscow + +sudo bash -c "echo 'PATH=\$(find /opt/ -executable -type f | grep -v \.so | xargs dirname | uniq | paste -s -d : | xargs -I _ echo \$PATH:_)' > /etc/profile.d/opt.sh" +