This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
2021-03-23 16:14:55 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2021-03-30 20:59:00 +02:00
|
|
|
pkill -9 swayidle
|
2021-03-23 16:14:55 +01:00
|
|
|
|
|
|
|
exec swayidle -w \
|
2022-02-15 00:59:10 +01:00
|
|
|
before-sleep 'swaylock -f' \
|
|
|
|
timeout 360 'swaylock -f' \
|
2021-07-10 05:11:47 +02:00
|
|
|
timeout 1800 'mpc status | grep "^\[playing\]" > /dev/null ||
|
|
|
|
swaymsg "output * dpms off"' \
|
2021-04-14 07:58:46 +02:00
|
|
|
resume 'swaymsg "output * dpms on"' \
|