diff options
Diffstat (limited to 'dotfiles/hyprland/.profile.d')
| -rw-r--r-- | dotfiles/hyprland/.profile.d/99-hyprland-autostart.sh | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/dotfiles/hyprland/.profile.d/99-hyprland-autostart.sh b/dotfiles/hyprland/.profile.d/99-hyprland-autostart.sh index 9d80353..753fdce 100644 --- a/dotfiles/hyprland/.profile.d/99-hyprland-autostart.sh +++ b/dotfiles/hyprland/.profile.d/99-hyprland-autostart.sh @@ -6,21 +6,14 @@ [ -z "$SSH_TTY" ] || return 0 [ -z "$WAYLAND_DISPLAY" ] || return 0 [ -z "$DISPLAY" ] || return 0 -command -v Hyprland >/dev/null 2>&1 || return 0 +command -v start-hyprland >/dev/null 2>&1 || return 0 # Skip if flag file exists (touch ~/.skip-hyprland to disable) [ -f "$HOME/.skip-hyprland" ] && return 0 -# Setup logging (same pattern as start-hyprland wrapper) -_hypr_log_dir="$HOME/.local/var/log" -mkdir -p "$_hypr_log_dir" -_hypr_log="$_hypr_log_dir/hyprland-$(date +%Y-%m-%d-%H%M%S).log" - -# Clear screen and start Hyprland (no exec = return to shell on exit) +# Clear screen and start Hyprland via watchdog wrapper clear -Hyprland >"$_hypr_log" 2>&1 +start-hyprland # Hyprland exited - inform user echo "Hyprland session ended. Type 'start-hyprland' to restart." - -unset _hypr_log_dir _hypr_log |
