20 lines
686 B
Desktop File
20 lines
686 B
Desktop File
# systemd --user unit. Enable it as the kiosk user once ~/.config/presence/config
|
|||
|
|
# exists (see /usr/share/doc/presence/config.example):
|
||
|
|
# systemctl --user enable --now presence
|
||
|
|
# Commands run with the user's environment as the manager sees it; swaymsg
|
||
|
|
# finds the sway socket by itself, other tools may need
|
||
|
|
# exec systemctl --user import-environment WAYLAND_DISPLAY SWAYSOCK
|
||
|
|
# in the sway config.
|
||
|
|
[Unit]
|
||
|
|
Description=BLE proximity events for the screen
|
||
|
|
Documentation=file:///usr/share/doc/presence/README.md
|
||
|
|
ConditionPathExists=%E/presence/config
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
ExecStart=/usr/bin/presence --config %E/presence/config
|
||
|
|
Restart=on-failure
|
||
|
|
RestartSec=5
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=default.target
|