Fix autostart
This commit is contained in:
parent
930d89c47b
commit
d6bdc5ec95
|
@ -43,7 +43,7 @@ EOL
|
||||||
if ! grep transset ~/.bashrc &> /dev/null; then
|
if ! grep transset ~/.bashrc &> /dev/null; then
|
||||||
cat >> ~/.bashrc << EOL
|
cat >> ~/.bashrc << EOL
|
||||||
term=\$(cat /proc/\$PPID/comm)
|
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
|
transset 0.6 --id \$WINDOWID > /dev/null
|
||||||
fi
|
fi
|
||||||
EOL
|
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 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"
|
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
|
||||||
|
|
|
@ -31,7 +31,6 @@ do
|
||||||
sudo usermod -a -G $group $USER
|
sudo usermod -a -G $group $USER
|
||||||
done
|
done
|
||||||
|
|
||||||
newgrp docker
|
|
||||||
|
|
||||||
# background removal for obs-studio
|
# background removal for obs-studio
|
||||||
if [ ! -d /usr/share/obs/obs-plugins/obs-backgroundremoval ]
|
if [ ! -d /usr/share/obs/obs-plugins/obs-backgroundremoval ]
|
||||||
|
@ -57,7 +56,7 @@ then
|
||||||
rm -f pet_0.3.6_linux_amd64.deb
|
rm -f pet_0.3.6_linux_amd64.deb
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# install gui scripts
|
# install tui scripts
|
||||||
if ! command -v a &> /dev/null
|
if ! command -v a &> /dev/null
|
||||||
then
|
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"
|
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"
|
||||||
|
|
Loading…
Reference in New Issue