From 830615d2baff42e2a4dec20996127a2c1a7c180f Mon Sep 17 00:00:00 2001 From: Konstantin Koslowski Date: Sun, 3 Jan 2021 22:34:08 +0100 Subject: [PATCH] sway: more logging for lock/suspend --- bin/lock | 2 +- bin/suspend | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/lock b/bin/lock index c24648a..85a810e 100755 --- a/bin/lock +++ b/bin/lock @@ -68,7 +68,7 @@ function _suspend() { } mkdir -p $HOME/log -echo "lock: $(date) args: $*" >> $HOME/log/lock.log +echo "lock: $(date) args: $*" >> $HOME/log/sway.log case "$1" in inhibit) diff --git a/bin/suspend b/bin/suspend index 575e3a4..823e9b3 100755 --- a/bin/suspend +++ b/bin/suspend @@ -25,6 +25,9 @@ function _suspend() { fi } +mkdir -p $HOME/log +echo "suspend: $(date) args: $*" >> $HOME/log/sway.log + case $1 in suspend) _suspend 0