Some checks failed
Nix Format Check / check-format (push) Failing after 38s
adds noatime to all devices root partition mount options adds cosmic desktop to workstations adds xanmod kernel to workstations adds xanmod with zfs to servers adds perplexityai extension to brave removes openra flatpak adds threads limit to upgrade command to prevent system freezes removes fcitx5 completely
32 lines
534 B
Bash
Executable File
32 lines
534 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
apps=(
|
|
spotify
|
|
whatsapp-for-linux
|
|
telegram-desktop
|
|
vesktop
|
|
trayscale
|
|
1password
|
|
ulauncher-wrapped
|
|
)
|
|
|
|
# check if screen has any dead sessions
|
|
if screen -list | grep -q "Dead"; then
|
|
screen -wipe
|
|
fi
|
|
|
|
echo "Starting auto-start applications..."
|
|
for app in "${apps[@]}"; do
|
|
if [ -x "$(command -v $app)" ]; then
|
|
if screen -list | grep -q $app; then
|
|
echo "$app is already running. Skipping..."
|
|
continue
|
|
fi
|
|
|
|
echo "Starting $app..."
|
|
screen -dmS $app $app
|
|
sleep 1
|
|
fi
|
|
done
|
|
|