chezmoi/dot_config/sway/scripts/executable_lockman.sh
kjuulh 9d6cc15469
Add .config/sway/cheatsheet
Add .config/sway/config
Add .config/sway/config.d/application_defaults
Add .config/sway/config.d/autostart_applications
Add .config/sway/config.d/clamshell
Add .config/sway/config.d/default
Add .config/sway/config.d/input
Add .config/sway/config.d/output
Add .config/sway/config.d/theme
Add .config/sway/keyboard.conf
Add .config/sway/scripts/clamshell.sh
Add .config/sway/scripts/import-gsettings
Add .config/sway/scripts/lockman.sh
Add .config/sway/scripts/screenshot.sh
Add .config/sway/scripts/swayfader.py
Add .config/sway/scripts/weather.sh
Add .config/sway/sway.png
Add .config/sway/swaylock.png
2023-07-25 15:39:26 +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 %%