blob: 3743856a2af7ef8e26d1995bd1eff8fc99515af1 (
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
|
post_install() {
systemd-sysusers draind.conf
systemctl daemon-reload
systemctl enable draind
echo ""
echo "draind installed. Next steps:"
echo ""
echo "1. Review the daemon config:"
echo " /etc/draind/draind.json"
echo ""
echo "2. Configure the agent (per-user):"
echo " ~/.config/draind/draind-agent.json"
echo " System default: /etc/xdg/draind/draind-agent.json"
echo " Set lock_cmd to your screen locker:"
echo " \"lock_cmd\": \"loginctl lock-session\""
echo ""
echo "3. Start the daemon:"
echo " systemctl start draind"
echo ""
echo "4. draind-agent has no systemd unit — start it via your compositor's"
echo " own autostart mechanism, e.g. niri's config.kdl:"
echo " spawn-at-startup \"draind-agent\""
}
post_upgrade() {
systemctl daemon-reload
systemctl try-restart draind
}
post_remove() {
systemctl is-enabled draind &>/dev/null && systemctl disable --now draind
systemctl daemon-reload
}
|