diff options
| author | Don Williams <don.e.williams@gmail.com> | 2025-11-05 02:25:14 -0500 |
|---|---|---|
| committer | Don Williams <don.e.williams@gmail.com> | 2025-11-05 02:25:14 -0500 |
| commit | 5fc91179274f7dceed62e24aad274a600d082f22 (patch) | |
| tree | fa88f6d8dbe944b2f6023b75229c30d3e0b114bb /copy.sh | |
| parent | 3665ebd0f02a04e44d382d4cc9f306525e02279d (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-x | copy.sh | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |
