Feat: Fügt tuxedo-control-center zum Autostart hinzu.
This commit is contained in:
parent
673849b3c2
commit
68c2534576
21
6_Polish.sh
21
6_Polish.sh
@ -198,4 +198,25 @@ echo "📂 Verschiebe $(xdg-user-dir)/Pictures nach $(xdg-user-dir PICTURES)..."
|
||||
rsync -av --ignore-existing "$(xdg-user-dir)/Pictures/" "$(xdg-user-dir PICTURES)/"
|
||||
rm -r "$(xdg-user-dir)/Pictures/"
|
||||
|
||||
echo "Füge Autostart-Apps hinzu..."
|
||||
# Pfad zur Konfigurationsdatei
|
||||
CONFIG_FILE="$HOME/.config/hypr/UserConfigs/Startup_Apps.conf"
|
||||
|
||||
# Zeile, die hinzugefügt werden soll
|
||||
LINE_TO_ADD="exec-once = tuxedo-control-center --tray"
|
||||
|
||||
# Überprüfen, ob die Datei existiert
|
||||
if [ -f "$CONFIG_FILE" ]; then
|
||||
# Überprüfen, ob die Zeile bereits existiert
|
||||
if ! grep -Fxq "$LINE_TO_ADD" "$CONFIG_FILE"; then
|
||||
# Zeile hinzufügen
|
||||
echo "$LINE_TO_ADD" >> "$CONFIG_FILE"
|
||||
echo "Zeile wurde erfolgreich hinzugefügt."
|
||||
else
|
||||
echo "Die Zeile existiert bereits in der Datei."
|
||||
fi
|
||||
else
|
||||
echo "Die Datei $CONFIG_FILE existiert nicht."
|
||||
fi
|
||||
|
||||
echo "✅ Skript erfolgreich ausgeführt!"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user