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