suspend: fix to work with systemd
This commit is contained in:
parent
cfd141cff4
commit
2508fc6a89
|
@ -2,4 +2,12 @@
|
||||||
|
|
||||||
swaylock -f
|
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
|
||||||
|
|
Reference in New Issue