···3737bind = SUPER SHIFT, K, exec, ~/.local/share/omarchy/bin/omarchy-menu-keybindings
3838bindd = SUPER, T, Pick new theme, exec, omarchy-menu theme
3939# omarchy menu
4040-bindd = SUPER CTRL ALT, SPACE, Run commands, exec, ~/.local/share/omarchy/bin/omarchy-menu
4040+bindd = SUPER CTRL ALT, SPACE, Run commands, exec, ~/.config/hypr/sspaeti/omarchy-menu
4141bindd = SUPER ALT, SPACE, Run commands, exec, ~/.config/hypr/sspaeti/omarchy-menu-flat
4242# fix for using SUPER ESC on KBDFans Keyboard
4343-bind = SUPER, grave, exec, ~/.local/share/omarchy/bin/omarchy-menu-power
4343+bind = SUPER, grave, exec, ~/.config/hypr/sspaeti/omarchy-system-menu
444445454646bind = SUPER, N, exec, $toggle obsidian "obsidian --disable-gpu"
+12
hypr/.config/hypr/sspaeti/omarchy-menu
···11+#!/bin/bash
22+33+# Custom omarchy-menu wrapper that uses our tmux-aware system menu
44+# This preserves the original omarchy-menu while adding custom system handling
55+66+# If called with "system" argument, use our custom system menu
77+if [[ "$1" == "system" ]]; then
88+ exec ~/.config/hypr/sspaeti/omarchy-system-menu
99+fi
1010+1111+# For all other cases, call the original omarchy-menu
1212+exec ~/.local/share/omarchy/bin/omarchy-menu "$@"
···11+#!/bin/bash
22+33+# Intercept script for omarchy-menu to add tmux-aware shutdown/restart
44+# This script wraps systemctl calls to use our custom system menu
55+66+if [[ "$1" == "poweroff" ]]; then
77+ # Save tmux sessions and close gracefully before shutdown
88+ if command -v tmux &> /dev/null && tmux list-sessions &> /dev/null; then
99+ # Save all tmux sessions using resurrect
1010+ tmux run-shell '~/.tmux/plugins/tmux-resurrect/scripts/save.sh'
1111+ # Kill all tmux sessions gracefully
1212+ tmux kill-server
1313+ fi
1414+ exec /usr/bin/systemctl poweroff
1515+elif [[ "$1" == "reboot" ]]; then
1616+ # Save tmux sessions and close gracefully before restart
1717+ if command -v tmux &> /dev/null && tmux list-sessions &> /dev/null; then
1818+ # Save all tmux sessions using resurrect
1919+ tmux run-shell '~/.tmux/plugins/tmux-resurrect/scripts/save.sh'
2020+ # Kill all tmux sessions gracefully
2121+ tmux kill-server
2222+ fi
2323+ exec /usr/bin/systemctl reboot
2424+else
2525+ # For all other systemctl commands, pass through normally
2626+ exec /usr/bin/systemctl "$@"
2727+fi