Change telegram from apt to binary

This commit is contained in:
Digital Studium 2024-03-02 18:44:53 +03:00
parent 8c88a4cea6
commit c87ea36c67
1 changed files with 13 additions and 3 deletions

View File

@ -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"