mirror of
https://github.com/ivabus/dotfiles
synced 2024-11-26 01:55:07 +03:00
10 lines
281 B
Bash
10 lines
281 B
Bash
|
#!/bin/sh
|
||
|
# Times the screen off and puts it to background
|
||
|
swayidle \
|
||
|
timeout 10 'swaymsg "output * dpms off"' \
|
||
|
resume 'swaymsg "output * dpms on"' &
|
||
|
# Locks the screen immediately
|
||
|
swaylock -c 073642
|
||
|
# Kills last background task so idle timer doesn't keep running
|
||
|
kill %%
|