blob: 20f315fdfdeeed05864bc6f6075d0fc73d99983a (
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
28
29
30
31
32
33
34
35
36
37
38
|
post_install() {
echo ""
echo " Gesture Control installed."
echo ""
echo " The tray icon will appear on your next login and run first-time setup"
echo " automatically (creates a Python venv and downloads the MediaPipe model)."
echo ""
echo " Example configs are at /usr/share/doc/gesturecontrol/ -- copy them to"
echo " ~/.config/gesturecontrol/ to get started:"
echo ""
echo " mkdir -p ~/.config/gesturecontrol"
echo " cp /usr/share/doc/gesturecontrol/triggers.toml.example ~/.config/gesturecontrol/triggers.toml"
echo " cp /usr/share/doc/gesturecontrol/actions.toml.example ~/.config/gesturecontrol/actions.toml"
echo ""
echo " To start it now without logging out:"
echo ""
echo " gesturecontrol-tray &"
echo ""
}
post_upgrade() {
echo ""
echo " Gesture Control upgraded."
echo ""
echo " If this update added new pip dependencies, re-run setup:"
echo ""
echo " gesturecontrol-setup"
echo ""
echo " Then restart any running services:"
echo ""
echo " systemctl --user restart gestureControl.service gestureControl-actions.service"
echo ""
}
pre_remove() {
systemctl --user stop gestureControl.service gestureControl-actions.service 2>/dev/null || true
systemctl --user disable gestureControl.service gestureControl-actions.service 2>/dev/null || true
}
|