blob: 66c8028092c299630feba39b0e579f714e3300ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
post_install() {
echo ""
echo "╔══════════════════════════════════════════════════════════╗"
echo "║ omarchy-window-restore installed! ║"
echo "║ ║"
echo "║ Run this command to activate keybindings for your user: ║"
echo "║ ║"
echo "║ omarchy-install-window-restore ║"
echo "║ ║"
echo "╚══════════════════════════════════════════════════════════╝"
echo ""
}
post_upgrade() {
post_install
}
pre_remove() {
# Find all users who have the scripts installed and clean up for each
for user_home in /home/*/; do
user=$(basename "$user_home")
if [ -f "$user_home/.local/bin/hypr-close-window" ]; then
echo " → Cleaning up Window Restore for user: $user"
runuser -l "$user" -c "omarchy-uninstall-window-restore" || true
fi
done
}
|