sway-config-fedora/sway/config.live.d/90-swayidle.conf
Aleksei Bavshin 0f9e12422b
sway: fix swayidle config for live images
```
swayidle[5956]: 2024-01-15 17:06:41 - [Line 921] Unsupported command '\'
```
2024-01-15 17:11:34 -08:00

15 lines
579 B
Text

# Idle and lock configuration
#
# Special version for live environment. We don't have a password for liveuser,
# so locking does not make sense.
#
# This will turn off your displays after 360 seconds of inactivity.
# The timeout can be customized via `$lock_timeout` and `$screen_timeout`
# and will be equal to the sum of both variables.
#
# Requires: swayidle
exec LT="$lock_timeout" ST="$screen_timeout" LT=${LT:-300} ST=${ST:-60} && \
swayidle -w \
timeout $((LT + ST)) 'swaymsg "output * power off"' \
resume 'swaymsg "output * power on"'