From 579489fa9c21ccc9f9490f972db9509183405259 Mon Sep 17 00:00:00 2001 From: DragonSlayer_14 Date: Sun, 6 Sep 2026 13:30:27 +0200 Subject: [PATCH] =?UTF-8?q?Feat:=20OpenDeck-Installation=20zu=20Stage=2008?= =?UTF-8?q?=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Junie --- AGENTS.md | 2 +- README.md | 2 +- lib/tui.sh | 2 +- setup.sh | 2 +- stages/08-flatpaks-apps.sh | 12 ++++++++++-- 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 861b943..1687f38 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -43,7 +43,7 @@ Dieses Repository ist ein modulares, automatisiertes Setup- und Konfigurations-F │ ├── 05-fonts.sh # Download & Installation von Coding- & Nerd-Fonts │ ├── 06-services.sh # Aktivierung von AppArmor, Docker, Libvirt, zram, Ollama │ ├── 07-skel-and-user.sh # /etc/skel Vorlagen, ZSH-Shell-Setzen, Dotfiles-Sync -│ ├── 08-flatpaks-apps.sh # Flathub Setup, Flatpaks, Spotify, Waydroid, MIME-Types +│ ├── 08-flatpaks-apps.sh # Flathub Setup, Flatpaks, Spotify, Waydroid, OpenDeck, MIME-Types │ └── 09-hyprland.sh # LinuxBeginnings Debian-Hyprland Auto-Installer & Desktop-Setup ├── data/ # Statische Konfigurationsdateien & Vorlagen │ ├── apt/ diff --git a/README.md b/README.md index a25a3ad..9f84d05 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ sudo ./setup.sh --stages 04,05 │ ├── 05-fonts.sh # Download & Installation von JetBrainsMono, Fantasque, VictorMono │ ├── 06-services.sh # Aktivierung von AppArmor, Docker, Libvirt, zram, Ollama │ ├── 07-skel-and-user.sh # /etc/skel Vorlagen, ZSH-Shell-Setzen, Dotfiles-Sync -│ ├── 08-flatpaks-apps.sh # Flathub Setup, Flatpaks, Spotify, Waydroid, MIME-Types +│ ├── 08-flatpaks-apps.sh # Flathub Setup, Flatpaks, Spotify, Waydroid, OpenDeck, MIME-Types │ └── 09-hyprland.sh # LinuxBeginnings Debian-Hyprland Auto-Installer & Dotfiles └── data/ # Statische Konfigurationsdateien & Vorlagen ├── apt/ diff --git a/lib/tui.sh b/lib/tui.sh index 4d83142..f8da329 100755 --- a/lib/tui.sh +++ b/lib/tui.sh @@ -34,7 +34,7 @@ tui_select_stages() { "05" "Coding & Nerd Fonts (JetBrainsMono, VictorMono)" ON \ "06" "System-Dienste (AppArmor, Docker, Libvirt, zram, Ollama)" ON \ "07" "Userland & Skel (Zsh, Skel-Templates, Dotfiles)" ON \ - "08" "Flatpaks & Apps (Flathub, Flatpaks, MIME)" ON \ + "08" "Flatpaks & Apps (Flathub, Spotify, OpenDeck, MIME)" ON \ "09" "Hyprland Desktop (LinuxBeginnings Debian-Hyprland Installer)" ON \ 3>&1 1>&2 2>&3) || { log_info "Setup durch Benutzer abgebrochen." diff --git a/setup.sh b/setup.sh index 71b8086..d092b28 100755 --- a/setup.sh +++ b/setup.sh @@ -42,7 +42,7 @@ Available Stages: 05: Font Installation (JetBrainsMono, FantasqueSans, VictorMono) 06: System Services (AppArmor, Docker, Libvirt, zram, Ollama) 07: Skel & User Environment (Zsh, Templates, Dotfiles Sync) - 08: Flatpaks & Applications (Flathub, Spotify, Waydroid, MIME types) + 08: Flatpaks & Applications (Flathub, Spotify, Waydroid, OpenDeck, MIME types) 09: Hyprland Desktop (LinuxBeginnings Auto-Installer) Examples: diff --git a/stages/08-flatpaks-apps.sh b/stages/08-flatpaks-apps.sh index 933b470..1165b7a 100755 --- a/stages/08-flatpaks-apps.sh +++ b/stages/08-flatpaks-apps.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # ============================================================================== -# stages/08-flatpaks-apps.sh - Flathub setup, Flatpaks, Spotify, Waydroid & MIME associations +# stages/08-flatpaks-apps.sh - Flathub setup, Flatpaks, Spotify, Waydroid, OpenDeck & MIME associations # ============================================================================== set -euo pipefail @@ -73,7 +73,15 @@ if command_exists systemctl && command_exists waydroid; then log_success "Waydroid container service enabled." fi -# 6. Set Default Desktop MIME Types for Target User +# 6. OpenDeck Installation +log_substep "Installing / Updating OpenDeck..." +if curl -sSL https://raw.githubusercontent.com/nekename/OpenDeck/main/install_opendeck.sh | bash; then + log_success "OpenDeck installation completed." +else + log_warn "OpenDeck installation script returned a non-zero exit code." +fi + +# 7. Set Default Desktop MIME Types for Target User log_substep "Setting default XDG MIME handlers for $TARGET_USER..." run_as_target_user xdg-mime default org.gnome.Loupe.desktop image/jpeg 2>/dev/null || true run_as_target_user xdg-mime default org.gnome.Loupe.desktop image/png 2>/dev/null || true