clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

add debug

sspaeti 06320b24 393a9f67

+8
+8
hypr/.config/hypr/sspaeti/omarchy-system-menu-intercept
··· 4 4 # This script wraps systemctl calls to use our custom system menu 5 5 6 6 if [[ "$1" == "poweroff" ]]; then 7 + echo "$(date): Shutdown script called - poweroff" >> /tmp/shutdown.log 7 8 # Save tmux sessions and close gracefully before shutdown 8 9 if command -v tmux &> /dev/null && tmux list-sessions &> /dev/null; then 10 + echo "$(date): Found tmux sessions, saving and killing" >> /tmp/shutdown.log 9 11 # Save all tmux sessions using resurrect 10 12 tmux run-shell '~/.tmux/plugins/tmux-resurrect/scripts/save.sh' 13 + sleep 2 11 14 # Kill all tmux sessions gracefully 12 15 tmux kill-server 16 + echo "$(date): tmux kill-server completed" >> /tmp/shutdown.log 13 17 fi 14 18 exec /usr/bin/systemctl poweroff 15 19 elif [[ "$1" == "reboot" ]]; then 20 + echo "$(date): Shutdown script called - reboot" >> /tmp/shutdown.log 16 21 # Save tmux sessions and close gracefully before restart 17 22 if command -v tmux &> /dev/null && tmux list-sessions &> /dev/null; then 23 + echo "$(date): Found tmux sessions, saving and killing" >> /tmp/shutdown.log 18 24 # Save all tmux sessions using resurrect 19 25 tmux run-shell '~/.tmux/plugins/tmux-resurrect/scripts/save.sh' 26 + sleep 2 20 27 # Kill all tmux sessions gracefully 21 28 tmux kill-server 29 + echo "$(date): tmux kill-server completed" >> /tmp/shutdown.log 22 30 fi 23 31 exec /usr/bin/systemctl reboot 24 32 else