From 8293d26c0709ac86a857f6ba7a5374ff0109d978 Mon Sep 17 00:00:00 2001 From: 28allday Date: Tue, 12 May 2026 20:59:00 +0100 Subject: [PATCH] chore: drop non-Omarchy fallback in portal-recovery Walker restart MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DeckShift targets Omarchy only — the fallback added in 74b1a5b was unnecessary defensive coding. Helper now just calls omarchy-restart-walker directly. Also updated the file header to remove the stale "distro-portability is the next direction" note. Co-Authored-By: Claude Opus 4.7 (1M context) --- deckshift.sh | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/deckshift.sh b/deckshift.sh index 6d2fe6f..f9c1699 100755 --- a/deckshift.sh +++ b/deckshift.sh @@ -3,8 +3,8 @@ # DeckShift - Steam Deck Mode for Linux + Hyprland # # Forked from Super-Shift-S-Omarchy-Deck-Mode (v12.27) → renamed Omarchy Deck → -# renamed DeckShift. Currently targets Omarchy/Arch but distro-portability is -# the next direction. Extended with: +# renamed DeckShift. Targets Omarchy (Arch + Hyprland + SDDM + Walker). Extended +# with: # - NVIDIA GSP-aware driver branch selection (legacy 580xx for Pascal/Maxwell) # - omarchy-pkg-add idempotent package installs # - Optional Xbox Bluetooth controller support (xpadneo-dkms) @@ -34,7 +34,7 @@ set -Euo pipefail # -u: Treat unset variables as errors (catches typos in variable names) # -o pipefail: A pipeline fails if ANY command in it fails, not just the last one -DECKSHIFT_VERSION="0.1.5" +DECKSHIFT_VERSION="0.1.6" # Resolve the directory this script lives in so we can find sibling files like # bin/deckshift-settings and applications/deckshift-settings.desktop when @@ -2469,14 +2469,8 @@ sleep 2 systemctl --user start xdg-desktop-portal-hyprland.service xdg-desktop-portal.service 2>/dev/null || true # Walker (elephant) holds the clipboard listener, which is also bound to the -# dead Hyprland's Wayland socket and stays broken until restarted. Prefer the -# omarchy helper if present; fall back to direct systemctl --user. -if command -v omarchy-restart-walker >/dev/null 2>&1; then - omarchy-restart-walker >/dev/null 2>&1 || true -else - systemctl --user restart elephant.service 2>/dev/null || true - systemctl --user restart app-walker@autostart.service 2>/dev/null || true -fi +# dead Hyprland's Wayland socket and stays broken until restarted. +omarchy-restart-walker >/dev/null 2>&1 || true PORTAL_RECOVERY sudo chmod +x "$portal_recovery"