Files
dotfiles/dot_config/private_sway/scripts/executable_lockman.sh
2024-06-04 10:15:01 +02:00

10 lines
275 B
Bash

#!/bin/sh
# Times the screen off and puts it to background
swayidle \
timeout 300 'swaymsg "output * power off"' \
resume 'swaymsg "output * power on"' &
# Locks the screen immediately
swaylock
# Kills last background task so idle timer doesn't keep running
kill %%