diff options
| author | Robert Günzler <r@gnzler.io> | 2021-11-15 13:01:29 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2021-11-15 13:01:29 +0100 |
| commit | de0082649836e741dc2b2ff257465f2130b8fa35 (patch) | |
| tree | 8424be43548f1244cf3c13586fcdcb7053ecc73b /.local/share/s6/swayidle | |
| parent | 3cf45c29b17f8cc2f41e586de3463250e79007f0 (diff) | |
s6: add loggers
Diffstat (limited to '.local/share/s6/swayidle')
| -rwxr-xr-x | .local/share/s6/swayidle/log/run | 3 | ||||
| -rwxr-xr-x | .local/share/s6/swayidle/run | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/.local/share/s6/swayidle/log/run b/.local/share/s6/swayidle/log/run new file mode 100755 index 0000000..3b21bc0 --- /dev/null +++ b/.local/share/s6/swayidle/log/run @@ -0,0 +1,3 @@ +#!/bin/execlineb -P +foreground { mkdir -p /var/log/s6/swayidle } +/bin/s6-log -b s1 T /var/log/s6/swayidle diff --git a/.local/share/s6/swayidle/run b/.local/share/s6/swayidle/run index 48345ba..6a8a6a2 100755 --- a/.local/share/s6/swayidle/run +++ b/.local/share/s6/swayidle/run @@ -1,7 +1,7 @@ -#!/bin/execlineb -P -swayidle -w -S seat0 \ +#!/bin/sh +exec swayidle -w -S seat0 \ timeout 540 'lock' \ timeout 800 'swaymsg output \* dpms off' \ resume 'swaymsg output \* dpms on' \ before-sleep 'lock' \ - lock 'lock' + lock 'lock' 2>&1 |