aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/systemd/user/zellij-inhibit-suspend.path
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/systemd/user/zellij-inhibit-suspend.path')
-rw-r--r--dot_config/systemd/user/zellij-inhibit-suspend.path3
1 files changed, 3 insertions, 0 deletions
diff --git a/dot_config/systemd/user/zellij-inhibit-suspend.path b/dot_config/systemd/user/zellij-inhibit-suspend.path
index 72c509c..2a4be21 100644
--- a/dot_config/systemd/user/zellij-inhibit-suspend.path
+++ b/dot_config/systemd/user/zellij-inhibit-suspend.path
@@ -5,6 +5,9 @@ Description=Activate suspend inhibitor whenever zellij has a live session
# %t expands to $XDG_RUNTIME_DIR (typically /run/user/$UID); zellij keeps
# its per-version session sockets under this directory. Whenever the dir
# transitions from empty to non-empty, the service is (re)activated.
+# The service's watcher then decides whether to actually hold the lock
+# (only if at least one zellij was spawned from an SSH session); if not,
+# it exits immediately and the service stops with no harm done.
DirectoryNotEmpty=%t/zellij
Unit=zellij-inhibit-suspend.service