diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2024-02-19 22:32:41 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2024-02-19 22:32:41 +0000 |
| commit | 977a459ddaa33a856255be9c15464f0a5937c06c (patch) | |
| tree | 9f4b2b86a0863fda1d8eebae05b1c99df1cf7af1 /bin/swayidle.sh | |
| parent | 373891b492424c64ba8071affd38801a057e35ef (diff) | |
Add scripts to repo
Diffstat (limited to 'bin/swayidle.sh')
| -rwxr-xr-x | bin/swayidle.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/swayidle.sh b/bin/swayidle.sh new file mode 100755 index 0000000..8b971f7 --- /dev/null +++ b/bin/swayidle.sh @@ -0,0 +1,6 @@ +exec swayidle -w \ + timeout 300 "notify-send 'Power' 'System will suspend soon due to inactivity'" \ + timeout 310 "swaylock" \ + timeout 315 "systemctl suspend" \ + before-sleep "swaylock" + |
