aboutsummaryrefslogtreecommitdiffstats
path: root/copy.sh
diff options
context:
space:
mode:
authorDon Williams <don.e.williams@gmail.com>2025-11-05 02:25:14 -0500
committerDon Williams <don.e.williams@gmail.com>2025-11-05 02:25:14 -0500
commit5fc91179274f7dceed62e24aad274a600d082f22 (patch)
treefa88f6d8dbe944b2f6023b75229c30d3e0b114bb /copy.sh
parent3665ebd0f02a04e44d382d4cc9f306525e02279d (diff)
fix(copy): always add KeybindsLayoutInit.sh to UserConfigs/Startup_Apps overlay\n\n- Ensures the layout-aware J/K init survives composition and user updates\n- Prevents cases where generated/Startup_Apps.conf misses the init entry
Diffstat (limited to 'copy.sh')
-rwxr-xr-xcopy.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/copy.sh b/copy.sh
index b4e958a9..1addda84 100755
--- a/copy.sh
+++ b/copy.sh
@@ -281,6 +281,14 @@ if command -v qs >/dev/null 2>&1; then
sed -i '/#pkill qs && qs &/s/^#//' config/hypr/scripts/Refresh.sh
fi
+# Ensure layout-aware keybinds init runs on startup (adds to user overlay so it survives composes)
+OVERLAY_SA="config/hypr/UserConfigs/Startup_Apps.conf"
+mkdir -p "$(dirname "$OVERLAY_SA")"
+if ! grep -qx 'exec-once = \$scriptsDir/KeybindsLayoutInit.sh' "$OVERLAY_SA"; then
+ echo 'exec-once = $scriptsDir/KeybindsLayoutInit.sh' >>"$OVERLAY_SA"
+ echo "${INFO} Added KeybindsLayoutInit.sh to user Startup_Apps overlay" 2>&1 | tee -a "$LOG"
+fi
+
# Note: The SUPER+A keybind now uses OverviewToggle.sh which automatically
# tries quickshell first and falls back to AGS, so both can be installed
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage