fix: autostart simplified

This commit is contained in:
2024-10-30 23:56:48 +01:00
parent f63766d9b0
commit 4125562f7a
8 changed files with 24 additions and 126 deletions

19
bin/actions/auto-start.sh Executable file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
apps=(
spotify
whatsapp-for-linux
telegram-desktop
vesktop
trayscale
1password
)
echo "Starting auto-start applications..."
for app in "${apps[@]}"; do
if [ -x "$(command -v $app)" ]; then
echo "Starting $app..."
screen -dmS $app $app
sleep 1
fi
done

View File

@ -67,6 +67,9 @@ case $1 in
"term")
$HOME/dotfiles/bin/actions/term.sh $@
;;
"auto-start"|"-a"|"-auto-start"|"as")
$HOME/dotfiles/bin/actions/auto-start.sh $@
;;
"hotkey-daemon")
x-terminal-emulator -e $HOME/dotfiles/bin/actions/hotkey-daemon.sh $@
;;