Fix autostart

This commit is contained in:
Digital Studium 2024-06-16 11:59:03 +03:00
parent 930d89c47b
commit d6bdc5ec95
2 changed files with 13 additions and 3 deletions

View File

@ -43,7 +43,7 @@ EOL
if ! grep transset ~/.bashrc &> /dev/null; then
cat >> ~/.bashrc << EOL
term=\$(cat /proc/\$PPID/comm)
if [[ \$term == "x-terminal-emul" ]]; then
if [[ \$term == "x-terminal-emul" || \$term == "st" ]]; then
transset 0.6 --id \$WINDOWID > /dev/null
fi
EOL
@ -71,4 +71,15 @@ sudo sed -i s/desktop/override/g /etc/conky/conky.conf
sudo sed -i s/top_left/top_right/g /etc/conky/conky.conf
sudo bash -c "echo 'PATH=\$PATH:\$(find /opt/ -executable -type f | grep -v \.so | xargs dirname | uniq | paste -s -d : | xargs -I _ echo _)' > /etc/profile.d/opt.sh"
mkdir ~/.config/autostart
dex -c /usr/bin/chromium -t ~/.config/autostart
dex -c /usr/bin/telegram-desktop -t ~/.config/autostart
dex -c /usr/bin/st -t ~/.config/autostart
if ! grep TelegramDesktop ~/.config/i3/config &> /dev/null; then
cat >> ~/.config/i3/config << EOL
assign [class="Chromium"] 1
assign [class="TelegramDesktop"] 2
assign [class="st-256color"] 3
EOL
fi

View File

@ -31,7 +31,6 @@ do
sudo usermod -a -G $group $USER
done
newgrp docker
# background removal for obs-studio
if [ ! -d /usr/share/obs/obs-plugins/obs-backgroundremoval ]
@ -57,7 +56,7 @@ then
rm -f pet_0.3.6_linux_amd64.deb
fi
# install gui scripts
# install tui scripts
if ! command -v a &> /dev/null
then
curl -O "https://git.digitalstudium.com/digitalstudium/tui-scripts/releases/download/latest/tui-scripts_$(curl -s https://git.digitalstudium.com/digitalstudium/tui-scripts/raw/branch/main/VERSION)-1.deb"