suspend: fix to work with systemd

This commit is contained in:
lelgenio 2022-05-21 13:35:18 -03:00
parent cfd141cff4
commit 2508fc6a89
1 changed files with 9 additions and 1 deletions

View File

@ -2,4 +2,12 @@
swaylock -f
env SVDIR="{{@@ user_svdir @@}}" sv up swayidle
export SVDIR="{{@@ user_svdir @@}}"
maybe() {
command -v $1 > /dev/null &&
env "$@"
}
maybe sv up swayidle
maybe systemctl --user start sway-idle.service